/* Hotel Azur — Conversion Suite styles
   Goes with js/conversion-suite.js
   Components: cookie banner, WhatsApp button, sticky availability bar */

/* =====================================================
   1. COOKIE CONSENT BANNER
   ===================================================== */
.azur-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    padding: 18px;
    background: var(--bg-elevated, #fff);
    border-top: 1px solid var(--border-subtle, #ececec);
    box-shadow: 0 -10px 30px rgba(0,0,0,.12);
    transform: translateY(110%);
    transition: transform .5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-secondary, #555);
}
.azur-consent.azur-consent--show { transform: translateY(0); }
.azur-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}
.azur-consent__text { flex: 1 1 320px; min-width: 0; }
.azur-consent__text strong {
    display: block;
    color: var(--text-primary, #222);
    font-size: 15px;
    margin-bottom: 4px;
    font-family: 'Gilda Display', serif;
    font-size: 19px;
    font-weight: 500;
}
.azur-consent__text p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary, #666);
}
.azur-consent__text a {
    color: var(--azur-gold, #aa8453);
    text-decoration: underline;
}
.azur-consent__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.azur-consent__btn {
    border: 1.5px solid transparent;
    padding: 11px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .3s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.azur-consent__btn--ghost {
    background: transparent;
    color: var(--text-primary, #222);
    border-color: var(--border-strong, #d9d9d9);
}
.azur-consent__btn--ghost:hover {
    background: var(--bg-soft, #f8f5f0);
    border-color: var(--text-primary, #222);
}
.azur-consent__btn--primary {
    background: var(--azur-gold, #aa8453);
    color: #fff;
    border-color: var(--azur-gold, #aa8453);
}
.azur-consent__btn--primary:hover {
    background: var(--azur-gold-dark, #8a6b3d);
    border-color: var(--azur-gold-dark, #8a6b3d);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(170,132,83,.35);
}

@media (max-width: 720px) {
    .azur-consent { padding: 14px; }
    .azur-consent__inner { gap: 14px; }
    .azur-consent__actions { width: 100%; }
    .azur-consent__btn { flex: 1; }
}

/* =====================================================
   2. WHATSAPP FLOATING BUTTON
   ===================================================== */
.azur-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.5);
    z-index: 998;
    text-decoration: none;
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow .3s ease;
    animation: azurWhatsappPulse 2.2s ease-out infinite;
}
.azur-whatsapp:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 30px rgba(37,211,102,.65);
    color: #fff;
    text-decoration: none;
}
.azur-whatsapp:focus-visible {
    outline: 3px solid rgba(37,211,102,.4);
    outline-offset: 4px;
}
.azur-whatsapp__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(0,0,0,.85);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.azur-whatsapp__tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(0,0,0,.85);
}
.azur-whatsapp:hover .azur-whatsapp__tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
@keyframes azurWhatsappPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.55); }
    50%      { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
    .azur-whatsapp { animation: none; }
}

/* =====================================================
   3. FLOATING AVAILABILITY CARD (sits right under the hero)
   ===================================================== */
.azur-avail {
    position: relative;
    z-index: 50;
    padding: 0 16px;
    margin-top: -70px;   /* overlap hero/banner so the card "floats" */
    margin-bottom: 40px;
    pointer-events: none; /* let the card itself catch events, not the wrapper */
}
.azur-avail__card {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-elevated, #fff);
    border: 1px solid var(--border-subtle, #ececec);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.06);
    padding: 26px 28px 24px;
    pointer-events: auto;
    transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s ease;
    animation: azurAvailIn .6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes azurAvailIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
html[data-theme="dark"] .azur-avail__card {
    box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 4px 12px rgba(0,0,0,.4);
}

/* Header above the form */
.azur-avail__header {
    text-align: center;
    margin-bottom: 18px;
}
.azur-avail__tag {
    display: inline-block;
    background: rgba(170,132,83,.12);
    color: var(--azur-gold, #aa8453);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 6px;
}
.azur-avail__title {
    font-family: 'Gilda Display', serif;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--text-primary, #222);
    margin: 0 0 4px;
    font-weight: 500;
    line-height: 1.2;
}
.azur-avail__sub {
    margin: 0;
    color: var(--text-muted, #888);
    font-size: 13.5px;
}

/* Form — CSS grid for guaranteed equal-width fields */
.azur-avail__form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}
.azur-avail__field {
    min-width: 0;   /* prevents grid blow-out */
    display: flex;
    flex-direction: column;
}
.azur-avail__field label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted, #888);
    margin-bottom: 6px;
    font-weight: 600;
}
.azur-avail__field input,
.azur-avail__field select {
    width: 100%;
    height: 52px;                   /* identical height across all 3 */
    padding: 0 14px;
    border: 1px solid var(--input-border, #d9d9d9);
    background: var(--input-bg, #fff);
    color: var(--input-text, #222);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1;
    transition: border-color .25s, box-shadow .25s, background .25s, color .25s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
/* Force date input to match select height exactly across browsers */
.azur-avail__field input[type="date"] {
    line-height: 52px;
    padding-top: 0;
    padding-bottom: 0;
}
.azur-avail__field input:focus,
.azur-avail__field select:focus {
    outline: none;
    border-color: var(--azur-gold, #aa8453);
    box-shadow: 0 0 0 3px rgba(170,132,83,.18);
}
.azur-avail__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aa8453' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    padding-right: 36px;
    cursor: pointer;
}

/* CTA button — same height as fields, no label above */
.azur-avail__cta {
    height: 52px;
    padding: 0 28px;
    background: var(--azur-gold, #aa8453);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(170,132,83,.3);
}
.azur-avail__cta:hover {
    background: var(--azur-gold-dark, #8a6b3d);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(170,132,83,.45);
}
.azur-avail__cta:active {
    transform: translateY(0);
}

/* Responsive layout */
@media (max-width: 860px) {
    .azur-avail__form {
        grid-template-columns: 1fr 1fr;
    }
    .azur-avail__cta {
        grid-column: 1 / -1;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .azur-avail { margin-top: -40px; padding: 0 14px; }
    .azur-avail__card { padding: 22px 18px; border-radius: 12px; }
    .azur-avail__form { gap: 10px; }
    .azur-avail__field input,
    .azur-avail__field select { height: 48px; font-size: 14px; }
    .azur-avail__field input[type="date"] { line-height: 48px; }
    .azur-avail__cta { height: 48px; }
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
    .azur-consent, .azur-whatsapp, .azur-avail__cta { transition: none !important; }
    .azur-avail__card { animation: none; }
}
