*, *::before, *::after { box-sizing:border-box; margin:0; padding:0 }

:root {
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --bg-elevated: #f5f0eb;
  --text: #2c2420;
  --text-muted: #8a7e75;
  --accent: #9e7b5e;
  --accent2: #5b8a72;
  --border: #e0d8d0;
  --radius: 8px;
  --danger: #d16b6b;
  --success: #6b9e7a;
}

html { font-size:16px; scroll-behavior:smooth }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

/* ── Header ───────────────────────────── */
header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  height: 64px;
}
.header-inner {
  max-width: 1200px;
  margin:0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}
.tab {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.tab:hover { background: var(--border); color: var(--text) }
.tab.active { background: var(--accent); color: #fff }
#lang-switcher {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-muted);
  transition: background .15s, color .15s, border-color .15s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent) }
.lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent) }

/* ── Main content ─────────────────────── */
main {
  height: 100vh;
  overflow-y: auto;
  padding-top: 64px;
}
.tab-content { display: none }
.tab-content.active { display: block }

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Hero ─────────────────────────────── */
.hero {
  height: calc(100vh - 64px);
  min-height: 500px;
  background: #3d6b5a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero.jpg') center/cover no-repeat;
  opacity: 0.6;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px;
  max-width: 700px;
}
.hero-overlay h1 { font-size: 48px; font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,0.5) }
.hero-overlay p { font-size: 20px; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.5) }
.hero-desc { font-size: 16px !important; opacity: 0.9 }
.hero-price { font-size: 18px !important; font-weight: 600; margin-top: 20px; background: rgba(255,255,255,0.15); padding: 10px 24px; border-radius: 6px; display: inline-block; letter-spacing: 0.02em }

/* ── About ────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.about-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.about-text p { margin-bottom: 12px }
.about-text a { color: var(--accent2); text-decoration: underline }
.about-text a:hover { color: var(--accent) }
.about-text strong { color: var(--text) }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.feature-icon { font-size: 20px }

/* ── Gallery ──────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  padding: 24px 12px 8px;
  font-size: 13px;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-item:hover .gallery-caption { opacity: 1 }

/* ── Lightbox ─────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
}
.lightbox-caption {
  color: #fff;
  margin-top: 12px;
  font-size: 14px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

/* ── Calendar ─────────────────────────── */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background .15s;
}
.cal-nav-btn:hover:not(:disabled) { background: var(--border) }
.cal-nav-btn:disabled { opacity: 0.3; cursor: default }
.cal-nav-label { font-size: 13px; color: var(--text-muted) }

.cal-months {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.cal-month { min-width: 0 }
.cal-month-name {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}
.cal-wd {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 4px;
  cursor: default;
  transition: background .1s;
}
.cal-empty { background: none }
.cal-free { background: var(--bg-card); border: 1px solid var(--border); cursor: pointer }
.cal-free:hover { background: var(--accent2); color: #fff; border-color: var(--accent2) }
.cal-booked { background: #fce4e4; color: #c99; border: 1px solid #f5c6c6; cursor: default }
.cal-past { background: none; color: var(--text-muted); opacity: 0.4; cursor: default }
.cal-in-range { background: #d9ede4; border: 1px solid var(--accent2) }
.cal-sel-edge { background: var(--accent2) !important; color: #fff !important; border-color: var(--accent2) !important; font-weight: 700 }

.selection-summary {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.sel-label { font-weight: 600 }
.sel-nights { color: var(--accent2); font-weight: 600 }
.sel-hint { color: var(--text-muted); font-style: italic }

/* ── Forms ────────────────────────────── */
.booking-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.booking-form-wrap h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(91,138,114,0.15);
}
.field input[readonly] {
  background: var(--bg-elevated);
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 80px }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit {
  width: 100%;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-submit:hover { background: #8b6a4f }
.btn-submit:active { transform: scale(0.98) }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed }

.verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.btn-verify {
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  transition: background .15s;
}
.btn-verify:hover { background: var(--border) }
.verify-status { font-size: 14px; color: var(--success); font-weight: 700 }

.form-feedback {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.4;
}
.form-feedback.error { display: block; background: #fef0f0; color: var(--danger); border: 1px solid #f5c6c6 }
.form-feedback.success { display: block; background: #edf7f0; color: var(--success); border: 1px solid #b8d9c4 }

.hp-field { position:absolute; left:-9999px; top:-9999px }

/* ── Contact form ─────────────────────── */
.contact-form {
  max-width: 560px;
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ── Location ─────────────────────────── */
.location-details {
  margin-top: 24px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.location-address {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.location-transport {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Map ──────────────────────────────── */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

/* ── Empty state ──────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ── Footer ───────────────────────────── */
footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

/* ── Responsive ───────────────────────── */
@media (max-width: 768px) {
  .header-inner { padding: 0 12px; gap: 8px }
  .logo svg { width: 18px; height: 18px }
  .tab { padding: 6px 10px; font-size: 12px }
  #lang-switcher { gap: 1px }
  .lang-btn { padding: 3px 6px; font-size: 10px }

  .content-section { padding: 32px 16px 80px }

  .hero { min-height: 350px }
  .hero-overlay h1 { font-size: 32px }
  .hero-overlay p { font-size: 16px }

  .about-grid { grid-template-columns: 1fr; gap: 20px }
  .about-features { grid-template-columns: 1fr 1fr }

  .booking-layout { grid-template-columns: 1fr }

  .cal-months { grid-template-columns: 1fr 1fr 1fr; gap: 8px }
  .cal-day { font-size: 11px }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px }

  .form-row { grid-template-columns: 1fr }
}
