/* KINGS PALACE V5 — Luxury editorial system / responsive polish / accessible interactive media.
   Layered last over V2/V3 so existing CMS content and routes remain compatible. */
:root{--wine:#510d27;--wine2:#791b39;--deep:#2b0c19;--gold:#c39c69;--cream:#faf8f5;--line:#ece5de;--ink:#272128;--muted:#756f72;--shadow:0 20px 60px rgba(54,24,34,.085);--wrap:1480px;--v5-radius:18px}
html{scroll-padding-top:110px}body{background:#fdfcfa;color:var(--ink);-webkit-font-smoothing:antialiased}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #bb9160!important;outline-offset:3px}
::selection{background:#ecd2ae;color:#32121f}
.wrap{max-width:var(--wrap)}.site-header{background:#fffdfbf7;border-bottom:1px solid #ded5cf85}.topbar{background:#300a1a}
.nav-inner{max-width:1520px}.brand{flex-shrink:0}.brand-text strong{letter-spacing:.045em}.nav-links{gap:clamp(12px,1.35vw,28px)}.nav-links a{font-weight:650;letter-spacing:.02em}.nav-links a:after{background:var(--gold)}
.btn{border-radius:9px;letter-spacing:.02em}.btn-primary,.search-submit{background:linear-gradient(113deg,#4a0b21,#7d2142)!important;border:1px solid #5f1732!important}.btn-primary:hover,.search-submit:hover{filter:brightness(1.08)}
/* Hero / editorial panels */
.hero{overflow:visible;isolation:isolate}.hero-home{height:auto;min-height:clamp(700px,76vh,900px);background:#26131a;position:relative}.hero-home .hero-bg{z-index:-3;background-position:center center;filter:saturate(.97)}.hero-home .hero-shade{z-index:-2;background:linear-gradient(90deg,rgba(27,9,19,.82) 0%,rgba(33,13,28,.5) 45%,rgba(30,8,23,.16) 88%),linear-gradient(0deg,rgba(21,5,14,.82) 0%,transparent 40%)}
.hero-home .hero-content{height:auto;min-height:clamp(530px,60vh,690px);padding-top:clamp(55px,7vh,120px);padding-bottom:145px;gap:5vw;align-items:center}
.hero-copy{max-width:730px}.hero-copy h1{font-size:clamp(46px,5.4vw,88px);line-height:1.045;letter-spacing:-.052em;text-wrap:balance;margin:15px 0 22px}.hero-copy p{font-size:clamp(16px,1.45vw,21px);line-height:1.7;max-width:590px;color:#f5eceb}.hero-eyebrow{font-size:11px;letter-spacing:.23em;color:#f3dcb6}
.hero-right-brand{gap:28px;margin-inline-end:0}.hero-brand-panel{background:linear-gradient(145deg,rgba(35,11,26,.82),rgba(45,15,29,.7));border:1px solid rgba(237,218,183,.32);box-shadow:0 22px 75px #16081366;backdrop-filter:blur(10px);border-radius:10px;padding:26px 32px}.hero-right-brand .handwritten{color:#fff1de;filter:drop-shadow(0 5px 15px #190e12)}
.hero-nav{bottom:190px!important;z-index:4}.hero-search{z-index:5;bottom:30px!important}.hero-search .search-panel{border-radius:17px;box-shadow:0 18px 55px #14031266!important;padding:13px}.search-panel .search-tabs{border-radius:9px}.search-tabs .current{background:var(--wine)!important;color:#fff!important}.search-fields label{border:1px solid #eee6df;border-radius:9px;background:#fff;min-width:0}.search-fields label:focus-within{border-color:#b89163;box-shadow:0 0 0 2px #dfc6a740}.search-submit{border-radius:10px;min-height:57px}.popular-searches{color:#f0e9e3;gap:8px;flex-wrap:wrap}.popular-searches a{background:#ffffff24;border:1px solid #ffffff4d;border-radius:20px;backdrop-filter:blur(5px);color:#fff;padding:4px 12px;transition:background .2s}.popular-searches a:hover{background:#fff;color:#47162a}
.hero:after{content:'';pointer-events:none;position:absolute;inset-inline:0;bottom:-1px;height:8px;background:linear-gradient(90deg,#7b2041,#c4a16c,#7b2041);opacity:.9}
/* Portfolio overview */
.stats-strip{background:#fff;box-shadow:0 9px 32px #2716220a}.stats-inner{min-height:120px;gap:18px;flex-wrap:wrap}.stat-item{padding-block:15px}.stat-item strong{color:#572037;letter-spacing:-.025em}.stat-trust{color:#6e5862}
.section{padding-top:clamp(65px,6.5vw,104px);padding-bottom:clamp(65px,6.5vw,104px)}.section-heading{align-items:end;gap:18px;margin-bottom:30px}.section-heading h2,.lifestyle-copy h2{font-size:clamp(34px,3.5vw,56px);line-height:1.13;letter-spacing:-.045em}.section-heading p{max-width:630px;color:#6a6165}.eyebrow{letter-spacing:.18em;font-weight:700}.burgundy-eyebrow{color:#9a6c40}.view-link{white-space:nowrap;font-weight:700;color:#6c1736}.view-link:hover{color:#b18b5a}
.featured-section{background:linear-gradient(180deg,#fbfaf8,#fff)}.property-grid{gap:22px}.property-card{border:1px solid #e9ded8;border-radius:17px;box-shadow:0 15px 42px #2a141310}.property-image-wrap{background:#e9e6e4;aspect-ratio:1.53}.property-image-wrap>a,.property-image-wrap>a>img{height:100%;width:100%}.property-image-wrap img{object-fit:cover;object-position:center}.property-content{padding:21px 20px 17px!important}.property-card h3{font-size:20px;line-height:1.37;text-wrap:balance;margin-bottom:9px}.property-address{color:#847a7d}.property-price{letter-spacing:-.03em;font-weight:800;color:#661633}.property-features{border-top:1px solid #eee5de;padding-top:14px;margin-top:14px;display:flex;gap:10px;flex-wrap:wrap;font-size:12px}.property-features span{white-space:nowrap}.property-badge{background:linear-gradient(120deg,#761a3b,#4e1028);letter-spacing:.11em;font-size:10px;border-radius:5px;max-width:calc(100% - 90px)}.property-card .v4-card-media-actions{z-index:6}.property-card .v4-media-pill{border:1px solid #ffffffa0;background:#310e1edb;backdrop-filter:blur(8px);font-size:10px;font-weight:750}.property-card .v4-media-pill:hover{background:#731d40}.property-card .property-card-actions a{color:#6c1c39}
.lifestyle-section{background:#f8f4ee}.lifestyle-photo{border-radius:18px;overflow:hidden;box-shadow:0 30px 65px #4c1e251e}.lifestyle-copy{padding-block:25px}.lifestyle-copy p{font-size:17px;line-height:1.9}.lifestyle-signature{letter-spacing:.19em;color:#9b734f}
.services-section{background:#fff}.service-grid{gap:18px}.service-card{border:1px solid #e9e2db;border-radius:16px;background:linear-gradient(175deg,#fff,#fcf9f6);min-height:250px;transition:transform .25s,box-shadow .25s,border-color .25s}.service-card:hover{transform:translateY(-6px);border-color:#ccab85;box-shadow:0 20px 44px #3f112014}.service-icon{color:#76233f}.service-card h3{font-size:20px}
.community-section{background:#faf7f4}.communities-grid{gap:15px}.community-card{border-radius:16px;overflow:hidden}.community-card img{filter:saturate(.95)}.community-info b{font-size:20px;letter-spacing:-.025em}.testimonial-section{background:linear-gradient(120deg,#2c0919,#611a36 65%,#391020)}
.contact-band{background:linear-gradient(110deg,#3b101f,#6a2440)}.contact-form-on-dark{border-radius:17px;box-shadow:0 22px 60px #16061144}
.footer-intro{background:linear-gradient(120deg,#3f1027,#7b2444)!important}.site-footer{background:#230d19}.footer-content{gap:36px}
/* Listing and detail pages */
.listing-grid .property-card{min-width:0}.listings-sidebar>div{border-radius:14px}.filter-chips a.selected,.search-tabs a.current{background:#611b37}.detail-page{background:#fdfbf9}.detail-top-grid{max-width:1600px;margin:auto;grid-template-columns:minmax(0,2.35fr) minmax(360px,1fr);gap:24px;padding-inline:clamp(18px,3vw,40px)}.detail-gallery,.detail-price-panel{border-radius:15px;overflow:hidden}.detail-main-photo{border-radius:15px;overflow:hidden}.detail-main-photo img{object-fit:cover}.detail-price-panel{border:1px solid #e8ded8;box-shadow:0 14px 42px #2b0d2112;padding:30px}.detail-price-panel h1{font-size:clamp(29px,2.65vw,43px)}.detail-price{font-size:clamp(26px,2.2vw,39px)}.detail-tabs{border-bottom:1px solid #eee3dc;border-radius:0}.detail-section{scroll-margin-top:155px}.v5-panorama-link{display:inline-block;color:#fff;background:#5a1740;border:1px solid #7c4869;border-radius:8px;padding:9px 13px;font-size:12px;font-weight:700}.v5-panorama-link:hover{background:#812a5a}.v5-panorama-discover{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:38px;margin-bottom:20px;padding-top:25px;padding-bottom:25px;border-top:1px solid #e6ded4;border-bottom:1px solid #e6ded4}.v5-panorama-discover h2{font-size:clamp(25px,2.5vw,37px);margin:9px 0}.v5-panorama-discover p{margin:0}.v5-panorama-discover .btn{white-space:nowrap}
/* Lightbox / mobile actions */
.v5-media-lightbox{border:0;background:#110c12ed;color:#fff;padding:0;width:min(94vw,1460px);max-width:94vw;max-height:94vh;box-shadow:0 32px 120px #000c;border-radius:14px;overflow:hidden}.v5-media-lightbox::backdrop{background:rgba(0,0,0,.88);backdrop-filter:blur(9px)}.v5-lightbox-layout{position:relative;height:min(87vh,980px);display:flex;align-items:center;justify-content:center}.v5-lightbox-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.v5-lightbox-close,.v5-lightbox-prev,.v5-lightbox-next{position:absolute;z-index:2;color:#fff;background:#20131ac9;border:1px solid #ffffff60;min-width:46px;height:46px;border-radius:50%;font-size:25px;display:grid;place-items:center}.v5-lightbox-close{right:17px;top:17px}.v5-lightbox-prev{left:14px;top:50%}.v5-lightbox-next{right:14px;top:50%}.v5-lightbox-counter{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);background:#1f111bca;padding:6px 14px;border-radius:40px;font-size:12px;letter-spacing:.1em}.v5-mobile-property-actions{display:none}.detail-main-photo img{cursor:zoom-in}.detail-thumbs .thumb{border-radius:8px}
/* Admin media editorial utility classes */
.v5-media-manager{display:grid;gap:13px;background:#fbf7f2;border:1px solid #e3d4c7;border-radius:13px;padding:19px;margin:20px 0}.v5-media-manager h3{margin:6px 0 5px;font-size:21px}.v5-media-manager p{font-size:13px;line-height:1.75;color:#66555e}.v5-admin-kicker{font-size:10px;color:#89572c;font-weight:800;letter-spacing:.1em}.v5-media-preview{display:flex;align-items:center;gap:14px}.v5-media-preview img{width:160px;height:86px;object-fit:cover;border-radius:8px}.v5-media-preview a{font-weight:750;color:#7c2045}.v5-admin-media-tip{padding:11px 15px;border-inline-start:3px solid #c49d6a;background:#fff7ed;color:#654a40;font-size:13px}.v5-media-insights{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:18px 0 22px}.v5-media-insights>div{padding:24px;background:white;border:1px solid #e7e0dc;border-radius:13px}.v5-media-insights strong{display:block;font-size:34px;color:#64203c}.v5-media-insights span{display:block;color:#71696d;font-size:12px}.v5-media-status{display:block;color:#875e6c;font-weight:500;padding-top:3px}.v5-row-media span{display:inline-flex;white-space:nowrap;border-radius:20px;background:#ecf8ee;color:#20613c;padding:3px 8px;margin:2px;font-size:10px;font-weight:700}.v5-row-media span.demo{background:#fff5e6;color:#93601b}.v5-row-media span.missing{background:#f5f0f1;color:#8c6c73}
/* Actual 360° panoramic photo renderer */
.v5-immersive-page{background:#150d16;color:#f9f3ee;min-height:75vh;padding:44px 0 90px}.v5-immersive-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}.v5-immersive-head .eyebrow{color:#e1bd8f}.v5-immersive-head h1{font-size:clamp(27px,3.7vw,52px);margin:7px 0}.v5-immersive-head p{color:#d7c8cb}.v5-immersive-head .btn{border-color:#edc89c;color:#f9ebda}.v5-panorama-shell{position:relative;width:100%;height:min(66vw,70vh);min-height:340px;max-height:740px;overflow:hidden;border-radius:14px;background:#210f22;cursor:grab;touch-action:none;border:1px solid #926b64;isolation:isolate}.v5-panorama-shell.is-dragging{cursor:grabbing}.v5-panorama-shell canvas{display:block;width:100%;height:100%;background-position:center;background-size:cover}.v5-panorama-loading{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);background:#180b19e8;color:white;padding:15px 24px;border-radius:12px;max-width:90%;text-align:center}.v5-panorama-loading[hidden]{display:none}.v5-panorama-watermark{position:absolute;top:20px;left:20px;pointer-events:none;padding:10px 13px;background:#210e1d90;border:1px solid #fff5;border-radius:8px;font-weight:800;letter-spacing:.15em;font-size:12px}.v5-panorama-watermark span{color:#f9cf95;font-size:10px;display:block;letter-spacing:.2em}.v5-panorama-tools{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:9px;background:#1a0c17c9;border:1px solid #ffffff66;padding:7px;border-radius:35px}.v5-panorama-tools button{background:#ffffff17;border:1px solid #ffffff40;border-radius:30px;color:white;min-width:43px;height:42px;padding:0 14px;white-space:nowrap}.v5-panorama-tools button:hover{background:#ffffff3d}.v5-immersive-disclosure{color:#dbcdd0;line-height:1.7;font-size:13px;padding-top:15px}
/* Responsive first */
@media(max-width:1280px){.nav-phone{display:none}.nav-links{gap:12px}.nav-actions{gap:8px}.hero-right-brand .handwritten{display:none}.detail-top-grid{grid-template-columns:minmax(0,1.65fr) minmax(335px,1fr)}}
@media(max-width:1024px){.hero-home{min-height:690px}.hero-home .hero-content{min-height:500px;padding-top:50px;padding-bottom:150px}.hero-copy h1{font-size:clamp(45px,6vw,68px)}.hero-brand-panel{display:none}.hero-search{bottom:12px!important}.stats-inner{justify-content:center}.stat-trust{display:none}.detail-top-grid{grid-template-columns:1fr}.detail-price-panel{max-width:none}.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.topbar{height:auto;min-height:27px}.topbar-inner>span:last-child{display:none}.site-header{height:68px}.site-header.scrolled{height:64px}.hero-home{min-height:820px}.hero-home .hero-content{min-height:430px;height:auto;padding:70px 18px 240px;align-items:flex-start}.hero-copy h1{font-size:clamp(40px,10.7vw,61px);line-height:1.05}.hero-copy p{font-size:15px}.hero-home .hero-shade{background:linear-gradient(90deg,#160b1aca,#281a2870),linear-gradient(0deg,#160a18bb,transparent 60%)}.hero-right-brand{display:none}.hero-search{bottom:20px!important}.hero-search .search-panel{padding:10px}.hero-nav{bottom:260px!important}.hero-search .search-fields{grid-template-columns:1fr 1fr;gap:7px}.hero-search .search-fields label{min-width:0}.hero-search .search-fields label:first-child{grid-column:span 2}.hero-search .search-submit{grid-column:span 2;min-height:51px}.popular-searches{gap:6px;font-size:10px}.popular-searches a{font-size:10px;padding:3px 8px}.stats-inner{display:grid;grid-template-columns:1fr 1fr;gap:0}.stats-inner .stat-item{padding:18px 10px;border-bottom:1px solid #eee}.section{padding-block:65px}.section-heading h2{font-size:36px}.property-grid{gap:16px}.property-card{border-radius:14px}.property-content{padding:15px!important}.property-card h3{font-size:18px}.property-features{font-size:11px}.lifestyle-photo{border-radius:12px}.service-grid{grid-template-columns:repeat(2,1fr);gap:12px}.service-card{padding:20px 16px;min-height:215px}.service-card h3{font-size:16px}.service-card p{font-size:12px}.community-card{border-radius:11px}.detail-top-grid{padding-inline:16px;gap:14px}.detail-price-panel{padding:20px}.detail-tabs{top:64px}.detail-section{scroll-margin-top:110px}.v5-panorama-discover{flex-direction:column;align-items:flex-start}.v5-mobile-property-actions{position:fixed;bottom:0;left:0;right:0;z-index:110;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:9px 12px max(9px,env(safe-area-inset-bottom));background:#fffcf9f5;border-top:1px solid #e8d8ce;box-shadow:0 -6px 25px #32152822}.v5-mobile-property-actions a{background:#f0e6df;border:1px solid #e5d0c1;border-radius:9px;min-height:47px;display:flex;justify-content:center;align-items:center;color:#52172f;font-size:13px;font-weight:750}.v5-mobile-property-actions a:nth-child(2){background:#e1f5e9;color:#13683a;border-color:#a9dabe}.v5-mobile-property-actions a:last-child{background:#631a3a;color:#fff;border-color:#631a3a}.detail-page{padding-bottom:72px}.v5-media-insights{grid-template-columns:repeat(2,1fr)}.v5-media-insights>div{padding:16px}.v5-immersive-head{align-items:flex-start;flex-direction:column}.v5-panorama-shell{height:55vh;min-height:355px}.v5-panorama-watermark{top:12px;left:12px;font-size:10px}.v5-panorama-tools{bottom:14px}.v5-panorama-tools button{height:37px;min-width:35px;padding:0 9px}}
@media(max-width:420px){.hero-home{min-height:850px}.hero-copy h1{font-size:39px}.search-fields{min-width:0}.hero-search .search-fields{grid-template-columns:1fr}.hero-search .search-fields label,.hero-search .search-fields label:first-child,.hero-search .search-submit{grid-column:span 1}.property-features span{font-size:10px}.service-grid{grid-template-columns:1fr 1fr}.nav-actions .compare-nav{display:none}.v5-lightbox-prev{left:5px}.v5-lightbox-next{right:5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
