/* ==========================================================================
   Tarifes - Pricing Tables
   Colors extracted from provided designs:
   - Dark purple background: #1e1547 / #2a1f5e
   - Orange headers: #EF5236
   - Gray price badges: #c4c0d0
   - White text
   ========================================================================== */

/* --------------------------------------------------------------------------
   Common styles
   -------------------------------------------------------------------------- */
.tarifes-single,
.tarifes-all {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


.tarifes-single .tarifes-titol{
    font-size: 20px;
}

.tarifes-single .tarifes-header-label{
    width: 150px;
}
.tarifes-single .tarifes-horari{
    font-size: 15px;
}

.tarifes-single .tarifes-preu{
    font-size: 19px;
}

html[lang="en-GB"] .tarifes-single .tarifes-titol{
    font-size: 17px;
}

/* Desktop visible by default, mobile hidden */
.tarifes-desktop {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
}

.tarifes-mobile {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Desktop Table
   -------------------------------------------------------------------------- */
.tarifes-table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #443C66;
    border-radius: 16px;
    overflow: hidden;
    table-layout: fixed;
    padding: 10px 10px 10px 10px;
    margin:0;
}

.tarifes-table  thead , .tarifes-table  tbody tr td{
    background: #443C66 !important;
    background-color: #443C66 !important;
}

table caption+thead tr:first-child td, table caption+thead tr:first-child th, table colgroup+thead tr:first-child td, table colgroup+thead tr:first-child th, table thead:first-child tr:first-child td, table thead:first-child tr:first-child th {
    border-block-start: 0px !important;
}

.tarifes-table thead th {
    padding: 20px 12px 12px;
    text-align: center;
    vertical-align: top;
    border: none;
    background: transparent;
}

.tarifes-header-label {
    width: 220px;
    min-width: 180px;
}

.tarifes-header-col {
    min-width: 90px;
}

.tarifes-titol {
    display: block;
    font-size: 23px;
    font-weight: 800;
    color: #EF5236;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.tarifes-horari {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-top: 3px;
    line-height: 1;
}

/* Body */
.tarifes-table tbody td {
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    border: none;
    background: transparent;
}

.tarifes-row-label {
    text-align: left !important;
    padding-left: 20px !important;
    font-size: 25px;
    font-weight: 800;
    color: #EF5236;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    /* white-space: nowrap; */
}

.tarifes-sala-name {
    display: block;
    font-size: 23px;
    font-weight: 800;
    color: #EF5236;
    text-transform: uppercase;
    line-height: 1.2;
}

.tarifes-sala-subtitle {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-transform: none;
    margin-top: 2px;
}

/* Price badge */
.tarifes-preu {
    display: inline-block;
    background: #CCCCCC;
    color: #1e1547;
    font-size: 21px;
    font-weight: 700;
    padding: 20px 16px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

.tarifes-preu-empty {
    background: rgba(196, 192, 208, 0.2);
    color: rgba(255, 255, 255, 0.3);
}

/* All rooms table - rows styling */
.tarifes-table-all tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tarifes-table-all tbody tr:first-child {
    border-top: none;
}

.tarifes-table-all tbody td {
    padding: 10px 10px;
}

.tarifes-table-all .tarifes-row-label {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* --------------------------------------------------------------------------
   Mobile Cards
   -------------------------------------------------------------------------- */
.tarifes-card {
    background: #443C66 !important;
    border-radius: 16px;
    padding: 20px 14px 18px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(30, 21, 71, 0.4);
}

.tarifes-card:last-child {
    margin-bottom: 0;
}

.tarifes-card-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #EF5236;
    text-transform: uppercase;
    margin: 0 0 14px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.tarifes-card-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-transform: none;
    margin-left: 6px;
}

.tarifes-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 8px;
}

.tarifes-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.tarifes-card-item .tarifes-titol {
    font-size: 17px;
    font-weight: 800;
}

.tarifes-card-item .tarifes-horari {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.tarifes-card-item .tarifes-preu {
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 0;
    width: 100%;
    font-weight: bold;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Mobile & Tablet: show card layout, hide table */
@media (max-width: 1024px) {
    .tarifes-desktop {
        display: none;
    }

    .tarifes-mobile {
        display: block;
        padding: 0;
    }
}

/* Tablet: 4-column grid, title left-aligned */
@media (min-width: 768px) and (max-width: 1024px) {
    .tarifes-card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px 10px;
    }

    .tarifes-card-title {
        text-align: left;
        font-size: 24px;
    }

    .tarifes-card-item .tarifes-titol {
        font-size: 18px;
    }

    .tarifes-card-item .tarifes-horari {
        font-size: 17px;
    }

    .tarifes-card-item .tarifes-preu {
        font-size: 19px;
    }
}

/* Narrow desktop table tweaks */
@media (min-width: 1025px) and (max-width: 1200px) {
    .tarifes-titol {
        font-size: 15px;
    }

    .tarifes-horari {
        font-size: 18px;
    }

    .tarifes-preu {
        font-size: 18px;
        padding: 6px 10px;
        min-width: 50px;
    }

    .tarifes-sala-name {
        font-size: 22px;
    }

    .tarifes-header-label {
        width: 180px;
        min-width: 160px;
    }
}
