:root {
  --navy: #183563;
  --navy-deep: #10284c;
  --blue-soft: #edf2f8;
  --gold: #c7a74b;
  --gold-light: #e1c875;
  --ink: #172132;
  --muted: #687386;
  --line: #dfe5ec;
  --paper: #ffffff;
  --surface: #f6f8fb;
  --radius: 18px;
  --shadow: 0 20px 55px rgba(16, 40, 76, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.topbar { background: var(--navy-deep); color: rgba(255,255,255,.74); font-size: .82rem; }
.topbar-inner { min-height: 34px; display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.site-header { position: relative; z-index: 10; background: var(--navy); color: white; border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 182px; height: 62px; display: grid; place-items: center; }
.brand img { width: 174px; height: 60px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .9rem; }
.main-nav a { position: relative; padding: 28px 0 25px; color: rgba(255,255,255,.86); }
.main-nav a:hover, .main-nav a.active { color: white; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 19px; height: 2px; background: var(--gold); }
.header-cta { border: 1px solid rgba(225,200,117,.75); color: var(--gold-light); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: .88rem; }
.menu-button { display: none; background: transparent; border: 0; color: white; padding: 10px; cursor: pointer; }

.page-hero { padding: 72px 0 94px; color: white; background: radial-gradient(circle at 82% 5%, rgba(199,167,75,.16), transparent 28%), var(--navy-deep); }
.eyebrow { color: var(--gold-light); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 800; }
.page-hero h1 { margin: 10px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.page-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.7); font-size: 1.05rem; }

.catalog-shell { margin-top: -48px; padding-bottom: 88px; position: relative; }
.filter-panel { background: white; border: 1px solid rgba(24,53,99,.08); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.operation-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.operation-tab { border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--navy); padding: 9px 17px; font-weight: 800; cursor: pointer; }
.operation-tab.active { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); }
.filter-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr .8fr .9fr auto; gap: 12px; }
.field { position: relative; }
.field label { position: absolute; z-index: 1; left: 15px; top: 8px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.field select, .field input { width: 100%; min-height: 60px; padding: 25px 38px 7px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; appearance: none; outline: none; }
.field input::placeholder { color: #9aa4b3; }
.field select:focus, .field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,167,75,.14); }
.field::after { content: "⌄"; position: absolute; right: 15px; top: 29px; color: var(--muted); pointer-events: none; }
.search-field::after { content: "⌕"; top: 30px; font-size: 1rem; }
.clear-button { min-width: 120px; border: 0; border-radius: 11px; background: var(--navy); color: white; font-weight: 800; cursor: pointer; }

.results-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 48px 0 24px; }
.results-head h2 { margin: 5px 0 0; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.03em; }
.result-count { color: var(--muted); font-size: .92rem; }
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.property-card { min-width: 0; overflow: hidden; border: 1px solid rgba(24,53,99,.1); border-radius: 12px; background: white; box-shadow: 0 8px 22px rgba(16,40,76,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.property-card:hover { transform: translateY(-5px); border-color: rgba(199,167,75,.42); box-shadow: 0 20px 46px rgba(16,40,76,.12); }
.card-image { position: relative; height: 104px; overflow: hidden; background: var(--blue-soft); }
.card-image::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5,16,31,.86)); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .card-image img { transform: scale(1.035); }
.badge { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(16,40,76,.92); color: white; font-size: .6rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; backdrop-filter: blur(8px); }
.card-price { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 11px; color: white; font-family: Georgia, "Times New Roman", serif; font-size: 1.13rem; font-weight: 700; line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.card-body { padding: 10px 12px 12px; }
.card-kicker { margin-bottom: 5px; color: var(--gold); font-size: .6rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body h3 { min-height: 30px; margin: 0 0 3px; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: .94rem; line-height: 1.12; font-weight: 500; letter-spacing: -.015em; }
.card-location { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 7px 0; margin: 8px 0; border-top: 1px solid rgba(24,53,99,.1); border-bottom: 1px solid rgba(24,53,99,.1); }
.card-features span { display: grid; gap: 2px; padding: 0 9px; border-right: 1px solid rgba(24,53,99,.09); }
.card-features span:first-child { padding-left: 0; }
.card-features span:last-child { padding-right: 0; border-right: 0; }
.card-features small { color: var(--muted); font-size: .59rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.card-features strong { color: var(--navy-deep); font-size: .8rem; line-height: 1.15; }
.card-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.card-detail { display: inline-flex; justify-content: center; align-items: center; min-height: 28px; border-radius: 999px; background: var(--navy); color: white; font-size: .74rem; font-weight: 850; }
.card-whatsapp { color: #1f7a50; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.empty-state { display: none; padding: 46px; text-align: center; border: 1px dashed #cbd5e1; border-radius: var(--radius); background: white; color: var(--muted); }

.breadcrumb { display: flex; gap: 8px; align-items: center; padding: 26px 0 20px; color: var(--muted); font-size: .86rem; }
.breadcrumb a { color: var(--navy); font-weight: 700; }
.detail-layout { display: block; padding-bottom: 0; }
.detail-gallery { min-width: 0; margin-bottom: 20px; }
.media-tabs { display: inline-flex; gap: 8px; margin-bottom: 12px; padding: 5px; border: 1px solid rgba(24,53,99,.08); border-radius: 999px; background: white; box-shadow: 0 10px 28px rgba(16,40,76,.06); }
.media-tabs button { border: 0; border-radius: 999px; padding: 9px 16px; background: transparent; color: var(--navy); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.media-tabs button.active, .media-tabs button:hover { background: var(--navy); color: white; }
.media-tabs button[hidden] { display: none; }
.detail-image { position: relative; height: 560px; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft); box-shadow: var(--shadow); }
.detail-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,16,31,.22), transparent 22%, transparent 78%, rgba(5,16,31,.22)); pointer-events: none; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; z-index: 2; top: 50%; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; background: rgba(16,40,76,.72); color: white; font-size: 2rem; line-height: 1; display: grid; place-items: center; cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(8px); transition: background .18s ease, transform .18s ease; }
.gallery-nav:hover { background: rgba(16,40,76,.92); transform: translateY(-50%) scale(1.04); }
.gallery-nav[hidden] { display: none; }
.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }
.gallery-count { position: absolute; z-index: 2; right: 16px; bottom: 16px; padding: 7px 10px; border-radius: 999px; background: rgba(16,40,76,.82); color: white; font-size: .78rem; font-weight: 800; }
.gallery-count:empty { display: none; }
.thumbnail-strip { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 3px 2px 8px; scroll-snap-type: x proximity; }
.thumbnail-strip::-webkit-scrollbar { height: 7px; }
.thumbnail-strip::-webkit-scrollbar-thumb { background: rgba(16,40,76,.18); border-radius: 999px; }
.thumbnail-button { flex: 0 0 92px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--blue-soft); cursor: pointer; opacity: .72; scroll-snap-align: start; transition: opacity .18s ease, border-color .18s ease, transform .18s ease; }
.thumbnail-button:hover, .thumbnail-button.active { opacity: 1; border-color: var(--gold); }
.thumbnail-button.active { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,40,76,.14); }
.thumbnail-button img { width: 100%; height: 100%; object-fit: cover; }
.detail-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 34px; margin-bottom: 24px; padding: 30px 0 25px; border-bottom: 1px solid rgba(24,53,99,.12); }
.summary-copy { position: relative; padding-left: 18px; }
.summary-copy::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 4px; width: 3px; border-radius: 999px; background: var(--gold); }
.detail-summary .badge-inline { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--navy); color: white; font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.detail-summary h1 { max-width: 850px; margin: 17px 0 8px; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4.6vw, 4.2rem); line-height: .98; font-weight: 500; letter-spacing: -.04em; }
.detail-address { color: var(--muted); font-size: 1rem; }
.summary-meta { margin-top: 10px; color: #43506a; font-size: .82rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.summary-action { min-width: 290px; padding-left: 28px; border-left: 1px solid rgba(24,53,99,.12); }
.summary-label { margin-bottom: 4px; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.detail-price { margin: 0 0 18px; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 700; line-height: 1; text-align: right; }
.primary-button { width: 100%; display: flex; justify-content: center; align-items: center; padding: 14px 18px; border-radius: 999px; background: #1f9b60; color: white; font-weight: 850; box-shadow: 0 12px 25px rgba(31,155,96,.18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button:hover { background: #188553; box-shadow: 0 14px 28px rgba(31,155,96,.24); transform: translateY(-1px); }
.secondary-contact { display: block; margin-top: 13px; text-align: center; color: var(--navy); font-size: .88rem; font-weight: 780; }
.property-highlights { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0 0 28px; overflow: hidden; border: 1px solid rgba(24,53,99,.09); border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 12px 34px rgba(16,40,76,.055); }
.highlight-item { min-height: 96px; display: grid; align-content: center; gap: 7px; padding: 20px 22px; border-right: 1px solid rgba(24,53,99,.09); }
.highlight-item:last-child { border-right: 0; }
.highlight-item span { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.highlight-item strong { color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: 1.48rem; line-height: 1; font-weight: 650; }
.detail-content { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 82px; }
.content-card { padding: 32px 0; border-top: 1px solid rgba(24,53,99,.1); background: transparent; }
.detail-content .content-card:first-child { border-top: 0; padding-top: 8px; }
.section-kicker { margin-bottom: 7px; color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 4px; }
.section-head p { max-width: 360px; margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; text-align: right; }
.content-card h2 { margin: 0 0 14px; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.content-card p { margin: 0; color: var(--muted); white-space: pre-line; }
.feature-card { background: transparent; }
.metadata-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 34px; margin: 22px 0 0; border-top: 1px solid rgba(24,53,99,.11); }
.metadata-item { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(24,53,99,.1); }
.metadata-item span { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.metadata-item strong { color: var(--navy-deep); font-size: 1rem; text-align: right; }
.feature-subtitle { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(24,53,99,.11); color: var(--navy-deep); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 26px; margin-top: 14px; }
.feature-chip { position: relative; min-height: 28px; padding-left: 22px; color: #2b3f61; font-size: .93rem; font-weight: 720; line-height: 1.45; }
.feature-chip::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(199,167,75,.13); }
.description-inner { max-width: 860px; }
.description-card h2 { margin-bottom: 18px; }
.description-card p { color: #43506a; font-size: 1.04rem; line-height: 1.86; }
.property-id { margin-top: 22px; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.location-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, .55fr) 1fr; overflow: hidden; border-radius: var(--radius); background: var(--navy-deep); box-shadow: 0 16px 42px rgba(16,40,76,.1); }
.location-copy { padding: 34px; color: white; background: radial-gradient(circle at 100% 0, rgba(199,167,75,.22), transparent 34%); }
.location-copy h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 2.15rem; line-height: 1; font-weight: 500; }
.location-copy p { margin: 0; color: rgba(255,255,255,.72); }
.map-frame { min-height: 380px; overflow: hidden; background: var(--blue-soft); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 42px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 54px; }
.footer-brand { width: 210px; height: 82px; display: grid; place-items: center; }
.footer-brand img { width: 200px; height: 75px; object-fit: contain; }
footer h4 { margin: 12px 0; color: white; font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }
footer p, footer a { font-size: .84rem; }
.footer-links { display: grid; gap: 8px; }
.copyright { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; }
.whatsapp-float { position: fixed; z-index: 20; right: 22px; bottom: 22px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #22a564; color: white; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.whatsapp-float svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .topbar, .main-nav, .header-cta { display: none; }
  .menu-button { display: block; }
  .site-header.open .main-nav { display: grid; position: absolute; top: 78px; left: 0; right: 0; padding: 14px 24px 24px; gap: 0; background: var(--navy-deep); }
  .site-header.open .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .clear-button { min-height: 58px; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-summary { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .summary-action { min-width: 0; width: 100%; padding-left: 0; border-left: 0; }
  .summary-label { text-align: left; }
  .detail-price { text-align: left; }
  .property-highlights { grid-template-columns: repeat(3, 1fr); }
  .highlight-item:nth-child(3) { border-right: 0; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .section-head p { max-width: 100%; text-align: left; }
  .detail-content { grid-template-columns: 1fr; }
  .location-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 70px; }
  .brand { width: 155px; height: 56px; margin-left: -8px; }
  .brand img { width: 150px; height: 53px; }
  .site-header.open .main-nav { top: 70px; }
  .page-hero { padding: 56px 0 80px; }
  .catalog-shell { margin-top: -38px; padding-bottom: 64px; }
  .filter-panel { padding: 16px; }
  .filter-grid { grid-template-columns: 1fr; }
  .results-head { align-items: start; flex-direction: column; gap: 6px; padding-top: 38px; }
  .property-grid { grid-template-columns: 1fr; }
  .card-image { height: 122px; }
  .detail-image { height: 360px; }
  .media-tabs { max-width: 100%; overflow-x: auto; }
  .gallery-nav { width: 40px; height: 40px; font-size: 1.65rem; }
  .gallery-prev { left: 12px; }
  .gallery-next { right: 12px; }
  .thumbnail-button { flex-basis: 76px; height: 58px; }
  .map-frame { min-height: 300px; }
  .location-copy { padding: 24px; }
  .property-highlights { grid-template-columns: 1fr 1fr; }
  .highlight-item, .highlight-item:nth-child(3) { border-right: 1px solid var(--line); }
  .highlight-item:nth-child(even) { border-right: 0; }
  .metadata-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .detail-summary { padding: 22px 0; }
  .summary-copy { padding-left: 14px; }
  .summary-meta { line-height: 1.55; }
  .content-card { padding: 26px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
