/* ================================================================
   BOOKING WIZARD  –  booking-wizard.css  v1.14
   ================================================================ */

:root {
    --bw-blue:         #4066a8;
    --bw-blue-mid:     #5f88a8;
    --bw-green:        #3a7a3a;
    --bw-grey:         #d6d8d7;
    --bw-dark:         #191919;
    --bw-text:         #2c2c2c;
    --bw-text-light:   #888;
    --bw-border:       rgba(0,0,0,.10);
    --bw-border-mid:   rgba(0,0,0,.15);
    --bw-trans:        .2s cubic-bezier(.4,0,.2,1);
    --bw-font:         inherit;
    --bw-font-heading: inherit;
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.bw-wizard {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-family: var(--bw-font);
    color: var(--bw-text);
    background: transparent;
}

/* ================================================================
   PROGRESS — verde=fatto · blu=attivo · grigio=futuro
   ================================================================ */
.bw-progress {
    padding: 40px 0 36px;
    margin-bottom: 8px;
}

.bw-progress-bar { display: none; }

.bw-steps-nav {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.bw-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 120px;
    position: relative;
}

/* connettore orizzontale tra step */
.bw-step-dot::after {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(50% + 19px);
    width: calc(100% - 38px);
    height: 1px;
    background: var(--bw-grey);
    z-index: 0;
}
.bw-step-dot:last-child::after { display: none; }
.bw-step-dot.is-done::after    { background: var(--bw-green); }

.bw-dot-num {
    width: 34px;
    height: 34px;
    border: 2px solid #ccc;
    background: transparent;
    color: #bbb;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--bw-trans);
    font-family: var(--bw-font);
    position: relative;
    z-index: 1;
    border-radius: 0 !important;
}

.bw-dot-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #bbb;
    transition: var(--bw-trans);
    white-space: nowrap;
    font-family: var(--bw-font);
    font-weight: 600;
}

.bw-step-dot.is-active .bw-dot-num  { background: var(--bw-blue); border-color: var(--bw-blue); color: #fff; }
.bw-step-dot.is-active .bw-dot-label { color: var(--bw-blue); font-weight: 700; }
.bw-step-dot.is-done .bw-dot-num    { background: var(--bw-green); border-color: var(--bw-green); color: #fff; }
.bw-step-dot.is-done .bw-dot-label  { color: var(--bw-green); }

/* ── Step panels ─────────────────────────────────────────────── */
.bw-steps-wrap {
    background: transparent;
    border: 1px solid var(--bw-border);
}

.bw-step {
    display: none;
    padding: 48px 52px 44px;
    animation: bwFadeIn .22s ease;
    background: transparent;
}

.bw-step--active { display: block; }

@keyframes bwFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.bw-step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bw-dark);
    margin: 0 0 8px;
    letter-spacing: -.02em;
    line-height: 1.2;
    font-family: var(--bw-font-heading);
}

.bw-step-sub {
    font-size: 15px;
    color: var(--bw-text-light);
    margin: 0 0 18px;
}

.bw-step-sub > p {
    padding-bottom: 0 !important;
    margin: 0;
}

/* ── Fields ──────────────────────────────────────────────────── */
.bw-fields-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.bw-fields-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.bw-fields-grid--2 { grid-template-columns: 1fr 1fr; }

.bw-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bw-field--full { margin-bottom: 32px; }

.bw-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.bw-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bw-text-light);
    font-family: var(--bw-font);
}

.bw-req { color: var(--bw-blue); }

.bw-field input[type=text],
.bw-field input[type=email],
.bw-field input[type=tel],
.bw-field input[type=date],
.bw-field select,
.bw-field textarea {
    padding: 14px 16px;
    border: 1px solid var(--bw-border-mid);
    border-radius: 0 !important;
    font-size: 15px;
    color: var(--bw-dark);
    background: transparent;
    transition: border-color var(--bw-trans);
    width: 100%;
    box-sizing: border-box;
    font-family: var(--bw-font);
    -webkit-appearance: none;
    appearance: none;
}

.bw-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%234066a8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.bw-field input:focus,
.bw-field select:focus,
.bw-field textarea:focus {
    outline: none;
    border-color: var(--bw-blue);
}

.bw-field input.bw-error,
.bw-field select.bw-error,
.bw-field textarea.bw-error { border-color: #c0392b; }

/* Inline error message */
.bw-error-msg {
    display: block;
    font-size: 11px;
    color: #c0392b;
    margin-top: 3px;
    font-family: var(--bw-font);
    letter-spacing: .02em;
}

.bw-warning-msg {
    display: block;
    font-size: 11px;
    color: #b86400;
    margin-top: 3px;
    font-family: var(--bw-font);
    letter-spacing: .02em;
}

.bw-apt-error {
    font-size: 12px;
    color: #c0392b;
    margin: -16px 0 16px;
    font-family: var(--bw-font);
    text-align: center;
}

.bw-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── Apartment cards ─────────────────────────────────────────── */
/* no border on card — only image gets shadow/lift, text stays flat */
.bw-apartments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.bw-apt-card {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible;
    cursor: pointer;
    background: transparent;
    position: relative;
    outline: none;
    transition: none;
}

.bw-apt-card:focus-visible .bw-apt-img {
    outline: 2px solid var(--bw-blue);
    outline-offset: 2px;
}

/* image block — this is what gets the effect */
.bw-apt-img {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bw-grey);
    transition: box-shadow var(--bw-trans), transform var(--bw-trans);
}

.bw-apt-card:hover .bw-apt-img {
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    transform: translateY(-3px);
}

.bw-apt-card.is-selected .bw-apt-img {
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    transform: translateY(-3px);
}

.bw-apt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

.bw-apt-card:hover .bw-apt-img img,
.bw-apt-card.is-selected .bw-apt-img img {
    transform: scale(1.04);
}

.bw-apt-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bw-grey);
}

.bw-apt-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--bw-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.5);
    transition: var(--bw-trans);
    border-radius: 0 !important;
    z-index: 2;
}

.bw-apt-check svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bw-apt-card.is-selected .bw-apt-check {
    opacity: 1;
    transform: scale(1);
}

/* selected: blue line under image only */
.bw-apt-card.is-selected .bw-apt-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bw-blue);
}

/* info text — no background, no border, clean */
.bw-apt-info {
    padding: 14px 2px 0;
    background: transparent;
}

.bw-apt-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--bw-dark);
    margin: 0 0 5px;
    font-family: var(--bw-font-heading);
}

.bw-apt-capacity {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bw-blue);
    font-weight: 700;
    display: block;
    margin-bottom: 7px;
    font-family: var(--bw-font);
}

.bw-apt-desc {
    font-size: 13px;
    color: var(--bw-text-light);
    line-height: 1.6;
    margin: 0;
}

.bw-selection-dock[hidden] { display: none !important; }

.bw-selection-dock {
    position: sticky;
    bottom: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    margin: -6px 0 28px;
    border: 1px solid var(--bw-border-mid);
    background: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,.12);
}

.bw-selection-dock-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bw-selection-dock-copy span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bw-blue);
    font-family: var(--bw-font);
}

.bw-selection-dock-copy strong {
    display: block;
    color: var(--bw-dark);
    font-size: 15px;
    line-height: 1.25;
    font-family: var(--bw-font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bw-selection-dock .bw-btn--next {
    margin-left: 0;
    flex-shrink: 0;
}

.bw-selection-modal[hidden] { display: none !important; }

.bw-selection-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.bw-selection-modal.is-open { display: flex; }

.bw-selection-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25,25,25,.34);
}

.bw-selection-modal-panel {
    position: relative;
    width: min(460px, calc(100vw - 48px));
    background: #fff;
    border: 1px solid var(--bw-border-mid);
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
    padding: 36px 38px 32px;
    text-align: center;
    outline: none;
}

.bw-selection-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--bw-border);
    background: transparent;
    color: var(--bw-text-light);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 0 !important;
}

.bw-selection-modal-close:hover {
    border-color: var(--bw-blue);
    color: var(--bw-blue);
}

.bw-selection-modal-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bw-blue);
    font-family: var(--bw-font);
    margin-bottom: 8px;
}

.bw-selection-modal h3 {
    margin: 0 0 24px;
    color: var(--bw-dark);
    font-family: var(--bw-font-heading);
    font-size: 30px;
    line-height: 1.2;
}

.bw-selection-modal-btn {
    width: 100%;
    margin: 0 0 14px !important;
}

.bw-selection-modal-change {
    border: none;
    background: transparent;
    padding: 0;
    color: var(--bw-text-light);
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bw-selection-modal-change:hover { color: var(--bw-blue); }

@media (min-width: 801px) {
    .bw-step[data-step="1"] > .bw-nav,
    .bw-selection-dock {
        display: none !important;
    }
}

@media (max-width: 800px) {
    .bw-selection-modal { display: none !important; }
}

/* ── Step 2 decision view ────────────────────────────────────── */
.bw-selected-apt {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 0 0 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--bw-border);
}

.bw-selected-apt-media {
    width: 76px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bw-grey);
}

.bw-selected-apt-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bw-selected-apt-kicker {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bw-blue);
    font-family: var(--bw-font);
    margin-bottom: 4px;
}

.bw-selected-apt-copy h3 {
    margin: 0 0 4px;
    font-family: var(--bw-font-heading);
    font-size: 22px;
    line-height: 1.2;
    color: var(--bw-dark);
}

.bw-selected-apt-copy p {
    margin: 0;
    color: var(--bw-text-light);
    font-size: 13px;
    line-height: 1.5;
}

.bw-selected-apt-change {
    white-space: nowrap;
    padding: 12px 18px;
    font-size: 10px;
}

.bw-step-section {
    padding: 0 0 26px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--bw-border);
}

.bw-step-section--calendar {
    padding-bottom: 0;
    border-bottom: none;
}

.bw-section-heading {
    margin-bottom: 12px;
}

.bw-section-heading h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bw-blue);
    font-family: var(--bw-font);
    font-weight: 700;
}

.bw-calendar-intro {
    margin: -2px 0 14px;
    color: var(--bw-text-light);
    font-size: 13px;
    line-height: 1.65;
}

.bw-calendar-intro p {
    margin: 0 0 8px;
    padding: 0 !important;
}

.bw-calendar-intro p:last-child { margin-bottom: 0; }

/* ── Seasonal legend — minimal, stacked, below rate notes ───── */
/* rendered in PHP inside .bw-rate-footer, one per line */
.bw-season-legend {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
}

.bw-season-legend-item {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.bw-season-legend-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 0 !important;
    position: relative;
    top: 1px;
}

.bw-season-legend-item--high .bw-season-legend-dot { background: #b86400; }
.bw-season-legend-item--mid  .bw-season-legend-dot { background: var(--bw-blue); }
.bw-season-legend-item--low  .bw-season-legend-dot { background: var(--bw-green); }

.bw-season-legend-item div {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.bw-season-legend-item strong {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: var(--bw-font);
}

.bw-season-legend-item--high strong { color: #b86400; }
.bw-season-legend-item--mid  strong { color: var(--bw-blue); }
.bw-season-legend-item--low  strong { color: var(--bw-green); }

.bw-season-legend-item span {
    font-size: 12px;
    color: var(--bw-text-light);
    font-style: italic;
}

/* ── Rates table — stacked card layout on mobile ─────────────── */
.bw-rates-wrap {
    margin-bottom: 4px;
}

/* Desktop: normal table */
.bw-rates {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bw-rates thead th {
    background: var(--bw-blue);
    color: #fff;
    padding: 11px 14px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-family: var(--bw-font);
    white-space: normal;
    line-height: 1.35;
    vertical-align: bottom;
}

.bw-rates thead th:first-child {
    text-align: left;
    white-space: nowrap;
    width: 140px;
    min-width: 140px;
}

.bw-rates tbody tr { border-bottom: 1px solid var(--bw-border); }
.bw-rates tbody tr:last-child { border-bottom: none; }

.bw-rates tbody td {
    padding: 10px 14px;
    text-align: center;
    background: transparent;
}

.bw-rates tbody td:first-child { text-align: left; }

.bw-season-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 8px;
    font-family: var(--bw-font);
}

.bw-season-badge--low  { background: rgba(58,122,58,.1);  color: var(--bw-green); }
.bw-season-badge--mid  { background: rgba(64,102,168,.1); color: var(--bw-blue);  }
.bw-season-badge--high { background: rgba(184,100,0,.1);  color: #b86400;         }

.bw-eur  { font-size: 12px; color: var(--bw-text-light); margin-right: 1px; }
.bw-rate-val { font-weight: 700; color: var(--bw-dark); font-size: 15px; }
.bw-na   { color: var(--bw-grey); }

/* Rate footer: notes + legend — tight spacing */
.bw-rate-footer {
    padding: 10px 0 20px;
    border-top: 1px solid var(--bw-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bw-rate-notes {
    font-size: 12px;
    color: var(--bw-text-light);
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

.bw-rate-notes--discount {
    color: var(--bw-blue);
    font-style: normal;
    font-weight: 600;
    margin-bottom: 2px;
}

/* ── Beds24 calendar ─────────────────────────────────────────── */
.bw-calendar-wrap { margin-bottom: 24px; }

.bw-calendar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bw-text-light);
    margin: 0 0 10px;
    font-family: var(--bw-font);
}

.bw-calendar-frame {
    border-top: 1px solid var(--bw-border);
    overflow: hidden;
    min-height: 160px;
    background: transparent;
    padding: 18px 20px 20px;
}

.bw-calendar-frame .beds24-wrap {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.bw-calendar-frame .beds24-inner {
    width: 500px;
    transform-origin: top left;
}

.bw-calendar-frame .bw-beds24-form {
    display: block;
    width: 500px;
    min-width: 500px;
}

/* ── Rates & Conditions accordion ────────────────────────────── */
.bw-terms {
    border: 1px solid var(--bw-border);
    margin-bottom: 32px;
}

.bw-terms summary {
    padding: 13px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bw-blue);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--bw-font);
}

.bw-terms summary::-webkit-details-marker { display: none; }

.bw-terms summary::before {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    transition: transform var(--bw-trans);
    display: inline-block;
    line-height: 1.2;
    width: 14px;
    text-align: center;
}

.bw-terms[open] summary::before { transform: rotate(45deg); }

.bw-terms-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bw-terms-summary-copy strong {
    font-size: 11px;
    line-height: 1.25;
    color: var(--bw-blue);
}

.bw-terms-summary-copy em {
    font-size: 12px;
    line-height: 1.45;
    color: var(--bw-text-light);
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.bw-terms-body {
    padding: 16px 24px 20px;
    font-size: 13.5px;
    color: var(--bw-text);
    line-height: 1.75;
    border-top: 1px solid var(--bw-border);
}

/* trattino solo, no pallino */
.bw-terms-body ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.bw-terms-body ul li {
    list-style: none !important;
    padding: 7px 0 7px 18px;
    position: relative;
    border-bottom: 1px solid var(--bw-border);
    font-size: 13px;
    line-height: 1.65;
}

.bw-terms-body ul li:last-child { border-bottom: none; }

.bw-terms-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--bw-blue);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.65;
}

/* ── Summary ─────────────────────────────────────────────────── */
.bw-summary {
    border: 1px solid var(--bw-border);
    padding: 32px 36px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
}

.bw-summary-group { display: flex; flex-direction: column; gap: 5px; }
.bw-summary-group--full { grid-column: 1 / -1; }

.bw-summary-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bw-blue);
    font-family: var(--bw-font);
}

.bw-summary-value { font-size: 16px; font-weight: 600; color: var(--bw-dark); }
.bw-summary-value--apt { font-size: 20px; font-weight: 700; color: var(--bw-blue); font-family: var(--bw-font-heading); }
.bw-summary-value--msg { font-size: 14px; font-weight: 400; white-space: pre-wrap; }

/* ── Navigation ──────────────────────────────────────────────── */
.bw-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 0;
    border-top: none;
    margin-top: 8px;
}

.bw-nav--submit { justify-content: space-between; }

/* High-specificity zero-radius override for Salient */
.bw-wizard .bw-btn,
.bw-wizard a.bw-btn,
.bw-wizard button.bw-btn {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
}

.bw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--bw-trans), color var(--bw-trans), border-color var(--bw-trans);
    border: 1.5px solid transparent;
    font-family: var(--bw-font);
    text-decoration: none;
    -webkit-appearance: none;
    line-height: 1;
    text-align: center;
    white-space: normal;
}

.bw-btn--next { background: var(--bw-blue); color: #fff; border-color: var(--bw-blue); margin-left: auto; }
.bw-btn--next:hover:not(:disabled) { background: transparent; color: var(--bw-blue); }
.bw-btn--next:disabled { opacity: .35; cursor: not-allowed; }

.bw-btn--back { background: transparent; color: var(--bw-text-light); border-color: var(--bw-border-mid); }
.bw-btn--back:hover { border-color: var(--bw-blue); color: var(--bw-blue); }

.bw-btn--submit { background: var(--bw-blue); color: #fff; border-color: var(--bw-blue); padding: 17px 40px; }
.bw-btn--submit:hover:not(:disabled) { background: transparent; color: var(--bw-blue); }
.bw-btn--submit:disabled { opacity: .4; cursor: not-allowed; }

.bw-arrow { font-style: normal; }

/* ── Feedback ────────────────────────────────────────────────── */
.bw-feedback { margin-top: 16px; font-size: 13px; font-family: var(--bw-font); }

.bw-feedback.is-error {
    color: #c0392b;
    border-left: 3px solid #c0392b;
    padding: 10px 14px;
}

.bw-feedback.is-loading { color: var(--bw-text-light); font-style: italic; padding: 10px 0; }

/* ── Success ─────────────────────────────────────────────────── */
.bw-step--success { text-align: center; padding: 72px 52px !important; }

.bw-success-icon { width: 64px; height: 64px; margin: 0 auto 28px; }
.bw-success-icon svg { width: 64px; height: 64px; }

.bw-success-icon circle {
    fill: none; stroke: var(--bw-blue); stroke-width: 1.5;
    stroke-dasharray: 166; stroke-dashoffset: 166;
    animation: bwCircle .6s ease forwards;
}

.bw-success-icon path {
    fill: none; stroke: var(--bw-blue); stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: bwCheck .4s .55s ease forwards;
}

@keyframes bwCircle { to { stroke-dashoffset: 0; } }
@keyframes bwCheck  { to { stroke-dashoffset: 0; } }

.bw-success-msg {
    font-size: 16px; color: var(--bw-text-light);
    max-width: 420px; margin: 12px auto 0; line-height: 1.7;
}

/* ── Shake ───────────────────────────────────────────────────── */
@keyframes bwShake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.bw-shake { animation: bwShake .4s ease; }

/* ================================================================
   MOBILE — rates table becomes stacked cards, no horizontal scroll
   ================================================================ */
@media (max-width: 640px) {

    /* Hide standard table, show card layout */
    .bw-rates { display: none; }

    .bw-rates-cards {
        display: flex;
        flex-direction: column;
        gap: 0;
        border: 1px solid var(--bw-border);
    }

    .bw-rates-card {
        padding: 14px 16px;
        border-bottom: 1px solid var(--bw-border);
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 16px;
        row-gap: 6px;
        align-items: center;
    }

    .bw-rates-card:last-child { border-bottom: none; }

    .bw-rates-card-season {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }

    .bw-rates-card-col {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .bw-rates-card-label {
        font-size: 10px;
        color: var(--bw-text-light);
        text-transform: uppercase;
        letter-spacing: .06em;
        font-weight: 600;
        font-family: var(--bw-font);
    }

    .bw-rates-card-value {
        font-size: 16px;
        font-weight: 700;
        color: var(--bw-dark);
    }

    .bw-rates-card-value .bw-eur { font-size: 12px; }
}

@media (min-width: 641px) {
    /* Hide mobile cards on desktop */
    .bw-rates-cards { display: none; }
}

/* ── Responsive layout ───────────────────────────────────────── */
@media (max-width: 800px) {
    .bw-step { padding: 36px 32px 32px; }
    .bw-fields-grid--3 { grid-template-columns: 1fr 1fr; }
    .bw-apartments-grid { grid-template-columns: 1fr 1fr; }
    .bw-selected-apt { grid-template-columns: 64px minmax(0, 1fr); }
    .bw-selected-apt-media { width: 64px; }
    .bw-selected-apt-change { grid-column: 1 / -1; justify-content: center; }
    .bw-dot-label { display: none; }
    .bw-summary { grid-template-columns: 1fr; gap: 20px; }
    .bw-summary-group--full { grid-column: 1; }
}

@media (max-width: 560px) {
    .bw-wizard { padding: 0 12px 48px; }
    .bw-step { padding: 28px 20px 24px; }
    .bw-step[data-step="1"] { padding-bottom: 104px; }
    .bw-step-title { font-size: 22px; }
    .bw-fields-grid--3,
    .bw-fields-grid--2 { grid-template-columns: 1fr; gap: 18px; }
    .bw-apartments-grid { grid-template-columns: 1fr; gap: 16px; }
    .bw-selected-apt {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 22px;
        padding-bottom: 18px;
    }
    .bw-selected-apt-media { width: 56px; }
    .bw-selected-apt-copy h3 { font-size: 18px; }
    .bw-selection-dock {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 9998;
        margin: 0;
        padding: 12px;
        gap: 12px;
    }
    .admin-bar .bw-selection-dock { bottom: 12px; }
    .bw-selection-dock-copy strong { max-width: 48vw; }
    .bw-selection-dock-btn {
        padding: 13px 16px;
        flex: 0 0 auto !important;
    }
    .bw-nav { flex-wrap: wrap; }
    .bw-nav .bw-btn { flex: 1 1 auto; }
    .bw-btn--next { margin-left: 0; }
    .bw-btn { padding: 14px 22px; }
    .bw-btn--submit { padding: 16px 28px; width: 100%; justify-content: center; }
    .bw-nav--submit { flex-wrap: wrap; }
    .bw-nav--submit .bw-btn--submit { order: -1; }
    .bw-progress { padding: 28px 0 24px; }
    .bw-dot-num { width: 30px; height: 30px; font-size: 12px; }
    .bw-step--success { padding: 48px 20px !important; }
    .bw-summary { padding: 24px 20px; }
    .bw-terms-body { padding: 14px 16px 16px; }
}
.bw-wizard table.beds24availcal {
    border: none !important;
}

.bw-wizard table.beds24availcal > tbody > tr > td {
    border: none !important;
}

.bw-wizard table.beds24availcal > tbody > tr:first-child {
    display: none !important;
}

.bw-wizard table.beds24availcal > tbody > tr:first-child > td {
    text-align: center !important;
    padding-bottom: 10px !important;
    display: block !important;
}

.bw-wizard table.beds24availcal > tbody > tr:first-child > td a {
    font-size: 18px !important;
    font-weight: bold !important;
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    color: inherit !important;
}

.bw-wizard table.beds24availcal .b24calendarclickinstruction,
.bw-wizard table.beds24availcal > tbody > tr[title="powered by Beds24.com"] {
    display: none !important;
}

.bw-wizard table.beds24availcal > tbody > tr:nth-child(3) > td {
    padding: 0 !important;
}

.bw-wizard table.beds24availcal > tbody > tr:nth-child(3) > td > div {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 0 10px !important;
}

.bw-wizard table.beds24availcal > tbody > tr:nth-child(3) > td select {
    flex: 1 !important;
    max-width: none !important;
    font-size: 14px !important;
}

.bw-wizard table.beds24availcal table thead td {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 2px !important;
    text-align: center !important;
}

.bw-wizard table.beds24availcal table tbody td {
    font-size: 14px !important;
    padding: 8px 2px !important;
    text-align: center !important;
}

.bw-wizard table.beds24availcal table tbody td[style*="cursor: pointer"] {
    pointer-events: none !important;
    cursor: default !important;
}

body:not(.woocommerce-cart) .main-content .bw-wizard table.beds24availcal tr:nth-child(2n+1) {
    background-color: transparent !important;
}

.bw-wizard table.beds24availcal table tbody td:hover {
    background-color: #ffffff !important;
}

.bw-wizard table.beds24availcal table tbody td[style*="background-color: rgb(125, 184, 122)"],
.bw-wizard table.beds24availcal table tbody td[style*="background-color:rgb(125, 184, 122)"] {
    color: #ffffff !important;
}

.bw-wizard table.beds24availcal table tbody td[style*="background-color: rgb(125, 184, 122)"][style*="color: rgb(187, 187, 187)"] {
    color: rgba(255, 255, 255, 0.6) !important;
}

.bw-wizard table.beds24availcal table tbody td[style*="background-color: rgb(125, 184, 122)"]:hover {
    background-color: rgb(125, 184, 122) !important;
}


/* ── Avviso al clic sul calendario ───────────────────────────── */
.bw-notice-modal[hidden] { display: none !important; }

.bw-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bw-notice-modal.is-open { display: flex; }

.bw-notice-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25,25,25,.34);
}

.bw-notice-modal-text {
    margin: 0 0 24px;
    color: var(--bw-text, #333);
    font-size: 15px;
    line-height: 1.6;
}

.bw-notice-modal-text p { margin: 0 0 10px; }
.bw-notice-modal-text p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
    .bw-notice-modal .bw-selection-modal-panel { padding: 30px 22px 24px; }
}

/* Il bottone Chiudi non è un "avanti": stesso aspetto, nessun comportamento di navigazione */
.bw-notice-modal-btn { background: var(--bw-blue); color: #fff; border-color: var(--bw-blue); margin-left: 0; }
.bw-notice-modal-btn:hover { background: transparent; color: var(--bw-blue); }
