/* Availability bar, WhatsApp nudge, currency switch, FAQ and booking extras */

.avail-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    max-width: 760px;
    margin: 0 0 1.25rem;
    padding: 14px;
    background: #fff;
    color: #222;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.avail-bar label {
    min-width: 0;
    display: flex;
    flex: 1 1 140px;
    flex-direction: column;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #555;
}

.avail-bar input,
.avail-bar select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 46px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 16px;
    text-transform: none;
}

.avail-bar input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    max-width: 100%;
    margin: 0;
    background-color: #fff;
    text-align: left;
}

.avail-bar input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.avail-bar .btn {
    flex: 1 1 170px;
    height: 46px;
    padding: 0 18px;
}

/* Home hero: grows with its content instead of clipping it, starts below the fixed header, and stays compact so the photo shows */
#hero { height: auto; min-height: 100vh; padding: 215px 0 70px; }   /* top = the hero's -85px offset + the ~100px header + breathing room */
#hero .hero-subtitle { font-size: 0.8rem; margin-bottom: 0.6rem; }
#hero .hero-content h1 { font-size: clamp(2rem, 3.4vw, 3.3rem); margin-bottom: 0.8rem; text-wrap: balance; }
#hero .hero-desc { font-size: 1.02rem; max-width: 520px; margin-bottom: 1rem; }
#hero .from-price { margin: 0 0 0.7rem; padding: 3px 12px; font-size: 0.82rem; }
#hero .avail-bar { max-width: 620px; margin-bottom: 0.9rem; padding: 10px; gap: 8px; background: rgba(255, 255, 255, 0.92); }
#hero .avail-bar label { font-size: 0.62rem; }
#hero .avail-bar .btn { padding: 0 14px; }
#hero .btn { padding: 12px 22px; font-size: 0.8rem; letter-spacing: 0.8px; }
#hero .trust-chips { gap: 4px 0; margin: 0.8rem 0 0; font-size: 0.78rem; }
#hero .trust-chips li { padding: 0; background: none; border: 0; opacity: 0.92; }
#hero .trust-chips li:not(:last-child)::after { content: "\00b7"; margin: 0 12px; }

@media (min-width: 769px) {
    #hero .avail-bar label { flex: 1 1 140px; }                  /* the two date fields */
    #hero .avail-bar label:nth-child(3) { flex: 0 1 104px; }     /* guests */
    #hero .avail-bar .btn { flex: 1 1 170px; white-space: nowrap; }
    #hero .avail-bar input, #hero .avail-bar select { height: 38px; padding: 0 8px; font-size: 14px; }
    #hero .avail-bar .btn { height: 38px; }
    #hero .btn { padding: 8px 20px; font-size: 0.75rem; }
}

/* wide screens: smaller photo column so more of the background shows */
@media (min-width: 969px) {
    #hero .hero-grid { grid-template-columns: 1.5fr 0.7fr; gap: 3rem; }
    #hero .hero-scroll-wrapper { height: 56vh; max-width: 340px; margin-left: auto; }
    #hero .scroll-card { height: 210px; }
}

.cw-nudge {
    position: fixed;
    right: 20px;
    bottom: 170px;
    z-index: 901;
    width: min(290px, calc(100vw - 40px));
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    animation: cw-nudge-in 0.3s ease;
}

.cw-nudge p {
    margin: 0 36px 10px 0;
    color: #222;
    font-weight: 600;
}

.cw-nudge a {
    display: block;
    margin-top: 6px;
    padding: 9px 12px;
    border: 1px solid #25D366;
    border-radius: 999px;
    color: #128C4A !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
}

.cw-nudge a:hover {
    background: #25D366;
    color: #fff !important;
}

.cw-nudge-x {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: #666;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes cw-nudge-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cw-nudge { animation: none; }
}

.cur-switch {
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 899;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    color: #333;
    font: 600 0.75rem var(--font-body, sans-serif);
}

.cur-switch select {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cw-nudge { left: 12px; right: 12px; width: auto; padding: 12px 14px; bottom: calc(64px + env(safe-area-inset-bottom)); }
    .cw-nudge a { display: inline-block; margin: 6px 6px 0 0; padding: 10px 14px; }
    .cur-switch { left: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); }
    .cur-switch select { font-size: 16px; padding: 9px 2px; }

    /* the home hero starts under the fixed header instead of behind it (its first line sat at logo height) */
    #hero { padding-top: 190px; }

    /* availability bar: two equal columns (a grid cannot overflow the way iOS date fields do in a flex row) */
    .avail-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
    .avail-bar label { min-width: 0; overflow: hidden; }   /* each field is clipped to its own column, whatever the browser does */
    .avail-bar .btn { width: 100%; min-width: 0; }

    /* home hero: one screen tall (the stacked photo cards made it ~2 screens, and iPhones stretch the
       background photo over the whole height, which looked like a purple smear) */
    #hero .hero-scroll-wrapper { display: none; }
    #hero { background-attachment: scroll; }

    /* inside the page header (see currency.js) so it never covers buttons or form fields */
    .cur-switch.cur-inline { position: static; margin: 0 12px 0 auto; padding: 0 8px; box-shadow: none; border: 1px solid #ddd; }

    /* 16px stops iPhones zooming in when a field is tapped */
    input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: 16px; }

    /* text links big enough to tap */
    .footer-links a, .footer-col p a, .copyright a, .contact-info a, .card-content > a:not(.btn) { display: inline-block; padding: 10px 0; }
}

.faq { max-width: 820px; margin: 0 auto; }

.faq details {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: 10px;
}

.faq summary { padding: 14px 18px; min-height: 48px; cursor: pointer; font-weight: 600; }
.faq details[open] summary { color: var(--color-primary, #1B4D3E); }
.faq p { margin: 0; padding: 0 18px 16px; }

.extras-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.extras-grid label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form-note { display: block; margin-top: 6px; color: #666; font-size: 0.8rem; }
