/* AC Manager — area ospiti: vetro scuro e neon, pensata per il telefono (QR in camera). */

body.ac-ospite-page {
    --o-bg: #060814; --o-panel: rgba(17,21,46,.72); --o-line: rgba(232,200,130,.18); --o-line2: rgba(232,200,130,.34);
    --o-text: #eef0ff; --o-muted: #9aa3cf; --o-violet: #e0b858; --o-cyan: #f3d58a; --o-ok: #34d399; --o-warn: #fbbf24; --o-bad: #fb7185;
    --o-grad: linear-gradient(135deg, #b8862e 0%, #f0d27f 100%);
    margin: 0; min-height: 100vh; background: var(--o-bg); color: var(--o-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-image:
        radial-gradient(800px 480px at 8% -8%, rgba(224,176,70,.30), transparent 62%),
        radial-gradient(700px 440px at 100% 2%, rgba(243,213,138,.16), transparent 60%),
        radial-gradient(640px 480px at 50% 108%, rgba(184,134,46,.12), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
.ac-osp-app, .ac-osp-app *, .ac-osp-gate, .ac-osp-gate * { box-sizing: border-box; }
.ac-osp-wrap { max-width: 640px; margin: 0 auto; padding: 22px 18px 60px; }
.ac-osp-brand { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: 13px; color: #cfd5ff; margin: 6px 0 22px; }
.ac-osp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--o-cyan); box-shadow: 0 0 14px var(--o-cyan); }

.ac-osp-card { position: relative; background: var(--o-panel); border: 1px solid var(--o-line); border-radius: 22px; padding: 26px 22px; margin-bottom: 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 60px -34px rgba(0,0,0,.95); overflow: hidden; }
.ac-osp-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--o-violet), var(--o-cyan), transparent); opacity: .8; }
.ac-osp-card.center { text-align: center; padding-top: 34px; padding-bottom: 30px; }
.ac-osp-card h1 { margin: 4px 0 10px; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; color: #fff; font-weight: 800; }
.ac-osp-card h2 { margin: 0 0 14px; font-size: 19px; color: #fff; }
.ac-osp-lead { margin: 0 0 20px; color: var(--o-muted); font-size: 15px; line-height: 1.55; }
.ac-osp-hello { margin: 0; color: var(--o-cyan); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.ac-osp-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(224,184,88,.16); border: 1px solid var(--o-line2); color: #d6d2ff; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; }
.ac-osp-fine { margin: 18px 0 0; font-size: 12px; color: var(--o-muted); line-height: 1.5; }
.ac-osp-alert { padding: 14px; border-radius: 14px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); color: #fde68a; font-size: 14px; }
.ac-osp-err { color: var(--o-bad); font-size: 14px; font-weight: 600; margin: 12px 0 0; min-height: 0; }
.ac-osp-err:empty { display: none; }
.ac-osp-google { display: flex; justify-content: center; min-height: 48px; transition: opacity .2s; }
.ac-osp-google.busy { opacity: .45; pointer-events: none; }

.ac-osp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; width: 100%; padding: 15px 20px; border: 1px solid transparent; border-radius: 14px; background: var(--o-grad); color: #1b1405; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 0 0 1px rgba(224,184,88,.28), 0 10px 26px -12px rgba(190,140,40,.9); transition: transform .15s, box-shadow .2s; }
.ac-osp-btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(224,184,88,.5), 0 14px 30px -12px rgba(190,140,40,1); color: #fff; }
.ac-osp-btn:disabled { opacity: .6; cursor: default; transform: none; }
.ac-osp-btn.ghost { background: rgba(255,255,255,.06); border-color: var(--o-line2); box-shadow: none; color: #dfe3ff; }
.ac-osp-btn.ghost:hover { background: rgba(255,255,255,.1); }
.ac-osp-btn.small { width: auto; padding: 9px 15px; font-size: 13.5px; margin: 0; border-radius: 11px; }
.ac-osp-btn.danger { color: var(--o-bad); border-color: rgba(251,113,133,.4); }
.ac-osp-link { display: inline-block; margin-top: 18px; color: var(--o-muted); font-size: 14px; text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.ac-osp-link.inline { margin: 0 0 0 10px; }
.ac-osp-back { background: none; border: 0; padding: 0 0 8px; color: var(--o-muted); font: inherit; font-size: 14px; cursor: pointer; }
.ac-osp-back:hover { color: #fff; }

/* Scelta categoria */
.ac-osp-choices { display: grid; gap: 12px; }
.ac-osp-choice { display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; row-gap: 4px; align-items: center; text-align: left; padding: 18px; border-radius: 18px; border: 1.5px solid var(--o-line); background: rgba(255,255,255,.04); color: var(--o-text); font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; }
.ac-osp-choice:hover { border-color: var(--o-violet); background: rgba(224,184,88,.12); transform: translateY(-2px); box-shadow: 0 16px 36px -22px rgba(190,140,40,1); }
.ac-osp-choice .ac-osp-ico { grid-row: 1 / 3; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(224,184,88,.18); border: 1px solid var(--o-line2); }
.ac-osp-choice strong { font-size: 17px; color: #fff; align-self: end; }
.ac-osp-choice small { color: var(--o-muted); font-size: 13.5px; line-height: 1.45; }

/* Form */
.ac-osp-form { display: grid; gap: 14px; margin: 8px 0 6px; }
.ac-osp-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #c9cfff; }
.ac-osp-field input[type=text], .ac-osp-field input[type=email], .ac-osp-field input[type=tel], .ac-osp-field input[type=date], .ac-osp-field select { width: 100%; padding: 14px 15px; border-radius: 13px; border: 1.5px solid var(--o-line2); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; color-scheme: dark; }
.ac-osp-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b7bff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.ac-osp-field select option { background: #12163a; color: #fff; }
.ac-osp-field input:focus, .ac-osp-field select:focus { outline: none; border-color: var(--o-violet); box-shadow: 0 0 0 3px rgba(224,184,88,.25); }
.ac-osp-field input:disabled { opacity: .45; }
.ac-osp-field input::placeholder { color: #6f78a8; }
.ac-osp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-osp-check { display: flex !important; align-items: center; gap: 10px; margin: 10px 0 0 !important; font-weight: 600 !important; font-size: 14px !important; color: #dfe3ff !important; cursor: pointer; }
.ac-osp-check input { width: 22px; height: 22px; accent-color: #e0b858; margin: 0; }
.ac-osp-fixed { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 13px; background: rgba(224,184,88,.12); border: 1px solid var(--o-line2); font-size: 14px; }
.ac-osp-fixed span { color: var(--o-muted); }
.ac-osp-fixed strong { color: #fff; flex: 1; }

/* Area riservata */
.ac-osp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ac-osp-topact { display: flex; gap: 8px; }
.ac-osp-stay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.ac-osp-stay > div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid var(--o-line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ac-osp-stay small { color: var(--o-muted); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.ac-osp-stay strong { color: #fff; font-size: 14.5px; overflow-wrap: anywhere; }
.ac-osp-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--o-line); margin-bottom: 14px; }
.ac-osp-tabs button { flex: 1; padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--o-muted); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ac-osp-tabs button.on { background: var(--o-grad); color: #1b1405; box-shadow: 0 0 0 1px rgba(224,184,88,.3); }
.ac-osp-empty { text-align: center; color: var(--o-muted); padding: 26px 8px; margin: 0; font-size: 14.5px; }
.ac-osp-list { display: grid; gap: 12px; }
.ac-osp-bk { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.045); border: 1px solid var(--o-line); position: relative; }
.ac-osp-bk::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--o-warn); }
.ac-osp-bk.ok::before { background: var(--o-ok); } .ac-osp-bk.off::before { background: var(--o-bad); }
.ac-osp-bk.off { opacity: .7; }
.ac-osp-bk-when { display: flex; flex-direction: column; gap: 4px; padding-left: 6px; }
.ac-osp-bk-when b { color: #fff; font-size: 13.5px; line-height: 1.25; }
.ac-osp-bk-when span { color: var(--o-cyan); font-weight: 700; font-size: 14px; }
.ac-osp-bk-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ac-osp-bk-main strong { color: #fff; font-size: 15.5px; }
.ac-osp-bk-main small { color: var(--o-muted); font-size: 13px; }
.ac-osp-bk-main .ac-osp-x { color: #c9c2ff; }
.ac-osp-bk-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.ac-osp-tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.08); color: #cfd5ff; }
.ac-osp-tag.ok { background: rgba(52,211,153,.16); color: var(--o-ok); } .ac-osp-tag.wait { background: rgba(251,191,36,.16); color: var(--o-warn); } .ac-osp-tag.off { background: rgba(251,113,133,.16); color: var(--o-bad); }
.ac-osp-ref { font-size: 11.5px; color: #6f78a8; letter-spacing: .08em; margin-left: auto; }
.ac-osp-bk-act { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

.ac-osp-loading { display: grid; place-items: center; padding: 80px 0; }
.ac-osp-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--o-violet); animation: ac-osp-spin .8s linear infinite; }
@keyframes ac-osp-spin { to { transform: rotate(360deg); } }

/* Guardiano di prenotazione nelle pagine MyHoliday (fuori dall'area ospiti: tema chiaro neutro) */
.ac-osp-gate { max-width: 560px; margin: 28px auto; padding: 28px 24px; border-radius: 20px; text-align: center; background: linear-gradient(160deg, #1a1f40, #0e1128); color: #eef0ff; border: 1px solid rgba(232,200,130,.28); box-shadow: 0 24px 60px -30px rgba(10,12,40,.9); font-family: inherit; }
.ac-osp-gate h3 { margin: 0 0 10px; color: #fff; font-size: 22px; }
.ac-osp-gate p { margin: 0 0 18px; color: #b6bde6; font-size: 15px; line-height: 1.55; }
.ac-osp-gate .ac-osp-btn { width: auto; min-width: 220px; margin: 0; }

@media (max-width: 520px) {
    .ac-osp-card { padding: 22px 16px; border-radius: 20px; }
    .ac-osp-card h1 { font-size: 25px; }
    .ac-osp-row2 { grid-template-columns: 1fr; }
    .ac-osp-stay { grid-template-columns: 1fr; }
    .ac-osp-bk { grid-template-columns: 1fr; }
    .ac-osp-bk-when { flex-direction: row; gap: 10px; align-items: baseline; }
}

/* Accesso con email */
.ac-osp-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--o-muted); font-size: 13px; }
.ac-osp-or::before, .ac-osp-or::after { content: ''; flex: 1; height: 1px; background: var(--o-line); }
.ac-osp-mailform { text-align: left; margin-top: 4px; }
.ac-osp-info { margin-top: 14px; padding: 13px 15px; border-radius: 14px; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: #bbf7d0; font-size: 14px; line-height: 1.5; text-align: left; }
