/* ============================================================================
   MOBILE.CSS - Mobile-specific styles (< 1024px)
   Full-width mobile view up to iPad 13" portrait
   ============================================================================ */

/* Mobile Layout - prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Hide desktop-only elements */
.desktop-left-panel,
.panel-resizer,
.topbar-desktop,
.search-container-desktop,
.search-toggle-desktop,
.search-icon-btn,
.back-button-desktop {
  display: none !important;
}

/* Show mobile topbar */
.topbar-mobile {
  display: block;
}

/* Mobile Topbar */
/* .topbar {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  color: #ffffff;
  border-bottom: none;
  z-index: 100;
  min-height: 64px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
} */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;  /* Blijft transparant */
  color: #ffffff;
  border-bottom: none;
  z-index: 10;  /* Boven hero */
  min-height: 64px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Native app: safe area offset voor topbar */
html.native-app .topbar {
  top: env(safe-area-inset-top, 0);
}

/* Verberg topbar elementen wanneer overlay actief is */
body:has(.search-overlay-mobile[style*="display: flex"]) .topbar,
body:has(.search-overlay-mobile[style*="display:flex"]) .topbar {
  display: none;
}

/* Topbar when scrolled or no hero - extend to top edge */
.topbar.scrolled,
.topbar.no-hero {
  top: 0;
  padding-top: 0;
  background: var(--topbar-bg);
  color: var(--topbar-text);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Native app: position topbar below safe area (same as hero view) */
html.native-app .topbar.scrolled,
html.native-app .topbar.no-hero {
  top: env(safe-area-inset-top, 0);
  padding-top: 0;
}

/* Extend topbar background behind status bar in native app */
html.native-app .topbar.scrolled::before,
html.native-app .topbar.no-hero::before {
  content: '';
  position: absolute;
  top: calc(-1 * env(safe-area-inset-top, 0));
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0);
  background: var(--topbar-bg);
}

/* Native app: reduce topbar container padding */
html.native-app .topbar .container {
  padding-top: 0;
  padding-bottom: 8px;
  min-height: 48px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  position: relative;
  min-height: 64px;
}

/* White text and icons when over hero */
.topbar:not(.scrolled):not(.no-hero) .brand,
.topbar:not(.scrolled):not(.no-hero) .page-title-mobile,
.topbar:not(.scrolled):not(.no-hero) .back-button,
.topbar:not(.scrolled):not(.no-hero) .search-toggle-mobile {
  color: #ffffff;
}

/* Add subtle shadow for better visibility on light images */
.topbar:not(.scrolled):not(.no-hero) .brand,
.topbar:not(.scrolled):not(.no-hero) .page-title-mobile {
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.brand, .crumb { 
  color: var(--topbar-text); 
  text-decoration: none; 
  font-weight: 600; 
}

/* Brand styling when over hero */
.topbar:not(.scrolled):not(.no-hero) .brand {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.brand-desktop {
  display: none;
}

/* Mobile Page Title (centered) */
.page-title-mobile {
  display: block;
  font-weight: 600;
  font-size: 17px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--topbar-text);
  width: 60%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  pointer-events: none;
}

/* Hide center title when hero is present */
body.has-hero .topbar:not(.scrolled) .page-title-mobile {
  display: none;
}

/* Back Button */
.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border: none;
  color: #ffffff;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 50%;
  transition: background .15s ease;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.back-button:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Back button in scrolled/no-hero state */
.topbar.scrolled .back-button,
.topbar.no-hero .back-button {
  background: rgba(255, 255, 255, 0.15);
  color: var(--topbar-text);
}

.topbar.scrolled .back-button:hover,
.topbar.no-hero .back-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.crumb {
  display: none;
}

.topbar-right {
  display: flex;
  align-items: center;
}

/* Mobile topbar pill */
.topbar-mobile .topbar-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 22px;
  padding: 4px;
}

.topbar-mobile .topbar-pill .pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: white;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.topbar-mobile .topbar-pill .pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Pill in scrolled/no-hero state */
.topbar-mobile.scrolled .topbar-pill,
.topbar-mobile.no-hero .topbar-pill {
  background: rgba(255, 255, 255, 0.15);
}

.topbar-mobile.scrolled .topbar-pill .pill-btn,
.topbar-mobile.no-hero .topbar-pill .pill-btn {
  color: var(--topbar-text);
}

.topbar-mobile.scrolled .topbar-pill .pill-btn:hover,
.topbar-mobile.no-hero .topbar-pill .pill-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Search Toggle (rechts in topbar) */
.search-toggle-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border: none;
  color: #ffffff;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s ease;
  z-index: 1;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-toggle-mobile:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Search toggle in scrolled/no-hero state */
.topbar.scrolled .search-toggle-mobile,
.topbar.no-hero .search-toggle-mobile {
  background: rgba(255, 255, 255, 0.15);
  color: var(--topbar-text);
}

.topbar.scrolled .search-toggle-mobile:hover,
.topbar.no-hero .search-toggle-mobile:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Mobile Search Overlay */
.search-overlay-mobile {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0;  /* No !important — JS adjusts this for keyboard */
  background: var(--card) !important;
  z-index: 100000 !important;  /* Hoger dan topbar (100) */
  flex-direction: column !important;
  overflow: hidden !important;
}

.search-overlay-mobile[style*="display: flex"],
.search-overlay-mobile[style*="display:flex"] {
  display: flex !important;
}

.search-overlay-header {
  position: relative; /* Niet sticky! */
  background: var(--topbar-bg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  flex-shrink: 0;
}

/* Native app: push search header below status bar */
html.native-app .search-overlay-header {
  padding-top: calc(16px + env(safe-area-inset-top, 0));
}

.search-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--topbar-text);
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s ease;
  flex-shrink: 0;
}

.search-overlay-close:hover {
  background: rgba(255,255,255,.15);
}

.search-overlay-mobile .search-box {
  flex: 1;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-overlay-mobile .search-input {
  background: transparent;
  border: none;
  font-size: 15px;
  width: 100%;
  padding: 10px 36px 10px 36px;
  color: var(--topbar-text);
  outline: none;
}

.search-overlay-mobile .search-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.search-overlay-mobile .search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  pointer-events: none;
}

.search-overlay-mobile .search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide old mobile search container */
.search-container-mobile {
  display: none;
}

/* Mobile Search */
.search-container-desktop {
  display: none;
}

.search-container-mobile {
  display: block;
  padding: 16px;
  max-width: 100%;
}

.search-container-mobile .search-box {
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 2px;
}

.search-container-mobile .search-input {
  background: transparent;
  border: none;
  font-size: 15px;
  width: 100%;
  padding: 9px 36px;
  color: var(--text);
  outline: none;
}

.search-container-mobile .search-input:focus {
  box-shadow: none;
}

/* Old mobile search container (deprecated) */
.search-container-mobile .search-results {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: calc(80px + env(safe-area-inset-bottom));
  max-height: 50vh;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}


/* Mobile Layout */
.sidebar {
  position: fixed !important;
  top: 0 !important;
  left: -280px !important;
  right: auto !important;
  width: 280px !important;
  height: 100vh;
  height: 100dvh;
  z-index: 1100 !important;
  background: var(--card);
  border-right: 1px solid var(--stroke);
  border-left: none !important;
  transition: left 0.3s ease;
}

aside.sidebar.open,
.sidebar.open {
  left: 0 !important;
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.sidebar-nav {
  flex: 1 1 auto;
  padding: 16px 8px;
  overflow-y: auto;
}

/* Native app: safe area padding top for sidebar */
html.native-app .sidebar-nav {
  padding-top: calc(16px + env(safe-area-inset-top, 0));
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 2px;
  transition: all .15s ease;
  font-size: 15px;
  font-weight: 500;
}

.sidebar-nav-item:hover {
  background: rgba(var(--primary-rgb), 0.08);
}

.sidebar-nav-item.active {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--text);
  font-weight: 600;
}

.sidebar-nav-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: var(--muted);
}

.sidebar-nav-item.active i {
  color: var(--primary);
}

/* Dark mode: make active state clearly visible */
@media (prefers-color-scheme: dark) {
  .sidebar-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Sidebar submenu (hierarchical navigation) */
.sidebar-nav-group {
  margin-bottom: 2px;
}

.sidebar-nav-parent {
  display: flex;
  align-items: center;
}

.sidebar-nav-parent .sidebar-nav-item {
  flex: 1;
  margin-bottom: 0;
}

.sidebar-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all .15s ease;
  flex-shrink: 0;
}

.sidebar-nav-toggle:hover {
  background: rgba(0,0,0,.04);
  color: var(--text);
}

.sidebar-nav-toggle i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.sidebar-nav-group.expanded .sidebar-nav-toggle i {
  transform: rotate(180deg);
}

.sidebar-nav-children {
  display: none;
  padding-left: 20px;
  margin-top: 2px;
  border-left: 2px solid var(--stroke);
  margin-left: 24px;
}

.sidebar-nav-group.expanded .sidebar-nav-children {
  display: block;
}

.sidebar-nav-child {
  padding: 10px 14px;
  font-size: 14px;
}

.sidebar-nav-child i {
  font-size: 14px;
  width: 16px;
}

.sidebar-footer {
  position: sticky;
  bottom: 0;
  padding: 12px 8px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--stroke);
  background: var(--card);
  flex-shrink: 0;
}

.sidebar-footer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s ease;
  font-size: 14px;
}

.sidebar-footer-btn:hover {
  background: rgba(0,0,0,0.04);
}

.sidebar-footer-btn i {
  width: 20px;
  text-align: center;
  color: var(--muted);
}

.sidebar-footer-btn.sidebar-logout {
  color: var(--error, #ef4444);
}

.sidebar-footer-btn.sidebar-logout i {
  color: var(--error, #ef4444);
}

/* Divider between guidebook and portal nav items */
.sidebar-nav-divider {
  height: 1px;
  background: var(--stroke);
  margin: 12px 16px;
}

.breadcrumbs {
  display: none;
}

.content-wrapper {
  padding: 0 24px;
  box-sizing: border-box;
}

/* Mobile Typography */
.page-header .h1 {
  font-size: 28px;
}

.h1 {
  font-size: 24px;
}

.page-description {
  font-size: 15px;
}

/* Mobile Tiles */
.tile {
  /* padding-bottom: 100% is in base, no aspect-ratio needed */
}

.tile-inner {
  padding: 8px 6px;
}

.tile-icon {
  width: 65%;
  aspect-ratio: 1;
}

.tile-icon i {
  font-size: clamp(18px, 8vw, 28px);
}

.tile-image {
  width: 92%;
  aspect-ratio: 1;
  margin-bottom: 8px;
}

.tile-title {
  font-size: clamp(12px, 3.2vw, 14px);
}

.tile-desc {
  font-size: 13px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
}

/* Tiles with images - mobile adjustments */
.tile-has-image .tile-image {
  width: 92%;
  border-radius: 14px;
}

/* Mixed grid - align icon tiles with image tiles */
.grid-mixed .tile:not(.tile-has-image) .tile-icon {
  width: 82%;
  border-radius: 14px;
}

/* Mobile Hero */
.hero {
  margin: -20px -16px 24px;
  border-radius: 0;
}

.hero img {
  max-height: 220px;
  border-radius: 0;
}

/* Mobile Footer */
.footer {
  display: none;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: var(--bottom-nav-bg);
  border-top: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 8px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  border-radius: 999px;
}

/* Hide bottom nav when product sheet is open */
body:has(.sheet-overlay.active) .bottom-nav {
  display: none !important;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--bottom-nav-text);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 12px;
  transition: all .2s ease;
  flex: 1;
  max-width: 120px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.bottom-nav-item i {
  font-size: 20px;
  transition: transform .2s ease;
}

.bottom-nav-item span {
  font-size: 11px;
  font-weight: 500;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--bottom-nav-active);
}

.bottom-nav-item.active i {
  transform: scale(1.1);
}

/* Property Info - Mobile */
.property-info-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0;
}

.property-info-section {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}

/* Emergency button more prominent on mobile */
.emergency-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--error-dark);
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 17px;
  transition: background .15s ease;
  margin-bottom: 12px;
}

.emergency-button:hover {
  background: var(--error);
}

/* Content Typography - Mobile */
.content h2 {
  font-size: 22px;
  margin: 28px 0 14px;
}

.content h3 {
  font-size: 18px;
  margin: 24px 0 12px;
}

.content p {
  font-size: 15px;
  line-height: 1.6;
}

.content ul, .content ol {
  padding-left: 20px;
}

/* Extra small phones */
@media (max-width: 374px) {
  .page-header .h1 {
    font-size: 24px;
  }

  .h1 {
    font-size: 22px;
  }

  .grid {
    gap: 8px;
  }

  .tile {
    padding: 10px 8px;
    aspect-ratio: 1;
  }

  .tile-icon {
    width: 50%;
    aspect-ratio: 1;
  }

  .tile-icon i {
    font-size: 18px;
  }

  .tile-image {
    width: 80%;
    aspect-ratio: 1;
  }

  .tile-title {
    font-size: 12px;
  }

  .tile-desc {
    font-size: 11px;
  }

  .tile-has-image .tile-image {
    width: 78%;
    border-radius: 10px;
  }

  .grid-mixed .tile:not(.tile-has-image) .tile-icon {
    width: 68%;
    border-radius: 10px;
  }

  .content-wrapper {
    padding: 16px 12px;
  }
  
  .search-container-mobile {
    padding: 12px;
  }
}

/* ===================================================================
   HIGHLIGHT SLIDER
   =================================================================== */

/* Highlight slider in hero container */
.hero-container .highlight-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.hero-container .highlight-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  text-decoration: none;
  display: block;
}

.hero-container .highlight-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-container .highlight-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Touch feedback */
.hero-container .highlight-slide:active .highlight-image {
  transform: scale(1.02);
  transition: transform 0.2s;
}

/* Legacy highlight slider (keep for backward compatibility if needed elsewhere) */
.highlight-slider-container {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 8px;
}

/* Reduce grid top margin when slider is present */
.highlight-slider-container + * {
  margin-top: 8px !important;
}

.highlight-slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.highlight-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  text-decoration: none;
  display: block;
}

.highlight-slide.active {
  opacity: 1;
  z-index: 1;
}

.highlight-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.highlight-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 32px 16px 16px 16px;
  color: white;
}

.highlight-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.highlight-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}

.highlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.highlight-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.highlight-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Touch feedback */
.highlight-slide:active .highlight-image {
  transform: scale(1.02);
  transition: transform 0.2s;
}

/* ============================================================================
   HERO IMAGE OVERLAY DESIGN (Mobile)
   Hero image goes under topbar, content slides over as card
   ============================================================================ */

/* Mobile Hero Image - Full height with overlay */
/* .hero-container {
  position: relative;
  width: 100%;
  height: 30vh;
  min-height: 200px;
  max-height: 600px;
  overflow: hidden;
  margin: 0;
} */

.hero-container {
  position: relative;
  width: 100%;
  height: 30vh;
  min-height: 300px;
  max-height: 600px;
  overflow: hidden;
  margin: 0;
  margin-top: -64px;  /* Trek onder topbar */
  padding-top: 64px;  /* Compenseer voor content */
}

.hero-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* Hero overlay gradient for text readability */
.hero-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Hero title overlay */
.hero-title {
  position: absolute;
  bottom: 56px;
  left: 20px;
  right: 20px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  z-index: 2;
  padding-top: 84px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin: 0;
}

/* Hero text container (when description/tags present) */
.hero-text {
  position: absolute;
  bottom: 40px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.hero-text .hero-title {
  position: static;
  font-size: 36px;
  margin-bottom: 12px;
  padding-top: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero badge (e.g., Local Tip) */
.hero-badge {
  position: absolute;
  bottom: 52px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  z-index: 3;
}

.hero-badge i {
  font-size: 12px;
}

/* Slider dots in hero - positioned above title */
.hero-container .highlight-dots {
  position: absolute;
  bottom: 120px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 4;
  pointer-events: none;
  padding: 20px 0;
}

.hero-container .highlight-dot {
  /* Grotere clickable area (44x44px best practice) */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

/* Visual dot indicator */
.hero-container .highlight-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.hero-container .highlight-dot.active::after {
  background: white;
  width: 32px;
  height: 6px;
  border-radius: 3px;
  border-color: white;
}

.hero-container .highlight-dot:hover::after {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* Content card that slides over hero */
.content-card {
  position: relative;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  margin-top: -40px;
  z-index: 10;
  padding: 24px;
  padding-bottom: 40px;
  min-height: calc(100vh - 60vh + 40px);
  box-sizing: border-box;
}

/* When there's a hero */
.has-hero .main-content {
  padding-top: 0;
}

.has-hero .content-wrapper {
  padding: 0 !important;
}

.has-hero .page-header {
  margin-top: 0;
  margin-bottom: 24px;
}

.has-hero .page-header .h1 {
  display: none; /* Title is in hero overlay */
}

/* When no hero - normal layout with proper top spacing */
body:not(.has-hero) .main-content {
  padding-top: 96px;
}

/* Native app: extra safe area padding */
html.native-app body:not(.has-hero) .main-content {
  padding-top: calc(96px + env(safe-area-inset-top, 0));
}

.no-hero .content-card {
  margin-top: 0;
  border-radius: 0;
  padding: 24px;
}

.no-hero .hero-container {
  display: none;
}

/* Topbar clearance for booking page on mobile */
.booking-subbar {
  padding-top: 4px;
}