/* Oly Martinez Realtor — Miami Beach Art Deco, white & luxurious */
:root {
  --white: #ffffff;
  --ivory: #fbf8f3;
  --shell: #f6efe6;
  --ink: #1f2b33;
  --text: #3a4750;
  --muted: #56636b;
  --teal: #2a7f7c;
  --teal-dark: #17504e;
  --aqua: #bfe3dc;
  --aqua-soft: #e6f4f1;
  --flamingo: #e3907f;
  --blush: #f8e4dc;
  --sun: #f0d38a;
  --gold: #b8955a;
  --gold-text: #86672c; /* deeper gold for readable text on white (about 5:1) */
  --gold-soft: #d9c39a;
  --line: #ebe4d8;
  --ok: #2a7f5b;
  --err: #b2433a;
  --deco: "Poiret One", "Josefin Sans", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Josefin Sans", "Jost", sans-serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 300; color: var(--text); background: var(--white); line-height: 1.7; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
strong, b { font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.muted-light { color: rgba(255,255,255,.75); }

/* ---------- type */
.eyebrow { font-family: var(--caps); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--teal); font-weight: 400; margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.center .eyebrow::after, .eyebrow.both::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow-light { color: var(--sun); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; color: var(--ink); margin: 0 0 20px; }
.h2.light, .light { color: #fff; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); }
.prose p { margin: 0 0 1.1em; }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
code { background: var(--shell); padding: 2px 6px; }

/* deco ornaments */
.deco-rule { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: var(--gold); max-width: 260px; }
.deco-rule::before, .deco-rule::after { content: ""; flex: 1; height: 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding-top: 3px; }
.deco-rule span { width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none; }
.center .deco-rule, .deco-rule.center { margin-inline: auto; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: 0; border: 1px solid transparent;
  font-family: var(--caps); font-size: 12.5px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: .25s ease; white-space: nowrap; }
.btn-gold, .btn-teal { background: var(--teal); color: #fff; }
.btn-gold:hover, .btn-teal:hover { background: var(--teal-dark); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--teal-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--teal-dark); }
.btn-line { padding: 16px 4px; color: var(--ink); border-bottom: 1px solid var(--gold); }
.btn-line:hover { color: var(--teal); }
.btn-text { background: none; color: var(--ink); padding-inline: 12px; }
.btn-text:hover { color: var(--teal); }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 11.5px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-block; margin-top: 8px; color: var(--ink); font-family: var(--caps); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.link-arrow::after { content: " →"; color: var(--gold-text); }
.svc .link-arrow { margin-left: 18px; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--line); opacity: .6; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 54px; border: 1px solid var(--gold); border-radius: 23px 23px 0 0; font-family: var(--deco); font-size: 18px; color: var(--teal); flex: none; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--gold-soft); border-radius: 20px 20px 0 0; }
.brand-mark.big { width: 84px; height: 100px; font-size: 32px; border-radius: 42px 42px 0 0; }
.brand-mark.big::after { border-radius: 39px 39px 0 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--deco); font-size: 26px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.brand-sub { font-family: var(--caps); font-size: 11px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-text); margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a { text-decoration: none; color: var(--ink); font-family: var(--caps); font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; position: relative; padding: 8px 0; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold); transition: .3s; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { left: 0; right: 0; }
.main-nav .nav-cta { border: 1px solid var(--teal); color: var(--teal); padding: 12px 22px; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { background: var(--teal); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: .25s; }

/* ---------- flash */
.flash-stack { margin-top: 18px; display: grid; gap: 8px; }
.flash { padding: 13px 18px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal); }
.flash-ok { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--err); }

/* ---------- hero */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; background: linear-gradient(180deg, var(--white) 0%, var(--white) 70%, var(--ivory) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; min-height: min(78vh, 760px); }
.hero-copy { position: relative; z-index: 1; padding-bottom: 40px; }
.hero-title { font-family: var(--deco); font-weight: 400; font-size: clamp(44px, 5.6vw, 82px); line-height: 1.06; margin: 0; color: var(--ink); letter-spacing: .01em; }
.hero-title em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: clamp(17px, 1.5vw, 19px); max-width: 520px; color: var(--muted); margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.hero-art { position: relative; justify-self: end; width: min(520px, 100%); }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; background: linear-gradient(180deg, var(--aqua-soft) 0%, var(--aqua) 45%, var(--blush) 100%); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame { position: absolute; inset: -18px -18px 18px 18px; border: 1px solid var(--gold); border-radius: 999px 999px 0 0; pointer-events: none; }
.arch-frame::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold-soft); border-radius: 999px 999px 0 0; }
.arch .sunburst { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch-monogram { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-family: var(--deco); color: #fff; }
.arch-monogram span { display: block; font-size: 96px; line-height: 1; letter-spacing: .08em; text-shadow: 0 2px 20px rgba(42,127,124,.25); }
.arch-monogram small { font-family: var(--caps); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--teal-dark); }
.hero-sun { position: absolute; left: -140px; top: -60px; width: 520px; opacity: .55; pointer-events: none; z-index: 0; }

/* full-width property photo hero */
.hero-photo { padding: 0; background: var(--ink); display: flex; flex-direction: column; min-height: min(calc(100vh - 88px), 860px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0; animation: hero-zoom 18s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14,24,30,.82) 0%, rgba(14,24,30,.6) 38%, rgba(14,24,30,.1) 75%),
              linear-gradient(0deg, rgba(14,24,30,.55) 0%, rgba(14,24,30,0) 40%); }
.hero-frame { position: absolute; inset: 22px; z-index: 2; border: 1px solid rgba(240,211,138,.55); pointer-events: none; }
.hero-frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(240,211,138,.22); }
.hero-inner { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 120px; }
.hero-photo .hero-copy { max-width: 640px; padding: 0; }
.hero-photo .hero-title { color: #fff; font-size: clamp(46px, 6vw, 92px); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-photo .hero-sub { color: rgba(255,255,255,.86); }
.eyebrow.light { color: var(--sun); }
.deco-rule.light, .deco-rule.light span { color: var(--sun); border-color: var(--sun); }
.deco-rule.light::before, .deco-rule.light::after { border-color: var(--sun); }
.btn-gold-solid { background: #9d7a3d; color: #fff; font-weight: 400; }
.btn-gold-solid:hover { background: #fff; color: var(--ink); }
.hero-sign { position: absolute; right: 0; bottom: 92px; margin: 0; text-align: right; color: rgba(255,255,255,.8); font-family: var(--caps); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; }
.hero-sign span { display: block; font-family: var(--deco); font-size: 24px; letter-spacing: .14em; color: #fff; margin-bottom: 4px; }
.hero-photo .hero-search { margin-top: 0; z-index: 4; }

.hero-search { position: relative; z-index: 2; margin-top: 10px; margin-bottom: -46px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(31,43,51,.35);
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: stretch; }
.hs-field { display: flex; flex-direction: column; padding: 18px 24px; border-right: 1px solid var(--line); }
.hs-field span { font-family: var(--caps); font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text); }
.hs-field input, .hs-field select { border: 0; padding: 6px 0 0; background: transparent; outline: none; font-size: 16px; color: var(--ink); min-width: 0; font-weight: 300; }
.hs-btn { padding-inline: 40px; }

/* ---------- sections */
.section { padding: 120px 0; }
.section.tight { padding: 60px 0 100px; }
.section-sand, .section-ivory { background: var(--ivory); }
.section-aqua { background: var(--aqua-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center > div { display: flex; flex-direction: column; align-items: center; }
.section-note { max-width: 440px; margin: 0; color: var(--muted); }

/* intro / portrait */
.intro { padding-top: 160px; }
.intro-grid, .about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 90px; align-items: center; }
.about-grid { align-items: start; }
.portrait-frame { position: relative; }
.portrait-frame::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--gold); border-radius: 999px 999px 0 0; z-index: 0; }
.portrait-frame img, .portrait-placeholder { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.portrait-frame.tall img, .portrait-frame.tall .portrait-placeholder { aspect-ratio: 3 / 4; }
.portrait-placeholder { display: grid; place-items: center; background: linear-gradient(180deg, var(--blush), var(--aqua)); }
.portrait-placeholder span { font-family: var(--deco); font-size: 110px; color: #fff; letter-spacing: .08em; }
.portrait-tag { position: absolute; right: -24px; bottom: 40px; background: #fff; padding: 18px 26px; border: 1px solid var(--line); display: flex; flex-direction: column; text-align: center; }
.portrait-tag strong { font-family: var(--deco); font-size: 21px; color: var(--ink); letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.portrait-tag span { font-family: var(--caps); font-size: 12px; font-weight: 400; color: var(--gold-text); letter-spacing: .3em; text-transform: uppercase; margin-top: 4px; }
.checks { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); background: var(--blush); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--deco); font-size: 48px; color: var(--teal); line-height: 1; }
.stats dd { margin: 8px 0 0; font-family: var(--caps); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--shell); margin: 10px 10px 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-count { position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-family: var(--caps); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.card-price { font-family: var(--serif); font-size: 32px; color: var(--ink); margin: 0; font-weight: 500; line-height: 1.1; }
.card-price small { font-size: 17px; }
.card-note { display: block; font-family: var(--caps); font-size: 10.5px !important; letter-spacing: .26em; text-transform: uppercase; color: var(--flamingo); margin-top: 6px; }
.card-title { font-family: var(--caps); font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; margin: 14px 0 4px; line-height: 1.55; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--teal); }
.card-place { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.card-facts { list-style: none; padding: 16px 0 0; margin: auto 0 0; display: flex; justify-content: center; gap: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.card-facts li { display: flex; align-items: center; gap: 7px; }
.card-facts svg { color: var(--teal); }

.badge { display: inline-block; font-family: var(--caps); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; padding: 7px 11px 6px; background: #fff; color: var(--ink); }
.badge-for-sale { background: var(--teal); color: #fff; }
.badge-for-rent { background: var(--aqua); color: var(--teal-dark); }
.badge-coming-soon { background: var(--sun); color: var(--ink); }
.badge-pre-construction { background: var(--flamingo); color: #fff; }
.badge-pending { background: var(--gold-soft); color: var(--ink); }
.badge-sold, .badge-rented { background: var(--ink); color: #fff; }
.badge-water { background: rgba(255,255,255,.94); color: var(--teal); }
.badge-type { background: var(--shell); color: var(--ink); }
.badge-draft { background: #fff3cd; color: #7a5b00; }
.badge-featured { background: var(--blush); color: var(--ink); }

.empty { background: #fff; border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 6px; padding: 60px 30px; text-align: center; max-width: 720px; margin: 0 auto; }
.empty h3 { font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

/* services teaser */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { padding: 46px 30px 42px; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: .35s; position: relative; text-align: center; background: #fff; }
.service::before { content: ""; position: absolute; left: 50%; top: 0; width: 60px; height: 3px; transform: translateX(-50%); background: var(--c, var(--teal)); }
.service:nth-child(2) { --c: var(--flamingo); }
.service:nth-child(3) { --c: var(--gold); }
.service:nth-child(4) { --c: var(--sun); }
.service:hover { border-color: var(--gold-soft); box-shadow: 0 30px 50px -40px rgba(31,43,51,.4); transform: translateY(-4px); }
.service-num { font-family: var(--deco); font-size: 30px; color: var(--gold-text); }
.service h3 { font-family: var(--caps); font-size: 17px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); margin: 14px 0 16px; }
.service p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* areas */
.areas { background: var(--aqua-soft); position: relative; overflow: hidden; }
.areas .section-note { color: var(--text); }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--aqua); border: 1px solid var(--aqua); }
.area { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 18px; background: var(--aqua-soft); text-decoration: none; color: var(--ink); transition: .3s; text-align: center; }
.area:hover { background: #fff; }
.area-name { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.area-county { font-family: var(--caps); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--teal); }

/* quotes */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); padding: 40px 36px; text-align: center; }
.quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 23px; line-height: 1.45; color: var(--ink); font-style: italic; }
.quote figcaption { font-family: var(--caps); color: var(--gold-text); font-size: 12px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; }

/* cta */
.cta-band { background: var(--blush); color: var(--text); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band .h2.light { color: var(--ink); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; position: relative; }
.cta-inner p { margin: 0; font-size: 18px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta-band .btn-ghost-light { border-color: var(--ink); color: var(--ink); }
.cta-band .btn-ghost-light:hover { background: var(--ink); color: #fff; }
.cta-sun { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 900px; max-width: none; opacity: .5; pointer-events: none; }

/* page hero */
.page-hero { position: relative; background: var(--ivory); padding: 100px 0 80px; text-align: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero.compact { padding: 80px 0 120px; }
.page-hero .eyebrow-light { color: var(--teal); }
.page-hero .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.page-title { font-family: var(--deco); font-weight: 400; font-size: clamp(40px, 5vw, 66px); line-height: 1.08; margin: 0 0 14px; color: var(--ink); position: relative; }
.page-sub { margin: 0 auto; font-size: 19px; color: var(--muted); max-width: 640px; position: relative; }
.page-hero .wrap { position: relative; }
.page-hero::before { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 760px; height: 380px; max-width: 120%;
  background: url("../img/sunburst.svg") center bottom / contain no-repeat; opacity: .55; }

/* about */
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 30px; margin: 30px 0 36px; padding: 28px 0; border-block: 1px solid var(--line); }
.about-facts h3 { margin: 0; font-family: var(--caps); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text); font-weight: 400; }
.about-facts p { margin: 4px 0 0; color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { background: #fff; padding: 36px 28px; border: 1px solid var(--line); border-top: 3px solid var(--teal); text-align: center; }
.value:nth-child(2) { border-top-color: var(--flamingo); }
.value:nth-child(3) { border-top-color: var(--gold); }
.value:nth-child(4) { border-top-color: var(--sun); }
.value h3 { font-family: var(--caps); font-size: 15px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.value p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* services page */
.subnav { display: flex; gap: 0; flex-wrap: wrap; justify-content: center; margin-top: -28px; position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); width: fit-content; max-width: calc(100% - 40px); }
.subnav a { text-decoration: none; padding: 16px 24px; color: var(--ink); font-family: var(--caps); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; border-right: 1px solid var(--line); }
.subnav a:last-child { border-right: 0; }
.subnav a:hover { background: var(--aqua-soft); color: var(--teal); }
.svc { scroll-margin-top: 100px; }
.svc-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 90px; align-items: start; }
.svc-grid > div:first-child { position: sticky; top: 130px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding: 24px 0 24px 44px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.svc-list li:first-child { border-top: 1px solid var(--line); }
.svc-list li::before { content: ""; position: absolute; left: 6px; top: 33px; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.svc-list strong { color: var(--ink); }

/* listings filters */
.filters { background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(31,43,51,.35); padding: 22px; display: grid; grid-template-columns: 2fr repeat(6, 1fr) auto; gap: 14px; align-items: end; margin-top: -110px; position: relative; z-index: 2; }
.filters label, .form label { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.filters label span, .form label > span { font-family: var(--caps); font-size: 12px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); }
.filters input, .filters select, .form input:not([type=checkbox]):not([type=file]), .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0; background: #fff; outline: none; transition: border .2s; font-size: 16px; font-weight: 300; }
.filters input:focus, .filters select:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); }
.f-actions { display: flex; gap: 4px; }
.results-count { font-family: var(--caps); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 34px 0 24px; }

/* listing detail */
.crumbs { padding: 28px 0 18px; display: flex; gap: 14px; align-items: center; }
.crumbs a { text-decoration: none; color: var(--muted); font-family: var(--caps); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; height: min(64vh, 620px); }
.gallery button { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; position: relative; background: var(--shell); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.03); }
.g-main { overflow: hidden; height: 100%; }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-side { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
.g-side:has(> :only-child) { grid-template-columns: 1fr; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23,80,78,.55); color: #fff; font-family: var(--caps); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 70px; align-items: start; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 52px); color: var(--ink); line-height: 1.1; margin: 0 0 8px; }
.detail-address { color: var(--muted); margin: 0 0 18px; }
.detail-price { font-family: var(--deco); font-size: 46px; color: var(--teal); margin: 0 0 30px; line-height: 1; }
.detail-price small { font-size: 20px; }
.key-facts { list-style: none; padding: 24px 0; margin: 0 0 44px; display: flex; border-block: 1px solid var(--line); flex-wrap: wrap; }
.key-facts li { flex: 1; min-width: 110px; padding: 0 20px; border-right: 1px solid var(--line); color: var(--muted); font-family: var(--caps); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; text-align: center; }
.key-facts li:last-child { border-right: 0; }
.key-facts span { display: block; font-family: var(--deco); font-size: 36px; color: var(--ink); letter-spacing: 0; line-height: 1.2; }
.detail-block { margin-top: 48px; }
.feature-list { columns: 2; gap: 30px; padding: 0; list-style: none; margin: 0; }
.feature-list li { break-inside: avoid; padding: 9px 0 9px 24px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); font-weight: 400; text-align: right; }
.map { overflow: hidden; aspect-ratio: 16 / 8; background: var(--shell); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75); }
.inquiry { position: sticky; top: 120px; scroll-margin-top: 120px; }
.inquiry-card { background: #fff; border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 6px; padding: 30px; }
.agent-mini { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.agent-mini img { width: 58px; height: 68px; border-radius: 29px 29px 0 0; object-fit: cover; }
.agent-mini div { display: flex; flex-direction: column; line-height: 1.35; }
.agent-mini strong { font-family: var(--deco); font-size: 19px; color: var(--ink); letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.agent-mini span:not(.brand-mark) { font-size: 13px; color: var(--muted); }
.inquiry-alt { display: flex; justify-content: center; gap: 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.inquiry-alt a { color: var(--teal); text-decoration: none; font-family: var(--caps); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

.gallery { position: relative; }
.gallery .g-all { position: absolute; right: 18px; bottom: 18px; z-index: 2; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border: 1px solid var(--gold); padding: 12px 18px; font-family: var(--caps); font-size: 11.5px;
  letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 6px 24px rgba(31,43,51,.18); overflow: visible; }
.gallery .g-all:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* "View all photos" tour: every photo, large, two side by side */
.tour { position: fixed; inset: 0; z-index: 90; background: #fff; overflow-y: auto; }
.tour[hidden] { display: none; }
.tour-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 20px; padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.tour-back { background: none; border: 0; cursor: pointer; color: var(--teal); font-family: var(--caps); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 8px 0; }
.tour-title { flex: 1; min-width: 0; font-family: var(--serif); font-size: 20px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-count { color: var(--muted); font-family: var(--caps); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.tour-grid { max-width: 1200px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tour-item { padding: 0; border: 0; background: var(--shell); cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; }
.tour-item.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.tour-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tour-item:hover img { transform: scale(1.02); }

/* full-screen viewer: one photo at a time, arrows on each side, thumbnails below */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #11181d; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 24px; }
.lb-count { margin: 0; font-family: var(--caps); font-size: 12px; letter-spacing: .24em; color: rgba(255,255,255,.75); white-space: nowrap; }
.lb-title { flex: 1; min-width: 0; margin: 0; text-align: center; font-family: var(--serif); font-size: 18px; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; }
.lb-close { font-size: 40px; width: 52px; height: 52px; line-height: 1; opacity: .8; font-weight: 200; }
.lb-close:hover { opacity: 1; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 84px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); object-fit: contain; user-select: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50% !important;
  background: rgba(255,255,255,.12) !important; font-size: 38px; line-height: 1; font-weight: 200; display: grid; place-items: center; padding-bottom: 4px; }
.lb-prev:hover, .lb-next:hover { background: var(--teal) !important; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-strip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 18px; justify-content: safe center; scrollbar-width: thin; }
.lb-strip button { flex: none; width: 92px; height: 62px; padding: 0; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s; }
.lb-strip button:hover { opacity: .8; }
.lb-strip button.on { opacity: 1; outline-color: var(--sun); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* home: "See my listings" band with Oly pointing at the button */
.showcase { background: linear-gradient(180deg, #fff 0%, var(--ivory) 100%); padding: clamp(60px, 8vw, 110px) 0; overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.showcase-title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.05; color: var(--ink); margin: 6px 0 0; }
.deco-rule.left { margin-left: 0; }
.showcase-copy .lead { margin: 0 0 34px; max-width: 440px; }
.btn-arrow span { display: inline-block; margin-left: 10px; transition: transform .25s; }
.btn-arrow:hover span { transform: translateX(5px); }
.showcase-photo { position: relative; display: block; }
.showcase-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); pointer-events: none; }
.showcase-photo img { position: relative; display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% 0%; }

/* forms */
.form { display: grid; gap: 20px; }
.form.compact { gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row.four { grid-template-columns: repeat(4, 1fr); }
.form textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 60px; align-items: start; margin-top: -90px; position: relative; z-index: 2; }
.contact-card { background: #fff; border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 6px; padding: 44px; }
.sent { text-align: center; padding: 30px 0; }
.contact-side { padding-top: 110px; }
.contact-person { display: flex; gap: 18px; align-items: center; margin-bottom: 28px; }
.contact-person img { width: 76px; height: 90px; border-radius: 38px 38px 0 0; object-fit: cover; }
.contact-person div { display: flex; flex-direction: column; }
.contact-person strong { font-family: var(--deco); font-size: 26px; color: var(--ink); line-height: 1.1; letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.contact-person span { color: var(--muted); font-size: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; color: var(--ink); }
.contact-list li span { font-family: var(--caps); font-size: 12px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text); }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 18px; }
.contact-list a:hover { color: var(--teal); }
.service-area { color: var(--muted); font-size: 15px; }
.service-area strong { color: var(--ink); }

/* footer */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.85); padding: 90px 0 0; font-size: 15px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 0; border-top: 1px solid rgba(217,195,154,.45); border-bottom: 1px solid rgba(217,195,154,.45); padding-top: 3px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; padding-bottom: 56px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: var(--sun); }
.brand-light .brand-mark { color: #fff; border-color: var(--gold-soft); }
.footer-tag { max-width: 340px; margin: 22px 0 24px; }
.footer-h { font-family: var(--caps); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--sun); font-weight: 400; margin: 6px 0 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover { color: var(--sun); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); color: #fff; transition: .2s; }
.socials a:hover { background: var(--flamingo); border-color: var(--flamingo); }
.socials.dark a { color: var(--teal); border-color: var(--line); }
.socials.dark a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding: 26px 0 36px; display: flex; justify-content: space-between; gap: 30px; align-items: center; font-size: 13px; color: rgba(255,255,255,.75); }
.legal-text p { margin: 0 0 4px; }
.eho { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; flex: none; }
.whatsapp-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); }

/* ---------- responsive */
@media (max-width: 1100px) {
  .filters { grid-template-columns: repeat(4, 1fr); }
  .filters .f-grow { grid-column: 1 / -1; }
  .service-grid, .values { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; }
  .main-nav { gap: 26px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 88px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 28px;
    transform: translateY(-130%); transition: transform .3s ease; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0,0,0,.25); }
  .main-nav a { padding: 18px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { margin-top: 18px; text-align: center; }
  .nav-open .main-nav { transform: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .section { padding: 84px 0; }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { justify-self: center; width: min(420px, calc(100% - 24px)); }
  .hero-search { margin-top: 56px; grid-template-columns: 1fr 1fr; }
  .hero-search .hs-grow { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .hs-field:nth-child(3) { border-right: 0; }
  .hs-btn { grid-column: 1 / -1; padding: 18px; }
  .hero.hero-photo { padding-top: 0; min-height: 0; }
  .hero-photo .hero-search { margin-top: 0; }
  .hero-inner { padding: 70px 0 60px; min-height: 560px; }
  .hero-photo::before { background: linear-gradient(0deg, rgba(14,24,30,.8) 0%, rgba(14,24,30,.45) 60%, rgba(14,24,30,.25) 100%); }
  .hero-sign { display: none; }
  .hero-frame { inset: 12px; }
  .intro { padding-top: 130px; }
  .intro-grid, .about-grid, .svc-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; gap: 56px; }
  .svc-grid > div:first-child { position: static; }
  .portrait-frame { max-width: 420px; margin-inline: auto; width: calc(100% - 20px); }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .g-main { aspect-ratio: 4 / 3; }
  .g-side { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; }
  .g-side .g-thumb { aspect-ratio: 1; }
  .gallery .g-all { right: 10px; bottom: auto; top: 10px; padding: 9px 12px; font-size: 10.5px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-photo { order: -1; width: calc(100% - 18px); }
  .inquiry { position: static; }
  .contact-side { padding-top: 0; }
  .form-row.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { height: 74px; }
  .main-nav { inset: 74px 0 auto 0; }
  .brand-name { font-size: 19px; letter-spacing: .1em; }
  .brand-sub { font-size: 8.5px; letter-spacing: .28em; }
  .brand-mark { width: 38px; height: 46px; font-size: 15px; }
  .hero-title { font-size: 42px; }
  .card-grid, .service-grid, .values, .form-row, .form-row.three, .form-row.four, .about-facts, .spec { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .area { padding: 22px 10px; }
  .area-name { font-size: 21px; }
  .filters { grid-template-columns: 1fr 1fr; margin-top: -90px; }
  .f-actions { grid-column: 1 / -1; }
  .f-actions .btn { flex: 1; }
  .feature-list { columns: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .contact-card { padding: 26px 20px; }
  .portrait-tag { right: 6px; }
  .key-facts li { padding: 0 8px; min-width: 0; }
  .key-facts span { font-size: 28px; }
  .a-row { grid-template-columns: 72px 1fr; }
  .a-row img { width: 72px; height: 56px; }
  .a-tags, .a-actions { grid-column: 2; }
  .subnav a { padding: 12px 14px; font-size: 11px; }
  .photo-field { grid-template-columns: 84px 1fr; }
  .pf-preview { width: 84px; height: 84px; }
  .admin-form fieldset { padding: 18px 16px 22px; }
  .hero-sun { width: 360px; left: -120px; }
  .tour-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 12px; }
  .tour-item, .tour-item.wide { aspect-ratio: 3 / 2; }
  .tour-title { display: none; }
  .lb-title { display: none; }
  .lb-top { justify-content: space-between; }
  .lb-stage { padding: 0; }
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 30px; background: rgba(0,0,0,.35) !important; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-strip button { width: 64px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- WordPress additions ---------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .tour, .admin-bar .lightbox { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .tour, .admin-bar .lightbox { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.gallery.single { grid-template-columns: 1fr; }
.lead p { margin: 0 0 1em; }
.form-error { background: #fdf0ee; border-left: 3px solid var(--err, #b3412e); padding: 12px 16px; margin: 0 0 18px; color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.pager .page-numbers { padding: 10px 16px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--caps); font-size: 12px; letter-spacing: .18em; }
.pager .page-numbers.current, .pager a.page-numbers:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.page-body { max-width: 820px; }
.page-body img { max-width: 100%; height: auto; }
.detail-desc img { max-width: 100%; height: auto; }
.post-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.legal-text a, .about-facts a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold); }
.legal-text a:hover, .about-facts a:hover { color: var(--sun); }
.about-facts a:hover { color: var(--teal); }

/* ---------- My Listings page (phone first) ---------- */
.page-my-listings .whatsapp-fab { display: none; }
.portal { background: var(--ivory); padding: 28px 0 80px; min-height: 70vh; }
.portal-wrap { max-width: 1000px; }
.portal-h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 6vw, 42px); color: var(--ink); margin: 0; line-height: 1.1; }
.portal-hello { margin: 0 0 2px; color: var(--gold-text); font-family: var(--caps); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.portal-lead { color: var(--muted); margin: 8px 0 22px; }
.portal-small { margin: 16px 0 0; font-size: 15px; }
.portal-small a { color: var(--teal); }
.portal-login { max-width: 420px; margin: 20px auto; background: #fff; border: 1px solid var(--line); padding: 34px 26px; text-align: center; }
.portal-login .brand-mark.big { margin: 0 auto 16px; }
.portal-login form { text-align: left; display: grid; gap: 14px; margin-top: 8px; }
.portal-login form p { margin: 0; display: grid; gap: 6px; }
.portal-login label { font-size: 15px; color: var(--ink); }
.portal-login input[type=text], .portal-login input[type=password] { width: 100%; font-size: 17px; padding: 14px; border: 1px solid #cfc6b6; background: #fff; border-radius: 0; }
.portal-login .login-remember label { display: flex; align-items: center; gap: 10px; }
.portal-login .login-remember input { width: 20px; height: 20px; accent-color: var(--teal); }
.portal-login input[type=submit] { width: 100%; background: var(--teal); color: #fff; border: 0; padding: 16px; font-family: var(--caps); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; }
.portal-top { display: grid; gap: 14px; margin-bottom: 18px; }
.portal-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 14px; border: 1px solid #cfc6b6; background: #fff; color: var(--ink); text-decoration: none; font-family: var(--sans); font-size: 15px; font-weight: 400; cursor: pointer; border-radius: 0; text-align: center; }
.pbtn:hover { border-color: var(--teal); color: var(--teal); }
.pbtn.on, .pbtn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.pbtn.primary:hover { background: var(--teal-dark); }
.pbtn.danger { color: var(--err); border-color: #e3b9b4; }
.pbtn.danger:hover { background: var(--err); color: #fff; }
.pcount { background: var(--flamingo); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.portal-note { background: #eef7f2; border-left: 4px solid var(--ok); padding: 14px 16px; margin: 0 0 18px; color: var(--ink); }
.portal-note.error { background: #fdf0ee; border-left-color: var(--err); }
.portal-note a { color: var(--teal); margin-left: 6px; white-space: nowrap; }
.portal-add { display: flex; width: 100%; justify-content: center; margin-bottom: 18px; min-height: 54px; }
.portal-empty { background: #fff; border: 1px dashed #cfc6b6; padding: 28px 20px; text-align: center; color: var(--muted); }
.plist, .pmsgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pitem { background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr; }
.pitem.is-hidden { opacity: .8; }
.pthumb { display: block; aspect-ratio: 16 / 9; background: var(--shell); overflow: hidden; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb span { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; }
.pinfo { padding: 14px 16px 16px; min-width: 0; }
.pbadges { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.pbadges .badge { border: 1px solid var(--line); font-size: 10.5px; }
.ptitle { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; margin: 0 0 4px; }
.ptitle a { color: var(--ink); text-decoration: none; }
.pmeta { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.pactions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pactions form { display: contents; }
.pmsg { background: #fff; border: 1px solid var(--line); padding: 16px; }
.pmsg-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pmsg-head strong { font-size: 18px; color: var(--ink); font-weight: 500; }
.pmsg-head time { color: var(--muted); font-size: 14px; }
.pmsg-about { margin: 2px 0 8px; color: var(--teal); font-size: 15px; }
.pmsg-body { margin: 0 0 12px; color: var(--ink); }
.pform { display: grid; gap: 16px; }
.psection { background: #fff; border: 1px solid var(--line); margin: 0; padding: 18px 16px 20px; display: grid; gap: 14px; min-width: 0; }
.psection legend { font-family: var(--caps); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--teal-dark); padding: 0 8px; margin-left: -8px; font-weight: 400; }
.phint { margin: 0; color: var(--muted); font-size: 15px; }
.phint.bad { color: var(--err); }
.pfield { display: grid; gap: 6px; min-width: 0; }
.pfield > span { font-size: 15px; color: var(--ink); font-weight: 400; }
.pfield input, .pfield select, .pfield textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); padding: 13px 12px; border: 1px solid #cfc6b6; background: #fff; border-radius: 0; }
.pfield textarea { resize: vertical; line-height: 1.5; }
.pfield input:focus, .pfield select:focus, .pfield textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.pcheck { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink); min-height: 40px; cursor: pointer; }
.pcheck input { width: 24px; height: 24px; accent-color: var(--teal); flex: none; }
.pphotos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pphotos:empty { display: none; }
.pphotos li { position: relative; background: var(--shell); border: 2px solid transparent; }
.pphotos li.is-cover { border-color: var(--teal); }
.pphotos li.dragging { opacity: .4; }
.pphotos li.removing img { opacity: .25; }
.pphotos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pcover { display: none; position: absolute; left: 6px; top: 6px; background: var(--teal); color: #fff; font-size: 12px; padding: 3px 8px; }
.pphotos li.is-cover .pcover { display: block; }
.pphoto-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border-top: 1px solid var(--line); }
.pphoto-tools button { min-height: 42px; border: 0; border-right: 1px solid var(--line); background: #fff; font-size: 22px; color: var(--ink); cursor: pointer; }
.pphoto-tools button:hover { background: var(--aqua-soft); }
.pt-remove { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-top: 1px solid var(--line); color: var(--err); font-size: 15px; cursor: pointer; }
.pt-remove input { width: 20px; height: 20px; accent-color: var(--err); }
.padd-photos { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 22px 14px; border: 2px dashed var(--teal); background: var(--aqua-soft); cursor: pointer; position: relative; }
.padd-photos input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.padd-btn { font-size: 18px; color: var(--teal-dark); font-weight: 500; }
.padd-photos small { color: var(--muted); font-size: 14px; }
.pnew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pnew:empty { display: none; }
.pnew li { aspect-ratio: 1; background: var(--shell); overflow: hidden; display: grid; place-items: center; font-size: 11px; color: var(--muted); word-break: break-all; padding: 2px; }
.pnew img { width: 100%; height: 100%; object-fit: cover; }
.psave { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 12px 0; background: linear-gradient(180deg, rgba(251,248,243,0) 0%, var(--ivory) 30%); }
.psave .btn { min-height: 54px; width: 100%; justify-content: center; }
.psave .btn:disabled { opacity: .7; cursor: wait; }
.footer-agent { color: inherit; opacity: .8; }

@media (min-width: 700px) {
  .portal { padding-top: 44px; }
  .portal-top { grid-template-columns: 1fr auto; align-items: end; }
  .portal-nav { display: flex; flex-wrap: wrap; }
  .portal-add { width: auto; display: inline-flex; }
  .pitem { grid-template-columns: 260px 1fr; }
  .pthumb { aspect-ratio: auto; height: 100%; min-height: 170px; }
  .pactions { display: flex; flex-wrap: wrap; }
  .pactions form { display: contents; }
  .psection { grid-template-columns: 1fr 1fr; padding: 24px 26px 26px; gap: 16px 20px; }
  .psection .wide, .psection legend + .phint, .psection .pphotos, .psection .padd-photos, .psection .pnew, .psection .pwarn, .psection > .phint { grid-column: 1 / -1; }
  .pphotos { grid-template-columns: repeat(3, 1fr); }
  .pnew { grid-template-columns: repeat(6, 1fr); }
  .psave { grid-template-columns: auto 240px; justify-content: end; }
}
@media (min-width: 1000px) {
  .pphotos { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- phones: nothing may push the page sideways ---------- */
html, body { overflow-x: clip; }
.btn { max-width: 100%; }
@media (max-width: 620px) {
  .btn { white-space: normal; text-align: center; line-height: 1.5; padding: 15px 20px; }
  .empty { padding: 40px 18px; }
  .empty .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  img, iframe, video { max-width: 100%; }
}

/* ---------- search bar sits fully inside the top photo (it used to hang below and get cut off) ---------- */
.hero-photo .hero-search { margin-bottom: 52px; }
.hero-photo .hero-inner { padding-bottom: 56px; }
.intro { padding-top: 110px; }
@media (max-width: 900px) {
  .hero-photo .hero-search { margin-bottom: 30px; }
  .hero-photo .hero-inner { padding-bottom: 40px; }
  .intro { padding-top: 80px; }
}

/* ---------- Oly's signed-in bar (only she sees it) ---------- */
.agent-bar { background: var(--ink); color: #fff; font-size: 14px; position: relative; z-index: 45; }
.agent-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; flex-wrap: wrap; padding: 6px 0; }
.agent-bar-hi { color: rgba(255,255,255,.8); }
.agent-bar-links { display: flex; gap: 8px; flex-wrap: wrap; }
.agent-bar a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: 7px 14px; }
.agent-bar a:hover { background: rgba(255,255,255,.12); }
.agent-bar a.agent-bar-main { background: var(--gold-text); border-color: var(--gold-text); }

/* ---------- My Listings: main photo + more photos ---------- */
.psub { margin: 6px 0 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.pmain { display: grid; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pmain-row { display: grid; gap: 12px; }
.pmain-preview { position: relative; aspect-ratio: 4 / 3; background: var(--shell); border: 2px solid var(--teal); overflow: hidden; display: grid; place-items: center; }
.pmain-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmain-empty { color: var(--muted); font-size: 15px; padding: 10px; text-align: center; }
@media (min-width: 700px) {
  .pmain, .psection > .psub { grid-column: 1 / -1; }
  .pmain-row { grid-template-columns: 260px 1fr; align-items: stretch; }
  .pmain-pick { align-content: center; }
}
