:root {
  --ivory: #f4f0e8;
  --champagne: #d7c2a2;
  --deep-green: #1d2a24;
  --ink: #1b1a18;
  --charcoal: #2a2620;
  --warm-gray: #b8b1a4;
  --gold: #c8a96a;
  --gold-strong: #b9924a;
  --shadow: rgba(9, 9, 8, 0.22);
  --paper: #f7f4ee;
  --radius: 12px;
  --ease-luxe: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.06'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.6;
  z-index: 2;
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 56px;
  color: var(--ink);
}

.brand {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-green);
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.nav a {
  position: relative;
  padding-bottom: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.5s var(--ease-luxe), transform 0.5s var(--ease-luxe);
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 56px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.place-page .site-footer {
  position: static;
  margin-top: auto;
  padding: 0 8vw 32px;
  z-index: 10;
}

.site-footer .social {
  display: flex;
  gap: 18px;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 106, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  background: #e7e0d2;
}

.lux-zoom {
  position: absolute;
  top: 110px;
  left: 34px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(247, 244, 238, 0.92);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.18);
  border: 1px solid rgba(200, 169, 106, 0.45);
  backdrop-filter: blur(6px);
}

.lux-zoom .zoom-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--deep-green);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.35s var(--ease-luxe), color 0.35s var(--ease-luxe), transform 0.35s var(--ease-luxe);
}

.lux-zoom .zoom-btn + .zoom-btn {
  border-top: 1px solid rgba(200, 169, 106, 0.35);
}

.lux-zoom .zoom-btn:hover {
  background: linear-gradient(135deg, rgba(200, 169, 106, 0.18), rgba(29, 42, 36, 0.08));
  transform: translateY(-1px);
}

.lux-zoom .zoom-btn:active {
  transform: translateY(0);
}

.leaflet-container {
  background: #e7e0d2;
  font-family: inherit;
}

.leaflet-tile-pane {
  filter: sepia(0.18) saturate(0.78) contrast(0.95);
}

.leaflet-container.is-dragging .leaflet-tile-pane {
  filter: none;
}

.leaflet-container.is-dragging .map-pin {
  box-shadow: none;
}

.leaflet-container.is-dragging .lux-tooltip {
  box-shadow: none;
}

.map-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff3cf, var(--gold) 50%, #7e6230 100%);
  box-shadow: 0 0 12px rgba(200, 169, 106, 0.6), 0 0 2px rgba(0,0,0,0.6);
  position: relative;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 106, 0.35);
  animation: shimmer 3.5s ease-in-out infinite;
}

.hover-hitbox {
  background: transparent;
  border: none;
}

.map-marker {
  position: relative;
  pointer-events: auto;
}

.map-marker .map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.map-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.35); }
}

.lux-tooltip {
  background: rgba(25, 28, 24, 0.92);
  color: var(--ivory);
  border: 1px solid rgba(200, 169, 106, 0.5);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lux-tooltip .tooltip-title {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.lux-tooltip .tooltip-sub {
  font-size: 11px;
  color: var(--champagne);
}

.lux-tooltip::before {
  display: none;
}

.country-label,
.city-label {
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(25, 28, 24, 0.68);
  text-shadow: 0 6px 18px rgba(28, 24, 16, 0.18);
  pointer-events: none;
  white-space: nowrap;
  transform: translateY(-4px);
}

.leaflet-label {
  transform: translate(-50%, -50%);
}

.country-label {
  font-size: 12px;
}

.city-label {
  font-size: 11px;
  color: rgba(25, 28, 24, 0.82);
  background: rgba(244, 240, 232, 0.72);
  padding: 6px 10px;
  border: 1px solid rgba(200, 169, 106, 0.35);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(18, 16, 12, 0.12);
}

.transition-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  --x: 50vw;
  --y: 50vh;
  --r: 0vmax;
  background: radial-gradient(circle at var(--x) var(--y), rgba(220, 190, 130, 0.85) 0%, rgba(51, 46, 36, 0.95) 38%, rgba(12, 12, 10, 0.98) 70%);
  clip-path: circle(var(--r) at var(--x) var(--y));
  filter: blur(0px);
  will-change: opacity, clip-path;
}

.transition-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.18'/></svg>");
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

.transition-sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 244, 214, 0.45) 45%, transparent 70%);
  opacity: 0.2;
  filter: blur(12px);
  transform: translateX(-10%);
  mix-blend-mode: screen;
}

.transition-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
              linear-gradient(135deg, rgba(20, 18, 14, 0.55), rgba(20, 18, 14, 0.2));
  opacity: 0;
  mix-blend-mode: multiply;
}

.transition-dust {
  position: absolute;
  inset: -10%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='1'/></filter><rect width='220' height='220' filter='url(%23n)' opacity='0.22'/></svg>");
  opacity: 0;
  mix-blend-mode: soft-light;
  filter: blur(0.5px);
}

.transition-glint {
  position: absolute;
  inset: -30%;
  background: linear-gradient(135deg, transparent 35%, rgba(255, 248, 230, 0.65) 50%, transparent 65%);
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(10px);
  transform-origin: center;
}

.transition-orbit {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  border: 1px solid rgba(214, 186, 120, 0.5);
  box-shadow: 0 0 30px rgba(214, 186, 120, 0.25), inset 0 0 12px rgba(214, 186, 120, 0.2);
  opacity: 0;
  mix-blend-mode: screen;
}

.home-hero {
  position: absolute;
  left: 56px;
  bottom: 86px;
  z-index: 600;
  max-width: 520px;
}

.home-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep-green);
  margin: 0 0 12px;
}

.home-hero p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0;
}

.place-page {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.place-page main {
  flex: 1 0 auto;
}

.place-hero {
  padding: 140px 8vw 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.place-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--deep-green);
}

.place-hero .sub {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.place-hero .quote {
  margin-top: 26px;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  color: var(--charcoal);
  position: relative;
  padding-left: 28px;
}

.place-hero .quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 32px;
  color: var(--gold);
}

.content-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px clamp(24px, 6vw, 80px) 80px;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 10px;
  gap: 20px;
  grid-auto-flow: dense;
  align-items: start;
}

.gallery-masonry figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(17, 16, 12, 0.16);
  border: 1px solid rgba(200, 169, 106, 0.25);
  background: #efe9dc;
  transition: transform 0.8s var(--ease-luxe), box-shadow 0.8s var(--ease-luxe);
}

.gallery-masonry figure:nth-child(3n) {
  transform: translateX(6px);
}

.gallery-masonry figure:nth-child(4n) {
  transform: translateX(-5px);
}

.gallery-masonry figure:nth-child(5n) {
  transform: translateX(4px);
}

.gallery-masonry img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform 0.8s var(--ease-luxe), filter 0.8s var(--ease-luxe);
  filter: saturate(0.95);
}

.gallery-masonry figure:hover {
  box-shadow: 0 22px 48px rgba(17, 16, 12, 0.2);
  z-index: 2;
}

.gallery-masonry figure:hover img {
  transform: scale(1.02);
  filter: saturate(1.05);
}

.thoughts {
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--charcoal);
}

.thoughts p {
  margin-bottom: 20px;
}

.thoughts p.dropcap::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-size: 54px;
  float: left;
  line-height: 0.9;
  padding-right: 10px;
  color: var(--gold-strong);
}

.divider {
  height: 1px;
  width: 120px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 36px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.995);
  filter: blur(4px);
  transition: opacity 1s var(--ease-luxe), transform 1.1s var(--ease-luxe), filter 1.1s var(--ease-luxe);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 106, 0.5);
  color: var(--deep-green);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease-luxe), box-shadow 0.5s var(--ease-luxe), background 0.5s var(--ease-luxe);
  background: rgba(247, 244, 238, 0.6);
  backdrop-filter: blur(6px);
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(16, 16, 14, 0.2);
  background: rgba(247, 244, 238, 0.95);
}

.tag-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  border: 1px solid rgba(200, 169, 106, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.notice {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(200, 169, 106, 0.3);
  border-radius: 14px;
  color: var(--charcoal);
}

@media (max-width: 980px) {
  .site-header { padding: 20px 24px; }
  .site-footer { padding: 0 24px; }
  .home-hero { left: 24px; bottom: 70px; }
  .place-page .site-footer { padding: 0 24px 28px; }
}

@media (max-width: 700px) {
  .nav { display: none; }
  .home-hero h1 { font-size: 30px; }
  body::before { opacity: 0.25; }
  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }
  .gallery-masonry figure {
    transform: none !important;
  }
  .place-hero { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .transition-layer { display: none !important; }
}
