html { scroll-padding-top: 100px; }
/* =============================================================
   mobile.css — 96創新教育書苑 全站手機版樣式
   只在 max-width: 768px 生效，不影響桌面版任何樣式
   ============================================================= */

/* ─── 1. GLOBAL RESETS & HEADER ──────────────────────────────── */
@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Container 左右縮排 */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Header: 隱藏桌面導覽，顯示漢堡按鈕 */
  .nav-links,
  .nav-actions {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
    color: #1e293b;
    flex-shrink: 0;
  }

  /* ─── 2. SIDE DRAWER ─────────────────────────────────── */
  #mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 300px;
    height: 100%;
    background: #0e2a6b;
    z-index: 8999;
    display: flex !important;
    flex-direction: column;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  #mobile-drawer.open {
    right: 0;
  }
  #mobile-drawer-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 8998;
    backdrop-filter: blur(2px);
  }
  #mobile-drawer-overlay.open {
    display: block;
  }

  /* ─── 3. FOOTER ─────────────────────────────────────── */
  /* Inline-style footer grid */
  footer > div > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }
  /* Class-based footer grid */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  footer {
    padding: 40px 0 20px !important;
  }
}

/* Hide drawer on desktop */
@media (min-width: 769px) {
  #mobile-drawer,
  #mobile-drawer-overlay {
    display: none !important;
  }
}


/* ─── 4. INDEX.HTML ──────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hero section */
  .hero {
    padding-top: calc(var(--nav-height, 64px) + 24px) !important;
    padding-bottom: 16px !important;
    min-height: unset !important;
  }
  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.25 !important;
  }
  .hero p {
    font-size: 0.95rem !important;
  }
  .hero-actions {
    flex-direction: row !important;
    gap: 10px !important;
  }
  .hero-actions .btn {
    flex: 1 !important;
    width: auto !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 12px 4px !important;
    font-size: 0.95rem !important;
  }
  /* Hide decorative hero bg image on small screens */
  .hero-bg-image {
    width: 100% !important;
    opacity: 0.15 !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 100%) !important;
    mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 100%) !important;
  }

  /* Quick Search card */
  .quick-search {
    margin-top: 0 !important;
    padding: 0 !important;
  }
  .search-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 20px !important;
    border-radius: 16px !important;
    margin: 16px 16px 0 !important;
  }
  .search-card .btn {
    width: 100% !important;
  }

  /* Main spaces section layout */
  .spaces-layout,
  .why-grid,
  .compare-grid,
  .fg-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    min-width: 0 !important;
  }
  .spaces-layout > div,
  .why-grid > div,
  .compare-grid > div,
  .compare-table-wrapper,
  .mobile-slider-wrap,
  .fg-card > div {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .articles-wrapper {
    height: auto !important;
    min-height: auto !important;
  }
  .articles-card {
    min-height: unset !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .fb-embed-wrapper iframe {
    height: 400px !important;
  }

  /* Spaces grid: horizontal scroll */
  .mobile-slider-wrap {
    position: relative !important;
  }
  .slider-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(14,59,138,0.15) !important;
    color: #0e2a6b !important;
    font-size: 14px !important;
    z-index: 10 !important;
    cursor: pointer !important;
    padding: 0 !important;
  }
  .slider-btn.prev { left: -8px !important; }
  .slider-btn.next { right: -8px !important; }

  .spaces-grid,
  .featured-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }
  .spaces-grid::-webkit-scrollbar,
  .featured-grid::-webkit-scrollbar {
    display: none !important;
  }
  .spaces-grid .space-card,
  .featured-grid .space-card {
    flex-shrink: 0 !important;
    width: 85vw !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
  }
  .space-badge-hero {
    display: none !important;
  }
  .with-subtitle {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Why Choose Us section */
  .why-us {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .why-grid {
    gap: 12px !important;
  }
  .why-content {
    text-align: left !important;
  }
  .why-content h2, .why-content p {
    text-align: left !important;
  }
  .why-content br {
    display: none !important;
  }
  .why-content p {
    margin-bottom: 8px !important;
  }
  .why-content .btn {
    display: none !important;
  }
  .why-features {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding-bottom: 16px !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }
  .why-features::-webkit-scrollbar {
    display: none !important;
  }
  .why-card {
    flex-shrink: 0 !important;
    width: 65vw !important;
    max-width: 240px !important;
    scroll-snap-align: start !important;
  }

  /* Space comparison table: convert to cards on mobile */
  .compare-table {
    display: block !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  .compare-table thead {
    display: none !important;
  }
  .compare-table tbody {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }
  .compare-table tbody::-webkit-scrollbar {
    display: none !important;
  }
  .compare-table tr {
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    width: 85vw !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    border: 1px solid #e2e8f0 !important;
  }
  .compare-table td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    text-align: right !important;
    font-size: 0.95rem !important;
  }
  .compare-table td:last-child {
    border-bottom: none !important;
    justify-content: center !important;
    padding-top: 16px !important;
  }
  .compare-table td::before {
    font-weight: 800 !important;
    color: #64748b !important;
    font-size: 0.9rem !important;
  }
  .compare-table td:nth-child(1)::before { content: "空間"; }
  .compare-table td:nth-child(2)::before { content: "建議人數"; }
  .compare-table td:nth-child(3)::before { content: "適合活動"; }
  .compare-table td:nth-child(4)::before { content: "主要設備"; }
  .compare-table td:nth-child(5)::before { display: none !important; }
  
  .compare-table .activity-tags {
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    max-width: 65% !important;
  }

  /* Testimonials / FAQ section */
  .faq-section,
  .faq-layout-grid {
    grid-template-columns: 1fr !important;
  }

  /* Space matcher modal: full-screen */
  .matcher-modal {
    width: 96vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
  }

  /* Sections: reduce padding */
  section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .features-section-v2 {
    padding-bottom: 24px !important;
  }
  .spaces-section {
    padding-top: 16px !important;
  
    padding-bottom: 0 !important;
  }
  .compare-section {
    padding-bottom: 0 !important;
  
    padding-top: 12px !important;
  }
  .small-room-section {
    margin-top: -15px !important;
    padding-bottom: 0 !important;
  }
  .overview-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .faq-gallery {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .section-title {
    font-size: 1.6rem !important;
  }
  
  /* Final CTA section */
  .final-cta {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  .final-cta h2 {
    font-size: 1.5rem !important;
    white-space: nowrap !important;
  }
  .final-cta-actions {
    flex-direction: row !important;
    gap: 12px !important;
  }
  .final-cta-actions .btn {
    flex: 1 !important;
    padding: 14px 0 !important;
    font-size: 0.95rem !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  /* ─── SITE FOOTER (Mobile) ─── */
  .site-footer {
    background: linear-gradient(135deg, #0a1f5c 0%, #0e2a6b 50%, #112e7a 100%) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .site-footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6, #3b82f6) !important;
  }
  .site-footer::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important; right: -100px !important; top: -100px !important;
    width: 500px !important;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%) !important;
    pointer-events: none !important;
  }
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    position: relative !important;
    z-index: 1 !important;
  }
  .footer-col-1 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    order: 0 !important; /* Keep Logo at the top */
  }
  .footer-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  .footer-logo img { border-radius: 8px; 
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    /* filter: brightness(0) invert(1) */ !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .footer-mobile-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: flex-start !important;
    order: 1 !important;
  }
  .footer-col-contact {
    order: 1 !important; /* Move to left column */
    text-align: left !important;
  }
  .footer-col-contact h4 {
    text-align: left !important;
  }
  .footer-col-contact ul {
    align-items: flex-start !important;
  }
  .footer-col-menus {
    order: 2 !important; /* Move to right column */
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: flex-end !important;
  }
  .footer-accordion {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    
    width: fit-content !important;
  }
  .footer-menu-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    gap: 8px !important;
    white-space: nowrap !important;
  }
  .footer-menu-toggle span {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
  }
  .footer-menu-toggle.active span {
    transform: rotate(180deg);
  }
  .footer-menu-content {
    display: none !important; /* hidden by default on mobile */
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 16px 16px !important;
  }
  .footer-menu-content.active {
    display: flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  .site-footer h4 {
    margin-bottom: 12px !important;
  }
  .footer-copyright {
    color: #fff !important;
    text-align: center !important;
  }
}




/* ─── 5. ROOM PAGES (801 / 901 / 902-904) ───────────────────── */
@media (max-width: 768px) {

  /* Room hero: full-bleed image, white card floats from bottom */
  .room-hero-new {
    padding: 60px 0 0 !important; /* Navbar clearance */
    display: flex !important;
    flex-direction: column !important;
    max-height: none !important;
    min-height: 0 !important;
    background: #fff !important;
    border-bottom: none !important;
  }
  .hero-bg-img {
    position: relative !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
  }
  .hero-bg-overlay {
    display: none !important;
  }
  .room-hero-container {
    position: relative !important;
    z-index: 2 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-white-card {
    margin: -20px 0 0 0 !important; /* slight overlap with image */
    border-radius: 20px 20px 0 0 !important; /* rounded top */
    padding: 24px 16px !important;
    position: relative !important;
    top: unset !important;
    transform: none !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05) !important;
    border-top: none !important;
    background: #fff !important;
    max-width: 100vw !important; /* Ensure no overflow */
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Clip any overflowing children */
  }
  .room-hero-title-new {
    font-size: 1.6rem !important;
    margin-bottom: 6px !important;
  }
  .room-hero-desc-new {
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
  }

  /* Hero meta row wrapper & arrows */
  .hero-meta-wrapper {
    position: relative !important;
    margin-bottom: 16px !important;
    padding-top: 32px !important; /* Space for arrows at the top */
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-meta-wrapper .hero-meta-row {
    margin-bottom: 0 !important;
  }
  .scroll-arrow {
    position: absolute !important;
    top: 0 !important; /* Put at top right */
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    color: #475569 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    z-index: 10 !important;
  }
  .scroll-left { right: 32px !important; left: auto !important; }
  .scroll-right { right: 0 !important; }

  /* Hero meta row: horizontally scrollable */
  .hero-meta-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important; /* Firefox */
  }
  .hero-meta-row::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
  }
  .h-meta-item {
    flex: 0 0 auto !important;
    min-width: 140px !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 12px !important;
    gap: 8px !important;
  }
  .h-meta-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .h-meta-label { font-size: 0.7rem !important; }
  .h-meta-value { font-size: 0.9rem !important; white-space: nowrap !important; }

  /* Hero action row: side-by-side */
  .hero-actions-row {
    display: flex !important;
    flex-wrap: wrap !important; /* Allow stacking if they don't fit */
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-actions-row a,
  .hero-actions-row button {
    flex: 1 1 130px !important; /* Minimum width before wrapping */
    min-width: 0 !important;
    padding: 10px 4px !important;
    font-size: 0.85rem !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
    word-break: break-all !important; /* Force break if Chinese string is too long */
  }

  /* Activity recommender: Tab-style */
  .act-recommender-card {
    flex-direction: column !important;
    padding: 0 !important;
  }
  .act-recommender-left {
    flex: none !important;
    width: 100% !important;
    padding: 20px 16px 12px !important;
    border-right: none !important;
  }
  .act-recommender-left h2 {
    font-size: 1.3rem !important;
  }
  .act-current-selection {
    display: none !important; /* Hide verbose text on mobile */
  }
  .act-recommender-right {
    flex: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding: 8px 16px 20px !important;
    scrollbar-width: none !important;
  }
  .act-recommender-right {
    flex-wrap: nowrap !important;
  }
  .act-recommender-right::-webkit-scrollbar {
    display: none !important;
  }
  .act-btn {
    flex-shrink: 0 !important;
    min-width: 80px !important;
    height: 80px !important;
    border-radius: 12px !important;
    padding: 0 !important;
  }
  .act-btn-text {
    font-size: 0.7rem !important;
  }
  .act-btn-line { display: none !important; }

  /* Config (layout) cards: horizontal snap scroll */
  .config-cards-grid,
  .config-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
    flex-wrap: nowrap !important;
  }
  .config-card {
    flex-shrink: 0 !important;
    width: 72vw !important;
    max-width: 260px !important;
    scroll-snap-align: start !important;
  }
  /* Tour / 360 view: on mobile, stack vertically */
  .tour-section {
    padding-bottom: 0 !important;
  }
  .bottom-features {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
  }
  .tour-card {
    flex-direction: column !important;
  }
  .tour-image-wrap {
    min-height: 280px !important;
    width: 100% !important;
    flex: none !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 24px !important;
    box-sizing: border-box !important;
  }
  .tour-content {
    width: 100% !important;
    flex: none !important;
    padding: 24px 20px !important;
  }
  .tour-thumbnails,
  #tour-thumbs {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    margin-top: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 12px !important;
  }
  .t-thumb {
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 54px !important;
    border: 2px solid transparent !important;
  }
  .t-thumb.active {
    border-color: var(--primary-color) !important;
  }

  /* Classroom feature section: single column */
  .classroom-features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Bottom Features: horizontal scroll row */
  .bf-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 0 !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
  }
  .bf-grid::-webkit-scrollbar {
    display: none !important;
  }
  .bf-item {
    flex-shrink: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    width: 130px !important;
    padding: 16px 12px !important;
    scroll-snap-align: start !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
    gap: 10px !important;
  }
  .bf-item:last-child {
    border-right: none !important;
  }
  .bf-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.6rem !important;
  }
}


/* ─── 6. PRICING.HTML ────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hero: tighter */
  .pricing-hero-full {
    padding: calc(var(--nav-height, 64px) + 28px) 0 64px !important;
  }
  .pricing-hero-full h1 {
    font-size: 1.7rem !important;
    letter-spacing: 0 !important;
  }

  /* Room info strip: horizontal, compact */
  .pt-row-v3 {
    flex-direction: column !important;
  }
  .pt-info-v3 {
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 12px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }
  .pt-info-v3 img {
    width: 72px !important;
    height: 60px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
  }
  .pt-info-title h3 {
    font-size: 1.1rem !important;
    margin-bottom: 2px !important;
  }
  .pt-info-title p {
    font-size: 0.8rem !important;
  }
  .pt-features-tags { display: none !important; }

  /* Pricing table: horizontal swipe */
  .pt-table-wrap-v3 {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .pt-table-v3 {
    min-width: 560px !important;
  }
  .pt-table-v3 th,
  .pt-table-v3 td {
    padding: 8px 8px !important;
    font-size: 0.85rem !important;
  }
  .pt-table-v3 th .time {
    font-size: 0.64rem !important;
  }
  .pt-table-v3 td.row-label {
    width: 90px !important;
    font-size: 0.8rem !important;
  }

  /* Swipe hint: mobile only */
  .mobile-swipe-hint {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    padding: 5px 12px 0 !important;
    font-weight: 600 !important;
  }

  /* Contact area */
  .contact-area-v3 {
    padding: 40px 0 !important;
  }
  .ca-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .ca-info h2 {
    font-size: 1.6rem !important;
  }
  .ca-form-wrap {
    padding: 20px 16px !important;
  }
  .name-phone-grid {
    grid-template-columns: 1fr !important;
  }

  /* Reduce section margins */
  .pricing-tables-section {
    padding: 28px 0 40px !important;
  }
  .pricing-tables-section > .container > div[style*="margin-bottom: 60px"] {
    margin-bottom: 20px !important;
  }
}

/* Swipe hint: hidden on desktop */
@media (min-width: 769px) {
  .mobile-swipe-hint { display: none !important; }
}


/* ─── 7. FAQ.HTML ────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* FAQ Hero: Background Image Overlay */
  .faq-hero {
    height: auto !important;
    margin-top: calc(-1 * var(--nav-height, 64px)) !important;
    padding: calc(var(--nav-height, 64px) + 32px) 0 32px !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .faq-hero-container {
    display: block !important;
    height: auto !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .faq-hero-text {
    position: relative !important;
    top: unset !important;
    transform: none !important;
    z-index: 2 !important;
    padding: 0 24px !important;
    width: 100% !important;
    text-align: left !important;
  }
  .faq-hero-text h1 {
    font-size: 1.8rem !important;
    color: #fff !important;
    margin-bottom: 8px !important;
  }
  .faq-hero-text h1 .highlight {
    color: #fbbf24 !important;
  }
  .faq-hero-text h1 .highlight::after {
    display: none !important;
  }
  .faq-hero-text p {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  .faq-hero-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    z-index: 1 !important;
    overflow: hidden !important;
  }
  .faq-sketch-bg {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    aspect-ratio: auto !important;
  }
  .faq-hero-image::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(14, 42, 107, 0.85) 0%, rgba(14, 42, 107, 0.75) 100%) !important;
    z-index: 1 !important;
  }

  /* FAQ Layout: stack, no sidebar */
  .faq-main-section.py-40 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  .faq-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .card-box {
    padding: 20px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* Left column: horizontal scrollable filter tabs */
  .faq-left-col {
    position: static !important;
    top: unset !important;
  
    min-width: 0 !important;
  }

  /* Article List: Left Image, Right Text */
  .article-item {
    flex-direction: row !important;
    align-items: center !important;
    padding: 12px !important;
  }
  .article-img {
    width: 100px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
  }
  .article-content {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .article-title {
    font-size: 1rem !important;
    margin-bottom: 4px !important;
  }
  .article-desc {
    font-size: 0.8rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* H3 is visible on mobile now */
  .faq-filter-tags {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }
  .faq-filter-tags::-webkit-scrollbar { display: none !important; }
  .faq-filter-tags .faq-tag,
  .faq-filter-tags button,
  .faq-filter-tags a,
  .faq-filter-tags li {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
  }

  /* FAQ accordion list */
  .faq-accordion-list {
    gap: 8px !important;
  }
  .faq-item,
  .faq-q {
    padding: 14px !important;
    font-size: 0.95rem !important;
  }
  .faq-a {
    font-size: 0.9rem !important;
    padding: 12px 14px !important;
  }
}


/* ─── 8. FACILITIES.HTML ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* Facilities hero: stack */
  .hero-facilities .container {
    flex-direction: column !important;
    gap: 16px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .hero-facilities {
    padding-top: 15px !important;
    padding-bottom: 20px !important;
  }
  .hero-facilities h1 {
    font-size: 1.7rem !important;
  }

  /* Category tabs: horizontal scroll */
  .facility-tabs,
  .tab-nav,
  [class*="facility-cat"] {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
  }
  [class*="facility-cat"]::-webkit-scrollbar,
  .tab-nav::-webkit-scrollbar { display: none !important; }

  /* Equipment grid: 2 columns */
  .equipment-grid,
  .facility-grid,
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Equipment card: compact */
  .facility-card,
  .equipment-card {
    padding: 14px !important;
  }
  .facility-card h3,
  .equipment-card h3 {
    font-size: 0.95rem !important;
  }
}


/* ─── 9. LOCATION.HTML ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Location hero: Background Image Overlay */
  .loc-hero {
    height: 360px !important;
    margin-top: calc(-1 * var(--nav-height, 64px)) !important;
  }
  .loc-hero-bg {
    display: block !important;
    height: 100% !important;
    position: relative !important;
  }
  .loc-hero-image-area {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    clip-path: none !important;
  }
  .loc-hero-image-area img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center bottom !important;
  }
  .loc-hero-image-area::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(14, 42, 107, 0.85) 0%, rgba(20, 50, 120, 0.5) 100%) !important;
    z-index: 1 !important;
  }
  .loc-hero-text-area {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    z-index: 2 !important;
    padding: 0 24px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .loc-hero-title {
    font-size: 2rem !important;
    color: #fff !important;
  }
  .loc-hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  .loc-features {
    padding-top: 0 !important;
    padding-bottom: 8px !important;
  }
  .loc-details {
    padding-top: 12px !important;
  }
  .loc-features-header {
    text-align: left !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* Location features: horizontal scroll */
  .loc-features-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
    justify-content: flex-start !important;
    scrollbar-width: none !important;
  }
  .loc-features-grid::-webkit-scrollbar { display: none !important; }
  .loc-feature-card {
    flex-shrink: 0 !important;
    width: 85vw !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
  }
  .loc-badge {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
  }

  /* Map: full width */
  .location-map-wrap,
  .map-container,
  iframe[src*="maps"] {
    width: 100% !important;
    height: 240px !important;
  }

  /* Location info grid: stack */
  .location-info-grid,
  .loc-info-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Route steps: single column */
  .route-steps,
  .loc-route-steps {
    grid-template-columns: 1fr !important;
  }

  /* Transport tabs: horizontal scroll */
  .transport-tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .transport-tabs::-webkit-scrollbar { display: none !important; }
  .transport-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}


/* ─── 10. BOOKING.HTML ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Booking hero: compact */
  
  
.booking-hero {
    height: 220px !important;
  }
  .booking-hero-bg::after {
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 80%, rgba(255,255,255,0.2) 100%) !important;
  }
  .booking-hero .title-underline {
    display: none !important;
  }
  .booking-curve-mask {
    display: none !important;
  }
  .booking-hero-bg {
    background-position: center 60% !important; 
  }
  .booking-hero-content {
    justify-content: center !important;
    padding-bottom: 20px !important;
  }

  .booking-hero-bg {
    min-height: 200px !important;
    padding-top: calc(var(--nav-height, 64px) + 16px) !important;
  }
  .booking-hero-content h1 {
    font-size: 1.6rem !important;
  }

  /* Booking form card: full width */
  .booking-form-card {
    margin: 0 !important;
    border-radius: 16px !important;
    padding: 20px 16px !important;
    box-shadow: none !important;
  }

  /* All form fields: single column, full width, larger touch targets */
  .booking-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    min-height: 48px !important; /* Comfortable touch target */
    border-radius: 10px !important;
  }
  .booking-form .form-row,
  .booking-form .form-grid,
  .booking-form [style*="grid-template-columns"],
  .booking-form [style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .booking-form .btn,
  .booking-form button[type="submit"] {
    width: 100% !important;
    padding: 16px !important;
    font-size: 1.05rem !important;
    min-height: 52px !important;
  }

  /* Date/time pickers: full width */
  .booking-date-grid,
  .time-slots {
    grid-template-columns: 1fr !important;
  }
  .time-slot-btn {
    padding: 12px !important;
    font-size: 0.9rem !important;
  }
}


/* ─── 11. ABOUT.HTML ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* About page: stack all grids */
  .about-grid,
  .team-grid,
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .about-hero h1 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 768px) {
  .space-features { padding: 16px 0 !important; }
}

@media (max-width: 768px) {
  .activity-recommender {
    padding: 24px 0 10px !important;
  }
  .act-recommender-right {
    padding-bottom: 8px !important;
  }
  .configurations-section-new { scroll-margin-top: 120px;
    padding: 10px 0 10px !important;
  }
  .config-main-card {
    padding: 16px !important;
  }
  .config-header-row {
    margin-bottom: 12px !important;
  }
}

@media (max-width: 768px) {
  /* Hide breaks in activity recommender to utilize full width on mobile */
  .act-recommender-left h2 br,
  .act-recommender-left p br {
    display: none;
  }
}

.compare-actions { position: relative !important; z-index: 50 !important; }

/* BRUTE FORCE FIX FOR COMPARE ACTIONS CLICKABILITY */
.compare-actions {
  position: relative !important;
  z-index: 999 !important;
  pointer-events: auto !important;
  margin-top: 20px !important;
  padding-bottom: 10px !important;
}
.compare-actions a, .compare-actions .btn {
  position: relative !important;
  z-index: 1000 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Fix excessive vertical padding in contact us features banner on mobile */
@media (max-width: 768px) {
  .booking-main-section.py-60 {
    padding-bottom: 0 !important;
  }
  .booking-features-banner {
    padding: 0 !important;
  }
}

@media (max-width: 768px) {
  .fab-cta {
    display: none !important;
  }
}
/* Compare Actions Mobile Side by Side */
@media (max-width: 768px) {
  .compare-actions {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .compare-actions a, .compare-actions .btn {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    padding: 10px 2px !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
  .compare-actions a svg, .compare-actions .btn svg {
    margin-right: 4px !important;
    width: 14px !important;
    height: 14px !important;
  }
}
/* Mobile FB Section Logic */
@media (max-width: 768px) {
  .desktop-fb-wrapper { display: none !important; }
  .mobile-fb-section { display: block !important; padding: 10px 15px 20px !important; margin: 0 !important; }
  .mobile-fb-wrapper { width: 100%; max-width: 500px; margin: 0 auto; }
  .mobile-fb-section .articles-card { margin: 0 !important; padding: 10px 0 !important; box-shadow: none !important; border: none !important; background: transparent !important; }
  .mobile-fb-section .container { padding: 0 15px !important; }
}

/* Align Contact Info Icon and Text on Mobile */
@media (max-width: 768px) {
  .bcc-icon, .bfc-icon {
    width: 32px !important;
    height: 32px !important;
  }
  .bcc-icon svg, .bfc-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .bcc-header h3, .bfc-header h3 {
    font-size: 1.2rem !important;
  }
}

/* Floating Action Buttons / Back to top for mobile */
.floating-actions {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}
.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-family);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.fab-top {
  width: 48px;
  height: 48px;
  background-color: #2252aa;
  box-shadow: 0 3px 12px rgba(34, 82, 170, 0.30);
  font-size: 1.3rem;
  line-height: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.fab-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (min-width: 769px) {
  .fab-top {
    display: none !important;
  }
}
