/* ═══════════════════════════════════════════════════════════════
   R-JOKI — Main Stylesheet
   ═══════════════════════════════════════════════════════════════

   HOW TO EDIT:
   - Colors:    Change CSS variables below in :root
   - Fonts:     Change --ff-display and --ff-body variables,
                then update the Google Fonts <link> in index.html
   - Spacing:   Change --max (max width) and --nav-h (nav height)
   - Radius:    Change --r for border-radius globally

   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Backgrounds */
  --bg:         #FAFAF7;
  --bg-warm:    #F2EDE5;
  --bg-dark:    #1C1C1A;
  --bg-forest:  #2A3728;
  --bg-lake:    #1E2D3D;

  /* Text */
  --text:       #1C1C1A;
  --text-dim:   #6E6A62;
  --text-inv:   #FAFAF7;

  /* Accent colors */
  --accent:     #8C7351;
  --accent-h:   #6F5B3F;
  --gold:       #C9A96E;
  --green:      #4A7050;
  --blue:       #3A6B8C;

  /* UI */
  --border:     #DDD7CC;
  --card:       #FFFFFF;

  /* Fonts — change these + update Google Fonts link in index.html */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Source Sans 3', -apple-system, sans-serif;

  /* Layout */
  --max:        1140px;
  --nav-h:      68px;
  --r:          8px;
}


/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }


/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250,250,247,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: .3s;
}
.nav.scrolled { box-shadow: 0 1px 16px rgba(0,0,0,.07); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 40px; width: auto; }
.nav-logo-text {
  font-family: var(--ff-display); font-size: 1.4rem;
  font-weight: 700; letter-spacing: .02em;
}
.nav-logo-text span { color: var(--accent); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link {
  padding: 8px 16px; font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-dim); border-radius: 6px; transition: .2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-warm); }
.nav-link.active { color: var(--accent); background: rgba(140,115,81,.08); }
.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.lang-btns {
  display: flex; gap: 2px; background: var(--bg-warm);
  border-radius: 5px; overflow: hidden; margin-left: 8px;
}
.lang-btns button {
  border: none; padding: 5px 10px; font-size: .7rem; font-weight: 700;
  font-family: var(--ff-body); cursor: pointer; background: transparent;
  color: var(--text-dim); letter-spacing: .06em; transition: .2s;
}
.lang-btns button.on { background: var(--accent); color: #fff; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.burger svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 2; }


/* ═══ HERO ═══ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  background: var(--bg-dark); position: relative;
  overflow: hidden; padding: var(--nav-h) 24px 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/shared/hero-bg.jpg') center/cover;
  opacity: .2;
}
.hero-grad {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(28,28,26,.3) 0%, rgba(28,28,26,.85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-logo-placeholder {
  width: 120px; height: 120px; margin: 0 auto 28px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); backdrop-filter: blur(8px);
}
.hero-logo-placeholder span {
  font-family: var(--ff-display); font-size: 2.4rem;
  font-weight: 700; color: var(--gold);
}
/* Hide placeholder when real logo image is present */
.hero-logo-placeholder img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }
.hero-logo-placeholder:has(img) span { display: none; }

.hero h1 {
  font-family: var(--ff-display); font-size: clamp(2.4rem,5vw,3.6rem);
  font-weight: 400; color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.6);
  max-width: 500px; margin: 0 auto 48px;
  font-weight: 300; line-height: 1.8;
}
.hero-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; max-width: 640px; margin: 0 auto;
}
.hero-card {
  border-radius: var(--r); overflow: hidden; position: relative;
  cursor: pointer; transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(255,255,255,.1);
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.hero-card-img {
  height: 200px; background-size: cover;
  background-position: center; position: relative;
}
.hero-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 60%);
}
.hero-card-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; z-index: 2;
}
.hero-card-tag {
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 4px;
}
.hero-card-name {
  font-family: var(--ff-display); font-size: 1.3rem;
  color: #fff; font-weight: 600; margin-bottom: 4px;
}
.hero-card-desc { font-size: .8rem; color: rgba(255,255,255,.6); font-weight: 300; }


/* ═══ SECTION SHARED ═══ */
.sec { padding: 90px 0; }
.sec-tag {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.sec-title {
  font-family: var(--ff-display); font-size: clamp(1.8rem,3.5vw,2.6rem);
  font-weight: 400; line-height: 1.25; margin-bottom: 16px;
}
.sec-title em { font-style: italic; color: var(--accent); }
.sec-lead {
  font-size: 1rem; color: var(--text-dim); max-width: 620px;
  line-height: 1.8; margin-bottom: 40px; font-weight: 300;
}


/* ═══ HISTORY BLOCKS ═══ */
.history {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start; margin-bottom: 64px;
}
.history-text h3 {
  font-family: var(--ff-display); font-size: 1.4rem;
  font-weight: 600; margin-bottom: 12px;
}
.history-text p {
  color: var(--text-dim); font-size: .92rem;
  line-height: 1.8; margin-bottom: 16px;
}
.history-text p:last-child { margin-bottom: 0; }
.history-img {
  border-radius: var(--r); overflow: hidden;
  height: 100%; min-height: 300px;
  background-size: cover; background-position: center;
  position: relative;
}
.history-img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);
  font-size: .7rem; color: rgba(255,255,255,.7); font-style: italic;
}
.history-highlights {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 32px;
}
.history-hl {
  padding: 16px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--card); text-align: center;
}
.history-hl-icon { font-size: 1.4rem; margin-bottom: 8px; }
.history-hl-text { font-size: .8rem; color: var(--text-dim); line-height: 1.5; }
.history-hl-text strong {
  display: block; color: var(--text);
  font-size: .85rem; margin-bottom: 2px;
}


/* ═══ APARTMENTS ═══ */
.apt-sec { background: var(--bg-warm); }
.apts { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.apt {
  background: var(--card); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); transition: transform .3s, box-shadow .3s;
}
.apt:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,.07); }
.apt-photo {
  height: 210px; background-size: cover;
  background-position: center; position: relative;
}
.apt-label {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  color: #fff; font-size: .65rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
}
.apt-star {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: var(--bg-dark);
  font-size: .72rem; font-weight: 700;
  padding: 3px 7px; border-radius: 4px;
}
.apt-body { padding: 20px; }
.apt-name {
  font-family: var(--ff-display); font-size: 1.2rem;
  font-weight: 600; margin-bottom: 6px;
}
.apt-desc {
  color: var(--text-dim); font-size: .85rem;
  margin-bottom: 14px; line-height: 1.6;
}
.apt-feats {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.apt-feat {
  font-size: .75rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 4px;
}
.apt-feat::before { content: '✓'; color: var(--green); font-weight: 700; font-size: .7rem; }
.apt-btns { display: flex; gap: 8px; }
.apt-btn {
  flex: 1; text-align: center; padding: 9px 12px;
  border-radius: 5px; font-size: .78rem; font-weight: 600;
  transition: .2s; border: 1.5px solid var(--border);
}
.apt-btn.bk { background: #003580; color: #fff; border-color: #003580; }
.apt-btn.bk:hover { background: #00264D; }
.apt-btn.ab { background: #FF5A5F; color: #fff; border-color: #FF5A5F; }
.apt-btn.ab:hover { background: #E0484D; }


/* ═══ AMENITIES STRIP ═══ */
.amenities-strip {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  padding: 32px 0; margin: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.am-item {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: .8rem;
  color: var(--text-dim); font-weight: 500;
}
.am-item span { font-size: 1.1rem; }


/* ═══ ATTRACTIONS ═══ */
.attr-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.attr {
  background: var(--card); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); transition: transform .3s;
}
.attr:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.attr-img { height: 160px; background-size: cover; background-position: center; }
.attr-body { padding: 16px; }
.attr-body h3 {
  font-family: var(--ff-display); font-size: 1.05rem;
  font-weight: 600; margin-bottom: 6px;
}
.attr-body p { font-size: .8rem; color: var(--text-dim); line-height: 1.6; }
.attr-dist {
  display: inline-block; margin-top: 8px; font-size: .7rem;
  font-weight: 600; color: var(--green); letter-spacing: .03em;
}


/* ═══ MAP ═══ */
.map-block { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); margin-top: 48px; }
.map-block iframe { width: 100%; height: 380px; border: none; }


/* ═══ REVIEWS ═══ */
.reviews-sec { background: var(--bg-dark); color: var(--text-inv); }
.reviews-sec .sec-tag { color: var(--gold); }
.reviews-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.reviews-score {
  font-family: var(--ff-display); font-size: 3.2rem;
  font-weight: 700; color: var(--gold);
}
.reviews-meta { font-size: .85rem; color: rgba(255,255,255,.5); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-bottom: 36px;
}
.rev {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r); padding: 24px;
}
.rev-stars { color: var(--gold); font-size: .8rem; margin-bottom: 10px; letter-spacing: 2px; }
.rev-text {
  font-size: .88rem; color: rgba(255,255,255,.75);
  line-height: 1.7; margin-bottom: 14px; font-style: italic;
}
.rev-author { font-size: .75rem; color: rgba(255,255,255,.4); }
.reviews-cta { text-align: center; }
.reviews-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; color: #fff; font-size: .85rem;
  font-weight: 600; transition: .2s;
}
.reviews-cta a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }


/* ═══ KESÄKYLÄ ═══ */
.kesakyla-sec {
  background: var(--bg-lake); color: var(--text-inv);
  position: relative; overflow: hidden;
}
.kesakyla-sec .sec-tag { color: var(--gold); }
.kf {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px; background: rgba(255,255,255,.05);
  border-radius: 6px; border: 1px solid rgba(255,255,255,.07);
}
.kf-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.kf-text { font-size: .82rem; color: rgba(255,255,255,.7); }
.kf-text strong { display: block; color: #fff; margin-bottom: 2px; font-size: .85rem; }
.coming-badge {
  display: inline-block; background: var(--gold); color: var(--bg-dark);
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 4px; margin-bottom: 14px;
}

/* ── Kesäkylä: hero block ── */
.kes-hero {
  position: relative; border-radius: var(--r); overflow: hidden;
  margin-bottom: 40px; min-height: 300px;
}
.kes-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.kes-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,.68));
}
.kes-hero-content {
  position: relative; z-index: 1; padding: 52px 44px 48px;
}
.kes-hero-content .sec-tag { color: var(--gold); margin-bottom: 10px; }
.kes-hero-content .sec-title { color: #fff; margin-top: 8px; margin-bottom: 0; }
.kes-overview {
  color: rgba(255,255,255,.75); font-size: .92rem;
  line-height: 1.7; margin-top: 12px; max-width: 580px;
}

/* ── Kesäkylä: tabs ── */
.kes-tabs {
  display: flex; gap: 0; margin-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.kes-tab {
  padding: 11px 24px; background: transparent;
  color: rgba(255,255,255,.5); border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--ff-body); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: .2s; margin-bottom: -1px;
  letter-spacing: .02em;
}
.kes-tab:hover { color: rgba(255,255,255,.8); }
.kes-tab.on { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Kesäkylä: panels ── */
.kes-panel { animation: kesFadeIn .2s ease; }
@keyframes kesFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Kesäkylä: building cards ── */
.kes-buildings {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin: 32px 0;
}
.kes-building {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.kes-building-header { display: flex; flex-direction: column; gap: 5px; }
.kes-building-header h3 {
  font-family: var(--ff-display); font-size: 1.25rem; color: #fff; margin: 0;
}
.kes-room-count {
  font-size: .72rem; color: var(--gold);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.kes-building-desc {
  font-size: .84rem; color: rgba(255,255,255,.6);
  line-height: 1.65; margin: 0; flex-grow: 1;
}
.kes-coming-btn {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.1); border-radius: 5px;
  font-family: var(--ff-body); font-size: .8rem; font-weight: 600;
  cursor: not-allowed; letter-spacing: .03em; margin-top: 4px;
}

/* ── Kesäkylä: facilities ── */
.kes-facilities { margin-top: 4px; }
.kes-fac-title {
  font-family: var(--ff-display); font-size: 1.05rem;
  color: rgba(255,255,255,.65); margin-bottom: 14px; font-weight: 400;
}
.kes-fac-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}

/* ── Kesäkylä: group / complex panel ── */
.kes-group {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; padding: 40px 0;
}
.kes-group-text h3 {
  font-family: var(--ff-display); font-size: 1.6rem; color: #fff;
  margin-bottom: 14px;
}
.kes-group-text p {
  color: rgba(255,255,255,.7); font-size: .92rem;
  line-height: 1.8; margin-bottom: 14px;
}
.kes-group-stats {
  display: flex; gap: 36px; margin: 28px 0 20px;
}
.kes-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.kes-stat-num {
  font-family: var(--ff-display); font-size: 2.1rem;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.kes-stat > span:last-child {
  font-size: .7rem; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .06em;
}
.kes-group-uses {
  font-size: .8rem; color: rgba(255,255,255,.4); letter-spacing: .02em;
}
.kes-group-btn {
  display: inline-block; padding: 12px 28px;
  background: var(--gold); color: var(--bg-dark);
  font-family: var(--ff-body); font-size: .9rem; font-weight: 700;
  border-radius: 5px; text-decoration: none; transition: opacity .2s;
  margin-top: 18px;
}
.kes-group-btn:hover { opacity: .88; }
.kes-group-img {
  border-radius: var(--r); height: 420px;
  background-size: cover; background-position: center;
}


/* ═══ BOOKING ═══ */
.booking-sec { background: var(--bg-warm); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.booking-form {
  background: var(--card); padding: 32px;
  border-radius: var(--r); border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fg { margin-bottom: 14px; }
.fg label {
  display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .03em; margin-bottom: 5px; color: var(--text);
}
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 5px;
  font-family: var(--ff-body); font-size: .88rem;
  background: var(--bg); transition: border-color .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none; border-color: var(--accent);
}
.fg textarea { resize: vertical; min-height: 70px; }
.form-submit {
  width: 100%; padding: 13px; background: var(--accent);
  color: #fff; border: none; border-radius: 5px;
  font-family: var(--ff-body); font-size: .88rem;
  font-weight: 600; cursor: pointer; transition: .2s;
}
.form-submit:hover { background: var(--accent-h); }
.form-status {
  margin-top: 12px; padding: 10px; border-radius: 5px;
  font-size: .82rem; font-weight: 500; display: none;
}
.form-status.success { display: block; background: #e8f5e9; color: #2e7d32; }
.form-status.error   { display: block; background: #fbe9e7; color: #c62828; }
.booking-side h3 {
  font-family: var(--ff-display); font-size: 1.3rem;
  font-weight: 600; margin-bottom: 12px;
}
.booking-side p { color: var(--text-dim); margin-bottom: 20px; line-height: 1.7; font-size: .9rem; }
.platform-links { display: flex; flex-direction: column; gap: 10px; }
.pl {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 6px;
  border: 1.5px solid var(--border); background: var(--card); transition: .2s;
}
.pl:hover { border-color: var(--accent); transform: translateX(3px); }
.pl-icon { font-size: 1.3rem; flex-shrink: 0; }
.pl-text { font-weight: 600; font-size: .85rem; }
.pl-text span { display: block; font-weight: 400; font-size: .72rem; color: var(--text-dim); }


/* ═══ RULES ═══ */
.rules-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.rule {
  padding: 24px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--card);
}
.rule h3 {
  font-family: var(--ff-display); font-size: 1.1rem;
  font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.rule ul { list-style: none; }
.rule li {
  padding: 7px 0; font-size: .82rem; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-left: 14px; position: relative; line-height: 1.55;
}
.rule li:last-child { border: none; }
.rule li::before {
  content: '·'; position: absolute; left: 0;
  font-weight: 700; color: var(--accent);
}


/* ═══ FOOTER ═══ */
.footer { background: var(--bg-dark); color: var(--text-inv); padding: 56px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--ff-display); font-size: 1.3rem;
  font-weight: 700; margin-bottom: 10px;
}
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.7; }
.footer-col h4 {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-weight: 700;
}
.footer-col a {
  display: block; font-size: .82rem;
  color: rgba(255,255,255,.55); padding: 3px 0; transition: .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px; display: flex; justify-content: space-between;
  font-size: .72rem; color: rgba(255,255,255,.3);
}
.footer-bottom a {
  color: rgba(255,255,255,.3); margin-left: 16px; transition: .2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,.6); }


/* ═══ GDPR BANNER ═══ */
.gdpr {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-dark); color: var(--text-inv);
  padding: 14px 20px; display: flex; align-items: center;
  justify-content: center; gap: 14px; font-size: .82rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.gdpr.hide { display: none; }
.gdpr a { color: var(--gold); text-decoration: underline; }
.gdpr-btn {
  padding: 7px 18px; border-radius: 4px; border: none;
  font-family: var(--ff-body); font-size: .78rem;
  font-weight: 600; cursor: pointer; transition: .2s;
}
.gdpr-y { background: var(--gold); color: var(--bg-dark); }
.gdpr-n {
  background: transparent; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.15);
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h);
    left: 0; right: 0; background: var(--bg);
    padding: 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .hero-cards, .history, .booking-grid { grid-template-columns: 1fr; }
  .apts, .reviews-grid, .rules-grid, .attr-grid { grid-template-columns: 1fr; }
  .history-highlights { grid-template-columns: 1fr 1fr; }
  .amenities-strip { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-card-img { height: 160px; }
  .kes-buildings { grid-template-columns: 1fr; }
  .kes-fac-grid { grid-template-columns: 1fr 1fr; }
  .kes-group { grid-template-columns: 1fr; }
  .kes-group-img { height: 240px; order: -1; }
  .kes-hero-content { padding: 36px 28px 32px; }
}

@media (max-width: 600px) {
  .history-highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .apt-btns { flex-direction: column; }
  .hero-cards { gap: 12px; }
  .kes-fac-grid { grid-template-columns: 1fr 1fr; }
  .kes-group-stats { gap: 20px; }
}


/* ═══ GALLERY ════════════════════════════════════════════════════════

   Gallery strip  — horizontal thumbnail row inside apartment cards
   Gallery grid   — responsive photo grid for territory sections
   Lightbox       — full-screen image viewer with prev/next nav

   ═══════════════════════════════════════════════════════════════════ */

/* ─── Territory section wrapper ─── */
.territory-gallery {
  margin-bottom: 40px;
}
.gallery-heading {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.territory-gallery--dark .gallery-heading { color: rgba(255,255,255,.75); }
.territory-gallery--dark .gal-empty {
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.4);
}
.territory-gallery--dark .gal-empty-icon { opacity: .4; }

/* ─── Grid (territory sections) ─── */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.gal-grid .gal-thumb {
  height: 180px;
  border-radius: var(--r);
  flex-shrink: unset;
  width: auto;
}

/* ─── Strip (apartment cards) ─── */
.gal-strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.gal-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.gal-thumbs::-webkit-scrollbar { height: 4px; }
.gal-thumbs::-webkit-scrollbar-track { background: transparent; }
.gal-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ─── Shared thumbnail ─── */
.gal-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  transition: opacity .2s, transform .2s;
}
.gal-thumb:hover { opacity: .85; transform: scale(1.04); }

.gal-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 5px;
}

/* ─── Floorplan button ─── */
.gal-fp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 6px 14px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-family: var(--ff-body);
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: .2s;
}
.gal-fp-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Empty state ─── */
.gal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  margin-top: 16px;
  border-radius: var(--r);
  border: 1.5px dashed var(--border);
  color: var(--text-dim);
  font-size: .82rem;
}
.gal-empty-icon { font-size: 1.6rem; }

/* ─── Lightbox ─── */
.glb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.glb.glb-open { display: flex; }

.glb-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.93);
}
.glb-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}
.glb-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  display: block;
}
.glb-close,
.glb-prev,
.glb-next {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  transition: background .2s;
  backdrop-filter: blur(6px);
}
.glb-close:hover,
.glb-prev:hover,
.glb-next:hover { background: rgba(255,255,255,.22); }
.glb-close { top: 20px; right: 20px; font-size: .9rem; }
.glb-prev  { left: 20px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.glb-next  { right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.glb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  background: rgba(0,0,0,.45);
  padding: 4px 14px;
  border-radius: 20px;
  pointer-events: none;
}

/* ─── Gallery responsive ─── */
@media (max-width: 900px) {
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  .gal-grid .gal-thumb { height: 140px; }
  .glb-prev { left: 8px; }
  .glb-next { right: 8px; }
}
@media (max-width: 600px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid .gal-thumb { height: 120px; }
}
