/* ===============================
   FILTER BAR
   =============================== */
.cholo-filter-wrapper {
    display: flex;
    justify-content: center;
}

.cholo-filter-box {
    margin: 16px 0;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    background: #f1f8f4;
    border-radius: 12px;
}

.cholo-select {
    min-width: 180px;
    padding: 8px 14px;
    height: 44px;
    line-height: 1.2;
    border-radius: 8px;
}

.cholo-reset {
    background: #28A745;
    color: #fff;
    border: none;
    padding: 8px 16px;
    height: 44px;
    border-radius: 8px;
}


/* ===============================
   TABLE BASE
   =============================== */
.cholo-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.cholo-table th {
    background: #28A745;
    color: #fff;
    padding: 8px 10px;
    text-align: center;
    font-size: 15px;
    white-space: nowrap;
}

.cholo-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;   /* light divider (original look) */
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
}

.cholo-table tr {
    height: auto;
}


/* ===============================
   TOUR TITLE
   =============================== */
.cholo-table td[data-label="Tour Title"] {
    font-weight: 700;
}


/* ===============================
   BADGES
   =============================== */
.cholo-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
}

.cholo-badge.booking-open { background: #17a2b8; }
.cholo-badge.guaranteed   { background: #28a745; }
.cholo-badge.sold-out     { background: #dc3545; }


/* ===============================
   PRICE DISCOUNT TEXT
   =============================== */
.group-discount {
    display: block;          /* force under price */
    margin-top: 3px;
    font-size: 11px;
    color: #dc3545;
    font-weight: 600;
}


/* ===============================
   BUTTONS (SLIM)
   =============================== */
.cholo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    height: 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.cholo-btn-join {
    background: #28A745;
    color: #fff;
}

.cholo-btn-details {
    background: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b7dfc2;
}

.cholo-btn-disabled {
    background: #ccc;
    color: #666;
}


/* ===============================
   ACTION COLUMN (DESKTOP)
   =============================== */
@media (min-width: 769px) {
    .cholo-actions {
        display: flex;
        gap: 6px;
        justify-content: center;
        align-items: center;
    }

    .cholo-actions .cholo-btn {
        width: auto;
        margin: 0;
    }
}


/* ===============================
   COUNTDOWN
   =============================== */
.cholo-table .countdown {
    margin-top: 2px;
    display: inline-block;
    font-size: 11px;
    color: #31C950;
}


/* ===============================
   ANIMATION
   =============================== */
.cholo-row {
    transition: opacity .2s ease, transform .2s ease;
}

.cholo-row.hide {
    opacity: 0;
    transform: translateY(6px);
}


/* ===============================
   MOBILE CARD LAYOUT
   =============================== */
@media (max-width: 768px) {

    .cholo-table thead {
        display: none;
    }

    .cholo-table,
    .cholo-table tbody,
    .cholo-table tr,
    .cholo-table td {
        display: block;
        width: 100%;
    }

    .cholo-table tr {
        margin-bottom: 12px;
        background: #fff;
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 4px 14px rgba(0,0,0,.08);
    }

    .cholo-table td {
        position: relative;
        text-align: right;
        padding: 6px 8px;
        font-size: 13px;
        border-bottom: none;
    }

    .cholo-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: 600;
        color: #555;
    }

    .cholo-actions {
        text-align: center;
    }

    .cholo-btn {
        width: 100%;
        height: 34px;
        margin: 4px 0;
        font-size: 13px;
    }
}



/* ===============================
   MOBILE HARD OVERRIDE
   =============================== */
@media screen and (max-width: 768px) {

    .cholo-filter-wrapper {
        width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    .cholo-filter-box {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .cholo-select,
    .cholo-reset {
        width: 100% !important;
        min-width: 100% !important;
        height: 48px !important;
    }

    /* Remove Actions label on mobile */
    .cholo-table td[data-label="Actions"]::before {
        display: none !important;
        content: none !important;
    }
}

/* ===============================
   MOBILE FIX: Prevent label/value overlap (ALL rows)
   =============================== */
@media (max-width: 768px) {

    /* Push all values to the right so labels have space */
    .cholo-table td {
        padding-left: 140px !important;   /* space for label */
        text-align: left !important;
        white-space: normal;
        word-break: break-word;
    }

    /* Make labels fixed-width and aligned */
    .cholo-table td::before {
        width: 120px;
        white-space: nowrap;
    }

    /* Extra polish for long tour titles */
    .cholo-table td[data-label="Tour Title"] {
        font-weight: 700;
        line-height: 1.4;
    }
}

/* ===============================
   MOBILE FIX: Restore Actions buttons layout
   =============================== */
@media (max-width: 768px) {

    /* Reset padding for Actions row */
    .cholo-table td.cholo-actions {
        padding-left: 10px !important;
        text-align: center !important;
    }

    /* Also ensure Actions label stays hidden */
    .cholo-table td.cholo-actions::before {
        display: none !important;
        content: none !important;
    }
}
