/**
 * SeaTech Yachts - Luxury Responsive Breakpoints Stylesheet
 * Complete, seamless responsiveness across:
 * - Ultra-Wide & Standard Desktop (> 1240px)
 * - Compact Laptops & Large Tablets (1024px – 1240px)
 * - Tablet Landscape (992px – 1040px)
 * - Mobile Devices & Small Tablets (768px and below)
 * - Compact Mobile & Phablets (640px and below)
 * - Standard Mobile Phones (480px and below - iPhone 12/13/14/15/16, Galaxy, Pixel)
 * - Ultra-Compact Mobile (375px and below - iPhone SE, small Androids)
 */

/* ==========================================================================
   1. Laptop & Mid-size Desktop (1240px and below)
   ========================================================================== */
@media (max-width: 1240px) {
  .nav-menu {
    gap: 1.15rem;
  }

  .nav-link {
    font-size: 0.86rem;
  }

  .nav-actions {
    gap: 0.75rem;
    flex-shrink: 0;
  }

  .nav-phone span {
    display: none; /* Hide phone text, keep sleek circular icon button so header never crowds */
  }

  .nav-phone {
    font-size: 0.82rem;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  }
}

/* ==========================================================================
   2. Compact Laptop & Hybrid Tablet Landscape (1140px and below)
   ========================================================================== */
@media (max-width: 1140px) {
  :root {
    --header-height: 70px;
  }

  .nav-menu {
    display: none !important; /* Switch to clean mobile drawer before any links collide */
  }

  .mobile-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* ==========================================================================
   3. Tablet Landscape & Hybrid Laptops (1040px and below)
   ========================================================================== */
@media (max-width: 1040px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3.5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Yacht Detail & Experience Detail Grid Fix - Stack to 1-column */
  #yachtDetailGrid,
  .yacht-detail-grid,
  div[style*="grid-template-columns: 1.6fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .calculator-card,
  .calculator-card-wrapper {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.5rem;
    box-sizing: border-box;
  }

  /* Discovery Search Bar in Hero */
  .discovery-form {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }

  .discovery-form .btn {
    grid-column: span 2 !important;
    width: 100% !important;
  }

  .birthday-offer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    padding: 2rem !important;
  }
}

/* ==========================================================================
   4. Tablet Portrait (992px and below)
   ========================================================================== */
@media (max-width: 992px) {
  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .birthday-offer-grid {
    padding: 1.75rem 1.5rem !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ==========================================================================
   5. Mobile Devices & Small Tablets (768px and below) - Primary Mobile System
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --container-pad: 16px;
  }

  /* Zero Horizontal Overflow on Entire Viewport */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: var(--container-pad) !important;
    padding-right: var(--container-pad) !important;
  }

  /* Responsive Fluid Typography - Eliminates Heavy Congestion */
  h1 {
    font-size: clamp(1.65rem, 6vw, 2.05rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em !important;
    word-break: break-word !important;
  }

  h2 {
    font-size: clamp(1.35rem, 4.8vw, 1.7rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
  }

  h3 {
    font-size: clamp(1.18rem, 3.8vw, 1.4rem) !important;
    line-height: 1.3 !important;
  }

  h4 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  p {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin-bottom: 0.85rem !important;
    color: #43586b;
  }

  p.lead {
    font-size: 1rem !important;
    line-height: 1.58 !important;
  }

  .eyebrow {
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 0.5rem !important;
  }

  .section {
    padding: 3rem 0 !important;
  }

  .section-header {
    margin-bottom: 1.85rem !important;
    max-width: 100% !important;
    text-align: center;
  }

  .section-header p {
    font-size: 0.92rem !important;
    line-height: 1.52 !important;
  }

  /* Header & Navigation Bar - Clean, Spacious, Never Overflowing */
  .site-header {
    height: 64px !important;
  }

  .nav-container {
    padding-left: var(--container-pad) !important;
    padding-right: var(--container-pad) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .site-logo-img {
    height: 35px !important;
    max-width: 145px !important;
    width: auto !important;
  }

  .nav-actions {
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Hide textual quote button in mobile navbar to give logo and toggle full room */
  .nav-actions .btn-sm {
    display: none !important;
  }

  .nav-phone {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    flex-shrink: 0 !important;
  }

  .nav-phone svg {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
  }

  .mobile-toggle-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    flex-shrink: 0 !important;
  }

  .mobile-drawer {
    width: min(85vw, 320px) !important;
    padding: 1.5rem 1.25rem !important;
  }

  .mobile-menu-link {
    font-size: 1rem !important;
    padding: 10px 0 !important;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto !important;
    padding-top: calc(var(--header-height) + 1.25rem) !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-content > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 1rem !important;
  }

  .hero-language-bar {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    padding: 4px 8px !important;
    gap: 6px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .hero-language-bar > span {
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .hero-language-bar > div {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    padding-bottom: 2px !important;
  }

  .lang-pill {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5.8vw, 1.95rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 0.75rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  .hero-lead {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.35rem !important;
    color: #d5e4f0 !important;
    max-width: 100% !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 0.92rem !important;
  }

  /* Search & Filter Widget */
  .discovery-widget {
    padding: 1.15rem 1rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .discovery-form {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .discovery-form .btn {
    grid-column: span 1 !important;
    width: 100% !important;
  }

  .discovery-input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    height: 44px !important;
  }

  /* Special Birthday Offer Section */
  .birthday-offer-section {
    padding: 0.85rem 0 0.5rem 0 !important;
  }

  .birthday-offer-card {
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .birthday-offer-grid {
    grid-template-columns: 1fr !important;
    padding: 1.25rem 1rem !important;
    gap: 1.25rem !important;
  }

  .birthday-offer-grid h2 {
    font-size: 1.65rem !important;
    line-height: 1.12 !important;
  }

  /* Stack Price & Guests capacity cleanly */
  .birthday-offer-grid div[style*="display: inline-flex; align-items: center; gap: 12px"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 1rem !important;
  }

  .birthday-offer-grid div[style*="background: linear-gradient(135deg, #FFC700"] {
    padding: 5px 14px !important;
    border-radius: 8px !important;
  }

  .birthday-offer-grid div[style*="background: linear-gradient(135deg, #FFC700"] span:first-child {
    font-size: 1.65rem !important;
  }

  .birthday-offer-grid div[style*="display: flex; gap: 12px"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .birthday-offer-grid div[style*="display: flex; gap: 12px"] .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
    font-size: 0.92rem !important;
  }

  .birthday-offer-grid div[style*="height: 220px"] {
    height: 175px !important;
    margin-bottom: 0.85rem !important;
    border-radius: 10px !important;
  }

  .birthday-offer-grid div[style*="height: 220px"] div[style*="position: absolute; bottom: 10px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    bottom: 8px !important;
    left: 10px !important;
    right: 10px !important;
    font-size: 0.75rem !important;
  }

  .birthday-pricing-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .birthday-pricing-grid > * {
    min-width: 0 !important;
  }

  .birthday-price-card {
    padding: 8px 3px !important;
    border-radius: 10px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .birthday-price-val {
    font-size: 1.18rem !important;
  }

  .birthday-price-currency {
    font-size: 0.65rem !important;
  }

  .birthday-price-duration {
    font-size: 0.62rem !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .birthday-price-badge {
    font-size: 0.52rem !important;
    padding: 1px 5px !important;
    top: -7px !important;
  }

  .birthday-price-desc {
    display: none !important; /* Hide tiny text on mobile to keep cards compact */
  }

  .birthday-cake-addon {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 6px !important;
  }

  .birthday-cake-text {
    font-size: 0.76rem !important;
  }

  .birthday-cake-price {
    font-size: 0.72rem !important;
    padding: 2px 7px !important;
    flex-shrink: 0 !important;
  }

  .birthday-inclusions-wrap {
    padding: 0.85rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .birthday-inclusions-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }

  .birthday-inclusion-item {
    padding: 6px 2px !important;
  }

  .birthday-inclusion-icon {
    font-size: 1.1rem !important;
  }

  .birthday-inclusion-label {
    font-size: 0.68rem !important;
  }

  .birthday-offer-inclusions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .birthday-offer-inclusions > div {
    padding: 4px 2px !important;
  }

  .birthday-offer-inclusions div[style*="font-size: 1.2rem"] {
    font-size: 1.1rem !important;
  }

  .birthday-offer-inclusions div[style*="font-size: 0.72rem"] {
    font-size: 0.7rem !important;
  }

  .birthday-offer-card div[style*="background: rgba(4, 15, 24, 0.95)"] {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
  }

  /* Trust Indicators Bar */
  .trust-bar {
    padding: 1.25rem 0 !important;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem 0.85rem !important;
  }

  .trust-item {
    gap: 10px !important;
    align-items: flex-start !important;
  }

  .trust-icon-box {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .trust-icon-box svg {
    width: 18px !important;
    height: 18px !important;
  }

  .trust-item-title {
    font-size: 0.84rem !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
  }

  .trust-item-desc {
    font-size: 0.74rem !important;
    line-height: 1.3 !important;
  }

  /* All Grid Layouts */
  .grid-2,
  .grid-3,
  .grid-4,
  .packages-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Catch-All Inline Multi-Column Grids across all HTML Pages */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1.6fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Fleet & Yacht Cards */
  .yacht-card {
    border-radius: 14px !important;
  }

  .yacht-card-img-wrap {
    aspect-ratio: 16 / 10 !important;
  }

  .yacht-card-price-tag {
    padding: 5px 10px !important;
    font-size: 0.82rem !important;
    bottom: 10px !important;
    right: 10px !important;
  }

  .yacht-card-price-tag span {
    font-size: 1.05rem !important;
  }

  .yacht-card-body {
    padding: 1.2rem 1rem !important;
  }

  .yacht-card-reg {
    font-size: 0.72rem !important;
  }

  .yacht-card-title {
    font-size: 1.25rem !important;
    margin-top: 2px !important;
    margin-bottom: 4px !important;
  }

  .yacht-card-tagline {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.85rem !important;
  }

  .yacht-specs-pills {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 8px 6px !important;
    margin-bottom: 1rem !important;
    background: var(--color-pearl) !important;
    border-radius: 8px !important;
  }

  .spec-pill {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 4px 2px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .yacht-features-list {
    margin-bottom: 1.15rem !important;
    gap: 6px !important;
  }

  .yacht-features-list li {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    gap: 8px !important;
  }

  .yacht-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .yacht-card-actions .btn {
    width: 100% !important;
    padding: 11px 6px !important;
    font-size: 0.84rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* Experience Cards */
  .experience-card {
    aspect-ratio: 16 / 10 !important;
    min-height: 220px !important;
    padding: 1.15rem !important;
    border-radius: 12px !important;
  }

  .experience-badge {
    font-size: 0.68rem !important;
    padding: 3px 8px !important;
    margin-bottom: 0.5rem !important;
  }

  .experience-card-title {
    font-size: 1.2rem !important;
    margin-bottom: 4px !important;
  }

  .experience-card-desc {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .experience-card-meta {
    padding-top: 0.6rem !important;
    font-size: 0.8rem !important;
  }

  /* Package Cards */
  .package-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: 14px !important;
  }

  .package-name {
    font-size: 1.28rem !important;
  }

  .package-price-wrap {
    margin-bottom: 1rem !important;
  }

  .package-price-num {
    font-size: 1.85rem !important;
  }

  .package-duration {
    font-size: 0.82rem !important;
  }

  .package-inclusions {
    margin-bottom: 1.25rem !important;
  }

  .package-inclusions h5 {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  .package-inclusions ul li {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
  }

  .package-card .btn {
    padding: 11px !important;
    font-size: 0.9rem !important;
  }

  /* Why Choose Us & Floating Box Fix */
  div[style*="bottom: -20px; left: -20px"] {
    position: static !important;
    margin-top: 12px !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    box-shadow: var(--shadow-sm) !important;
  }

  /* Gallery Grid - Responsive Instagram Style 2 Columns */
  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .gallery-item {
    aspect-ratio: 4 / 3 !important;
    border-radius: 8px !important;
  }

  /* 4-Step Booking Process Timeline */
  .grid-4 {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
  }

  .grid-4 > div {
    display: flex !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 14px !important;
    padding: 1.15rem 1rem !important;
    border-radius: 10px !important;
  }

  .grid-4 > div > div:first-child {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .grid-4 > div h4 {
    font-size: 0.98rem !important;
    margin-bottom: 2px !important;
  }

  .grid-4 > div p {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  /* FAQ Tabs & Accordions */
  .faq-category-tabs {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    margin-bottom: 1.5rem !important;
  }

  .faq-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
  }

  .faq-question-btn {
    padding: 1rem 1.15rem !important;
    gap: 12px !important;
    font-size: 0.94rem !important;
    text-align: left !important;
    align-items: flex-start !important;
    line-height: 1.4 !important;
  }

  .faq-chevron {
    flex-shrink: 0 !important;
    margin-top: 3px !important;
  }

  .faq-answer {
    padding: 0 1.15rem 1.15rem 1.15rem !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
  }

  /* Contact & Info Cards */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .contact-info-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: 14px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .footer-brand p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-top: 0.75rem !important;
    max-width: 100%;
  }

  .footer-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.65rem !important;
    padding-bottom: 6px !important;
  }

  .footer-links {
    gap: 6px !important;
  }

  .footer-links a {
    font-size: 0.84rem !important;
  }

  .footer-contact-info p {
    font-size: 0.84rem !important;
    gap: 8px !important;
    margin-bottom: 0.5rem !important;
  }

  .footer-map-card iframe {
    height: 160px !important;
    border-radius: 8px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.75rem !important;
    padding: 1.25rem 0 !important;
    font-size: 0.78rem !important;
  }

  .footer-legal-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 12px !important;
  }

  .legal-dot {
    display: none !important;
  }

  /* Yacht Detail & Experience Detail Content */
  .calculator-card {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.25rem !important;
    box-sizing: border-box !important;
  }

  .gallery-thumbs-row {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .gallery-thumb-item,
  .gallery-thumbs-row img {
    flex-shrink: 0 !important;
    width: 72px !important;
    height: 50px !important;
    border-radius: 6px !important;
  }

  .specs-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .specs-table td,
  .specs-table th {
    padding: 8px 10px !important;
    font-size: 0.84rem !important;
  }

  div[style*="background: #ffffff; padding: 2.25rem"] {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
    margin-top: 1.25rem !important;
  }

  /* Routes Cards */
  .route-card {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
  }

  .route-card-title {
    font-size: 1.22rem !important;
  }

  .landmark-tag {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
  }

  .route-condition-box {
    font-size: 0.82rem !important;
    padding: 10px !important;
  }

  /* Universal Booking Modal */
  .booking-modal-backdrop {
    padding: 8px !important;
  }

  .booking-modal-card {
    max-width: 96vw !important;
    max-height: 94vh !important;
    border-radius: 12px !important;
  }

  .booking-modal-header {
    padding: 0.9rem 1.15rem !important;
  }

  .booking-modal-header h3 {
    font-size: 1.1rem !important;
  }

  .booking-modal-body {
    padding: 1rem 1.15rem !important;
  }

  .price-estimator-strip {
    padding: 0.75rem 0.9rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin-bottom: 1rem !important;
  }

  .booking-modal-body .form-group {
    margin-bottom: 0.75rem !important;
  }

  .booking-modal-body .form-control,
  .booking-modal-body .form-select,
  .form-control,
  .form-select {
    font-size: 16px !important; /* iOS Zoom Prevention */
    height: 44px !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
  }

  .booking-modal-body textarea.form-control {
    font-size: 16px !important;
    height: auto !important;
  }

  .booking-modal-body button[type="submit"] {
    padding: 12px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
  }

  /* Floating Action Bar */
  .floating-action-bar {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    right: calc(14px + env(safe-area-inset-right, 0px)) !important;
    z-index: 999 !important;
  }

  .floating-whatsapp-btn {
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
  }

  .floating-whatsapp-btn span {
    display: none !important;
  }
}

/* ==========================================================================
   6. Compact Mobile & Modal Grids (640px and below)
   ========================================================================== */
@media (max-width: 640px) {
  .booking-modal-backdrop {
    padding: 6px !important;
  }

  .booking-modal-body div[style*="grid-template-columns"],
  .booking-modal-body .grid-2,
  .booking-modal-body .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .booking-modal-body div[style*="display: flex; gap: 1rem"] {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .booking-modal-body div[style*="display: flex; gap: 1rem"] .btn {
    width: 100% !important;
  }

  .booking-modal-card #modalYachtSelect {
    font-size: 0.86rem !important;
    padding: 10px 30px 10px 10px !important;
    line-height: 1.35 !important;
  }

  /* Yachts Page Filter Controls */
  div[style*="justify-content: space-between; flex-wrap: wrap; gap: 1rem"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }

  div[style*="min-width: 180px"] {
    width: 100% !important;
    min-width: 0 !important;
  }

  .section-dark div[style*="justify-content: space-between"] > div:last-child {
    text-align: left !important;
  }
}

/* ==========================================================================
   7. Standard Mobile Phones (480px and below - iPhone 12/13/14/15/16, Galaxy)
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --container-pad: 15px;
    --header-height: 60px;
  }

  .site-header {
    height: 60px !important;
  }

  .site-logo-img {
    height: 33px !important;
    max-width: 135px !important;
  }

  .logo-badge {
    padding: 0 !important;
  }

  .hero-title {
    font-size: 1.62rem !important;
    line-height: 1.22 !important;
  }

  .hero-lead {
    font-size: 0.92rem !important;
    line-height: 1.52 !important;
  }

  .hero-language-bar span {
    font-size: 0.7rem !important;
  }

  .lang-pill {
    padding: 2px 7px !important;
    font-size: 0.7rem !important;
  }

  .yacht-card-title {
    font-size: 1.18rem !important;
  }

  .yacht-specs-pills {
    padding: 6px 4px !important;
    gap: 4px !important;
  }

  .spec-pill {
    font-size: 0.72rem !important;
  }

  .yacht-card-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .yacht-card-actions .btn {
    font-size: 0.82rem !important;
    padding: 10px 4px !important;
  }

  .birthday-offer-grid h2 {
    font-size: 1.55rem !important;
  }

  .gallery-grid {
    gap: 6px !important;
  }

  .mobile-drawer {
    width: 86vw !important;
    max-width: 300px !important;
  }
}

/* ==========================================================================
   8. Ultra-Compact Mobile Screens (375px and below - iPhone SE, small Androids)
   ========================================================================== */
@media (max-width: 375px) {
  :root {
    --container-pad: 12px;
  }

  .site-logo-img {
    height: 30px !important;
    max-width: 120px !important;
  }

  .hero-title {
    font-size: 1.48rem !important;
  }

  .trust-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .birthday-offer-inclusions,
  .birthday-inclusions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .yacht-card-actions {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
  }
}
