:root {
  --bg: #faf7f1;
  --bg-muted: #e8e2d4;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --accent: #1f4858;
  --accent-hover: #163542;
  --on-accent: #faf7f1;
  --border: #d9d2c2;
  --radius: 8px;
  --maxw: 1200px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 30, 40, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--accent);
  color: var(--on-accent);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.site-header .inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-accent);
  text-decoration: none;
  margin-right: auto;
}

.site-header nav {
  display: flex;
  gap: 20px;
}

.site-header nav a {
  color: var(--on-accent);
  text-decoration: none;
  font-size: 0.98rem;
  opacity: 0.9;
}

.site-header nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.lang-switcher .current {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.lang-switcher a {
  color: var(--on-accent);
  opacity: 0.75;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
}

.lang-switcher a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-on-accent {
  background: var(--on-accent);
  color: var(--accent);
  border-color: var(--on-accent);
}

.btn-on-accent:hover {
  background: transparent;
  color: var(--on-accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background-image:
    linear-gradient(180deg, rgba(15, 30, 40, 0.35), rgba(15, 30, 40, 0.55)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--accent);
  color: var(--on-accent);
}

.hero .inner {
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 1.15rem;
  opacity: 0.92;
  margin: 0;
}

/* ---------- Layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- Apartment ---------- */
.apartment {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.apartment:last-of-type {
  border-bottom: none;
}

.apartment-header {
  margin-bottom: 28px;
}

.apartment-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.apartment-header h2 {
  margin: 0;
}

.carousel {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

.carousel .slide {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #cdc4ad 0%, #b6ad96 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(31, 72, 88, 0.55);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.carousel img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* Slick adjustments */
.slick-dots {
  bottom: 16px;
}
.slick-dots li button:before {
  font-size: 8px;
  color: #ffffff;
  opacity: 0.6;
}
.slick-dots li.slick-active button:before {
  color: #ffffff;
  opacity: 1;
}

.apt-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.apt-body .desc h3,
.apt-body .amenities h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.amenities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.amenities-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
}

.amenities-list .icon {
  width: 28px;
  text-align: center;
  font-size: 1.1rem;
}

.booking {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
}

.booking .label {
  font-weight: 600;
  margin-right: auto;
}

/* ---------- Location ---------- */
#location {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

#location .map {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--bg-muted);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}

#location iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--accent);
  color: var(--on-accent);
  padding: 56px 24px 32px;
  margin-top: 32px;
}

.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.site-footer a {
  color: var(--on-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer a:hover {
  border-bottom-color: var(--on-accent);
}

.site-footer .contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  opacity: 0.75;
  text-align: center;
}

/* ---------- Modal ---------- */
.booking-modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 460px;
  width: calc(100% - 32px);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.booking-modal::backdrop {
  background: rgba(15, 30, 40, 0.55);
}

.booking-modal .modal-inner {
  padding: 28px 28px 24px;
}

.booking-modal h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.booking-modal .modal-sub {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.booking-modal .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px 10px;
}

.contact-cards {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}

.contact-card:hover {
  border-color: var(--accent);
}

.contact-card .icon {
  font-size: 1.3rem;
}

.contact-card .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.contact-card .value {
  font-weight: 500;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 12px 0 16px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.platform-buttons {
  display: grid;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header .inner {
    gap: 14px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }
  .apt-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer .inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .apartment { padding: 56px 0; }
  .hero { min-height: 56vh; padding: 56px 20px; }
  .amenities-list { grid-template-columns: 1fr; }
  .booking { padding: 18px; }
  .booking .label { width: 100%; margin: 0 0 4px; }
  .site-header .inner { padding: 10px 16px; gap: 10px; row-gap: 8px; }
  .brand { font-size: 1rem; letter-spacing: 0; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 0.92rem; }
  .lang-switcher { font-size: 0.78rem; gap: 2px; }
  .lang-switcher .current,
  .lang-switcher a { padding: 3px 8px; }
  .site-header .btn { padding: 7px 12px; font-size: 0.9rem; }
}
