/* Risultati ricerca disponibilità — booking, mobile-first, tipografia grande */
#stellato-search-results .stellato-booking-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.stellato-booking-results-wrap {
    background: #eef2f7;
    padding: 1.5rem 0 2.5rem;
    width: 100%;
}

.stellato-booking-results-wrap[hidden] {
    display: none !important;
}

.stellato-booking-results {
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
    padding: 1.5rem 1.25rem;
    font-size: 17px;
    line-height: 1.55;
    color: #2d3748;
}

.stellato-booking-results h2 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    line-height: 1.2;
    color: #0a2540;
    font-weight: 700;
}

.stellato-booking-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.stellato-booking-chip {
    display: inline-block;
    background: #f0f4f8;
    border: 1px solid #dce3eb;
    color: #0a2540;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    line-height: 1.35;
}

.stellato-booking-item {
    border: 1px solid #dce3eb;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stellato-booking-item:last-child {
    margin-bottom: 0;
}

.stellato-booking-item.unavailable {
    background: #f8fafc;
}

.stellato-booking-item-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stellato-booking-item-media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.stellato-booking-badge {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.stellato-booking-badge.ok {
    background: #d4edda;
    color: #1e7e4a;
}

.stellato-booking-badge.no {
    background: #f8d7da;
    color: #c0392b;
}

.stellato-booking-item h3 {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
    line-height: 1.3;
    color: #0a2540;
    font-weight: 700;
}

.stellato-booking-item .desc {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.stellato-booking-pricebox {
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    text-align: center;
}

.stellato-booking-pricebox .total {
    font-size: 2.35rem;
    font-weight: 700;
    color: #0a2540;
    line-height: 1.1;
}

.stellato-booking-pricebox .per-night {
    font-size: 1.05rem;
    color: #6b7c8f;
    margin-top: 0.35rem;
}

.stellato-booking-pricebox .stellato-booking-summary-lines {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.5;
}

.stellato-booking-pricebox .button {
    margin-top: 1.15rem;
    width: 100%;
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.stellato-booking-item-breakdown {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.stellato-booking-breakdown-title {
    display: block;
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a2540;
}

/* Tabella notti — desktop full width */
.stellato-night-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stellato-night-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 1.05rem;
}

.stellato-night-table th,
.stellato-night-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: top;
}

.stellato-night-table th {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7c8f;
    background: #f8fafc;
    font-weight: 700;
}

.stellato-night-table td:last-child {
    font-weight: 700;
    color: #0a2540;
    font-size: 1.1rem;
}

.stellato-night-table tbody tr:last-child td {
    border-bottom: none;
}

/* Card notti — mobile */
.stellato-night-cards {
    display: none;
}

.stellato-night-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.65rem;
    background: #fafbfc;
}

.stellato-night-card strong {
    display: block;
    font-size: 1.15rem;
    color: #0a2540;
    margin-bottom: 0.35rem;
}

.stellato-night-card span {
    display: block;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.5;
}

.stellato-night-card .night-total {
    margin-top: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a2540;
}

.stellato-booking-policy {
    margin-top: 1.75rem;
    padding: 1.25rem 1.35rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5568;
}

.stellato-booking-policy p {
    margin: 0 0 0.75rem;
}

.stellato-booking-policy ol {
    margin: 0.35rem 0 0;
    padding-left: 1.35rem;
}

.stellato-booking-policy li {
    margin-bottom: 0.45rem;
}

/* Desktop: fascia ampia + griglia head */
@media (min-width: 992px) {
    #stellato-search-results .stellato-booking-container {
        max-width: 96%;
        padding-left: 28px;
        padding-right: 28px;
    }

    .stellato-booking-results-wrap {
        padding: 2.5rem 0 3.5rem;
    }

    .stellato-booking-results {
        padding: 2rem 2.25rem;
        font-size: 18px;
    }

    .stellato-booking-results h2 {
        font-size: 2.1rem;
        margin-bottom: 1.15rem;
    }

    .stellato-booking-chip {
        font-size: 1.1rem;
        padding: 0.6rem 1.1rem;
    }

    .stellato-booking-item {
        padding: 1.5rem 1.75rem;
    }

    .stellato-booking-item-head {
        display: grid;
        grid-template-columns: minmax(280px, 340px) 1fr minmax(260px, 300px);
        gap: 1.75rem;
        align-items: start;
    }

    .stellato-booking-item-media img {
        height: 240px;
    }

    .stellato-booking-item h3 {
        font-size: 1.75rem;
    }

    .stellato-booking-item .desc {
        font-size: 1.1rem;
    }

    .stellato-booking-pricebox {
        text-align: right;
    }

    .stellato-booking-pricebox .total {
        font-size: 2.75rem;
    }

    .stellato-booking-pricebox .per-night {
        font-size: 1.1rem;
    }

    .stellato-booking-pricebox .stellato-booking-summary-lines {
        font-size: 1.05rem;
    }

    .stellato-booking-pricebox .button {
        font-size: 1.15rem;
        padding: 1.05rem 1.35rem;
    }

    .stellato-night-table {
        font-size: 1.1rem;
    }

    .stellato-night-table th {
        font-size: 0.95rem;
        padding: 0.85rem 1.1rem;
    }

    .stellato-night-table td {
        padding: 0.85rem 1.1rem;
    }

    .stellato-night-table td:last-child {
        font-size: 1.2rem;
    }

    .stellato-night-cards {
        display: none !important;
    }

    .stellato-night-table-wrap {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .stellato-night-table-wrap {
        display: none !important;
    }

    .stellato-night-cards {
        display: block !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .stellato-booking-item-head {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 1.25rem;
    }

    .stellato-booking-pricebox {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    #stellato-search-results .stellato-booking-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .stellato-booking-results {
        padding: 1.25rem 1rem;
        font-size: 16px;
    }

    .stellato-booking-results h2 {
        font-size: 1.5rem;
    }

    .stellato-booking-chip {
        font-size: 0.98rem;
    }

    .stellato-booking-item-media img {
        height: 200px;
    }

    .stellato-booking-item h3 {
        font-size: 1.35rem;
    }

    .stellato-booking-pricebox .total {
        font-size: 2.1rem;
    }
}

/* Scelta pagamento prenotazione */
.stellato-payment-options {
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.stellato-payment-title {
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.stellato-payment-choice {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
    color: #4a5568;
    cursor: pointer;
    line-height: 1.45;
}

.stellato-payment-choice:last-child {
    margin-bottom: 0;
}

.stellato-payment-choice input {
    margin-right: 0.5rem;
}

.stellato-booking-status-page {
    max-width: 640px;
    margin: 2.5rem auto 3rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
}

.stellato-booking-status-page h1 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    color: #0a2540;
}

.stellato-booking-status-page p {
    margin: 0 0 1rem;
    line-height: 1.55;
    color: #4a5568;
}

/* Listino prezzi pubblico */
.stellato-listino-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.stellato-listino-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    background: #fff;
}

.stellato-listino-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 1.05rem;
}

.stellato-listino-table thead th {
    background: #f0f4f8;
    color: #0a2540;
    font-weight: 700;
    padding: 1rem 1.1rem;
    border-bottom: 2px solid #dce3eb;
    vertical-align: bottom;
    text-align: center;
}

.stellato-listino-table .stellato-listino-room-col {
    text-align: left;
    min-width: 180px;
}

.stellato-listino-table .stellato-listino-period-col .period-name {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
}

.stellato-listino-table .stellato-listino-period-col .period-dates {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #5a6b7d;
    margin-top: 0.25rem;
}

.stellato-listino-table .stellato-listino-period-col .period-code {
    display: block;
    font-size: 0.82rem;
    color: #6b7c8f;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.stellato-listino-table tbody th {
    padding: 1rem 1.1rem;
    text-align: left;
    font-weight: 700;
    color: #0a2540;
    background: #fafbfc;
    border-bottom: 1px solid #edf2f7;
    font-size: 1.1rem;
}

.stellato-listino-table tbody td {
    padding: 1rem 1.1rem;
    text-align: center;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.stellato-listino-table tbody tr:last-child th,
.stellato-listino-table tbody tr:last-child td {
    border-bottom: none;
}

.stellato-listino-table .price {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a2540;
    line-height: 1.2;
}

.stellato-listino-table .unit {
    display: block;
    font-size: 0.9rem;
    color: #6b7c8f;
}

.stellato-listino-table .min-nights {
    display: block;
    font-size: 0.85rem;
    color: #6b7c8f;
    margin-top: 0.25rem;
}

.stellato-listino-table .no-rate {
    color: #a0aec0;
    font-size: 1.1rem;
}

.stellato-listino-empty {
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.05rem;
    color: #4a5568;
}

.stellato-listino-cta {
    margin: 1.5rem 0 0;
    text-align: center;
}

.stellato-listino-cta .button {
    min-width: 220px;
}

/* Listino mobile — card per camera */
.stellato-listino-cards {
    display: none;
    margin-bottom: 1.5rem;
}

.stellato-listino-room-card {
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    padding: 1.15rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.06);
}

.stellato-listino-room-title {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #0a2540;
    font-weight: 700;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #eef2f7;
}

.stellato-listino-rate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #edf2f7;
}

.stellato-listino-rate-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stellato-listino-rate-period {
    flex: 1 1 55%;
    min-width: 0;
}

.stellato-listino-rate-period strong {
    display: block;
    font-size: 1.05rem;
    color: #0a2540;
    line-height: 1.35;
}

.stellato-listino-rate-period .period-dates {
    display: block;
    font-size: 0.95rem;
    color: #5a6b7d;
    margin-top: 0.2rem;
    line-height: 1.4;
}

.stellato-listino-rate-period .period-code {
    display: block;
    font-size: 0.82rem;
    color: #6b7c8f;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.stellato-listino-rate-price {
    flex: 0 0 auto;
    text-align: right;
    min-width: 110px;
}

.stellato-listino-rate-price .price {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0a2540;
    line-height: 1.15;
}

.stellato-listino-rate-price .unit {
    display: block;
    font-size: 0.9rem;
    color: #6b7c8f;
}

.stellato-listino-rate-price .min-nights {
    display: block;
    font-size: 0.85rem;
    color: #6b7c8f;
    margin-top: 0.2rem;
}

.stellato-listino-rate-price .no-rate {
    font-size: 1.1rem;
    color: #a0aec0;
}

@media (min-width: 992px) {
    .stellato-listino-table {
        font-size: 1.1rem;
    }

    .stellato-listino-table .price {
        font-size: 1.35rem;
    }

    .stellato-listino-table thead th,
    .stellato-listino-table tbody th,
    .stellato-listino-table tbody td {
        padding: 1.1rem 1.25rem;
    }

    .stellato-listino-cards {
        display: none !important;
    }

    .stellato-listino-table-wrap {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .stellato-listino-table-wrap {
        display: none !important;
    }

    .stellato-listino-cards {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .stellato-listino-intro {
        font-size: 1rem;
    }

    .stellato-listino-room-title {
        font-size: 1.25rem;
    }

    .stellato-listino-rate-price .price {
        font-size: 1.25rem;
    }

    .stellato-listino-cta .button {
        width: 100%;
        display: block;
    }
}
