/* Palm Springs Vacation Rentals
   Light and quiet so the photographs do the work: warm ivory, deep ink, hairline rules and the
   logo's sun gold as the one accent. Cormorant Garamond for names and headings, Jost (a Futura cousin,
   like the logo's lettering) for everything else. */

:root {
    --ivory: #f8f5ef;
    --paper: #fffdf9;
    --sand: #efe9df;
    --ink: #1c1a17;
    --ink-2: #3b3732;
    --muted: #7a7268;
    --line: #e3dcd0;
    --gold: #e9a93b;
    --gold-ink: #a8711b;
    --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 12px 32px -12px rgba(28, 26, 23, .18);
    --radius: 14px;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 70px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(1280px, 100% - 64px); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.kicker { font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); background: rgba(255, 253, 249, .96);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px -18px rgba(28, 26, 23, .5); transition: background .3s, box-shadow .3s; }
/* A white band over the ivory page, with a hairline and a soft shadow, so the header reads as its own layer. */
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 54px; width: auto; }
.brand .logo-light { display: none; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.site-nav a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.site-nav a:hover { color: var(--gold-ink); }

/* Over the home page's hero the header starts clear, with the light logo. */
.on-hero .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; border-color: transparent; box-shadow: none; }
.on-hero .site-header:not(.scrolled) .logo-dark { display: none; }
.on-hero .site-header:not(.scrolled) .logo-light { display: block; }
.on-hero .site-header { position: fixed; left: 0; right: 0; }

/* ---- Home hero ---- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #1c1a17; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: drift 22s ease-out forwards; }
@keyframes drift { to { transform: scale(1); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.5) 0, rgba(20,18,15,0) 26%), linear-gradient(90deg, rgba(20,18,15,.62) 0, rgba(20,18,15,.25) 45%, rgba(20,18,15,0) 70%), linear-gradient(0deg, rgba(20,18,15,.55) 0, rgba(20,18,15,0) 45%); }
.hero-copy .kicker { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-copy { position: relative; z-index: 1; padding: 0 0 84px; max-width: 780px; }
.hero .kicker { color: var(--gold); }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 400; margin: 14px 0 20px; }
.hero h1 em { font-style: italic; }
.hero p { font-size: 19px; max-width: 600px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 99px; border: 1px solid var(--ink);
    background: var(--ink); color: var(--paper); text-decoration: none; font: 400 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
    transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); background: #000; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--ivory); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.outline:hover { border-color: var(--ink); }
.btn.small { height: 40px; padding: 0 18px; font-size: 12px; }

/* ---- Intro strip ---- */
.intro { padding: 96px 0 30px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: end; }
.intro h2 { font-size: clamp(36px, 4vw, 54px); font-weight: 400; }
.intro p { color: var(--ink-2); font-size: 18px; margin: 0; }
.figures { display: flex; gap: 48px; margin-top: 28px; }
.figures div { border-left: 1px solid var(--line); padding-left: 18px; }
.figures strong { display: block; font: 400 40px/1 var(--serif); }
.figures span { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---- Filters ---- */
.filters { position: sticky; top: var(--header); z-index: 40; background: rgba(248, 245, 239, .94); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); margin-top: 44px; }
.filters-in { display: flex; align-items: center; gap: 12px; padding: 14px 0; flex-wrap: wrap; }
.field { position: relative; display: flex; align-items: center; }
.field .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.filters input[type=search], .filters select { height: 44px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper);
    font: 400 14px var(--sans); color: var(--ink); padding: 0 16px; outline: none; transition: border-color .2s; }
.filters input[type=search] { padding-left: 40px; width: 210px; }
.filters select { appearance: none; -webkit-appearance: none; padding-right: 36px;
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237a7268' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center; }
.filters input:focus, .filters select:focus { border-color: var(--ink); }
.chip { height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters .spacer { flex: 1; }
.result-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.result-count strong { color: var(--ink); font-weight: 500; }
.reset { background: none; border: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); padding: 0 0 0 12px; }

/* ---- Grid of homes ---- */
.homes { padding: 30px 0 110px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.results-bar select { height: 40px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237a7268' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center; appearance: none; -webkit-appearance: none; font: 400 14px var(--sans); color: var(--ink); padding: 0 36px 0 16px; outline: none; }
.results-bar .result-count { font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 30px; }
.card { position: relative; }
.card a.card-link { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 18px 2px 0; }
.card-place { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 30px; margin: 6px 0 10px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.stat { display: inline-flex; align-items: center; gap: 7px; }
.stat .icon { color: var(--gold-ink); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; color: var(--muted); }

.empty { text-align: center; padding: 80px 0; color: var(--muted); }
.empty h3 { font-size: 34px; color: var(--ink); margin-bottom: 8px; }

/* ---- House page ---- */
.house-top { padding: 34px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); letter-spacing: .04em; margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.house-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 26px; }
.house-title h1 { font-size: clamp(42px, 5vw, 68px); font-weight: 400; margin: 8px 0 12px; }
.house-title .stats { font-size: 16px; gap: 8px 24px; }
.title-actions { display: flex; gap: 10px; flex: none; }

.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: min(64vh, 620px); position: relative; }
.mosaic button { padding: 0; border: 0; overflow: hidden; background: var(--sand); position: relative; }
.mosaic button:first-child { grid-row: span 2; border-radius: var(--radius) 0 0 var(--radius); }
.mosaic button:nth-child(3) { border-top-right-radius: var(--radius); }
.mosaic button:nth-child(5) { border-bottom-right-radius: var(--radius); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .3s; }
.mosaic button:hover img { transform: scale(1.03); filter: brightness(1.04); }
.mosaic .all { position: absolute; right: 18px; bottom: 18px; z-index: 2; height: 44px; }

.house-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; padding: 64px 0 110px; }
.lead { font: italic 400 27px/1.45 var(--serif); color: var(--ink); margin-bottom: 30px; }
.prose p { color: var(--ink-2); }
.prose.clamped { max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.more { background: none; border: 0; padding: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; margin-top: 8px; }
.section { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 44px; }
.section > h2 { font-size: 38px; font-weight: 400; margin-bottom: 26px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.room { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.room .icon { color: var(--gold-ink); width: 26px; height: 26px; margin-bottom: 12px; }
.room h3 { font-size: 20px; margin-bottom: 6px; line-height: 1.2; }
.room p { margin: 0; font-size: 14.5px; color: var(--muted); }
.amen-group + .amen-group { margin-top: 30px; }
.amen-group h3 { font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.amen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 26px; list-style: none; padding: 0; margin: 0; }
.amen-list li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.amen-list .icon { color: var(--gold-ink); }

.aside { position: sticky; top: calc(var(--header) + 24px); align-self: start; display: grid; gap: 18px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel h2 { font-size: 28px; font-weight: 400; margin-bottom: 14px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.facts dt .icon { color: var(--gold-ink); }
.facts dd { margin: 0; font-weight: 400; text-align: right; }
.map { height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
.map-note { font-size: 13px; color: var(--muted); margin: 8px 2px 0; display: flex; gap: 6px; align-items: center; }

/* ---- Gallery overlay + lightbox ---- */
.overlay { position: fixed; inset: 0; z-index: 100; background: var(--ivory); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.open { opacity: 1; visibility: visible; }
.overlay-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; background: rgba(248,245,239,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.overlay-bar h2 { font-size: 26px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .icon { width: 22px; height: 22px; }
.photo-grid { columns: 2 420px; column-gap: 12px; padding: 30px 32px 80px; max-width: 1400px; margin: 0 auto; }
.photo-grid figure { margin: 0 0 12px; break-inside: avoid; cursor: zoom-in; }
.photo-grid img { width: 100%; border-radius: 10px; }
.photo-grid figcaption { font-size: 14px; color: var(--muted); padding: 8px 2px 6px; }

.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(14,13,11,.97); color: #fff; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; font-size: 14px; letter-spacing: .1em; }
.lightbox .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.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 - 170px); object-fit: contain; border-radius: 4px; user-select: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-caption { text-align: center; padding: 16px 24px 26px; font: italic 400 21px/1.4 var(--serif); color: rgba(255,255,255,.88); min-height: 66px; }

/* ---- Shortlist page ---- */
.list-hero { padding: 70px 0 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; border-bottom: 1px solid var(--line); }
.list-hero h1 { font-size: clamp(44px, 5.6vw, 76px); font-weight: 400; margin: 12px 0 10px; }
.list-hero p { color: var(--muted); margin: 0; }
.list-tools { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.list { padding: 30px 0 110px; }
.list-item { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.list-item:nth-child(even) .list-photos { order: 2; }
.list-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 16 / 9.4; }
.list-photos img { width: 100%; height: 100%; object-fit: cover; }
.list-photos img:first-child { grid-row: span 2; border-radius: var(--radius) 0 0 var(--radius); }
.list-photos img:nth-child(2) { border-top-right-radius: var(--radius); }
.list-photos img:nth-child(3) { border-bottom-right-radius: var(--radius); }
.list-no { font: italic 400 22px var(--serif); color: var(--gold-ink); }
.list-item h2 { font-size: clamp(36px, 3.6vw, 50px); font-weight: 400; margin: 6px 0 12px; }
.list-item .lede { color: var(--ink-2); margin: 18px 0 24px; }
.list-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 70px 0 60px; }
.footer-in { display: grid; justify-items: center; text-align: center; gap: 6px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 18px; }
.site-footer p { margin: 0; font-size: 15px; }
.site-footer .fine { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 14px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .house-body { grid-template-columns: 1fr; gap: 50px; }
    .aside { position: static; grid-template-columns: 1fr 1fr; }
    .intro { grid-template-columns: 1fr; gap: 24px; }
    .list-item { grid-template-columns: 1fr; gap: 28px; }
    .list-item:nth-child(even) .list-photos { order: 0; }
}
@media (max-width: 760px) {
    :root { --header: 64px; }
    .wrap { width: calc(100% - 32px); }
    body { font-size: 16px; }
    .brand img { height: 36px; }
    .site-nav { gap: 18px; font-size: 12px; }
    .site-nav a:first-child { display: none; }
    .hero-copy { padding-bottom: 54px; }
    .grid { grid-template-columns: 1fr; gap: 38px; }
    .filters-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .filters-in::-webkit-scrollbar { display: none; }
    .filters input[type=search] { width: 170px; }
    .filters .spacer { display: none; }
    .figures { gap: 26px; }
    .house-title { flex-direction: column; align-items: flex-start; }
    .mosaic { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 62vw; }
    .mosaic button:not(:first-child) { display: none; }
    .mosaic button:first-child { grid-row: auto; border-radius: var(--radius); }
    .aside { grid-template-columns: 1fr; }
    .photo-grid { padding: 16px; }
    .lb-stage { padding: 0 8px; }
    .lb-prev, .lb-next { display: none; }
    .list-hero { flex-direction: column; align-items: flex-start; }
    .list-tools { justify-content: flex-start; }
}

/* ---- Print: the house sheet and the shortlist on paper ---- */
@media print {
    @page { margin: 14mm; }
    body { background: #fff; font-size: 11pt; }
    .site-header { position: static; background: none; border: 0; height: auto; padding-bottom: 8mm; }
    .site-nav, .filters, .title-actions, .mosaic .all, .more, .site-footer, .crumbs, .list-tools, .list-actions, .map-wrap, .overlay, .lightbox { display: none !important; }
    .brand .logo-dark { display: block !important; height: 14mm; }
    .brand .logo-light { display: none !important; }
    .wrap { width: 100%; }
    .mosaic { height: 92mm; grid-template-columns: 2fr 1fr; break-inside: avoid; }
    .mosaic button:nth-child(4), .mosaic button:nth-child(5) { display: none; }
    .mosaic button:nth-child(2) { border-top-right-radius: var(--radius); }
    .mosaic button:nth-child(3) { border-bottom-right-radius: var(--radius); }
    .house-body { grid-template-columns: 1fr 64mm; gap: 10mm; padding: 8mm 0 0; }
    .aside { position: static; }
    .panel { box-shadow: none; }
    .prose.clamped { max-height: none; -webkit-mask-image: none; mask-image: none; }
    .section { margin-top: 8mm; padding-top: 6mm; break-inside: avoid; }
    .lead { font-size: 15pt; }
    .list-item { break-inside: avoid; padding: 8mm 0; gap: 8mm; grid-template-columns: 1fr 1fr; }
    .list-item:nth-child(even) .list-photos { order: 0; }
    .card-img img, .mosaic img { transform: none !important; }
}
