/* Horizon Properties | International Soft Luxe | production upgrade
   Real HTML typography, same approved editorial direction.
   Owner access is secured by Supabase RLS, not by visual hiding. */
:root{--hp-ink:#133b2a;--hp-dark:#0e422e;--hp-gold:#ae976c;--hp-ivory:#fbf9f3;--hp-leaf: url('assets/classic-leaf-sprig.svg');--hp-shadow:0 20px 42px rgba(22,42,24,.12),0 4px 13px rgba(29,45,27,.05);}
html,body{overflow-x:clip}
body{background:radial-gradient(ellipse at -10% 25%,rgba(143,169,131,.2),transparent 27%),#faf8f3}
:focus-visible{outline:3px solid #987d4c;outline-offset:4px}
.screenshot-landing{display:none!important}
.site-container{width:min(1512px,calc(100% - 7.5vw));margin-inline:auto}
.site-container>.header,.site-container main>.hero,.site-container main>.quick-search,.site-container main>.communities-section{display:flex!important}
.site-container>.header{display:flex!important}
.site-container main>.hero{display:grid!important}
.site-container main>.quick-search{display:flex!important}
.site-container main>.communities-section{display:block!important}
.header{margin-top:14px;margin-bottom:15px;box-shadow:0 12px 30px rgba(38,48,32,.10),0 3px 8px rgba(38,48,32,.04);border:1px solid rgba(229,225,214,.95);background:#fffefa}
.brand-icon{border-radius:15px}
.brand-words strong{font-family:var(--sans);font-weight:800;letter-spacing:-.05em}
.mainnav a{font-weight:600}.mainnav a.active{color:#133e2e}
.hero{grid-template-columns:41% 59%;height:445px;box-shadow:0 17px 36px rgba(31,47,26,.105),0 4px 12px rgba(25,48,28,.04);background:#fcfaf5;border-radius:42px}
.hero-copy{padding:46px 0 25px clamp(29px,3vw,52px)}
.hero-copy .eyebrow{white-space:normal;letter-spacing:.24em;line-height:1.6;font-size:12px;color:#254a36;margin-bottom:18px}
.hero h1{font:700 clamp(40px,4.35vw,72px)/1.02 Georgia,serif;letter-spacing:-.046em;white-space:normal;color:#073d2a;margin:0 0 21px}
.hero h1 em{color:#a99b86;font-weight:700;white-space:nowrap}
.hero-bn{font-size:clamp(12px,1.04vw,16px);line-height:1.85;max-width:590px;margin-bottom:28px;letter-spacing:0}
.hero-buttons{gap:15px}
.hero-buttons .btn{font-size:clamp(13px,1.12vw,16px);min-height:53px;padding-inline:24px}
.hero-art{position:relative;overflow:hidden;isolation:isolate;background:#f7f5ed}
.hero-art:before{content:'';position:absolute;inset:0 auto 0 0;width:17%;background:linear-gradient(90deg,#fcfaf5 0%,rgba(252,250,245,.82) 32%,transparent 100%);z-index:1;pointer-events:none}
.hero-art img{object-fit:cover;object-position:53% 49%;height:100%;width:100%;cursor:zoom-in}
.hero-art img:focus-visible{outline:3px solid #c4ac80;outline-offset:-5px}
.map-expand{color:#15442e;font-size:21px;width:42px;height:42px;border-radius:12px;border:1px solid #e3e2d6;box-shadow:0 4px 15px rgba(17,44,28,.12);background:#fffef9;top:16px;right:16px;cursor:zoom-in}
.map-expand:hover{color:#15442e;background:#eaf0e7}
.quick-search{width:calc(100% - 86px);border:1px solid #eee9df;box-shadow:var(--hp-shadow);margin-top:-22px;border-radius:34px}
.qs-control{background:linear-gradient(155deg,#faf8f3,#f4efe4);border-radius:18px}
.qs-control select{font-weight:700;color:#183b2b;min-width:0}
.btn{border-radius:999px;letter-spacing:-.015em;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}
.btn:hover{transform:translateY(-2px)}
.btn-dark{background:linear-gradient(145deg,#386b4a,#07412a 78%);box-shadow:0 12px 23px rgba(17,61,34,.20);color:#fff}
.btn-dark:hover{box-shadow:0 16px 27px rgba(17,61,34,.25)}
.btn-quiet{border-color:#e0decf;box-shadow:0 8px 16px rgba(36,42,25,.09)}
.communities-section{margin-top:27px}
.community-head h2{font-size:clamp(28px,3vw,42px);letter-spacing:-.055em}
.community-head p{font-size:clamp(13px,1.12vw,16px)}
.community-grid{gap:25px}
.community{background:#fffdf8;border-radius:33px;border:1px solid rgba(225,224,208,.95);box-shadow:var(--hp-shadow);min-height:196px;padding:20px 26px;isolation:isolate;overflow:hidden}
.community::before{content:'';position:absolute;pointer-events:none;z-index:0;width:155px;height:178px;top:-32px;right:-18px;background:var(--hp-leaf) no-repeat center / contain;opacity:.68;transform:rotate(-9deg)}
.community:nth-child(2)::before{opacity:.47;transform:rotate(-20deg)}
.community:nth-child(3)::before{opacity:.43;transform:rotate(14deg)}
.community .leaf{display:none}
.community .area-tag,.community strong,.community small{z-index:1;position:relative}
.community strong{font-size:clamp(22px,2.05vw,31px);letter-spacing:-.04em}
.community small{font-size:clamp(13px,1vw,15px);max-width:320px}
.community-foot{z-index:2}
.property-section .area-tabs button{box-shadow:0 4px 9px rgba(18,56,31,.06)}
.property-card,.map-layout,.about-layout .about-visual,.contact-section{box-shadow:var(--hp-shadow)!important}
.property-card,.map-layout,.about-layout .about-visual{border-radius:28px!important}
/* Visually natural leaves, not heavy ornaments, on opened content only. */
#heroMapDialog::backdrop,#propertyDialog::backdrop,#photoLightbox::backdrop{background:rgba(10,32,21,.55);backdrop-filter:blur(5px)}
#heroMapDialog.hero-map-dialog,#propertyDialog.property-dialog,#photoLightbox.photo-lightbox{position:relative;max-width:calc(100vw - 24px);background:linear-gradient(145deg,#fffefb,#f5f7f0);border:1px solid rgba(255,255,255,.9);border-radius:clamp(20px,2vw,32px);box-shadow:0 35px 110px rgba(13,32,18,.30),0 9px 28px rgba(18,41,25,.12);overflow:hidden}
#heroMapDialog.hero-map-dialog{padding:clamp(12px,2.1vw,25px);width:min(1360px,96vw);max-height:94dvh}
#heroMapDialog.hero-map-dialog:before,#heroMapDialog.hero-map-dialog:after,#photoLightbox.photo-lightbox:before,#photoLightbox.photo-lightbox:after{content:'';position:absolute;width:19%;height:60%;pointer-events:none;opacity:.32;background:var(--hp-leaf) no-repeat center / contain;z-index:0}
#heroMapDialog.hero-map-dialog:before,#photoLightbox.photo-lightbox:before{left:-3%;top:8%;transform:rotate(-15deg)}
#heroMapDialog.hero-map-dialog:after,#photoLightbox.photo-lightbox:after{right:-3%;bottom:8%;transform:rotate(165deg)}
#heroMapDialog img{position:relative;z-index:1;border-radius:clamp(15px,1.6vw,24px);display:block;object-fit:contain;height:auto;width:auto;max-width:100%;margin-inline:auto;max-height:calc(94dvh - 120px);box-shadow:0 19px 49px rgba(16,44,27,.19),0 4px 14px rgba(15,41,27,.06);border:1px solid rgba(218,223,212,.6)}
#heroMapDialog .hero-map-close,#propertyDialog .close-btn,#photoLightbox .photo-lightbox-close{position:absolute;z-index:5;right:17px;top:14px;display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:50%;border:1px solid #dfe5d9;background:rgba(255,254,249,.97);color:#214b35;font-size:18px;box-shadow:0 8px 23px rgba(13,33,19,.16);transition:background .18s,transform .18s}
#heroMapDialog .hero-map-close:hover,#propertyDialog .close-btn:hover,#photoLightbox .photo-lightbox-close:hover{background:#ecf2e8;transform:scale(1.045)}
#heroMapDialog .hero-map-dialog-actions{position:relative;z-index:2;padding:13px 11px 2px}
#propertyDialog.property-dialog{width:min(930px,96vw);max-height:94dvh}
#propertyDialog .modal-header{position:relative;padding:25px 76px 21px 30px;background:#fffef9}
#propertyDialog .detail-hero{padding:25px 32px 16px}
#propertyDialog .detail-hero h2{font-family:Georgia,serif;font-weight:700;letter-spacing:-.025em}
#propertyDialog .detail-tabs{gap:8px;padding:14px 27px;background:#fffefa}
#propertyDialog .detail-tabs button{min-height:40px}
#propertyDialog .detail-pane{position:relative;padding:27px;background:linear-gradient(145deg,#f8f8f4,#f4f6f0)}
#propertyDialog .detail-pane>img{border-radius:22px;max-width:100%;object-fit:contain;box-shadow:0 21px 46px rgba(23,46,29,.17);margin-inline:auto}
#propertyDialog .detail-pane>p,.detail-meta,.detail-links{position:relative;z-index:1}
#propertyDialog .detail-pane:before{content:'';position:absolute;top:4px;right:0;width:130px;height:160px;opacity:.18;background:var(--hp-leaf) no-repeat center / contain;pointer-events:none}
#photoLightbox.photo-lightbox{padding:clamp(18px,2vw,30px);width:min(1180px,96vw);max-height:94dvh}
.photo-lightbox-inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:min(220px,40dvh)}
#photoLightboxImage{display:block;max-width:100%;width:auto;height:auto;max-height:calc(94dvh - 125px);object-fit:contain;border-radius:22px;border:1px solid #e7e9df;box-shadow:0 19px 45px rgba(11,38,21,.19)}
#photoLightboxCaption{font-size:13px;text-align:center;font-weight:650;color:#4e6955;line-height:1.5;margin:0 18px}
/* Browsing is public; the editor entrance is present ONLY after approved owner login. */
#adminLaunch,#footerOwner{display:none!important}
html.hp-owner-approved #adminLaunch{display:inline-flex!important}
html.hp-owner-approved #footerOwner{display:inline-flex!important}
/* Mobile and tablet: no clipped headings or unclickably small controls. */
@media(max-width:1220px){
 .site-container{width:calc(100% - 44px)}
 .brand{min-width:260px;gap:10px}.brand-words strong{font-size:23px}.brand-words small{font-size:9px;letter-spacing:1.7px}
 .mainnav{gap:19px}.mainnav a{font-size:13px}
 .hero{grid-template-columns:45% 55%;height:420px}.hero-copy{padding:38px 0 25px 32px}
 .hero h1{font-size:clamp(40px,4.7vw,57px)}.hero-copy .eyebrow{font-size:10px;letter-spacing:1.5px}
 .hero-bn{font-size:13px;max-width:460px}.hero-buttons .btn{font-size:13px;padding-inline:17px}
 .community-grid{gap:15px}
}
@media(max-width:1000px){
 .header{height:75px}.brand-icon{height:49px;width:49px;line-height:49px;font-size:29px}.mainnav{gap:14px}
 .hero{grid-template-columns:47% 53%;height:410px}.hero h1{font-size:clamp(37px,5vw,48px)}
 .hero-bn{font-size:12px}.hero-buttons .btn{padding-inline:12px;min-height:46px}
 .quick-search{width:calc(100% - 35px);gap:9px;padding-inline:20px}.qs-submit{min-width:175px}
}
@media(max-width:850px){
 .site-container{width:calc(100% - 26px)}
 .site-container main>.hero{display:flex!important}
 .hero{height:auto;flex-direction:column;border-radius:29px}
 .hero-copy{padding:34px 29px 22px}
 .hero h1{font-size:clamp(43px,8vw,65px)}
 .hero-bn{font-size:14px;max-width:620px}.hero-art{height:auto;aspect-ratio:1.95}
 .hero-art:before{display:none}.hero-art img{object-fit:cover;object-position:center}
 .quick-search{margin:14px auto 0;width:100%;flex-wrap:wrap;gap:12px;padding:15px}
 .qs-control{flex:1 1 195px}.qs-submit{flex:1 1 100%}
 .community-grid{grid-template-columns:1fr}.community{min-height:162px}
 .community strong{font-size:29px}
 .community small{font-size:14px}
 .section{margin-top:60px}
 #propertyDialog .detail-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
 #propertyDialog .detail-tabs button{white-space:nowrap;flex:0 0 auto}
}
@media(max-width:560px){
 .site-container{width:calc(100% - 20px)}
 .header{margin:10px 0 14px;gap:8px;height:auto;min-height:67px;padding:9px 12px;border-radius:27px}
 .brand-icon{width:42px;height:42px;font-size:27px;line-height:42px;border-radius:12px}
 .brand-words strong{font-size:16.5px;letter-spacing:-.7px}.brand-words small{font-size:7px;letter-spacing:.9px}
 .mobile-menu{display:block;width:42px;height:42px;border-radius:50%;background:#f3f5ed;border:1px solid #e3e7da;flex:none;box-shadow:0 3px 9px rgba(37,66,40,.06);font-size:22px}
 .mainnav{top:67px;left:-2px;right:-2px;border-radius:21px;box-shadow:var(--hp-shadow)}
 .mainnav a{min-height:44px;display:flex;align-items:center}
 .hero-copy{padding:30px 22px 24px}
 .hero h1{font-size:clamp(35px,9vw,48px);letter-spacing:-.045em;max-width:100%;line-height:1.08}
 .hero h1 em{white-space:normal}
 .hero-copy .eyebrow{font-size:9px;letter-spacing:.14em;line-height:1.7}
 .hero-bn{font-size:13px;line-height:1.75;margin-bottom:22px}
 .hero-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .hero-buttons .btn{white-space:normal;min-height:49px;font-size:12px;line-height:1.25;padding:8px 10px}
 .hero-art{aspect-ratio:1.55}.hero-art img{object-fit:cover;object-position:55% 50%}
 .map-expand{width:39px;height:39px;right:13px;top:13px;font-size:19px}
 .quick-search{padding:14px;gap:10px;border-radius:22px}
 .qs-control{flex:1 1 100%;min-height:56px}.qs-control select{font-size:13px}
 .qs-submit{width:100%;min-height:48px;font-size:14px}
 .communities-section{margin-top:33px;padding-inline:3px}.community-head{flex-direction:column;align-items:flex-start;gap:7px}
 .community-head h2{font-size:clamp(26px,7vw,32px);margin-left:0}
 .community-head p{margin-left:0;font-size:12.5px}.community-head>a{margin:4px 0 0 auto;font-size:12px}
 .community{border-radius:25px;min-height:168px;padding:19px 20px}
 .community strong{font-size:26px}.community small{font-size:13px}
 .community::before{width:118px;height:136px;right:-23px;top:-27px;opacity:.45}
 .property-section{padding:29px 12px}.property-grid{grid-template-columns:1fr}
 .section h2{font-size:clamp(30px,8vw,42px)}
 .contact-section{padding:24px 20px}.contact-actions{display:flex;flex-wrap:wrap;width:100%}.contact-actions .btn{flex:1 1 auto;white-space:normal;text-align:center}
 #heroMapDialog.hero-map-dialog{width:calc(100vw - 14px);max-width:calc(100vw - 14px);padding:12px;border-radius:21px}
 #heroMapDialog img{max-height:72dvh;border-radius:14px}
 #heroMapDialog .hero-map-dialog-actions{flex-direction:column;align-items:flex-start;font-size:11px;gap:7px}
 #propertyDialog.property-dialog{width:calc(100vw - 14px);max-width:95dvh}
 #propertyDialog .modal-header{padding:17px 66px 16px 18px}
 #propertyDialog .detail-hero{padding:20px 18px 16px}
 #propertyDialog .detail-hero h2{font-size:29px}
 #propertyDialog .detail-tabs{padding:10px 16px}
 #propertyDialog .detail-pane{padding:16px;max-height:45dvh}
 #propertyDialog .detail-pane>img{border-radius:16px}
 #photoLightbox.photo-lightbox{width:calc(100vw - 15px);max-width:calc(100vw - 15px);padding:12px;border-radius:21px}
 #photoLightboxImage{max-height:70dvh;border-radius:15px}
 .footer{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
}
@media(hover:none){.btn:hover,.community:hover,.property-card:hover{transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Botanical sprigs are extracted from the approved visual itself; no bulky replacement leaves. */
.community::before{background-image:url('assets/natural-sage-leaves.webp');background-repeat:no-repeat;background-size:contain;background-position:center;opacity:.77;width:150px;height:90px;right:-10px;top:-2px;transform:none!important}
.community:first-child::before{background-image:url('assets/natural-champagne-leaves.webp');opacity:.73;width:160px;height:101px;top:-7px;right:-4px}
.community:nth-child(3)::before{opacity:.56}
@media(max-width:560px){.community::before{width:130px;height:85px;top:0;right:-12px}.community:first-child::before{width:137px;height:92px;top:-8px}}
/* At tablet size the responsive layout wins over the desktop-only flex/grid display reset. */
@media(max-width:1100px){
 .site-container main>.hero{display:flex!important;flex-direction:column!important;height:auto!important}
 .site-container main>.quick-search{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
 .site-container main>.quick-search .qs-submit{grid-column:1/-1!important;width:100%!important;min-width:0!important}
}
@media(max-width:700px){.site-container main>.quick-search{grid-template-columns:minmax(0,1fr)!important}}
