/* ════════════════════════════════════════════════════════════
   LATAKIA MOBILE UX OVERHAUL — V10.3
   Comprehensive mobile-first improvements
   ════════════════════════════════════════════════════════════ */

/* ── Global Mobile Foundations ── */
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --touch-min: 44px; /* WCAG minimum touch target */
  }

  /* Smoother scrolling & momentum */
  html {
    scroll-padding-top: calc(var(--nav-h) + 12px);
    -webkit-overflow-scrolling: touch;
  }
  
  /* Prevent text selection on interactive elements */
  button, a, .dest-card, .option-card, .hero-chip, .dest-filter-pill {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* ═══════════ NAVIGATION — REFINED ═══════════ */
  nav#nav {
    height: var(--nav-h);
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 247, 255, 0.88) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  }
  [data-theme="dark"] nav#nav {
    background: rgba(10, 20, 33, 0.88) !important;
  }
  nav#nav.scrolled {
    box-shadow: 0 1px 16px rgba(10, 37, 64, 0.08);
  }

  /* Logo — compact */
  nav .logo {
    gap: 8px;
  }
  nav .logo-mark {
    width: 34px; height: 34px;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(15, 87, 117, 0.3);
  }
  nav .logo span { font-size: 17px; letter-spacing: -0.01em; }

  /* Nav actions — proper spacing */
  .nav-actions {
    gap: 6px;
    margin-inline-start: auto;
  }
  .icon-btn, .menu-btn {
    width: var(--touch-min) !important;
    height: var(--touch-min) !important;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }
  .lang-toggle {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 36px;
  }

  /* ═══════════ MOBILE MENU — GLASS REDESIGN ═══════════ */
  .mobile-menu {
    width: min(300px, 85vw);
    padding: 0;
    border-radius: 24px 0 0 24px;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: -16px 0 48px rgba(10, 37, 64, 0.15), -2px 0 0 rgba(255,255,255,0.3);
  }
  body[dir="ltr"] .mobile-menu {
    border-radius: 0 24px 24px 0;
    box-shadow: 16px 0 48px rgba(10, 37, 64, 0.15), 2px 0 0 rgba(255,255,255,0.3);
  }
  [data-theme="dark"] .mobile-menu {
    background: rgba(14, 24, 38, 0.94) !important;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4);
  }

  .mobile-menu .menu-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--line-soft);
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: none;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
    min-height: var(--touch-min);
    position: relative;
  }
  .mobile-menu a::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--sky, #0ea5e9);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s;
  }
  .mobile-menu a:active {
    background: rgba(14, 165, 233, 0.08);
  }
  .mobile-menu a:active::before {
    height: 24px;
  }

  /* Overlay — deeper blur */
  .mobile-menu-overlay {
    background: rgba(10, 25, 41, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* ═══════════ HERO — MOBILE OPTIMIZED ═══════════ */
  .hero {
    min-height: calc(var(--vh, 1vh) * 85) !important;
    padding: 70px 20px 50px !important;
    display: flex;
    align-items: flex-end;
  }

  .hero-content {
    text-align: center;
    padding-bottom: 30px;
  }

  .hero-badge {
    font-size: 12px !important;
    padding: 7px 16px !important;
    margin-bottom: 16px !important;
    letter-spacing: 0.02em;
  }

  .hero h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.01em;
  }
  .hero h1 .accent {
    font-size: 0.85em;
  }

  .hero-sub {
    font-size: 14px !important;
    line-height: 1.6;
    margin-bottom: 22px !important;
    opacity: 0.9;
    max-width: 340px;
    margin-inline: auto;
  }

  /* Search — stacked with better styling */
  .hero-search {
    border-radius: 18px !important;
    padding: 6px !important;
    flex-direction: column !important;
    gap: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
    max-width: 100%;
  }
  .hero-search input {
    padding: 14px 18px !important;
    text-align: start !important;
    font-size: 16px !important; /* prevents iOS zoom */
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 12px 12px 0 0;
  }
  .hero-search-btn {
    border-radius: 0 0 12px 12px !important;
    padding: 13px 20px !important;
    font-size: 15px;
    gap: 8px;
  }

  /* Filter chips — horizontal scroll */
  .hero-chips {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 4px 0 8px;
    margin: 0 -20px !important;
    padding-inline: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .hero-chips::-webkit-scrollbar { display: none; }
  .hero-chip {
    padding: 8px 14px !important;
    font-size: 12px !important;
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 36px;
  }
  .hero-chip:active {
    transform: scale(0.95);
    transition: transform 0.1s;
  }


  /* Slide dots */
  .hero-slide-dots {
    bottom: 16px !important;
  }

  /* ═══════════ WEATHER — SCROLLABLE ═══════════ */
  .weather-panel {
    margin-top: -20px !important;
    padding: 0 12px !important;
  }
  .weather-card {
    padding: 16px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(10, 37, 64, 0.1) !important;
  }
  .weather-header {
    flex-wrap: nowrap;
    margin-bottom: 12px !important;
  }
  .weather-title {
    font-size: 15px;
    gap: 8px;
  }
  .weather-title small { display: none; }
  .weather-now-temp { font-size: 28px !important; }

  /* Forecast — scrollable carousel */
  .weather-forecast {
    display: flex !important;
    overflow-x: auto;
    gap: 8px !important;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -4px;
    padding-inline: 4px;
  }
  .weather-forecast::-webkit-scrollbar { display: none; }
  .weather-day {
    min-width: 64px;
    flex-shrink: 0;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    scroll-snap-align: start;
  }
  .weather-day .weather-day-icon { font-size: 20px !important; }
  .weather-day .weather-day-name { font-size: 10px !important; }
  .weather-day .weather-day-temp { font-size: 13px !important; }

  .weather-recommendation {
    font-size: 13px !important;
    padding: 10px 14px !important;
    margin-top: 10px !important;
    border-radius: 10px;
    line-height: 1.6;
  }

  /* ═══════════ SECTION HEADERS — MOBILE ═══════════ */
  .section-header {
    margin-bottom: 20px !important;
    padding: 0 4px;
  }
  .section-eyebrow {
    font-size: 11px !important;
    letter-spacing: 0.15em;
    margin-bottom: 6px !important;
  }
  .section-title {
    font-size: 24px !important;
    margin-bottom: 10px !important;
    line-height: 1.3;
  }
  .section-desc {
    font-size: 13px !important;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
  }

  /* ═══════════ DESTINATIONS — ENHANCED MOBILE ═══════════ */
  .dest-explorer {
    padding: 24px 0 32px !important;
  }
  .dest-explorer .section-header {
    padding: 0 16px;
  }

  /* Controls bar — sticky refined */
  /* (merged with filter bar section below) */

  /* Search field */
  .dest-search-input {
    font-size: 16px !important;
    padding: 12px 40px 12px 16px !important;
    border-radius: 14px !important;
    min-height: var(--touch-min);
    background: var(--bg-elev) !important;
  }

  /* Filter pills — full-width scrollable row */
  
  /* Controls bar: remove horizontal padding so filter bar can reach edges */
  .dest-controls-bar {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 4px !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    top: var(--nav-h) !important;
    background: linear-gradient(to bottom, var(--bg) 80%, transparent) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  /* Search & sort get their own padding */
  .dest-search-wrap {
    margin-left: 16px !important;
    margin-right: 16px !important;
    max-width: none !important;
    width: auto !important;
  }
  .dest-sort-wrap {
    padding: 0 16px !important;
  }

  /* Filter bar: natural full-width, scrollable */
  .dest-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 6px 16px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline-start: 16px;
    min-height: 48px;
    align-items: center;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }
  .dest-filter-bar::-webkit-scrollbar { display: none !important; }
  
  .dest-filter-pill {
    flex: 0 0 auto !important;  /* never shrink, never grow */
    white-space: nowrap !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    scroll-snap-align: start;
    min-height: 38px;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center;
  }
  .dest-filter-pill:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s !important;
  }

  /* Sort */
  .dest-sort-wrap { padding: 0 16px; }
  .dest-sort-select {
    width: 100%;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    min-height: var(--touch-min);
  }

  /* Stats */
  .dest-stats {
    padding: 0 16px !important;
    font-size: 12px !important;
    margin-bottom: 10px !important;
    color: var(--text-muted);
  }

  /* ── Card Grid — Better mobile layout ── */
  .dest-grid {
    padding: 0 12px !important;
    gap: 12px !important;
  }

  /* Destination cards — enhanced touch feel */
  .dest-card {
    border-radius: 16px !important;
    border: 1px solid var(--line) !important;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s !important;
    background: var(--bg-elev);
  }
  .dest-card:active {
    transform: scale(0.98) !important;
    box-shadow: none !important;
  }
  /* Disable hover lift on touch */
  @media (hover: none) {
    .dest-card:hover {
      transform: none !important;
      box-shadow: var(--shadow-sm) !important;
    }
  }

  .dest-card-img-wrap {
    border-radius: 16px 16px 0 0 !important;
  }
  .dest-card-body {
    padding: 12px 14px 14px !important;
  }
  .dest-card-title {
    font-size: 16px !important;
    margin-bottom: 4px !important;
    line-height: 1.35;
  }
  .dest-card-desc {
    font-size: 12px !important;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    margin-bottom: 8px !important;
  }
  .dest-card-footer {
    padding-top: 8px;
    gap: 6px;
  }
  .dest-rating { font-size: 12px; }
  .dest-card-arrow { font-size: 14px; }

  /* Favourite button — proper touch target */
  .dest-fav-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px;
  }
  .dest-fav-btn:active {
    transform: scale(1.15) !important;
  }

  /* Category badge */
  .dest-card-cat {
    font-size: 10px !important;
    padding: 3px 10px !important;
    border-radius: 8px;
  }
  .dest-badge-featured {
    font-size: 9px !important;
    padding: 3px 10px !important;
  }

  /* Load more */
  .dest-load-more-wrap {
    padding: 20px 16px 0 !important;
  }
  .dest-load-more {
    width: 100% !important;
    padding: 14px !important;
    font-size: 14px !important;
    border-radius: 14px !important;
    min-height: var(--touch-min);
  }
  .dest-load-more:active {
    transform: scale(0.98) !important;
  }

  /* ═══════════ MAP — MOBILE ═══════════ */
  .map-section {
    padding: 24px 12px !important;
  }
  .map-wrapper {
    border-radius: 18px !important;
    border-width: 2px !important;
  }
  #map {
    height: 300px !important;
  }
  .map-legend {
    position: relative !important;
    bottom: auto !important;
    inset-inline-end: auto !important;
    max-width: none !important;
    margin-top: 10px;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
  }
  .map-legend h4 {
    width: 100%;
    font-size: 12px;
    margin-bottom: 6px;
  }
  .legend-item {
    padding: 5px 10px !important;
    font-size: 12px !important;
    min-height: 32px;
    display: flex;
    align-items: center;
  }

  /* ═══════════ TRIP BUILDER — MOBILE ═══════════ */
  .trip-builder-section {
    padding: 28px 12px !important;
  }
  .trip-builder {
    padding: 20px 16px !important;
    border-radius: 18px !important;
    margin-top: 24px !important;
  }

  .builder-step-header {
    gap: 12px;
    margin-bottom: 20px !important;
  }
  .builder-step-num {
    width: 36px; height: 36px;
    font-size: 16px;
    flex-shrink: 0;
  }
  .builder-step-title h3 { font-size: 20px !important; }
  .builder-step-title p { font-size: 13px; }

  /* Option cards — 2 columns on mobile */
  .option-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .option-card {
    padding: 16px 12px !important;
    border-radius: 14px !important;
    min-height: 100px;
  }
  .option-card:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s !important;
  }
  .option-icon { font-size: 28px !important; margin-bottom: 8px !important; }
  .option-label { font-size: 14px !important; }
  .option-desc { font-size: 11px !important; }

  /* Builder actions */
  .builder-actions {
    margin-top: 20px !important;
    padding-top: 16px !important;
  }
  .builder-actions .btn {
    min-height: var(--touch-min);
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Trip result */
  .trip-result-header { padding: 20px 0 !important; }
  .trip-result-emoji { font-size: 40px !important; }
  .trip-result h3 { font-size: 24px !important; }

  .day-card {
    padding-inline-start: 48px !important;
    margin-bottom: 22px !important;
  }
  .day-marker {
    width: 36px !important; height: 36px !important;
    font-size: 14px;
  }
  .day-stop {
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 12px !important;
  }
  .day-stop:active {
    background: rgba(14, 165, 233, 0.06);
  }
  .day-stop-img {
    width: 50px !important; height: 50px !important;
    border-radius: 10px !important;
  }
  .day-stop-name { font-size: 14px !important; }
  .day-stop-meta { font-size: 11px !important; }

  .trip-result-actions {
    flex-direction: column;
    gap: 8px !important;
  }
  .trip-result-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: var(--touch-min);
  }

  /* ═══════════ MODAL — BOTTOM SHEET REFINED ═══════════ */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal {
    border-radius: 24px 24px 0 0 !important;
    max-height: 90vh !important;
    width: 100% !important;
    max-width: 100% !important;
    animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .modal-drag-handle {
    display: block !important;
    width: 40px;
    height: 5px;
    background: rgba(0,0,0,0.12);
    border-radius: 999px;
    margin: 12px auto 8px !important;
  }
  [data-theme="dark"] .modal-drag-handle {
    background: rgba(255,255,255,0.2);
  }

  .modal-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
    top: 14px !important;
    background: rgba(0,0,0,0.06) !important;
  }
  [data-theme="dark"] .modal-close {
    background: rgba(255,255,255,0.1) !important;
  }

  .modal-img {
    height: 200px !important;
    border-radius: 0 !important;
  }

  .modal-body {
    padding: 16px 20px 28px !important;
  }
  .modal-title {
    font-size: 22px !important;
    margin-bottom: 10px !important;
  }
  .modal-desc {
    font-size: 14px !important;
    line-height: 1.7;
  }
  .modal-cat {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .modal-tips {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }
  .modal-tips h4 { font-size: 14px; }
  .modal-tips p { font-size: 13px; }

  .modal-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .modal-actions .btn {
    width: 100% !important;
    justify-content: center;
    border-radius: 12px !important;
    min-height: var(--touch-min);
    font-size: 14px;
  }

  /* Modal gallery */
  .modal-gallery {
    margin: 0 -20px 16px;
  }
  .modal-gallery img {
    border-radius: 0;
  }

  /* ═══════════ POLL — MOBILE ═══════════ */
  .poll-section {
    padding: 20px 12px 40px !important;
  }
  .poll-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  .poll-question {
    font-size: 17px !important;
    line-height: 1.5;
  }
  .poll-option {
    padding: 13px 16px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    min-height: var(--touch-min);
  }
  .poll-option:active {
    transform: scale(0.98) !important;
  }
  .poll-result {
    padding: 13px 16px !important;
    border-radius: 12px !important;
  }

  /* ═══════════ BLOG CARDS — MOBILE ═══════════ */
  .blog-section {
    padding: 24px 12px !important;
  }
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .blog-card {
    border-radius: 16px !important;
    overflow: hidden;
  }
  .blog-card:active {
    transform: scale(0.98);
  }
  .blog-card-body {
    padding: 14px 16px !important;
  }
  .blog-card-title {
    font-size: 17px !important;
    line-height: 1.4;
  }

  /* ═══════════ READY TRIPS — MOBILE ═══════════ */
  .ready-trips-section {
    padding: 24px 12px !important;
  }
  .ready-trips-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .ready-trip-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }
  .ready-trip-card:active {
    transform: scale(0.98);
  }

  /* ═══════════ CONTACT — MOBILE ═══════════ */
  .contact-section {
    padding: 24px 12px !important;
  }
  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .contact-form {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  .cf-input, .cf-textarea {
    font-size: 16px !important;
    border-radius: 12px !important;
    min-height: var(--touch-min);
    padding: 12px 16px !important;
  }
  .cf-submit {
    font-size: 15px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    min-height: 48px;
    width: 100%;
  }
  .cf-submit:active {
    transform: scale(0.98);
  }

  /* ═══════════ NEWSLETTER — MOBILE ═══════════ */
  .newsletter-section {
    padding: 32px 16px !important;
    border-radius: 0;
  }
  .newsletter-icon { font-size: 32px !important; margin-bottom: 12px; }
  .newsletter-title { font-size: 22px !important; margin-bottom: 8px; }
  .newsletter-desc { font-size: 14px !important; margin-bottom: 20px; }
  .nl-form {
    flex-direction: column !important;
    gap: 10px;
  }
  .nl-form input {
    font-size: 16px !important;
    padding: 13px 16px !important;
    border-radius: 12px !important;
    min-height: var(--touch-min);
  }
  .nl-form button {
    padding: 13px !important;
    border-radius: 12px !important;
    min-height: var(--touch-min);
    font-size: 15px !important;
  }

  /* ═══════════ FOOTER — MOBILE ═══════════ */
  footer {
    padding: 28px 16px calc(var(--safe-bottom) + 16px) !important;
    text-align: center;
  }
  footer .logo {
    justify-content: center;
    margin-bottom: 10px;
  }
  .footer-links {
    gap: 16px !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-links a {
    font-size: 13px;
    padding: 4px 8px;
    min-height: 32px;
    display: flex;
    align-items: center;
  }
  .footer-top {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }
  .footer-tagline {
    max-width: none !important;
  }
  .footer-nav {
    align-items: center !important;
  }

  /* ═══════════ TOAST — MOBILE POSITION ═══════════ */
  .toast {
    bottom: calc(var(--safe-bottom) + 16px) !important;
    max-width: calc(100vw - 32px);
    font-size: 13px;
  }
  .toast.show {
    bottom: calc(var(--safe-bottom) + 24px) !important;
  }

  /* ═══════════ BACK TO TOP ═══════════ */
  .back-top {
    bottom: calc(var(--safe-bottom) + 16px) !important;
    width: 42px;
    height: 42px;
    font-size: 18px;
    inset-inline-end: 16px !important;
  }
  .back-top:active {
    transform: scale(0.9);
  }

  /* ═══════════ LIST VIEW — MOBILE ═══════════ */
  .dest-grid.list-view {
    gap: 10px !important;
  }
  .dest-grid.list-view .dest-card {
    height: auto !important;
    min-height: 90px;
  }
  .dest-grid.list-view .dest-card-img-wrap {
    width: 100px !important;
    min-width: 100px !important;
  }
  .dest-grid.list-view .dest-card-body {
    padding: 10px 14px !important;
  }
  .dest-grid.list-view .dest-card-title {
    font-size: 14px !important;
  }
  .dest-grid.list-view .dest-card-desc {
    font-size: 11px !important;
    -webkit-line-clamp: 1;
  }

  /* ═══════════ AD SLOTS — MOBILE ═══════════ */
  .ad-between-sections {
    padding: 12px !important;
  }

  /* ═══════════ VIEW TOGGLE — MOBILE ═══════════ */
  .dest-view-toggle {
    border-radius: 10px;
  }
  .dest-view-btn {
    min-width: 36px;
    min-height: 32px;
  }

  /* ═══════════ SCROLL REVEAL — SUBTLE ON MOBILE ═══════════ */
  .reveal {
    transform: translateY(16px) !important;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out !important;
  }

  /* ═══════════ CUSTOM UI MODAL (alerts/confirms) ═══════════ */
  .ui-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .ui-modal-overlay > div {
    border-radius: 20px 20px 0 0 !important;
    max-width: 100% !important;
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }
}

/* ═══════════ 480px — PHONES ═══════════ */
@media (max-width: 480px) {
  .hero {
    min-height: calc(var(--vh, 1vh) * 80) !important;
    padding: 65px 16px 40px !important;
  }
  .hero h1 { font-size: 24px !important; }
  .hero-sub { font-size: 13px !important; }
  .hero-chip { padding: 7px 12px !important; font-size: 11px !important; }

  /* Single column cards */
  .dest-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 12px !important;
  }
  .dest-card-img-wrap { aspect-ratio: 16/9 !important; }
  .dest-card-title { font-size: 16px !important; }
  .dest-card-desc { font-size: 12px !important; }

  .section-title { font-size: 22px !important; }

  #map { height: 250px !important; }
  .modal-img { height: 170px !important; }

  .option-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .option-card {
    padding: 14px 10px !important;
  }
}

/* ═══════════ 380px — SMALL PHONES ═══════════ */
@media (max-width: 380px) {
  nav#nav { padding: 0 12px !important; }
  .logo-mark { width: 30px !important; height: 30px !important; font-size: 13px !important; }
  .logo span { font-size: 15px !important; }
  .lang-toggle { padding: 6px 10px; font-size: 11px; }

  .hero { padding: 60px 12px 32px !important; }
  .hero h1 { font-size: 22px !important; }
  .section-title { font-size: 20px !important; }

  .dest-card-title { font-size: 15px !important; }
  .dest-filter-pill { padding: 7px 12px !important; font-size: 12px !important; }

}

/* ═══════════ TABLET TWEAKS (481–768) ═══════════ */
@media (min-width: 481px) and (max-width: 768px) {
  .dest-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .dest-card-img-wrap { aspect-ratio: 5/4 !important; }
  
  .option-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ═══════════ LANDSCAPE PHONE ═══════════ */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto !important;
    padding: 64px 24px 32px !important;
  }
  .hero-slide-dots { bottom: 12px !important; }

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

  .modal {
    max-height: 95vh !important;
  }
  .modal-img { height: 140px !important; }
}

/* ═══════════ iOS SAFE AREA ═══════════ */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    input, textarea, select { font-size: 16px !important; }
    .modal { 
      padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }
  }
}

/* ═══════════ DARK MODE MOBILE TWEAKS ═══════════ */
@media (max-width: 768px) {
  [data-theme="dark"] .dest-card {
    border-color: rgba(255,255,255,0.06) !important;
    background: var(--bg-elev) !important;
  }
  [data-theme="dark"] .hero-search {
    background: rgba(20, 32, 46, 0.95) !important;
  }
  [data-theme="dark"] .hero-search input {
    color: var(--text) !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
  }
  [data-theme="dark"] .hero-search input::placeholder {
    color: var(--text-muted);
  }
  [data-theme="dark"] .dest-search-input {
    background: var(--bg-elev) !important;
  }
  [data-theme="dark"] .weather-card {
    border-color: rgba(255,255,255,0.06);
  }
  [data-theme="dark"] .modal-close {
    background: rgba(255,255,255,0.08) !important;
  }
}

/* ═══════════ ACCESSIBILITY — FOCUS VISIBLE ═══════════ */
@media (max-width: 768px) {
  *:focus-visible {
    outline: 2px solid var(--sky, #0ea5e9);
    outline-offset: 2px;
    border-radius: 8px;
  }
  /* Don't show focus ring on tap */
  *:focus:not(:focus-visible) {
    outline: none;
  }
}

/* ═══════════ PRINT — HIDE MOBILE ELEMENTS ═══════════ */
@media print {
  .back-top, .mobile-menu, .mobile-menu-overlay,
  .menu-btn, .hero-slide-dots { display: none !important; }
}
