/* Tour Rate Card v2.2.0 — assets/tour-rate-card.css */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
    --trc-blue:        #1a56db;
    --trc-blue-dark:   #1648b8;
    --trc-red:         #e53e3e;
    --trc-red-soft:    #c0392b;
    --trc-green:       #065f46;
    --trc-amber:       #92400e;
    --trc-gray-50:     #f9fafb;
    --trc-gray-100:    #f3f4f6;
    --trc-gray-200:    #e5e7eb;
    --trc-gray-400:    #9ca3af;
    --trc-gray-500:    #6b7280;
    --trc-gray-700:    #374151;
    --trc-gray-900:    #111827;
    --trc-radius:      14px;
    --trc-radius-sm:   8px;
    --trc-shadow:      0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    --trc-shadow-hov:  0 6px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.07);
}

/* ── Loop wrapper ─────────────────────────────────────────────────────────── */
.trc-loop {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.trc-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--trc-gray-200);
    border-radius: var(--trc-radius);
    padding: 1.5rem;
    max-width: 980px;
    box-sizing: border-box;
    font-family: inherit;
    box-shadow: var(--trc-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.trc-card:hover {
    box-shadow: var(--trc-shadow-hov);
    transform: translateY(-2px);
}

/* ── Thumbnail ────────────────────────────────────────────────────────────── */
.trc-thumb {
    flex-shrink: 0;
}

.trc-thumb img {
    display: block;
    width: 160px;
    min-width: 160px;
    height: 130px;
    object-fit: cover;
    border-radius: var(--trc-radius-sm);
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}

/* ── Body ─────────────────────────────────────────────────────────────────── */
.trc-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.trc-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.trc-badge {
    background: #e8f0fd;
    color: var(--trc-blue);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ── Title ────────────────────────────────────────────────────────────────── */
.trc-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.trc-title a {
    color: var(--trc-gray-900);
    text-decoration: none;
}

.trc-title a:hover {
    color: var(--trc-blue);
}

/* ── Description ──────────────────────────────────────────────────────────── */
.trc-desc {
    font-size: 15px;
    color: var(--trc-gray-500);
    margin: 0;
    line-height: 1.6;
}

/* ── Meta chips row ───────────────────────────────────────────────────────── */
.trc-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0.15rem 0;
}

.trc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--trc-gray-700);
    background: var(--trc-gray-100);
    border: 1px solid var(--trc-gray-200);
    border-radius: 6px;
    padding: 3px 10px;
    white-space: nowrap;
    font-weight: 500;
}

/* ── Promo label ──────────────────────────────────────────────────────────── */
.trc-promo-label {
    font-size: 14px;
    color: var(--trc-red-soft);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.01em;
}

.trc-promo-label em {
    font-weight: 400;
    font-style: italic;
}

/* ── Rates wrap ───────────────────────────────────────────────────────────── */
.trc-rates-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--trc-gray-50);
    border: 1px solid var(--trc-gray-200);
    border-radius: var(--trc-radius-sm);
    padding: 0.75rem 1rem;
}

.trc-select-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--trc-gray-700);
    display: flex;
    align-items: center;
    gap: 5px;
}

.trc-select-book-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

/* ── Custom select wrapper — single arrow, no double chevron ─────────────── */
.trc-select-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* The SVG chevron-down arrow injected via CSS — one only */
.trc-select-wrap::after {
    content: '';
    pointer-events: none;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.trc-rate-select {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--trc-gray-900);
    background: #ffffff;
    border: 1.5px solid var(--trc-gray-200);
    border-radius: 7px;
    padding: 0.6rem 2.5rem 0.6rem 0.85rem;
    /* Remove ALL native browser arrows */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    line-height: 1.4;
    box-sizing: border-box;
    /* Remove IE arrow */
    background-image: none;
}

.trc-rate-select::-ms-expand {
    display: none;
}

.trc-rate-select:focus {
    outline: 2px solid var(--trc-blue);
    outline-offset: 1px;
    border-color: var(--trc-blue);
}

/* ── Book Now button ──────────────────────────────────────────────────────── */
.trc-book-btn {
    flex-shrink: 0;
    background: var(--trc-blue);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 0.6rem 1.3rem;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.1s ease;
    line-height: 1.4;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trc-book-btn:hover {
    background: var(--trc-blue-dark);
}

.trc-book-btn:active {
    transform: scale(0.97);
}

/* ── No rates ─────────────────────────────────────────────────────────────── */
.trc-no-rates {
    font-size: 14px;
    color: var(--trc-gray-400);
    font-style: italic;
    margin: 0;
}

/* ── Footer row ───────────────────────────────────────────────────────────── */
.trc-footer-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.2rem;
}

.trc-stars {
    font-size: 15px;
    color: #f59e0b;
    letter-spacing: 1px;
}

.trc-review-link {
    color: var(--trc-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.trc-review-link:hover {
    text-decoration: underline;
}

.trc-booked {
    font-size: 13px;
    color: var(--trc-red-soft);
    font-weight: 500;
}

/* ── Right column ─────────────────────────────────────────────────────────── */
.trc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    min-width: 140px;
    text-align: right;
    flex-shrink: 0;
}

.trc-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 1px solid #fecaca;
    border-radius: var(--trc-radius-sm);
    padding: 0.6rem 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.trc-from-label {
    font-size: 12px;
    color: var(--trc-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.trc-big-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--trc-red);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* ── Status badge ─────────────────────────────────────────────────────────── */
.trc-status {
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 4px;
}

.trc-status-open    { color: var(--trc-green);  background: #d1fae5; }
.trc-status-limited { color: var(--trc-amber);  background: #fef3c7; }
.trc-status-full    { color: #991b1b;            background: #fee2e2; }

/* ── Deposit ──────────────────────────────────────────────────────────────── */
.trc-deposit {
    font-size: 12px;
    color: var(--trc-gray-500);
    margin-top: 3px;
}

/* ── View Details button ──────────────────────────────────────────────────── */
.trc-btn-view {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    color: var(--trc-blue) !important;
    border: 2px solid var(--trc-blue);
    letter-spacing: 0.01em;
}

.trc-btn-view:hover {
    background: var(--trc-blue);
    color: #ffffff !important;
}

/* ── Divider between body and right ──────────────────────────────────────── */
.trc-body + .trc-right {
    border-left: 1px solid var(--trc-gray-200);
    padding-left: 1.25rem;
}

/* ── Error ────────────────────────────────────────────────────────────────── */
.trc-error {
    color: #991b1b;
    font-size: 14px;
    font-style: italic;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media ( max-width: 680px ) {
    .trc-card {
        flex-wrap: wrap;
        padding: 1.1rem;
        gap: 1rem;
    }

    .trc-thumb img {
        width: 100% !important;
        min-width: unset !important;
        height: 200px !important;
    }

    .trc-body + .trc-right {
        border-left: none;
        border-top: 1px solid var(--trc-gray-200);
        padding-left: 0;
        padding-top: 0.85rem;
    }

    .trc-right {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        min-width: unset;
        text-align: left;
    }

    .trc-price-block {
        align-items: flex-start;
        flex: 1;
    }

    .trc-btn-view {
        width: auto;
        flex: 0 0 auto;
        align-self: center;
    }

    .trc-big-price {
        font-size: 26px;
    }

    .trc-select-book-row {
        flex-direction: column;
        align-items: stretch;
    }

    .trc-book-btn {
        justify-content: center;
    }

    .trc-title {
        font-size: 18px;
    }
}
.trc-tags {
    display: none !important;
}