/* DalatOne PHP edition — ADDITIVE styles only (style.css is the approved design and stays untouched).
   Uses the same tokens (--green, --line, --muted, --round) so new form elements match the approved UI. */
.d1-hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.d1-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.d1-inquiry .form-field,.d1-estimate .form-field{margin-bottom:10px}
.d1-inquiry textarea,.d1-inquiry select{width:100%;font:inherit}
.d1-field-error{display:block;color:#c0392b;font-size:12px;margin-top:4px}
.d1-consent{align-items:flex-start;gap:8px;font-size:12px;line-height:1.45;margin:6px 0 12px}
.d1-consent a{color:var(--green);text-decoration:underline}
.d1-inquiry .btn[type=submit]{width:100%}
.d1-estimate{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdfe}
.d1-estimate .btn{width:100%}
.d1-estimate-result{margin-top:10px}
.d1-total{font-size:18px;color:var(--green);margin:0 0 4px}
.d1-st{margin:4px 0;font-weight:650}
.d1-st.ok{color:#08765b}.d1-st.warn{color:#b26a00}.d1-st.bad{color:#b3261e}.d1-st.muted{color:var(--muted)}
.detail-card .btn+.btn{margin-top:8px}
.detail-card .btn{width:100%}
.d1-contact-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.d1-channels{display:flex;flex-wrap:wrap;gap:8px;padding:14px;margin-bottom:14px;max-width:620px}
.d1-alert{padding:14px 18px;margin-bottom:14px;max-width:620px;border-left:4px solid var(--green)}
.d1-alert-success{background:var(--mint)}
.d1-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:16px}
.d1-modal[hidden]{display:none}
.d1-modal-backdrop{position:absolute;inset:0;background:rgba(7,30,53,.55)}
.d1-modal-box{position:relative;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:22px;border-radius:var(--round);-webkit-overflow-scrolling:touch}
.d1-modal-box h2{margin:0 36px 4px 0;font-size:20px}
.d1-modal-close{position:absolute;top:10px;right:10px;color:var(--ink)}
html.d1-lock,html.d1-lock body{overflow:hidden}
.d1-toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--navy);color:#fff;padding:11px 16px;border-radius:11px;max-width:min(92vw,520px);font-size:13px;z-index:90;transition:.25s}
.d1-toast.show{opacity:1;transform:translate(-50%,0)}
.d1-hybrid-head{margin-top:26px}
.d1-table{width:100%;border-collapse:collapse;font-size:13px}.d1-table th,.d1-table td{padding:8px;border-bottom:1px solid var(--line);text-align:left}
.cookie-decline{margin-left:8px}
/* iOS Safari: inputs >=16px avoid focus zoom (spec §19.2) — only inside the new forms */
@supports (-webkit-touch-callout:none){.d1-inquiry input,.d1-inquiry select,.d1-inquiry textarea,.d1-estimate input,.login-shell input{font-size:16px}}
@media(max-width:470px){.d1-row{grid-template-columns:1fr}.d1-modal{align-items:flex-end;padding:0}.d1-modal-box{border-radius:16px 16px 0 0;max-height:92dvh;padding-bottom:calc(22px + env(safe-area-inset-bottom))}}
/* Hero banners (as in the approved mockup). The hero images are 2280×570 (4:1, artwork on the right, its left edge
   extended under the title gradient), so wide banners show the whole scene instead of a zoomed-in strip; the artwork
   runs on behind the category strip, fading into the page. */
@media(min-width:781px){
.hero{background-size:cover;background-position:right center}
.hero:has(+ .cat-strip){padding-bottom:70px}
.hero:has(+ .cat-strip):after{content:'';position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(180deg,transparent,var(--canvas));pointer-events:none}
.hero + .cat-strip{margin-top:-92px}
}
@media(max-width:780px){.hero,.hero-home{background-position:74% center}}
/* Villa price calendar (day prices from the owner's Google Sheet, via the pricing engine) */
.d1-pcal{margin:22px 0 8px;padding:18px;border:1px solid var(--line,#e3e9ee);border-radius:14px;background:#fff}
.d1-pcal-head h2{margin:0 0 4px;font-size:20px}
.d1-pcal-meta,.d1-pcal-note{margin:0 0 12px;color:var(--muted,#66768a);font-size:13px}
.d1-pcal-note{margin:12px 0 0}
.d1-pcal-months{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}
.d1-pcal-month h3{margin:0 0 8px;font-size:15px}
.d1-pcal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.d1-pcal-dow{font-size:11px;font-weight:700;text-align:center;color:var(--muted,#66768a);padding:2px 0}
.d1-pcal-dow.we{color:#b4532a}
.d1-pcal-day{border:1px solid #e6edf2;border-radius:8px;padding:4px 2px;text-align:center;min-height:46px;display:flex;flex-direction:column;justify-content:center;background:#f7fbf9}
.d1-pcal-day .n{font-size:12px;font-weight:700;line-height:1.2}
.d1-pcal-day .p{font-size:11.5px;font-weight:650;color:var(--green,#0a7a50);line-height:1.3;white-space:nowrap}
.d1-pcal-day.we{background:#fff8ef}
.d1-pcal-day.na .p{color:var(--muted,#66768a);font-weight:500;font-size:10.5px}
.d1-pcal-day.past{background:#f4f5f6;opacity:.55}
@media(max-width:470px){.d1-pcal{padding:14px 12px}.d1-pcal-day{min-height:42px}.d1-pcal-day .p{font-size:10.5px}}
