/* css/pricing.css - Redesigned, modern styles for the detailed pricing section */

/* Main grid for the pricing cards (2x2 on desktop) */
.ds-pricing-details__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.ds-card--room-pricing {
    display: flex; /* This ensures all cards in a row have the same height */
    flex-direction: column;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.ds-card--room-pricing:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(var(--ds-primary-light-rgb), 0.2);
}

.ds-card--room-pricing .ds-card__image-container {
    height: 200px;
    flex-shrink: 0;
}

.ds-card--room-pricing .ds-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the body to fill the card */
}

.ds-card--room-pricing .ds-card__title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--ds-light-text);
}

/* --- START: NEW PRICE LIST STYLES --- */

.ds-price-list {
    width: 100%;
    flex-grow: 1; /* Makes the list container fill available space */
    display: flex;
    flex-direction: column;
}

.ds-price-list__header {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 10px 15px;
    border-bottom: 2px solid var(--ds-primary-light);
    color: var(--ds-light-text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.ds-price-list__header-label:nth-child(1) { text-align: left; flex-basis: 50%; }
.ds-price-list__header-label:nth-child(2) { text-align: center; flex-basis: 25%; }
.ds-price-list__header-label:nth-child(3) { text-align: right; flex-basis: 25%; }

.ds-price-list__items {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.ds-price-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--ds-glass-effect);
    transition: background-color 0.2s ease;
}

.ds-price-list__item:nth-child(even) {
    background-color: rgba(var(--ds-primary-light-rgb), 0.05);
}

.ds-price-list__item:hover {
    background-color: rgba(var(--ds-primary-light-rgb), 0.1);
}

.ds-price-list__players {
    flex-basis: 50%;
    text-align: left;
    font-weight: 600;
    color: var(--ds-light-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-price-list__per-person {
    flex-basis: 25%;
    text-align: center;
    color: var(--ds-light-text-secondary);
    font-size: 0.9rem;
}

.ds-price-list__total {
    flex-basis: 25%;
    text-align: right;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ds-primary-light);
}

.ds-price-list__badge {
    background-color: var(--ds-primary-light);
    color: var(--ds-dark-bg);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- END: NEW PRICE LIST STYLES --- */

.ds-card--room-pricing .ds-card__actions {
    text-align: center;
    margin-top: auto; /* Pushes button to the very bottom */
    padding-top: 20px; /* Add some space above the button */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .ds-pricing-details__grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .ds-pricing-details__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ds-price-list__header {
        font-size: 0.7rem;
        padding: 0 10px 8px 10px;
    }
    .ds-price-list__item {
        padding: 12px 10px;
        flex-wrap: wrap; /* Allow wrapping on small screens */
    }
    .ds-price-list__players {
        flex-basis: 100%; /* Take full width */
        margin-bottom: 5px; /* Add space when it wraps */
    }
    .ds-price-list__per-person,
    .ds-price-list__total {
        flex-basis: 50%; /* Split the remaining width */
    }
    .ds-price-list__total {
        font-size: 1rem;
    }
}