:root {
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --ink: #10131a;
  --muted: #667085;
  --line: #d9e1ea;
  --blue: #005b96;
  --red: #d9340d;
  --yellow: #ffc400;
  --gray: #9b9b9b;
  --shadow: 0 18px 48px rgba(16, 24, 40, .1);
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16,24,40,.05);
}
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--ink); }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.desktop-nav { display: flex; gap: 28px; align-items: center; }
.desktop-nav a { color: #283548; font-weight: 700; }
.desktop-nav a:hover { color: var(--blue); }
.desktop-nav .nav-call-btn {
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(217,52,13,.18);
}
.desktop-nav .nav-call-btn:hover { color: #fff; background: #bd2e0c; }
.nav-dropdown { position: relative; padding: 26px 0; }
.dropdown-panel {
  display: none;
  position: absolute;
  top: 72px;
  left: -20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  min-width: 230px;
  padding: 10px;
}
.nav-dropdown:hover .dropdown-panel { display: grid; }
.dropdown-panel a { padding: 10px 12px; border-radius: 6px; }
.dropdown-panel a:hover { background: #eef6fc; }
.hamburger { display: none; background: none; border: 0; width: 44px; height: 44px; }
.hamburger span { display: block; height: 2px; background: var(--ink); margin: 7px; }

.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 80; }
.mobile-overlay.open { display: block; }
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -330px;
  z-index: 90;
  width: 310px;
  max-width: 88vw;
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 26px;
  transition: .25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 20px 0 50px rgba(16,24,40,.18);
}
.mobile-sidebar.open { left: 0; }
.close-menu {
  align-self: flex-end;
  background: #f1f5f9;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
}
.close-menu:hover { background: #e7eef6; color: var(--blue); }
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  font-size: 22px;
  color: var(--blue);
  padding: 0 0 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.mobile-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.mobile-sidebar a,
.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 13px 11px 15px;
  color: #27364a;
  background: #fff;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 8px;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}
.mobile-sidebar a:hover,
.mobile-dropdown-toggle:hover {
  background: #eef6fc;
  border-color: rgba(0,91,150,.22);
  border-left-color: var(--blue);
  color: var(--blue);
  transform: translateX(2px);
}
.mobile-sidebar .mobile-call-btn {
  margin-top: 14px;
  min-height: 50px;
  justify-content: center;
  padding: 13px 14px;
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 14px 28px rgba(217,52,13,.18);
}
.mobile-sidebar .mobile-call-btn:hover { background: #bd2e0c; color: #fff; }
.mobile-dropdown {
  display: none;
  padding: 8px 0 8px 12px;
  margin-left: 18px;
  border-left: 2px solid #cfe0ee;
  gap: 7px;
}
.mobile-dropdown.open { display: grid; }
.mobile-dropdown a {
  min-height: 40px;
  padding: 9px 11px 9px 13px;
  background: #f8fafc;
  font-size: 14px;
  border-left-width: 2px;
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 44%, rgba(255,255,255,.36) 100%),
    radial-gradient(circle at 20% 20%, rgba(0,91,150,.22), transparent 34%),
    radial-gradient(circle at 86% 60%, rgba(217,52,13,.16), transparent 30%),
    url("../images/hero.png") center right / cover no-repeat,
    #f5f7fb;
  border-bottom: 1px solid var(--line);
}
.hero-content { padding: 70px 0; }
.eyebrow { text-transform: uppercase; color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.hero h1, .page-hero h1 { font-size: clamp(46px,7vw,92px); line-height: 1; margin: 12px 0; color: var(--blue); }
.hero-subtitle { font-size: clamp(22px,3vw,34px); max-width: 860px; color: #182232; font-weight: 750; }
.hero-text { max-width: 710px; color: var(--muted); font-size: 18px; }
.hero-actions, .cta-inner { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 900;
  cursor: pointer;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: rgba(0,91,150,.35); }
.btn-warm { background: var(--red); border-color: var(--red); color: #fff; }
.btn-small { min-height: 38px; padding: 8px 14px; background: #eef6fc; color: var(--blue); }

.section { padding: 82px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section h2, .section-head h2 { font-size: clamp(30px,4vw,48px); line-height: 1.1; margin: 0; color: #111827; }
.property-slider { display: flex; gap: 20px; overflow: hidden; scroll-behavior: smooth; }
.slider-controls { display: flex; gap: 8px; }
.slider-btn { width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--blue); font-size: 26px; box-shadow: var(--shadow); }

.property-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 28px; }
.property-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 350px;
  box-shadow: var(--shadow);
  transition: .2s;
}
.property-card:hover { transform: translateY(-4px); border-color: rgba(0,91,150,.35); }
.property-card img { width: 100%; height: 230px; object-fit: cover; background: #dfe7ef; }
.property-card-body { padding: 18px; }
.property-card h3 { color: #111827; }
.badge {
  display: inline-flex;
  background: #e7f2fb;
  border: 1px solid rgba(0,91,150,.22);
  color: var(--blue);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}
.muted { color: var(--muted); }
.property-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 16px 0; }
.property-meta span { background: #f6f8fb; border: 1px solid var(--line); padding: 8px; border-radius: 6px; font-size: 13px; color: #344054; }

.why-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid, .offer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.offer-grid { grid-template-columns: repeat(2,1fr); }
.offer-grid.three { grid-template-columns: repeat(3,1fr); }
.value-card, .offer-card, .form-panel, .contact-info, .detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.value-card h3, .offer-card h2 { margin-top: 0; color: #111827; }
.offer-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(135deg, #e9f4fb, #fff);
}
.offer-card.warm { background: linear-gradient(135deg, #fff3ed, #fff); }
.offer-card span { color: var(--red); font-weight: 900; }

.cta-band { padding: 54px 0; background: linear-gradient(90deg, #005b96, #0b74b7, #d9340d); color: #fff; }
.cta-inner { justify-content: space-between; }
.cta-inner h2 { color: #fff; }
.page-hero {
  padding: 110px 0 54px;
  background: linear-gradient(135deg, #fff, #edf5fb 60%, #fff4ed);
  border-bottom: 1px solid var(--line);
}
.page-hero.compact { min-height: 320px; display: flex; align-items: end; }

.filter-bar {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.filter-bar input, .filter-bar select, .form-panel input, .form-panel select, .form-panel textarea {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}
.form-panel textarea { min-height: 130px; resize: vertical; }

.detail-grid, .split-layout, .contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.gallery-main { height: 520px; width: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #dfe7ef; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbs img { width: 96px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.price { font-size: 34px; color: var(--red); font-weight: 950; }
.spec-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 22px 0; }
.spec-grid span, .feature-list span { background: #f6f8fb; border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.spec-grid strong { display: block; color: #111827; }
.feature-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { color: var(--blue); font-weight: 800; }
.map-placeholder {
  height: 220px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef6fc, #fff5ec);
  color: var(--muted);
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; display: block; }
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 14px; border-radius: 8px; margin: 8px 0; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.flash.success { border-color: rgba(0,91,150,.4); }
.flash.error { border-color: rgba(217,52,13,.5); }

.site-footer { background: #101828; color: #fff; border-top: 4px solid var(--blue); padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
.footer-grid a, .footer-grid p { display: block; color: #d0d5dd; margin: 8px 0; }
.footer-grid h3 { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.14); padding: 18px; color: #d0d5dd; margin-top: 34px; }

@media (min-width: 901px) {
  .container { width: calc(100% - 56px); max-width: none; }
  .property-grid { grid-template-columns: repeat(4,1fr); }
  .property-card { min-width: 0; }
  .hero-text { max-width: 900px; }
  .hero-subtitle { max-width: 1040px; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hamburger { display: block; }
  .section-head { align-items: start; flex-direction: column; }
  .property-grid, .value-grid, .offer-grid, .offer-grid.three, .footer-grid, .detail-grid, .split-layout, .contact-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .property-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 18px;
    margin: 0 -4px;
  }
  .property-slider .property-card { scroll-snap-align: start; flex: 0 0 82vw; }
  .property-card { min-width: 82vw; }
  .gallery-main { height: 340px; }
  .hero { min-height: auto; }
  .hero-content { padding: 90px 0; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 22px); }
  .filter-bar { grid-template-columns: 1fr; }
  .property-meta, .spec-grid { grid-template-columns: 1fr; }
  .header-inner { height: 68px; }
  .brand img { width: 44px; height: 44px; }
  .hero h1, .page-hero h1 { font-size: 42px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
}
