/*
Theme Name: Journey Masterz
Theme URI: https://journeymasterz.com
Author: Journey Masterz Team
Author URI: https://journeymasterz.com
Description: Luxury travel agency and tour operator WordPress theme built for North India tours, domestic holiday packages, customizable itineraries, and direct WhatsApp bookings.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: journey-masterz
Tags: travel, tour-operator, north-india, holidays, custom-menu, featured-images, theme-options, translation-ready
*/

/* ========================================================
   JOURNEY MASTERZ - CORE DESIGN SYSTEM & STYLES
   ======================================================== */

:root {
  --jm-primary: #0d9488;
  --jm-primary-dark: #0f766e;
  --jm-primary-light: #ccfbf1;
  --jm-accent: #d97706;
  --jm-accent-dark: #b45309;
  --jm-accent-light: #fef3c7;
  --jm-dark: #0f172a;
  --jm-dark-slate: #1e293b;
  --jm-gray-bg: #f8fafc;
  --jm-gray-border: #e2e8f0;
  --jm-text-main: #1e293b;
  --jm-text-muted: #64748b;
  --jm-white: #ffffff;
  --jm-radius-sm: 8px;
  --jm-radius-md: 14px;
  --jm-radius-lg: 20px;
  --jm-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --jm-shadow-md: 0 4px 14px rgba(15,23,42,0.08);
  --jm-shadow-lg: 0 12px 28px rgba(15,23,42,0.12);
  --jm-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --jm-font-serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--jm-font-sans);
  background-color: var(--jm-white);
  color: var(--jm-text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--jm-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--jm-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.jm-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP ANNOUNCEMENT BAR */
.jm-top-bar {
  background: #090d16;
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.jm-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.jm-top-bar-left, .jm-top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.jm-top-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.jm-top-item a {
  color: #f1f5f9;
  font-weight: 500;
}

.jm-top-item a:hover {
  color: #38bdf8;
}

.jm-badge-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* MAIN SITE HEADER */
.jm-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-bottom: 1px solid var(--jm-gray-border);
}

.jm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.jm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jm-brand img {
  height: 48px;
  width: auto;
}

.jm-brand-text {
  display: flex;
  flex-direction: column;
}

.jm-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--jm-dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.jm-brand-title span {
  color: var(--jm-primary);
}

.jm-brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--jm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* NAVIGATION */
.jm-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.jm-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.jm-nav-links li {
  position: relative;
}

.jm-nav-links a {
  color: var(--jm-dark-slate);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 4px;
  display: block;
}

.jm-nav-links a:hover,
.jm-nav-links .current-menu-item > a {
  color: var(--jm-primary);
}

.jm-nav-links .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.jm-nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--jm-gray-border);
  border-radius: var(--jm-radius-sm);
  box-shadow: var(--jm-shadow-md);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 99;
}

.jm-nav-links .sub-menu li a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}

.jm-nav-links .sub-menu li a:hover {
  background: var(--jm-gray-bg);
  color: var(--jm-primary);
}

.jm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.jm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--jm-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.jm-btn-primary {
  background-color: var(--jm-primary);
  color: #fff;
}

.jm-btn-primary:hover {
  background-color: var(--jm-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}

.jm-btn-accent {
  background-color: var(--jm-accent);
  color: #fff;
}

.jm-btn-accent:hover {
  background-color: var(--jm-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.jm-btn-whatsapp {
  background-color: #25d366;
  color: #fff;
}

.jm-btn-whatsapp:hover {
  background-color: #20bd5a;
  color: #fff;
}

.jm-btn-outline {
  background-color: transparent;
  color: var(--jm-dark-slate);
  border: 1px solid var(--jm-gray-border);
}

.jm-btn-outline:hover {
  background-color: var(--jm-gray-bg);
  border-color: #cbd5e1;
}

.jm-btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--jm-radius-md);
}

.jm-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--jm-dark);
}

/* HERO SECTION */
.jm-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 60px 0;
}

.jm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.82) 0%, rgba(15,23,42,0.65) 100%);
}

.jm-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.jm-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fef08a;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.jm-hero-title {
  font-family: var(--jm-font-serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.jm-hero-desc {
  font-size: 18px;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* HERO QUICK SEARCH WIDGET */
.jm-hero-search {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--jm-radius-md);
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.jm-search-field {
  text-align: left;
}

.jm-search-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--jm-text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.jm-search-field select,
.jm-search-field input {
  width: 100%;
  border: 1px solid var(--jm-gray-border);
  padding: 10px 12px;
  border-radius: var(--jm-radius-sm);
  font-size: 14px;
  color: var(--jm-dark);
  font-weight: 500;
  background: #fff;
  outline: none;
}

/* TRUST BAR */
.jm-trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--jm-gray-border);
  padding: 24px 0;
}

.jm-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.jm-trust-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jm-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--jm-primary-light);
  color: var(--jm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.jm-trust-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--jm-dark);
}

.jm-trust-sub {
  font-size: 12px;
  color: var(--jm-text-muted);
}

/* SECTION HEADINGS */
.jm-section {
  padding: 72px 0;
}

.jm-section-light {
  background-color: var(--jm-gray-bg);
}

.jm-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.jm-eyebrow {
  color: var(--jm-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.jm-section-title {
  font-family: var(--jm-font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--jm-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.jm-section-subtitle {
  font-size: 15px;
  color: var(--jm-text-muted);
  line-height: 1.6;
}

/* CARDS & GRIDS */
.jm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.jm-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* PACKAGE CARD */
.jm-pkg-card {
  background: #ffffff;
  border-radius: var(--jm-radius-md);
  overflow: hidden;
  border: 1px solid var(--jm-gray-border);
  box-shadow: var(--jm-shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.jm-pkg-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--jm-shadow-lg);
  border-color: #cbd5e1;
}

.jm-pkg-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.jm-pkg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.jm-pkg-card:hover .jm-pkg-thumb img {
  transform: scale(1.06);
}

.jm-pkg-duration {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.jm-pkg-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.jm-pkg-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.jm-pkg-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--jm-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.jm-pkg-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--jm-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.jm-pkg-title a {
  color: inherit;
}

.jm-pkg-title a:hover {
  color: var(--jm-primary);
}

.jm-pkg-desc {
  font-size: 13px;
  color: var(--jm-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jm-pkg-features {
  list-style: none;
  font-size: 12px;
  color: var(--jm-dark-slate);
  margin-bottom: 18px;
  border-top: 1px dashed var(--jm-gray-border);
  padding-top: 12px;
}

.jm-pkg-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.jm-pkg-features li span {
  color: #10b981;
}

.jm-pkg-footer {
  margin-top: auto;
  border-top: 1px solid var(--jm-gray-border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jm-pkg-price-box {
  display: flex;
  flex-direction: column;
}

.jm-pkg-original {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

.jm-pkg-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--jm-dark);
}

.jm-pkg-price span {
  font-size: 11px;
  font-weight: 500;
  color: var(--jm-text-muted);
}

/* DESTINATION CARD */
.jm-dest-card {
  position: relative;
  height: 360px;
  border-radius: var(--jm-radius-md);
  overflow: hidden;
  box-shadow: var(--jm-shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.jm-dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.jm-dest-card:hover img {
  transform: scale(1.08);
}

.jm-dest-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.85) 100%);
}

.jm-dest-info {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: #fff;
  width: 100%;
}

.jm-dest-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #fef08a;
}

.jm-dest-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.jm-dest-sub {
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jm-dest-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #cbd5e1;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
}

/* ENQUIRY CTA SECTION */
.jm-enquiry-banner {
  background: linear-gradient(135deg, #0f766e 0%, #0f172a 100%);
  color: #fff;
  border-radius: var(--jm-radius-lg);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
}

.jm-enquiry-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.jm-enquiry-banner h2 {
  font-family: var(--jm-font-serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
}

.jm-enquiry-banner p {
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.jm-enquiry-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jm-enquiry-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.jm-enquiry-form-card {
  background: #ffffff;
  padding: 28px;
  border-radius: var(--jm-radius-md);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
  color: var(--jm-dark);
}

.jm-enquiry-form-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--jm-dark);
}

.jm-enquiry-form-card p {
  font-size: 13px;
  color: var(--jm-text-muted);
  margin-bottom: 18px;
}

.jm-form-group {
  margin-bottom: 14px;
}

.jm-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--jm-dark-slate);
  margin-bottom: 5px;
}

.jm-form-input, .jm-form-select, .jm-form-textarea {
  width: 100%;
  border: 1px solid var(--jm-gray-border);
  border-radius: var(--jm-radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
}

.jm-form-input:focus, .jm-form-select:focus, .jm-form-textarea:focus {
  border-color: var(--jm-primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

/* SINGLE PACKAGE LAYOUT */
.jm-package-hero {
  background: var(--jm-dark);
  color: #fff;
  padding: 40px 0;
}

.jm-breadcrumbs {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.jm-breadcrumbs a {
  color: #cbd5e1;
}

.jm-breadcrumbs a:hover {
  color: #38bdf8;
}

.jm-pkg-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.jm-gallery-main {
  height: 420px;
  border-radius: var(--jm-radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.jm-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jm-itinerary-day {
  border: 1px solid var(--jm-gray-border);
  border-radius: var(--jm-radius-sm);
  padding: 18px;
  margin-bottom: 14px;
  background: #fff;
}

.jm-day-badge {
  display: inline-block;
  background: var(--jm-primary-light);
  color: var(--jm-primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.jm-day-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--jm-dark);
  margin-bottom: 8px;
}

.jm-day-desc {
  font-size: 14px;
  color: var(--jm-text-muted);
  line-height: 1.6;
}

/* STICKY BOOKING CARD */
.jm-sticky-booking {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--jm-gray-border);
  border-radius: var(--jm-radius-md);
  padding: 24px;
  box-shadow: var(--jm-shadow-md);
}

/* FOOTER */
.jm-site-footer {
  background: #090d16;
  color: #cbd5e1;
  padding: 64px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.jm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.jm-footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.jm-footer-col ul {
  list-style: none;
}

.jm-footer-col ul li {
  margin-bottom: 10px;
}

.jm-footer-col ul a {
  color: #94a3b8;
  font-size: 14px;
}

.jm-footer-col ul a:hover {
  color: #fff;
  padding-left: 4px;
}

.jm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* FLOATING WHATSAPP & PHONE BUTTONS */
.jm-float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  font-size: 30px;
  transition: transform 0.25s ease;
}

.jm-float-whatsapp:hover {
  transform: scale(1.1);
  color: #fff;
}

.jm-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--jm-gray-border);
  padding: 10px 16px;
  z-index: 998;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.jm-mobile-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .jm-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .jm-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .jm-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .jm-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .jm-pkg-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .jm-nav {
    display: none;
  }
  .jm-mobile-toggle {
    display: block;
  }
  .jm-hero-title {
    font-size: 32px;
  }
  .jm-hero-search {
    grid-template-columns: 1fr;
  }
  .jm-grid-3, .jm-grid-4 {
    grid-template-columns: 1fr;
  }
  .jm-enquiry-grid {
    grid-template-columns: 1fr;
  }
  .jm-footer-grid {
    grid-template-columns: 1fr;
  }
  .jm-mobile-sticky-bar {
    display: block;
  }
  .jm-float-whatsapp {
    bottom: 74px;
  }
  body {
    padding-bottom: 60px;
  }
}

/* Responsive polish: prevent embedded media and card layouts from overflowing on phones. */
.wp-block-embed,
.wp-block-video,
.wp-block-embed__wrapper,
.jm-content iframe,
.entry-content iframe,
.jm-gallery-main iframe,
iframe,
video,
embed,
object {
  max-width: 100%;
}
.wp-block-embed__wrapper,
.jm-content .video-wrapper,
.entry-content .video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.wp-block-embed__wrapper iframe,
.jm-content .video-wrapper iframe,
.entry-content .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .jm-container { padding-left: 16px; padding-right: 16px; }
  .jm-hero { min-height: auto; padding: 48px 0 38px; background-position: center; }
  .jm-hero-title { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.15; overflow-wrap: anywhere; }
  .jm-hero-desc { font-size: 16px; line-height: 1.55; margin-bottom: 24px; }
  .jm-hero-pill { font-size: 11px; line-height: 1.45; white-space: normal; }
  .jm-hero-search { padding: 14px; gap: 10px; }
  .jm-section { padding-top: 42px; padding-bottom: 42px; }
  .jm-section-title { font-size: clamp(25px, 6vw, 32px); line-height: 1.2; }
  .jm-section-subtitle { font-size: 15px; }
  .jm-grid-3, .jm-grid-4 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .jm-dest-card { height: clamp(270px, 78vw, 340px); }
  .jm-dest-info { padding: 18px; }
  .jm-pkg-thumb { height: auto; aspect-ratio: 16 / 10; }
  .jm-pkg-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .jm-pkg-footer > div:last-child { width: 100%; }
  .jm-pkg-footer .jm-btn { flex: 1; justify-content: center; text-align: center; min-width: 0; }
  .jm-trust-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .jm-enquiry-grid { gap: 22px; }
  .jm-mobile-sticky-bar { padding: 8px 12px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .jm-mobile-sticky-grid { gap: 8px; }
  .jm-mobile-sticky-grid .jm-btn { min-width: 0; padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .jm-float-whatsapp { right: 14px; bottom: 76px; }
  .jm-pkg-body { padding: 16px; }
  .jm-pkg-title { font-size: 19px; line-height: 1.3; }
  .jm-pkg-features { padding-left: 0; }
  .jm-pkg-features li { overflow-wrap: anywhere; }
  .jm-gallery-main img { width: 100%; height: auto; object-fit: cover; }
  .wp-block-embed, .wp-block-video { margin-left: 0; margin-right: 0; }
  .jm-table-wrap, table { max-width: 100%; }
}

@media (max-width: 380px) {
  .jm-container { padding-left: 12px; padding-right: 12px; }
  .jm-hero-title { font-size: 27px; }
  .jm-pkg-footer > div:last-child { flex-direction: column; }
  .jm-pkg-footer .jm-btn { width: 100%; }
}
