/* Booking popup (enquiry.js). Colours come from the page tokens in style.css. */
#enquiry { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: var(--white); color: var(--text); box-shadow: 0 40px 90px rgba(15, 24, 19, .4); overflow: auto; font-family: inherit; }
#enquiry::backdrop { background: rgba(15, 24, 19, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#enquiry[open] { animation: enq-pop .28s ease; }
@keyframes enq-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
html:has(dialog[open]) { overflow: hidden; }
#enquiry h3, #enquiry p, #enquiry ul { margin: 0; }

.enq-close { position: absolute; top: 14px; right: 14px; z-index: 5; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); font-size: 1rem; cursor: pointer; transition: background .2s; }
.enq-close:hover { background: var(--line); }

.enq { display: grid; grid-template-columns: 400px 1fr; min-height: 100%; }
.enq > * { min-width: 0; }

/* Left: photo, Prince, perks, contact */
.enq-side { display: flex; flex-direction: column; background: var(--brand); color: #dbe3de; }
.enq-photo { position: relative; height: 190px; flex: none; }
.enq-photo img { width: 100%; height: 100%; object-fit: cover; }
.enq-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 24, 19, 0) 40%, rgba(47, 74, 58, 1) 100%); }
.enq-tag { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 5px 12px; border-radius: 99px; background: rgba(15, 24, 19, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: .72rem; font-weight: 500; }
.enq-tag i { color: #e9c48f; margin-right: 4px; }
.enq-host { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin: -34px 26px 0; }
.enq-avatar { flex: none; object-fit: cover; background: #fff; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #e9c48f); color: #fff; font-size: 1.6rem; font-weight: 700; box-shadow: 0 0 0 4px var(--brand), 0 8px 20px rgba(0, 0, 0, .25); }
.enq-hi { font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.2; }
.enq-role { font-size: .78rem; color: #b9c7bf; }
.enq-hello { margin: 16px 26px 0 !important; font-size: .86rem; line-height: 1.6; color: #e6ece8; }
.enq-perks { list-style: none; padding: 0; margin: 18px 26px 0 !important; display: grid; gap: 10px; }
.enq-perks li { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: #fff; }
.enq-perks i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #e9c48f; font-size: .8rem; }

/* Right: form */
.enq-main { padding: 34px 34px 28px; }
.enq-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.enq-label i { margin-right: 4px; }
.enq-main h3 { margin-top: 6px !important; font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.enq-sub { margin: 6px 0 20px !important; font-size: .86rem; color: var(--muted); }
.enq-opt { font-weight: 400; color: var(--muted); }
#enquiry label { display: block; margin-bottom: 14px; font-size: .76rem; font-weight: 600; color: var(--ink); }
#enquiry .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#enquiry .row2 > * { min-width: 0; }
#enquiry input, #enquiry select, #enquiry textarea { display: block; width: 100%; min-width: 0; height: 48px; margin-top: 6px; padding: 0 14px; font: 400 .92rem "Montserrat", sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s, background .2s; }
#enquiry textarea { height: auto; padding: 12px 14px; resize: vertical; }
#enquiry input[type="date"] { padding: 0 10px; }
#enquiry input:focus, #enquiry select:focus, #enquiry textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 74, 58, .14); }
#enquiry .err { display: block; color: #c0352b; font-size: .72rem; font-weight: 500; margin-top: 4px; }
#enquiry .err:empty { display: none; }
#enquiry [aria-invalid] { border-color: #e0574d; background: #fff8f7; }

.enq-preview { margin: 2px 0 16px; border: 1px dashed var(--line); border-radius: 12px; }
.enq-preview summary { padding: 11px 14px; font-size: .8rem; font-weight: 600; color: var(--brand); cursor: pointer; list-style: none; }
.enq-preview summary::-webkit-details-marker { display: none; }
.enq-preview summary i { margin-right: 6px; }
.chat { margin: 0 10px 10px; padding: 14px; border-radius: 10px; background: #efe7dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='4' cy='4' r='1.2' fill='%23d9cfc2'/%3E%3C/svg%3E"); }
.bubble { position: relative; margin-left: auto; padding: 10px 12px 18px; border-radius: 10px 0 10px 10px; background: #d9fdd3; font-size: .82rem; line-height: 1.55; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); word-wrap: break-word; font-family: "Montserrat", system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji"; }
.bubble::before { content: ""; position: absolute; top: 0; right: -8px; border: 8px solid transparent; border-top-color: #d9fdd3; border-left-color: #d9fdd3; }
.bubble .time { position: absolute; right: 10px; bottom: 4px; font-size: .66rem; color: #667781; }

.enq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 22px; border-radius: 12px; border: 2px solid transparent; font: 700 .95rem/1.2 "Montserrat", sans-serif; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background .2s, transform .2s; }
.enq-btn i { font-size: 1.2rem; }
.enq-btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(31, 168, 85, .3); }
.enq-btn-wa:hover { background: var(--wa-d); border-color: var(--wa-d); transform: translateY(-1px); }
.enq-btn-line { background: var(--white); border-color: var(--line); color: var(--ink); }
/* Call and WhatsApp side by side, same size */
.enq-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.enq-actions .enq-btn { width: 100%; min-width: 0; min-height: 54px; padding: 12px 10px; line-height: 1.2; text-align: center; box-shadow: none; }
.enq-btn-call { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }
.enq-btn-call:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; transform: translateY(-1px); }
.enq-hint { margin-top: 10px !important; font-size: .74rem; color: var(--muted); text-align: center; }
.enq-hint i { color: var(--brand); margin-right: 4px; }

.enq-done { padding: 70px 20px; text-align: center; }
.done-icon { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #e3f5ea; color: var(--wa); font-size: 1.7rem; margin-bottom: 18px; }
.enq-done h3 { color: var(--ink); font-size: 1.4rem; }
.enq-done p { max-width: 400px; margin: 10px auto 24px !important; color: var(--muted); }
.done-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* iOS Safari: date fields otherwise render centred and collapse when empty */
@supports (-webkit-touch-callout: none) {
  #enquiry input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 48px; line-height: 48px; }
  #enquiry input[type="date"]::-webkit-date-and-time-value { text-align: left; }
}

@media (max-width: 860px) {
  #enquiry { inset: 0; margin: 0; width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
  .enq-close { top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
  .enq { grid-template-columns: 1fr; }
  .enq-photo { height: calc(150px + env(safe-area-inset-top)); }
  .enq-host { margin: -30px 20px 0; }
  .enq-avatar { width: 56px; height: 56px; font-size: 1.4rem; }
  .enq-hello { margin: 12px 20px 0 !important; font-size: .84rem; }
  /* Perks as a tidy two-column list, every item fully visible */
  .enq-perks { grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 16px 20px 0 !important; }
  .enq-perks li { align-items: flex-start; gap: 9px; font-size: .8rem; line-height: 1.35; }
  .enq-perks i { width: 26px; height: 26px; border-radius: 8px; font-size: .72rem; }
    .enq-main { padding: 22px 20px 0; }
  .enq-label { display: none; }
  .enq-main h3 { margin-top: 0 !important; font-size: 1.25rem; }
  .enq-sub { margin: 4px 0 16px !important; font-size: .8rem; }
  #enquiry label { margin-bottom: 12px; font-size: .74rem; }
  #enquiry .row2 { gap: 10px; }
  #enquiry input[type="date"] { padding: 0 8px; }
  .enq-preview { display: none; }
  /* Send button stays in reach while the guest types */
  .enq-send { position: sticky; bottom: 0; z-index: 3; margin: 4px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .enq-hint { margin-top: 6px !important; }
}
/* Call and WhatsApp labels stay on one line on phones */
@media (max-width: 480px) { .enq-actions .enq-btn { font-size: .88rem; gap: 7px; padding: 12px 8px; white-space: nowrap; } .enq-actions .enq-btn i { font-size: 1.05rem; } }
@media (max-width: 360px) { .enq-actions .enq-btn { font-size: .8rem; gap: 6px; padding: 12px 6px; } }
/* iPhone zooms the page when a focused field's text is under 16px */
@media (pointer: coarse) { #enquiry input, #enquiry select, #enquiry textarea { font-size: 16px; } }
.enq-side { padding-bottom: 26px; }
@media (max-width: 860px) { .enq-side { padding-bottom: 20px; } }
@media (max-width: 360px) { .enq-perks { grid-template-columns: 1fr !important; } }
