:root {
  --sand: #f6f1ea;
  --ink: #1d2626;
  --muted: #5d6b6a;
  --sea: #0b7a96; /* logo teal, darkened for contrast */
  --sea-dark: #075a70;  --line: #e3dbd0;
  --card: #fff;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }

.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.top.solid { background: rgba(246, 241, 234, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-text { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.brand-text span { display: block; font: 500 .58rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; opacity: .8; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-size: .92rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { opacity: .7; }
.lang { border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; padding: 4px 12px; font: 600 .75rem var(--sans); cursor: pointer; }

.hero {
  min-height: 88vh; display: flex; align-items: flex-end;
  padding: 120px clamp(16px, 4vw, 48px) clamp(40px, 8vh, 90px);
  background: #0a4f50 center/cover no-repeat; color: #fff; position: relative;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 40%, rgba(0,0,0,.55)); }
.hero-text { position: relative; max-width: 760px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
.hero p { font-size: 1.1rem; max-width: 560px; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem !important; opacity: .9; }
.search { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; background: rgba(255,255,255,.95); padding: 8px; border-radius: 999px; max-width: 760px; flex-wrap: nowrap; }
.search select { flex: 1 1 130px; min-width: 0; border: 0; background: transparent; padding: 10px 14px; font: inherit; color: var(--ink); }
.search button, .btn { border: 0; background: var(--sea); color: #fff; padding: 12px 26px; border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; display: inline-block; }
.search button:hover, .btn:hover { background: var(--sea-dark); }

.section { padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 48px); max-width: 1320px; margin: 0 auto; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.count { color: var(--muted); margin: 0; }

.filters { background: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 30px; display: grid; gap: 14px; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.frow .price { grid-column: span 2; }
.filters label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.filters select, .filters input { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--sand); border-radius: 10px; padding: 10px 12px; font: 400 .95rem var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }
.price-inputs { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 6px; }
.more-filters summary { cursor: pointer; font-weight: 600; color: var(--sea); width: max-content; }
.more-filters[open] summary { margin-bottom: 12px; }
.chips { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; padding: 0; }
.chips label { position: relative; display: inline-flex; cursor: pointer; font: 500 .9rem var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--sand); transition: background .2s, color .2s; }
.chips input:checked + span { background: var(--sea); border-color: var(--sea); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
.factions { display: flex; align-items: center; gap: 18px; }
.link { background: none; border: 0; color: var(--muted); font: 500 .95rem var(--sans); text-decoration: underline; cursor: pointer; padding: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s; text-decoration: none; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(15, 50, 50, .35); }
.card .ph { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .ph img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.card .info { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.15rem; margin: 0; }
.loc { color: var(--muted); font-size: .9rem; }
.specs { display: flex; gap: 14px; color: var(--muted); font-size: .85rem; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.price { font-weight: 600; color: var(--sea); }
.more-wrap { text-align: center; margin-top: 36px; }
.btn:disabled { opacity: .6; cursor: wait; }

.band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--sea); color: #fff; border-radius: 24px; margin: 0 clamp(16px, 4vw, 48px); max-width: none; }
.band p { max-width: 620px; opacity: .9; }
.band .btn { background: #fff; color: var(--sea-dark); }
.sell { align-items: stretch; }
.sell-text { flex: 1 1 420px; }
.steps { padding-left: 1.2em; margin: 18px 0; display: grid; gap: 10px; max-width: 620px; opacity: .95; }
.sell .note { font-size: .9rem; opacity: .8; }
.sell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.link-light { color: #fff; opacity: .9; }
.sell-form { flex: 1 1 380px; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; }
.sell-card { flex-direction: column; justify-content: center; gap: 12px; padding: clamp(24px, 4vw, 48px); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.sell-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); }
.sell-card strong { font: 600 clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--serif); }
.sell-card span { color: var(--muted); }
.sell-card-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; }
.sell .sell-card .btn { background: var(--sea); color: #fff; align-self: flex-start; margin-top: 8px; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); margin-top: 22px; background: var(--line); }
.foot-logo { height: 56px; width: auto; }
.contact-info { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--muted); }
.form { display: grid; gap: 12px; align-content: start; }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 13px 14px; font: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sea); border-color: transparent; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; color: var(--muted); min-height: 1.6em; }

.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.wa { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }

.detail { width: min(1100px, 100vw - 24px); max-height: calc(100vh - 24px); border: 0; border-radius: 20px; padding: 0; background: var(--sand); color: var(--ink); }
.detail::backdrop { background: rgba(10, 30, 30, .6); }
.detail .close { position: sticky; top: 10px; display: block; margin: 10px 10px -50px auto; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 1.5rem; cursor: pointer; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; height: min(56vh, 520px); }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery .side { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; min-height: 0; }
.gallery .side img { min-height: 0; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; }
.thumbs img { width: 92px; height: 66px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .7; flex: none; }
.thumbs img:hover, .thumbs img.on { opacity: 1; }
.detail-body { padding: 24px clamp(18px, 4vw, 44px) 40px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.detail-body .desc { white-space: pre-line; color: #354242; }
.detail-body aside { background: #fff; border-radius: var(--radius); padding: 22px; align-self: start; position: sticky; top: 20px; }
.feats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.feats li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; }

@media (max-width: 820px) {
  .top nav a:not(:last-of-type) { display: none; }
  .contact, .detail-body { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; height: 42vh; }
  .gallery .side { display: none; }
  .search { border-radius: 18px; flex-wrap: wrap; }
  .frow { grid-template-columns: 1fr 1fr; }
  .frow .price { grid-column: 1 / -1; }
  .search button { width: 100%; }
}
