/* ============ RESET & BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

:root {
  /* Istrian earth palette */
  --stone:     #d6cdb8;   /* limestone wall */
  --stone-light: #ede5d1;
  --stone-dark: #a89a7f;
  --cream:     #f7f1e3;
  --paper:     #fcf8ee;
  --olive:     #5a6b3e;   /* olive leaves */
  --olive-dark:#3d4a2a;
  --terracotta:#a8553a;   /* roof tiles */
  --terracotta-light: #c4694a;
  --ink:       #2b2620;   /* dark earth */
  --ink-soft:  #4a4138;
  --gold:      #b8924a;
  --gold-light: #d4b06e;

  --shadow-sm: 0 2px 8px rgba(43, 38, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 38, 32, 0.10);
  --shadow-lg: 0 20px 50px rgba(43, 38, 32, 0.15);
  --shadow-xl: 0 30px 80px rgba(43, 38, 32, 0.20);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 28px;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

/* Decorative noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.scrolled {
  background: rgba(252, 248, 238, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 38, 32, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 12px 40px;
}

.logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--paper);
  transition: color 0.4s;
}
.site-header.scrolled .logo { color: var(--ink); }
.logo em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.site-header.scrolled .logo em { color: var(--terracotta); }

.header-nav {
  display: flex; gap: 32px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.4s;
}
.site-header.scrolled .header-nav { color: var(--ink-soft); }
.header-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.header-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: currentColor;
  transition: width 0.3s;
}
.header-nav a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 18px; }

.header-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.header-pill:hover { transform: translateY(-1px); background: var(--terracotta-light); }
.header-pill.hidden { display: none; }
.header-pill-sep { opacity: 0.5; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(252, 248, 238, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: var(--paper);
  transition: all 0.3s;
}
.site-header.scrolled .lang-trigger {
  color: var(--ink);
  border-color: rgba(43, 38, 32, 0.2);
}
.lang-trigger:hover { background: rgba(252, 248, 238, 0.1); }
.site-header.scrolled .lang-trigger:hover { background: rgba(43, 38, 32, 0.05); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: 6px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s;
}
.lang-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s;
}
.lang-menu button:hover { background: var(--stone-light); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0.65) 0%, rgba(20, 17, 14, 0.6) 40%, rgba(20, 17, 14, 0.85) 100%),
    radial-gradient(ellipse at center, rgba(20, 17, 14, 0.35) 0%, rgba(20, 17, 14, 0.6) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 0 24px;
  z-index: 1;
}

.hero-tagline {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0.9;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-tagline::before,
.hero-tagline::after {
  content: ''; width: 40px; height: 1px;
  background: var(--gold-light);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 140px);
  line-height: 0.9;
  font-weight: 400;
  margin-bottom: 0;
  letter-spacing: -2px;
}
.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}

.hero-ornament {
  margin: 28px 0;
  font-size: 24px;
  color: var(--gold-light);
  letter-spacing: 8px;
}

.hero-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
  opacity: 0.92;
  font-weight: 300;
}

.hero-features {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
}
.hero-feat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(252, 248, 238, 0.08);
  border: 1px solid rgba(252, 248, 238, 0.2);
  border-radius: 999px;
  font-size: 13px;
  backdrop-filter: blur(8px);
}
.hero-feat::before {
  content: '●';
  color: var(--gold-light);
  font-size: 8px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  animation: scrollHint 2.5s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ============ STATS BAR ============ */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  position: relative;
}
.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--gold);
}
.stat { padding: 0 16px; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 20%;
  width: 1px; height: 60%;
  background: rgba(252, 248, 238, 0.1);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ============ SECTION COMMON ============ */
section { padding: 120px 40px; }
.container { max-width: 1280px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--ink);
}
.section-subtitle {
  font-size: 17px;
  max-width: 600px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.section-ornament {
  color: var(--gold);
  font-size: 20px;
  margin: 24px 0 32px;
  letter-spacing: 8px;
}

/* ============ STORY SECTION ============ */
.story {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.story::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184, 146, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.story-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.story-text strong { color: var(--ink); font-weight: 600; }

.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(43, 38, 32, 0.1);
}
.amenity {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.amenity-icon {
  font-size: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--stone-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.story-image-frame {
  position: relative;
  height: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-image-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.story-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============ GALLERY ============ */
.gallery { background: var(--paper); }
.gallery-preview {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 12px;
  margin-top: 48px;
}
.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.4s ease;
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-tile:hover img { transform: scale(1.08); }
.gallery-tile:hover { box-shadow: var(--shadow-lg); }
.gallery-tile-big {
  grid-row: span 2;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 38, 32, 0.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--paper);
  font-family: var(--serif);
  text-align: center;
  transition: background 0.3s;
}
.gallery-overlay span:first-child { font-size: 36px; }
.gallery-overlay-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
}
.gallery-tile-overlay:hover .gallery-overlay { background: rgba(43, 38, 32, 0.75); }

/* ============ APARTMENTS ============ */
.apartments { background: var(--cream); }
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.apt-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex; flex-direction: column;
  border: 2px solid transparent;
}
.apt-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.apt-card.selected {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(168, 85, 58, 0.15), var(--shadow-md);
}

.apt-image-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  cursor: pointer;
}
.apt-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.apt-card:hover .apt-image { transform: scale(1.08); }

.apt-image-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(43, 38, 32, 0.7) 100%);
}

.apt-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(252, 248, 238, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--serif);
}
.apt-badge-sub {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-family: var(--sans);
  font-weight: 500;
}
.apt-badge-num {
  font-size: 18px;
  color: var(--ink);
}

.apt-check {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.3s;
}
.apt-card.selected .apt-check { opacity: 1; transform: scale(1); }

.apt-image-title {
  position: absolute;
  bottom: 16px; left: 16px;
  color: var(--paper);
}
.apt-image-title-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.apt-image-title-meta {
  font-size: 12px;
  opacity: 0.9;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.apt-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.apt-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: var(--stone-light);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.apt-meta-row > div {
  display: flex; align-items: center; gap: 4px;
  justify-content: center;
}
.apt-meta-icon { font-size: 14px; }

.apt-price-block {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(43, 38, 32, 0.08);
  margin-bottom: 16px;
}
.apt-price-direct { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.apt-price-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  font-weight: 500;
}
.apt-price-label {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.apt-price-airbnb {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.apt-price-strike {
  font-size: 13px;
  color: var(--stone-dark);
  text-decoration: line-through;
}
.apt-price-save {
  font-size: 11px;
  background: var(--olive);
  color: var(--cream);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.apt-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.apt-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px;
}
.apt-tag {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--stone-light);
  border-radius: 999px;
  color: var(--ink-soft);
  letter-spacing: 0.3px;
}

.apt-rooms {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.apt-rooms.open { max-height: 400px; }
.apt-rooms-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
  padding-top: 8px;
}
.apt-rooms-grid {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.apt-room {
  padding: 10px 12px;
  background: var(--stone-light);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.apt-room-floor {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.apt-room-detail {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.apt-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  margin-bottom: 16px;
  border-top: 1px solid rgba(43, 38, 32, 0.06);
}
.apt-details-toggle {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px;
  color: var(--terracotta);
  letter-spacing: 0.5px;
  font-weight: 500;
  padding: 6px 0;
}
.apt-details-toggle:hover { text-decoration: underline; }
.apt-status {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.apt-card.selected .apt-status { color: var(--terracotta); font-weight: 600; }

.apt-action-buttons {
  display: flex;
  margin-top: auto;
}
.apt-btn {
  flex: 1;
  padding: 14px 16px;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.apt-btn-airbnb {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.apt-btn-airbnb:hover { background: var(--ink); color: var(--cream); }
.apt-btn-icon { font-size: 14px; }

/* ============ PRICING TABLE ============ */
.pricing { background: var(--ink); color: var(--paper); }
.pricing .section-label { color: var(--gold-light); }
.pricing .section-title { color: var(--paper); }
.pricing .section-subtitle { color: rgba(252, 248, 238, 0.7); }
.pricing .section-ornament { color: var(--gold); }

.pricing-table-wrap {
  margin-top: 48px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(252, 248, 238, 0.08);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 700px;
}
.pricing-table thead {
  background: rgba(252, 248, 238, 0.04);
}
.pricing-table th {
  padding: 18px 20px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(252, 248, 238, 0.08);
}
.pricing-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(252, 248, 238, 0.06);
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tr:hover { background: rgba(252, 248, 238, 0.02); }

.pricing-apt-name { display: flex; align-items: center; gap: 14px; }
.pricing-apt-num {
  width: 32px; height: 32px;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  flex-shrink: 0;
}
.pricing-star {
  background: var(--gold) !important;
}
.pricing-apt-info { display: flex; flex-direction: column; }
.pricing-apt-title { font-weight: 500; font-size: 15px; }
.pricing-apt-sub { font-size: 12px; opacity: 0.6; }

.full-row {
  background: rgba(184, 146, 74, 0.08) !important;
}
.full-row td { font-weight: 600; }

.meta-row { background: rgba(252, 248, 238, 0.02); }
.meta-row td { padding: 14px 20px; font-size: 12px; }
.demand-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.demand-low { background: rgba(90, 107, 62, 0.3); color: #b8c995; }
.demand-med { background: rgba(184, 146, 74, 0.3); color: var(--gold-light); }
.demand-high { background: rgba(168, 85, 58, 0.4); color: #e29b7e; }

/* Junij — sezonska akcija (dodatnih 10% off) */
.pricing-table th.sale-col,
.pricing-table td.sale-col {
  background: linear-gradient(180deg, rgba(212, 176, 110, 0.18), rgba(184, 146, 74, 0.08));
  border-left: 1px solid rgba(212, 176, 110, 0.3);
  border-right: 1px solid rgba(212, 176, 110, 0.3);
  position: relative;
  color: var(--gold-light);
  font-weight: 600;
}
.pricing-table th.sale-col {
  padding-top: 32px;
}
.sale-badge {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.month-btn.sale-month {
  position: relative;
  padding-top: 22px;
  border-color: var(--terracotta);
}
.month-btn.sale-month.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.month-btn-sale {
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: var(--cream);
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}
.month-btn.sale-month.active .month-btn-sale {
  background: var(--cream);
  color: var(--terracotta);
}

/* ============ LOCATION ============ */
.location { background: var(--cream); }
.location-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.location-info .section-title em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--terracotta);
  font-size: 0.6em;
  margin-top: 8px;
}
.location-pin {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  background: var(--paper);
  border-radius: var(--radius-md);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
.location-pin-icon { font-size: 24px; }
.location-pin-text strong { display: block; font-size: 16px; margin-bottom: 4px; }
.location-pin-text span { font-size: 13px; color: var(--ink-soft); }

.location-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.location-btn {
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.location-btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.location-btn-primary:hover { background: var(--ink-soft); }
.location-btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.location-btn-secondary:hover { background: var(--ink); color: var(--paper); }

.location-map {
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--stone-dark);
}
.location-map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: sepia(0.15) saturate(0.95);
}

.nearby-tabs {
  display: flex; gap: 4px;
  margin-bottom: 32px;
  padding: 4px;
  background: var(--paper);
  border-radius: var(--radius-md);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.tab {
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  transition: all 0.2s;
}
.tab.active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.nearby-card {
  padding: 24px;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border-top: 3px solid var(--terracotta);
}
.nearby-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.nearby-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.nearby-name-row { display: flex; gap: 8px; align-items: center; }
.nearby-icon { font-size: 14px; }
.nearby-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.nearby-dist {
  font-size: 11px;
  letter-spacing: 1px;
  background: var(--stone-light);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}
.nearby-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}
.nearby-time {
  font-size: 12px;
  color: var(--terracotta);
  letter-spacing: 0.5px;
}

/* ============ BOOKING ============ */
.booking { background: var(--paper); }
.booking-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  margin-top: 56px;
}
.booking-controls {
  background: var(--cream);
  padding: 36px;
  border-radius: var(--radius-md);
}
.booking-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
  font-weight: 500;
}
.month-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.month-btn {
  padding: 12px 6px;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.month-btn:hover { border-color: var(--stone-dark); }
.month-btn.active {
  background: var(--ink);
  color: var(--paper);
}
.month-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-style: italic;
}

.nights-slider {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.nights-row {
  display: flex; justify-content: space-between; align-items: center;
}
.nights-value {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--terracotta);
  font-weight: 500;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--stone);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--terracotta);
  border: 3px solid var(--paper);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--terracotta);
  border: 3px solid var(--paper);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.nights-markers {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--stone-dark);
  letter-spacing: 0.5px;
}

.selected-list {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  min-height: 80px;
}
.empty-msg {
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 14px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--stone-dark);
}
.selected-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--terracotta);
}
.selected-item-info { display: flex; align-items: center; gap: 12px; }
.selected-item-num {
  width: 28px; height: 28px;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
}
.selected-item-name { font-weight: 500; font-size: 14px; }
.selected-item-sub { font-size: 12px; color: var(--ink-soft); }
.selected-item-remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 14px;
  transition: all 0.2s;
}
.selected-item-remove:hover { background: var(--terracotta); color: var(--cream); }
.package-note {
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Summary card */
.booking-summary {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 32px;
  position: sticky; top: 100px;
  align-self: flex-start;
  box-shadow: var(--shadow-lg);
}
.booking-summary h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 24px;
  font-weight: 500;
  color: var(--paper);
}
.booking-summary h3::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: var(--gold);
  margin-top: 12px;
}
.summary-empty {
  font-style: italic;
  font-size: 14px;
  color: rgba(252, 248, 238, 0.5);
  padding: 32px 0;
  text-align: center;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.summary-row.small { font-size: 12px; opacity: 0.7; padding: 4px 0; }
.summary-label { color: rgba(252, 248, 238, 0.7); }
.summary-value { color: var(--paper); font-weight: 500; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0 16px;
  margin-top: 12px;
  border-top: 1px solid rgba(252, 248, 238, 0.15);
}
.summary-total-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
}
.summary-total-month {
  font-size: 12px;
  color: var(--gold-light);
  margin-top: 2px;
}
.summary-total-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--gold-light);
  font-weight: 500;
}
.summary-airbnb-note {
  padding: 12px 14px;
  background: rgba(184, 146, 74, 0.1);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  font-style: italic;
  color: rgba(252, 248, 238, 0.75);
  line-height: 1.5;
}

.book-actions {
  margin-top: 24px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.book-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 600;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.book-btn-primary {
  background: var(--terracotta);
  color: var(--cream);
}
.book-btn-primary:hover:not(:disabled) {
  background: var(--terracotta-light);
}
.book-btn-primary:disabled {
  background: rgba(252, 248, 238, 0.1);
  color: rgba(252, 248, 238, 0.4);
  cursor: not-allowed;
}

.book-included {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(252, 248, 238, 0.1);
}
.book-included-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(252, 248, 238, 0.65);
  margin-bottom: 14px;
}
.book-included ul { list-style: none; }
.book-included li {
  font-size: 13px;
  color: rgba(252, 248, 238, 0.8);
  padding: 4px 0;
  display: flex; align-items: center; gap: 10px;
}
.book-included li::before {
  content: '✓';
  color: var(--gold-light);
  font-weight: 700;
}
.book-deposit {
  margin-top: 16px;
  padding: 12px;
  background: rgba(252, 248, 238, 0.05);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  color: rgba(252, 248, 238, 0.7);
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 40px 32px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: var(--paper); font-size: 30px; }
.footer-brand .logo em { color: var(--gold-light); }
.footer-tagline {
  font-size: 14px;
  color: rgba(252, 248, 238, 0.65);
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.7;
}
.footer-stars {
  margin-top: 24px;
  font-size: 14px;
  color: var(--gold-light);
}
.footer-stars span { color: var(--paper); opacity: 0.8; }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li {
  font-size: 14px;
  color: rgba(252, 248, 238, 0.65);
  padding: 6px 0;
}

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(252, 248, 238, 0.08);
  font-size: 12px;
  color: rgba(252, 248, 238, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom > span:first-child { flex: 1; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a {
  color: rgba(252, 248, 238, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gold-light); }
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 17, 14, 0.97);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}
.lb-close, .lb-nav {
  position: absolute;
  color: var(--paper);
  background: rgba(252, 248, 238, 0.1);
  border: 1px solid rgba(252, 248, 238, 0.2);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}
.lb-close { top: 32px; right: 32px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 32px; }
.lb-next { right: 32px; }
.lb-close:hover, .lb-nav:hover { background: rgba(252, 248, 238, 0.2); }
.lb-counter {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 2px;
  background: rgba(43, 38, 32, 0.6);
  padding: 8px 16px;
  border-radius: 999px;
}


/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-image-frame { height: 400px; }
  .location-hero { grid-template-columns: 1fr; gap: 32px; }
  .location-map { height: 360px; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { position: relative; top: 0; }
}

@media (max-width: 768px) {
  section { padding: 80px 24px; }
  .site-header { padding: 14px 20px; }
  .site-header.scrolled { padding: 10px 20px; }
  .header-nav { display: none; }
  .logo { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 40px 24px; gap: 32px 16px; }
  .stat:nth-child(odd)::before, .stat:nth-child(even)::before { display: none; }
  .hero { min-height: 85vh; }
  .hero-features { gap: 8px; }
  .hero-feat { font-size: 11px; padding: 6px 12px; }
  .gallery-preview {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-tile-big { grid-column: span 2; grid-row: span 1; }
  .apartments-grid { grid-template-columns: 1fr; gap: 20px; }
  .amenities { grid-template-columns: 1fr; }
  .booking-controls { padding: 24px; }
  .month-buttons { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
