:root {
  --bg-main: #f4f2ed;
  --text-main: #1c1c1c;
  --text-soft: #5d5d5d;
  --panel-dark: rgba(20, 23, 28, 0.75);
  --panel-light: rgba(255, 255, 255, 0.18);
  --accent-gold: #c6a75e;
  --accent-blue: #4da3ff;
  --border-soft: rgba(255, 255, 255, 0.26);
  --shadow-soft: 0 18px 36px rgba(18, 20, 24, 0.16);
  --shadow-deep: 0 30px 70px rgba(6, 8, 12, 0.42);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --ease-ui: 250ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
  background: radial-gradient(circle at top right, #ffffff 0%, transparent 45%),
    radial-gradient(circle at left bottom, #ede7dd 0%, transparent 42%),
    var(--bg-main);
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

button {
  font-family: inherit;
  transition: transform var(--ease-ui), box-shadow var(--ease-ui),
    background-color var(--ease-ui), border-color var(--ease-ui),
    color var(--ease-ui), opacity var(--ease-ui);
}

.site-credit {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 12000;
  color: rgba(28, 28, 28, 0.64);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.25px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 23, 28, 0.08);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.site-credit:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(12, 14, 18, 0.13);
}

.language-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(77, 163, 255, 0.12), transparent 38%),
    radial-gradient(circle at 82% 84%, rgba(198, 167, 94, 0.12), transparent 36%),
    linear-gradient(140deg, #05070a 0%, #0b0f14 48%, #05070a 100%);
  color: #f6f4ef;
}

.language-logo {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 8px;
  color: #f8f8f8;
}

.language-tagline {
  text-align: center;
  margin: 0 0 38px;
  color: rgba(248, 248, 248, 0.86);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 2vw, 0.95rem);
}

.language-selector {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}


.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.lang-grid button {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 15px 14px;
  background: rgba(245, 242, 235, 0.14);
  color: #f8f8f8;
  backdrop-filter: blur(8px);
  font-weight: 600;
  cursor: pointer;
}

.lang-grid button:hover {
  transform: scale(1.02) translateY(-1px);
  background: rgba(245, 242, 235, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.hotel-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.hotel-header {
  position: relative;
  min-height: 56vh;
  padding: 38px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  color: #f8f8f8;
}


.hotel-header.no-hero {
  background-image: linear-gradient(140deg, rgba(14, 18, 24, 0.88), rgba(34, 40, 48, 0.8));
}

.hotel-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 20, 24, 0.84),
    rgba(18, 20, 24, 0.46) 54%,
    rgba(18, 20, 24, 0.2) 100%
  );
}

.hotel-header-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hotel-logo {
  width: 98px;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
}

.hotel-name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hotel-rating {
  margin-top: 10px;
  color: var(--accent-gold);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hotel-header p {
  margin: 16px 0 0;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.experiences {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.experiences ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.audioguide-card {
  border: 1px solid rgba(20, 23, 28, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-main);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease-ui), box-shadow var(--ease-ui), filter var(--ease-ui);
}

.audioguide-card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.audioguide-card-body {
  padding: 14px 16px 16px;
}

.audioguide-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.audioguide-card-title h3 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.audioguide-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.experience-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: #f6f6f6;
  background: rgba(20, 23, 28, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.34);
}


.audioguide-card.no-image .audioguide-card-body {
  padding-top: 18px;
}

.audioguide-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.02);
  box-shadow: 0 24px 34px rgba(20, 23, 28, 0.2);
}

#map {
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

.back-btn,
.explore-btn,
.gps-route-btn,
.tour-btn {
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(20, 23, 28, 0.72);
  color: #ffffff;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  touch-action: manipulation;
}

.back-btn {
  position: fixed;
  top: 16px;
  left: max(12px, env(safe-area-inset-left));
  padding: 10px 14px;
}

.map-action-row {
  position: fixed;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.explore-btn {
  padding: 11px 16px;
  text-align: center;
}

.gps-route-btn {
  padding: 10px 15px;
  text-align: center;
}

.tour-btn {
  padding: 10px 15px;
  text-align: center;
}

.tour-status {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(20, 23, 28, 0.72);
  color: #ffffff;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-ui);
}

.tour-status.visible {
  opacity: 1;
}


.tour-next-point {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 190px;
  max-width: min(78vw, 320px);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 23, 28, 0.82);
  color: #f3f5f7;
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: right;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10001;
  pointer-events: none;
}

.tour-next-point strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.tour-next-point small {
  opacity: 0.86;
}

.tour-next-point.visible {
  display: flex;
}

.back-btn:hover,
.explore-btn:hover,
.gps-route-btn:hover,
.tour-btn:hover {
  transform: translateY(-2px);
  background: rgba(20, 23, 28, 0.9);
}



.maplibregl-ctrl-top-right,
.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-top-left,
.maplibregl-ctrl-bottom-left {
  margin: 0;
}

.maplibregl-ctrl-bottom-right {
  right: max(12px, env(safe-area-inset-right));
  bottom: max(128px, calc(env(safe-area-inset-bottom) + 98px));
}

.maplibregl-ctrl-group {
  border: 1px solid rgba(20, 23, 28, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(20, 23, 28, 0.24);
}

.maplibregl-ctrl-group button {
  width: 34px;
  height: 34px;
}


.leaflet-control-attribution {
  background: rgba(20, 23, 28, 0.62) !important;
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
}

.leaflet-interactive {
  transition: filter var(--ease-ui), opacity var(--ease-ui);
}

.user-dot {
  position: relative;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 8px rgba(77, 163, 255, 0.45));
}

.user-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4da3ff;
  border: 2px solid #ffffff;
  transform: translate(-50%, -50%);
}

.user-halo {
  animation: userHaloPulse 2.4s ease-in-out infinite;
}


.nearest-guide-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff3b30;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.2);
}

.zone-active {
  filter: drop-shadow(0 0 6px rgba(198, 167, 94, 0.55));
}


.zone-circle {
  filter: drop-shadow(0 0 5px rgba(198, 167, 94, 0.28));
}

@keyframes userHaloPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.34;
  }
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.media-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 10, 0.62);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20000;
  padding: 22px;
}

.media-container {
  position: relative;
  width: min(940px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(17, 20, 24, 0.9);
  box-shadow: var(--shadow-deep);
  padding: 22px;
  animation: modalEnter 260ms ease;
}

.media-title {
  margin: 0 42px 14px 0;
  color: #f4f4f4;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.media-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: none;
}

.media-play-fallback {
  display: none;
  margin-top: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.media-play-fallback.visible {
  display: block;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

.close-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

.location-gate {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.location-gate h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.location-gate p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-soft);
  line-height: 1.6;
}

.location-gate-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.location-gate-actions button {
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(20, 23, 28, 0.2);
  font-weight: 700;
  cursor: pointer;
}

.location-gate-actions .primary {
  color: #ffffff;
  border-color: rgba(20, 23, 28, 0.16);
  background: linear-gradient(135deg, #2f3947, #1a2028);
}

.location-gate-actions .primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.gps-status {
  min-height: 22px;
  color: var(--accent-blue) !important;
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .back-btn {
    left: max(12px, env(safe-area-inset-left));
    top: 24px;
  }

  .map-action-row {
    left: 50%;
    bottom: 62px;
    transform: translateX(-50%);
  }
}

@media (max-width: 759px) {
  .back-btn {
    top: 12px;
    left: max(10px, env(safe-area-inset-left));
  }

  .maplibregl-ctrl-bottom-right {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(122px, calc(env(safe-area-inset-bottom) + 92px));
  }
}
