/* ---------- Portfolio (before / after) ---------- */
.pf { padding: 70px 0 110px; }
.pf-intro { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.pf-intro h2 em { font-style: italic; }
.pf-intro p { color: var(--text-soft); font-weight: 300; font-size: 17px; }

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 44px; justify-content: center; }
.pf-grid:has(> .pf-card:only-child) { grid-template-columns: minmax(0, 520px); }
.pf-card[hidden] { display: none; }
.pf-card figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.pf-room { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); }
.pf-card strong { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; }
.pf-detail { font-size: 14px; color: var(--text-soft); font-weight: 300; }

/* Compare slider: "after" underneath, "before" clipped on top. */
.cmp { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-warm); user-select: none; -webkit-user-select: none; box-shadow: 0 18px 50px rgba(45, 40, 35, .12); }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.25); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.cmp-handle span::before, .cmp-handle span::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.cmp-handle span::before { left: 8px; border-right-color: var(--accent-dark); }
.cmp-handle span::after { right: 8px; border-left-color: var(--accent-dark); }
.cmp-tag { position: absolute; top: 16px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #fff; background: rgba(42, 37, 32, .62); padding: 7px 12px; border-radius: 2px; pointer-events: none; }
.cmp-tag-before { left: 16px; }
.cmp-tag-after { right: 16px; }
/* Invisible full-size range input drives the slider (mouse, touch, keyboard). */
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100vh; }
.cmp-range::-moz-range-thumb { width: 46px; height: 100vh; border: 0; }
.cmp:has(.cmp-range:focus-visible) .cmp-handle span { outline: 2px solid var(--accent-dark); outline-offset: 3px; }

.pf-cta { padding: 100px 0 120px; background: var(--bg-warm); text-align: center; }
.pf-cta h2 em { font-style: italic; }
.pf-cta p { max-width: 560px; margin: 18px auto 36px; color: var(--text-soft); font-weight: 300; font-size: 17px; }
.pf-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

@media (max-width: 760px) {
    .pf { padding: 44px 0 80px; }
    .pf-grid { gap: 36px; }
    .pf-card strong { font-size: 23px; }
}
