:root {
  --navy: #0B2545;
  --navy-2: #13456B;
  --teal: #13B5A6;
  --teal-dark: #0E9A8C;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --line: #E3E8EE;
  --text: #1A2233;
  --muted: #5B6B7E;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Inter, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: 8px; z-index: 100; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; color: var(--text); font-size: 15px; }
.main-nav a.active, .main-nav a:hover { color: var(--teal); }
.header-cta {
  background: var(--teal); color: #fff !important;
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
  transition: background .15s;
}
.header-cta:hover { background: var(--teal-dark); color: #fff !important; }

.lang-switch { display: inline-flex; gap: 2px; background: var(--bg); border-radius: 999px; padding: 3px; }
.lang-switch button {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0; cursor: pointer;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--muted); transition: background .15s, color .15s;
}
.lang-switch button:hover { color: var(--navy); }
.lang-switch button.active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(11,37,69,0.08); }
.lang-switch .flag { font-size: 14px; line-height: 1; }
.lang-switch .code { letter-spacing: 0.5px; }
@media (max-width: 600px) {
  .lang-switch .code { display: none; }
  .lang-switch button { padding: 6px 8px; }
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px; gap: 14px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .header-cta { text-align: center; }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0B2545 0%, #13456B 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -10%; top: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(19,181,166,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal); margin: 0 0 12px;
  padding: 6px 12px; border: 1px solid rgba(19,181,166,0.4); border-radius: 999px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 16px;
  font-weight: 800; letter-spacing: -1.5px;
}
.hero h1 span { color: var(--teal); }
.hero-text { font-size: 18px; color: rgba(255,255,255,0.85); margin: 0 0 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s;
}
.btn-primary { background: var(--teal); color: #fff !important; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); color: #fff !important; }
.btn-secondary { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff !important; }
.btn-outline { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff !important; }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div { font-size: 14px; color: rgba(255,255,255,0.7); }
.hero-stats strong { display: block; font-size: 28px; color: #fff; font-weight: 800; }

.hero-collage {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  height: 460px;
}
.hero-collage figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  margin: 0;
}
.hero-collage figure:first-child { grid-row: span 2; }
.hero-collage img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.hero-collage figure:hover img { transform: scale(1.04); }
.hero-collage figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 12px;
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.3px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.hero-collage figure:first-child figcaption { font-size: 18px; padding: 20px 20px 16px; }

@media (max-width: 860px) {
  .hero { padding: 50px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-collage { height: 320px; }
}

/* SEARCH BAR */
.search-bar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-top: -40px; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 12px; align-items: end;
}
.search-bar label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.search-bar select, .search-bar input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; background: #fff; color: var(--text);
}
.search-bar button { height: 46px; padding: 0 26px; }
@media (max-width: 860px) {
  .search-bar { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .search-bar button { grid-column: span 2; }
}

/* SECTIONS */
.section { padding: 70px 0; }
.section-light { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); margin: 0 0 10px;
}
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 14px; line-height: 1.15;
  font-weight: 800; letter-spacing: -1px; color: var(--navy);
}
.section-description { color: var(--muted); font-size: 17px; margin: 0; }

/* FEATURE GRID */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(19,181,166,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin: 0 0 8px; color: var(--navy); }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

/* APARTMENT GRID */
.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .apt-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .apt-grid { grid-template-columns: 1fr; } }

.apt-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.apt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.apt-card-img {
  height: 200px; position: relative;
  background: linear-gradient(135deg, #DDE5EE 0%, #BFC9D5 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(11,37,69,0.4); font-size: 48px;
}
.apt-card-img .placeholder-icon { font-size: 56px; opacity: 0.5; }
.apt-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--teal); color: #fff; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.apt-badge.rented { background: #94A3B5; }
.apt-badge.short { background: #E8943B; }
.apt-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.apt-card-city {
  font-size: 12px; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px;
}
.apt-card-title { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.apt-rating { color: #F2B341; font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.apt-specs { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.apt-specs span { display: inline-flex; align-items: center; gap: 4px; }
.apt-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.apt-price { font-size: 22px; font-weight: 800; color: var(--navy); }
.apt-price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.apt-card-foot a { font-size: 14px; font-weight: 600; color: var(--teal); }

/* FILTERS BAR */
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px;
  align-items: end; margin-bottom: 32px;
}
.filters-wide { grid-template-columns: repeat(6, 1fr) auto; }
.filters label { font-size: 12px; font-weight: 600; color: var(--muted); }
.filters select, .filters input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px;
}
.filters .filter-reset {
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 16px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.filters .filter-reset:hover { color: var(--navy); border-color: var(--navy); }
@media (max-width: 980px) { .filters { grid-template-columns: 1fr 1fr; } .filters .filter-reset { grid-column: span 2; } }

.results-meta {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
  font-size: 14px; color: var(--muted);
}

/* APARTMENT DETAIL */
.apt-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
@media (max-width: 860px) { .apt-detail-grid { grid-template-columns: 1fr; gap: 24px; } }

.apt-hero-img {
  height: 420px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #DDE5EE 0%, #BFC9D5 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(11,37,69,0.3); font-size: 96px;
  margin-bottom: 16px;
}
.apt-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.apt-thumb {
  height: 90px; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, #E5EBF1 0%, #C7D1DC 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(11,37,69,0.25); font-size: 24px; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.apt-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.apt-hero-img img { transition: opacity .2s; }
.apt-card-img img { transition: transform .25s; }
.apt-card:hover .apt-card-img img { transform: scale(1.04); }
.apt-card-img { overflow: hidden; }

.booking-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  position: sticky; top: 96px;
}
.booking-panel h3 { margin: 0 0 4px; color: var(--navy); }
.booking-price { font-size: 32px; font-weight: 800; color: var(--navy); margin: 6px 0 4px; }
.booking-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.booking-fields .full { grid-column: span 2; }
.booking-fields label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.booking-fields input, .booking-fields select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px;
}
.booking-panel .btn { width: 100%; justify-content: center; }
.booking-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

.apt-meta-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px;
  background: #fff; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  margin-top: 24px;
}
.apt-meta-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); list-style: none; }
.apt-meta-list li span:first-child { color: var(--muted); font-size: 14px; }
.apt-meta-list li span:last-child { font-weight: 600; color: var(--navy); }
.apt-meta-list { margin: 24px 0 0; padding-left: 0; }

/* MAP */
#map { height: 560px; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-section { padding: 70px 0; }
.leaflet-popup-content { font-family: inherit; min-width: 200px; }
.popup-card strong { color: var(--navy); font-size: 14px; display: block; margin-bottom: 4px; }
.popup-card .price { color: var(--teal); font-weight: 700; }
.popup-card a { color: var(--teal); font-weight: 600; }

/* CTA STRIP */
.cta-strip {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; padding: 60px 0; text-align: center;
}
.cta-strip h2 { color: #fff; margin: 0 0 12px; }
.cta-strip p { color: rgba(255,255,255,0.8); margin: 0 0 24px; font-size: 17px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card, .form-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 32px;
}
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-icon {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(19,181,166,0.12);
  color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.contact-list small { display: block; font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: span 2; }
.form-grid label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px;
  font-family: inherit;
}
.form-grid textarea { min-height: 120px; resize: vertical; }
.form-status { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* FOOTER */
.site-footer {
  background: var(--navy); color: #C9D2DD; padding: 60px 0 24px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-grid a { display: block; color: #C9D2DD; padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--teal); }
.footer-grid p { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.footer-logo img { height: 50px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.copyright { text-align: center; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* UTILITY */
.text-center { text-align: center; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { color: var(--navy); margin: 0 0 6px; }
.breadcrumb { padding: 18px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
