/* ========================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE OPTIMIZATION
   Safari Chic - All Pages Mobile-First Enhancement
   ======================================================== */

/* ========== MOBILE-FIRST BASE ADJUSTMENTS ========== */

/* Ensure proper text sizing on mobile */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Improve touch targets on mobile */
@media (max-width: 900px) {
  button, a, .btn, nav a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ========== CONTAINER & SPACING OPTIMIZATION ========== */

/* Reduce padding on smaller screens for better space utilization */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding-inline: 16px;
  }
  
  .section {
    padding: 40px 0;
    min-height: auto;
  }
  
  .page {
    padding: 32px 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding-inline: 12px;
  }
  
  .section {
    padding: 32px 0;
  }
  
  .page {
    padding: 24px 0;
  }
}

/* ========== TYPOGRAPHY MOBILE OPTIMIZATION ========== */

/* Adjust heading sizes for mobile readability */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(28px, 7vw, 36px) !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: clamp(18px, 5vw, 24px) !important;
    line-height: 1.4;
  }
  
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .hero h1 {
    font-size: clamp(32px, 8vw, 42px) !important;
  }
  
  .hero-text h1 {
    font-size: clamp(32px, 8vw, 42px) !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(24px, 8vw, 32px) !important;
  }
  
  h2 {
    font-size: clamp(20px, 6vw, 28px) !important;
  }
  
  h3 {
    font-size: clamp(16px, 5vw, 20px) !important;
  }
  
  body {
    font-size: 15px;
  }
}

/* ========== HEADER & NAVIGATION MOBILE ========== */

@media (max-width: 900px) {
  .site-header {
    height: 64px;
    padding: 8px 0;
  }
  
  .nav {
    padding: 0;
  }
  
  /* Logo optimization */
  .brand .logo {
    width: 48px;
    height: 48px;
  }
  
  .brand-wordmark {
    font-size: 1.4rem !important;
  }
  
  /* Hide desktop nav */
  nav ul:not(.show) {
    display: none;
  }
  
  /* Mobile menu */
  nav ul.show {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(12, 11, 16, 0.98);
    backdrop-filter: blur(12px);
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 50;
  }
  
  nav ul.show li {
    width: 100%;
  }
  
  nav ul.show a {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    font-size: 16px;
  }
  
  /* Hamburger menu */
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: rgba(255, 105, 180, 0.2);
  }
  
  .hamburger:hover,
  .hamburger:focus {
    background: rgba(255, 105, 180, 0.1);
  }
  
  .hamburger:active {
    transform: scale(0.95);
  }
  
  .hamburger i {
    font-size: 28px;
    color: #fff;
    pointer-events: none; /* Prevent icon from being click target */
    transition: transform 0.3s ease;
  }
  
  .hamburger.active i {
    transform: rotate(90deg);
  }
  
  /* Legacy hamburger span styling (if spans are used instead of icons) */
  .hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
    pointer-events: none;
  }
  
  /* Dropdown in mobile */
  nav li.has-submenu {
    position: relative;
  }
  
  /* Submenu toggle button (mobile only) */
  nav li.has-submenu .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    padding: 0;
    background: rgba(255, 105, 180, 0.15);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: rgba(255, 105, 180, 0.2);
  }
  
  nav li.has-submenu .submenu-toggle::after {
    content: '▼';
    font-size: 12px;
    color: #fff;
    transition: transform 0.3s ease;
  }
  
  nav li.has-submenu.open .submenu-toggle::after {
    transform: rotate(180deg);
  }
  
  nav li.has-submenu .submenu-toggle:hover,
  nav li.has-submenu .submenu-toggle:focus {
    background: rgba(255, 105, 180, 0.25);
    border-color: rgba(255, 105, 180, 0.5);
  }
  
  nav li.has-submenu .submenu {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 8px;
    padding: 8px;
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  nav li.has-submenu.open .submenu {
    display: block;
  }
  
  nav li.has-submenu .submenu a {
    padding: 10px 12px;
    font-size: 15px;
  }
  
  /* Hide header CTA on mobile */
  .site-header .actions {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand .logo {
    width: 42px;
    height: 42px;
  }
  
  .brand-wordmark {
    font-size: 1.2rem !important;
  }
  
  .hamburger span {
    width: 24px;
  }
}

/* ========== HERO SECTION MOBILE OPTIMIZATION ========== */

@media (max-width: 900px) {
  .hero {
    min-height: 80vh;
    padding: 100px 0 60px;
  }
  
  .hero .inner {
    padding: 80px 20px 40px;
  }
  
  .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-text p {
    max-width: 100%;
  }
  
  .hero .cta,
  .hero-cta,
  .actions {
    justify-content: center;
    gap: 12px;
  }
  
  .hero .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
    padding: 80px 0 40px;
  }
  
  .hero .inner {
    padding: 70px 16px 32px;
  }
  
  .kicker,
  .kicker2 {
    font-size: 10px;
    padding: 0.25rem 0.5rem;
  }
}

/* ========== BUTTON MOBILE OPTIMIZATION ========== */

@media (max-width: 768px) {
  .btn {
    padding: 0.8rem 1.1rem;
    font-size: 14px;
    gap: 0.5rem;
  }
  
  .btn-primary,
  .btn-gold {
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  /* Limit full-width buttons to CTA contexts only */
  .hero .btn,
  .hero-cta .btn,
  .cta .btn,
  .actions .btn { width: 100%; max-width: 280px; }
  .btn {
    padding: 0.75rem 1rem;
    font-size: 13px;
  }
}

  .backtop{
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    border: 2px solid rgba(255,255,255,.6);
  }
  .backtop i{ font-size: 18px; line-height: 1; }
  .backtop.show{ opacity: 1 !important; pointer-events: auto !important; }
/* ========== GRID & LAYOUT MOBILE ========== */

/* Cards grid responsive */
@media (max-width: 900px) {
  .grid.cols-3,
  .grid.cols-4,
  .cols-3,
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .grid.cols-3,
  .grid.cols-4,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Two column layouts */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
}

/* ========== CARDS MOBILE OPTIMIZATION ========== */

@media (max-width: 768px) {
  .card {
    padding: 16px;
    border-radius: 16px;
  }
  
  .plan-card {
    padding: 18px 16px;
  }
  
  .plan-icon {
    width: 48px;
    height: 48px;
  }
  
  .plan-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 14px;
    border-radius: 14px;
  }
  
  .card h3 {
    font-size: 16px;
  }
  
  .card p {
    font-size: 14px;
  }
}

/* ========== ITINERARY CAROUSEL MOBILE ========== */

@media (max-width: 1000px) {
  .itinerary-carousel {
    padding: 0 10px;
  }
  
  .carousel-container {
    grid-auto-columns: calc(50% - 12px);
    gap: 16px;
  }
  
  .itinerary-card {
    height: 380px;
  }
  
  .carousel-nav {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  
  .carousel-nav.prev {
    left: -16px;
  }
  
  .carousel-nav.next {
    right: -16px;
  }
}

@media (max-width: 640px) {
  .carousel-container {
    grid-auto-columns: calc(90% - 8px);
    gap: 12px;
  }
  
  .itinerary-card {
    height: 350px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .itinerary-title {
    font-size: 20px;
  }
  
  .price {
    font-size: 24px;
  }
  
  .carousel-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    grid-auto-columns: 100%;
  }
  
  .itinerary-card {
    height: 320px;
  }
  
  .card-content {
    padding: 16px;
  }
}

/* ========== TILES/DESTINATIONS MOBILE ========== */

@media (max-width: 900px) {
  .tiles {
    gap: 16px;
  }
  
  .tiles .tile {
    min-height: 220px;
    border-radius: 18px;
  }
  
  .tiles .tile .label {
    left: 16px;
    bottom: 14px;
  }
  
  .tiles .tile h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .tiles .tile {
    min-height: 200px;
    border-radius: 16px;
  }
  
  .tiles .tile h3 {
    font-size: 18px;
  }
  
  .pill {
    font-size: 10px;
    padding: 0.2rem 0.5rem;
  }
}

/* ========== TIMELINE MOBILE OPTIMIZATION ========== */

@media (max-width: 900px) {
  .seasons-timeline {
    flex-direction: row;
    overflow-x: auto;
    padding: 20px 16px;
    gap: 16px;
    justify-content: flex-start;
  }
  
  .seasons-timeline::before {
    left: 30px;
    right: 30px;
    top: 45px;
  }
  
  .timeline-item {
    min-width: 160px;
    flex-shrink: 0;
    margin: 0 10px;
  }
  
  .timeline-content {
    padding: 16px;
    min-height: 110px;
  }
  
  .season-info .ico {
    font-size: 22px;
  }
  
  .season-info strong {
    font-size: 14px;
  }
  
  .timeline {
    overflow-x: auto;
  }
  
  .timeline .row {
    min-width: 600px;
  }
}

@media (max-width: 640px) {
  .seasons-timeline {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 12px;
  }
  
  .seasons-timeline::before {
    display: none;
  }
  
  .timeline-item {
    width: 100%;
    min-width: auto;
    margin: 0;
  }
  
  .timeline-marker {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .timeline .row {
    grid-template-columns: 80px repeat(12, 1fr);
    font-size: 12px;
  }
  
  .timeline .cell {
    height: 22px;
    font-size: 10px;
  }
}

/* ========== TESTIMONIAL CAROUSEL MOBILE ========== */

@media (max-width: 900px) {
  .testimonial-carousel {
    padding: 30px 10px;
  }
  
  .testimonial {
    flex-direction: column;
    text-align: center;
    padding: 28px;
    gap: 24px;
  }
  
  .avatar-frame {
    width: 90px;
    height: 90px;
  }
  
  .avatar {
    font-size: 26px;
  }
  
  .quote-icon {
    font-size: 38px;
  }
  
  .testimonial-content blockquote {
    font-size: 16px;
  }
  
  .carousel-nav {
    width: 42px;
    height: 42px;
  }
  
  .carousel-nav.prev {
    left: -16px;
  }
  
  .carousel-nav.next {
    right: -16px;
  }
}

@media (max-width: 640px) {
  .testimonial {
    padding: 20px;
    gap: 20px;
  }
  
  .avatar-frame {
    width: 75px;
    height: 75px;
  }
  
  .avatar {
    font-size: 22px;
  }
  
  .testimonial-content blockquote {
    font-size: 15px;
  }
  
  .carousel-nav {
    display: none;
  }
}

/* ========== EXPERIENCE SLIDER MOBILE ========== */

@media (max-width: 1000px) {
  .experience-slider {
    padding: 0 50px;
  }
  
  .slider-container {
    grid-auto-columns: calc(60% - 15px);
  }
  
  .card-image {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .experience-slider {
    padding: 0 40px;
  }
  
  .slider-container {
    grid-auto-columns: calc(85% - 10px);
  }
  
  .card-image {
    height: 320px;
  }
  
  .overlay-content h3 {
    font-size: 24px;
  }
  
  .arrow-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .experience-slider {
    padding: 0 30px;
  }
  
  .slider-container {
    grid-auto-columns: 100%;
  }
  
  .card-image {
    height: 280px;
  }
  
  .image-overlay {
    padding: 18px 14px;
  }
  
  .overlay-content h3 {
    font-size: 20px;
  }
  
  .arrow-icon {
    width: 36px;
    height: 36px;
  }
  
  .slider-nav {
    display: none;
  }
}

/* ========== GALLERY MOBILE ========== */

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .gallery figure {
    min-height: 150px;
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .gallery figure {
    min-height: 200px;
  }
}

/* ========== FOOTER MOBILE OPTIMIZATION ========== */

@media (max-width: 900px) {
  footer {
    padding: 40px 0 30px;
  }
  /* Center align footer content on mobile/tablet */
  footer, .footer-main, .footer-grid { text-align: center; }
  .ft-brand, .logo-section { justify-content: center; }
  .legal-links { justify-content: center; }
  footer .container:last-child { display:flex; align-items:center; justify-content:center; text-align:center; }
  /* Center align card headings */
  footer .card h3 { justify-content: center; text-align: center; }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  footer .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  footer .card {
    padding: 14px;
    min-height: 100px;
  }
  
  footer .card h3 {
    font-size: 14px;
  }
  
  footer .card p {
    font-size: 13px;
  }
  
  /* Reduce African art elements in footer on mobile */
  footer .africa-corner-top-left,
  footer .africa-corner-top-right,
  footer .africa-corner-bottom-left,
  footer .africa-corner-bottom-right {
    width: 180px;
    height: 180px;
    opacity: 0.08;
  }
}

@media (max-width: 640px) {
  footer {
    padding: 32px 0 24px;
  }
  
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .logo-section {
    justify-content: center;
  }
  
  footer .grid.cols-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  footer .ft-brand {
    justify-content: center;
  }
  
  footer .ft-brand .logo {
    width: 38px;
    height: 38px;
  }
  
  .footer-wordmark {
    font-size: 1.4rem !important;
  }
  
  /* Hide African art in footer on small mobile */
  footer .africa-corner-top-left,
  footer .africa-corner-top-right,
  footer .africa-corner-bottom-left,
  footer .africa-corner-bottom-right {
    display: none;
  }
}

/* ========== AFRICAN ART ELEMENTS MOBILE ========== */

@media (max-width: 900px) {
  .africa-edge-left,
  .africa-edge-right {
    width: 70px;
    height: 70px;
    opacity: 0.05;
  }
  
  .africa-corner-top-right,
  .africa-corner-bottom-left {
    width: 50px;
    height: 50px;
    opacity: 0.04;
  }
  
  .section-divider::before {
    width: 70px;
    height: 25px;
  }
  
  .africa-bg-hero {
    background-size: 280px;
    opacity: 0.03;
  }
}

@media (max-width: 640px) {
  .africa-edge-left,
  .africa-edge-right {
    display: none;
  }
  
  .africa-corner-top-right,
  .africa-corner-bottom-left {
    display: none;
  }
  
  .section-divider::before {
    width: 50px;
    height: 20px;
  }
  
  .africa-bg-hero {
    background-size: 200px;
    opacity: 0.02;
  }
}

/* ========== CTA SECTION MOBILE ========== */

@media (max-width: 900px) {
  .cta .wrap {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .cta h2 {
    font-size: 24px;
  }
  
  .cta .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ========== STICKY ELEMENTS MOBILE ========== */

@media (max-width: 900px) {
  .sticky {
    position: relative;
    top: 0;
  }
}

/* ========== CHIPS & BADGES MOBILE ========== */

@media (max-width: 640px) {
  .chip,
  .badge {
    font-size: 11px;
    padding: 0.3rem 0.6rem;
  }
  
  .highlights {
    gap: 8px;
  }
  
  .pill {
    font-size: 11px;
    padding: 0.3rem 0.55rem;
  }
}

/* ========== IMAGE & MEDIA MOBILE ========== */

@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .hero-bg,
  .card-bg,
  .bg-video {
    object-fit: cover;
  }
}

/* ========== SECTION SPACING MOBILE ========== */

@media (max-width: 768px) {
  .section-head {
    margin-bottom: 24px;
  }
  
  .section-head h2 {
    margin-bottom: 12px;
  }
  
  .section-head p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .section-head {
    margin-bottom: 20px;
  }
  
  .section-head p {
    font-size: 14px;
  }
}

/* ========== BREADCRUMBS MOBILE ========== */

@media (max-width: 640px) {
  .breadcrumbs {
    font-size: 13px;
    padding: 6px 0 4px;
  }
  
  .breadcrumbs li {
    font-size: 13px;
  }
}

/* ========== SMOOTH SCROLLING ========== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ========== TOUCH IMPROVEMENTS ========== */

@media (hover: none) and (pointer: coarse) {
  /* Better touch targets */
  .btn,
  nav a,
  .card,
  .tile {
    -webkit-tap-highlight-color: rgba(255, 105, 180, 0.1);
  }
  
  /* Remove hover effects on touch devices */
  .lift:hover,
  .card:hover,
  .btn:hover {
    transform: none;
  }
  
  /* Active states for touch */
  .btn:active {
    transform: scale(0.98);
  }
  
  .card:active {
    transform: scale(0.99);
  }
}

/* ========== LANDSCAPE MOBILE OPTIMIZATION ========== */

@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 90px 0 40px;
  }
  
  .hero .inner {
    padding: 70px 20px 30px;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* ========== PRINT STYLES ========== */

@media print {
  .site-header,
  .hamburger,
  nav,
  .carousel-nav,
  .slider-nav,
  footer .africa-corner-top-left,
  footer .africa-corner-top-right,
  footer .africa-corner-bottom-left,
  footer .africa-corner-bottom-right,
  .africa-edge-left,
  .africa-edge-right {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero::after {
    display: none;
  }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */

/* Focus visible for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  a:focus-visible,
  button:focus-visible,
  .btn:focus-visible {
    outline: 3px solid #FF69B4;
    outline-offset: 4px;
    border-radius: 8px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn {
    border-width: 2px;
  }
  
  .card {
    border-width: 2px;
  }
}

/* Dark mode support for devices */
@media (prefers-color-scheme: dark) {
  /* Colors already optimized for dark mode in base styles */
}

/* ========== CAROUSEL SCROLLBAR MOBILE ========== */

@media (max-width: 768px) {
  .carousel-container,
  .slider-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 105, 180, 0.5) transparent;
  }
  
  .carousel-container::-webkit-scrollbar,
  .slider-container::-webkit-scrollbar {
    height: 6px;
  }
  
  .carousel-container::-webkit-scrollbar-thumb,
  .slider-container::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 180, 0.5);
    border-radius: 3px;
  }
  
  .carousel-container::-webkit-scrollbar-track,
  .slider-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }
}

/* ========== FINAL MOBILE POLISH ========== */

/* Prevent horizontal scroll on mobile */
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }
  
  .container,
  .section-inner {
    overflow-x: hidden;
  }
}

/* Optimize animations for mobile performance */
@media (max-width: 768px) {
  .reveal {
    transition: opacity 0.4s ease;
    transform: none;
  }
  
  .reveal.in {
    opacity: 1;
  }
}

/* Improve mobile viewport handling */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari specific fixes */
  .hero {
    min-height: -webkit-fill-available;
  }
}

/* ========== TABLET-SPECIFIC OPTIMIZATIONS ========== */

@media (min-width: 641px) and (max-width: 1024px) {
  /* Tablet-specific layouts */
  .container {
    width: 92%;
  }
  
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .itinerary-card {
    height: 400px;
  }
  
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}
