:root {
  --brand: #0b3a3c;
  --brand-dark: #082a2c;
  --gold: #c8a25c;
  --page-bg: #ececec;
  --card-bg: #ffffff;
  --text-main: #222222;
  --text-muted: #4a4a4a;
  --border: #e2e2e2;
  --radius: 6px;
  --font-body: 'Roboto', sans-serif;
  --font-head: 'Merriweather Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--page-bg);
}

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

a { text-decoration: none; color: inherit; }

svg { fill: currentColor; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= HEADER ================= */
.site-header {
  background: var(--brand);
  color: #fff;
}

.topbar {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.topbar-social {
  display: flex;
  gap: 16px;
}

.topbar-social a svg,
.footer-social a svg {
  width: 16px;
  height: 16px;
  color: #fff;
  opacity: 0.9;
  transition: opacity .15s;
}

.topbar-social a:hover svg,
.footer-social a:hover svg { opacity: 1; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-phone svg { width: 13px; height: 13px; }

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.topbar-search svg { width: 14px; height: 14px; flex-shrink: 0; color: #fff; opacity: 0.9; }

.topbar-search input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 2px 0;
  width: 140px;
}

.topbar-search input::placeholder { color: rgba(255,255,255,0.75); }
.topbar-search input:focus { outline: none; border-bottom-color: var(--gold); }

.hero-searchbox {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  max-width: 560px;
  flex-wrap: wrap;
}

.hero-searchbox input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
}

.hero-searchbox input:focus { outline: 2px solid var(--gold); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}

.main-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.main-nav a.active {
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
}

/* ================= GALLERY ================= */
.gallery {
  padding-top: 24px;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  opacity: 0;
  transition: opacity .15s, background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: rgba(0,0,0,0.6); }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

/* ================= LAYOUT ================= */
.property-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding-top: 24px;
  align-items: start;
}

.property-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ---- summary card ---- */
.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.property-location svg { width: 12px; height: 12px; fill: var(--brand); }

.property-summary h1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text-main);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.badge {
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
}

.badge.badge-inactive {
  background: #8a8a8a;
}

.status-banner {
  background: #fdf2e3;
  border: 1px solid #f0d9ad;
  color: #7a5b1e;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 0 0 20px;
}

.price {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

.stats-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat svg {
  width: 26px;
  height: 26px;
  fill: var(--brand);
  flex-shrink: 0;
}

.stat div { display: flex; flex-direction: column; }
.stat strong { font-size: 20px; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--text-muted); }

/* ---- section titles ---- */
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
  padding-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--gold);
}

.details-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 14px;
}

.details-list .label { color: var(--text-muted); margin-right: 4px; }

.description {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

.description p { margin: 0 0 14px; }
.description p:last-child { margin-bottom: 0; }

/* ================= LEGAL PAGES ================= */
.legal-page {
  max-width: 860px;
  padding: 32px 24px 64px;
}

.description-note {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  margin: 0 0 24px;
}

.legal-page .section-title { margin-top: 28px; }
.legal-page h2.section-title:first-of-type { margin-top: 0; }

.finance-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
}

.finance-list li {
  padding: 4px 0;
}

.finance-list li::before {
  content: '·';
  margin-right: 8px;
  color: var(--gold);
  font-weight: 700;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 14px 0 16px;
}

.location-line svg { width: 12px; height: 12px; fill: var(--brand); }

.map-embed {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ================= SIDEBAR ================= */
.property-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card { padding: 24px; }

.agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.agent-row strong { font-size: 15px; }

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  resize: none;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s, background .15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--border);
}

.btn-outline:hover { background: #f5f5f5; }

.btn-outline svg { width: 16px; height: 16px; fill: #25D366; }

.captcha-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 14px 0 0;
}

.captcha-note a { text-decoration: underline; }

/* ================= CONTACT PAGE ================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 24px 56px;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}

.contact-info-list svg {
  width: 16px;
  height: 16px;
  fill: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-list a { color: var(--text-main); }
.contact-info-list a:hover { color: var(--brand); }

.contact-social {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-social svg { width: 16px; height: 16px; fill: #fff; }
.contact-social a:hover { background: var(--brand-dark); }

.contact-map { height: 260px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.print-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
}

.print-link svg { width: 14px; height: 14px; }
.print-link:hover { color: var(--brand); }

/* ================= FEATURED ================= */
.featured {
  padding: 48px 24px 40px;
  text-align: center;
}

.featured-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  margin: 0 0 32px;
}

.featured-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gold);
}

.featured-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform .15s, box-shadow .15s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}

.feature-body { padding: 16px; }

.feature-price {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-name {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.feature-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.carousel-arrow {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

.carousel-arrow:hover { background: var(--brand); color: #fff; }

/* ================= FOOTER ================= */
.site-footer {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 40px 24px 24px;
  font-size: 14px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-social a svg { width: 18px; height: 18px; }

.footer-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-powered {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.7;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .property-layout {
    grid-template-columns: 1fr;
  }
  .property-sidebar { position: static; }
  .featured-track { grid-template-columns: repeat(3, minmax(240px, 1fr)); overflow-x: auto; }
}

@media (max-width: 768px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .header-main { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .details-list { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .featured-track { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}

/* ================= HOME: HERO ================= */
.hero-wrap {
  padding-top: 24px;
  position: relative;
}

.hero {
  position: relative;
  border-radius: 40px;
  min-height: 480px;
  padding: 48px 80px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}

.hero h1,
.hero-sub,
.hero-phone {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 640px;
}

.hero-sub {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-head);
  margin: 0 0 10px;
}

.hero-phone {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-head);
  margin: 0;
}

.search-bar {
  position: relative;
  z-index: 2;
  margin: -56px auto 0;
  width: 90%;
  max-width: 900px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-field {
  flex: 1;
  min-width: 180px;
}

.search-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-field select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
}

.search-submit {
  border-radius: 14px;
  padding: 16px 28px;
  white-space: nowrap;
}

/* ================= HOME: FEATURED GRID ================= */
.featured-home {
  padding: 56px 24px 40px;
  text-align: center;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-tag-rent {
  background: var(--brand);
}

.feature-tag-inactive {
  background: #8a8a8a;
}

.listing-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

/* ================= HOME: WELCOME ================= */
.welcome {
  background: var(--brand);
  color: #fff;
  padding: 64px 0;
}

.welcome-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.welcome-text {
  position: relative;
}

.quote-mark {
  font-family: var(--font-head);
  font-size: 80px;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  opacity: 0.8;
}

.welcome-text h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px;
}

.welcome-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 480px;
}

.welcome-img img {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  .hero { padding: 36px 32px 90px; border-radius: 24px; }
  .hero h1 { font-size: 36px; }
  .search-bar { flex-direction: column; align-items: stretch; margin-top: -40px; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}

/* ================= LISTING PAGE (En Venta / En Renta) ================= */
.page-banner {
  background: var(--brand);
  color: #fff;
  padding: 40px 24px 56px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 12px;
}

.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 4px; }

.page-banner h1 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
}

.page-banner-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.listing-filters {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 20px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.listing-filters .search-field select {
  border-radius: 10px;
}

.listing-filter-submit {
  border-radius: 10px;
  padding: 14px 24px;
  white-space: nowrap;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.listing-count {
  font-size: 14px;
  color: var(--text-muted);
}

.listing-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.listing-sort select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
  color: var(--text-main);
}

.listing-section {
  padding-bottom: 56px;
}

.listing-grid {
  margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.page-num,
.page-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  transition: background .15s, color .15s;
}

.page-num:hover,
.page-arrow:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.page-num.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-filters { flex-direction: column; align-items: stretch; margin-top: -24px; }
}

@media (max-width: 600px) {
  .listing-grid { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 28px; }
}

/* ================= MAP PAGE ================= */
.map-section {
  padding: 32px 24px 56px;
}

.city-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.city-tab {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.city-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.city-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.map-list-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 8px;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.map-embed-large {
  width: 100%;
  height: 640px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#leafletMap {
  width: 100%;
  height: 100%;
  background: var(--page-bg);
  font-family: var(--font-body);
}

.map-popup {
  width: 180px;
  text-align: center;
}

.map-popup img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.map-popup-tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.map-popup-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.map-popup-name {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 8px;
}

.map-popup-link {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.map-popup-link:hover {
  background: var(--brand-dark);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.map-list-panel {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 16px;
  height: 640px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-list-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 4px 0 4px;
}

.map-list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  transition: background .15s;
}

.map-list-item[hidden] {
  display: none;
}

.map-list-item:hover {
  background: var(--page-bg);
}

.map-list-item img {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.map-list-tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.map-list-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.map-list-name {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-embed-large { height: 380px; }
  .map-list-panel { height: auto; max-height: 480px; }
}
