/* =========================================================
 * FRONTEND CSS – Tour & Rent a Car Manager
 * Primary Accent: Golden (#946F33)
 * File: assets/css/front.css
 * ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

body.trcm-no-scroll { overflow: hidden; font-family: 'Outfit', sans-serif; }

/* =========================================
 * PREMIUM CARD GRID (Cars & Tours)
 * ======================================= */
.trcm-grid, .trcm-premium-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 24px; 
    font-family: 'Outfit', sans-serif; 
}

.trcm-card, .trcm-premium-card { 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
    overflow: hidden; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    border: 1px solid #f1f5f9; 
    height: 100%; /* JANU YEH ADD KIYA HAI TAAKE SAB CARDS BARABAR RAHEIN */
}

.trcm-card:hover, .trcm-premium-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 12px 25px rgba(0,0,0,0.12); 
}

.trcm-card-image-wrap { position: relative; width: 100%; padding-top: 66%; overflow: hidden; display: block; }
.trcm-card-image-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.trcm-premium-card:hover .trcm-card-image-wrap img { transform: scale(1.05); }

/* Photo Badge (Top Right) */
.trcm-photo-badge {
    position: absolute; top: 10px; right: 10px; background: rgba(15,23,42,0.85); color: #fff;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; display: flex;
    align-items: center; gap: 5px; pointer-events: none; transition: background 0.3s;
}
.trcm-premium-card:hover .trcm-photo-badge { background: rgba(148, 111, 51, 0.95); }

/* Card Content Details */
.trcm-card-content { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; /* YEH BHI ZAROORI HAI BUTTONS KO NEECHAY RAKHNE KE LIYE */
}

.trcm-card-title-main { 
    font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 10px 0; 
    line-height: 1.3; font-family: 'Playfair Display', serif; 
}

.trcm-meta-row { 
    display: flex; justify-content: space-between; font-size: 12px; color: #64748b; 
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}

.trcm-price-row { 
    margin-bottom: 16px; display: flex; align-items: baseline; gap: 6px; 
    font-family: 'Playfair Display', serif; color: #94a3b8; font-size: 14px;
}

.trcm-price-currency { color: #946F33; font-weight: 700; font-size: 14px; }
.trcm-price-amount { color: #946F33; font-size: 24px; font-weight: 700; }
.trcm-price-duration { color: #94a3b8; font-size: 13px; font-style: italic; font-family: 'Outfit', sans-serif;}

.trcm-features-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.trcm-pill { background: #fff; border: 1px solid #e2e8f0; color: #475569; padding: 4px 12px; border-radius: 20px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* TOUR HIGHLIGHTS LIST FIX */
.trcm-tour-highlights {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: #475569;
    flex-grow: 1; /* Pushes the price and button to the bottom */
}

.trcm-tour-highlights li {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start; /* FIX: Long text wrapping issue */
    gap: 8px;
    line-height: 1.4;
}

.trcm-tour-highlights li svg {
    flex-shrink: 0; /* FIX: Prevents the tick icon from squishing */
    margin-top: 3px;
}

/* 2 Buttons Container */
.trcm-card-footer-buttons { display: flex; gap: 8px; margin-top: auto; width: 100%; }
.trcm-btn-gold, .trcm-btn-dark { 
    flex: 1; border: none; padding: 10px 6px; border-radius: 6px; font-weight: 600; font-size: 11px; 
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; 
    text-decoration: none; transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.5px;
}

.trcm-btn-gold { background: #946F33; color: #fff !important; }
.trcm-btn-gold:hover { background: #7a5a29; color: #fff !important; }

.trcm-btn-dark { background: #1e293b; color: #fff !important; }
.trcm-btn-dark:hover { background: #0f172a; color: #fff !important; }

/* Filter forms */
.trcm-filter-form { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.trcm-filter-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.trcm-filter-field { min-width: 140px; flex: 1 1 160px; }
.trcm-filter-field--small { max-width: 140px; flex: 0 0 120px; }
.trcm-filter-field label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 3px; color: #4b5563; }
.trcm-filter-field input, .trcm-filter-field select { width: 100%; border-radius: 6px; border: 1px solid #d1d5db; padding: 8px 10px; font-size: 0.9rem; background: #ffffff; outline: none; }
.trcm-filter-field input:focus, .trcm-filter-field select:focus { border-color: #946F33; }
.trcm-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.trcm-btn-primary { background: #946F33; color: #fff; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-weight: 500;}
.trcm-btn-secondary { background: #e2e8f0; color: #1e293b; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; text-decoration: none; font-weight: 500;}

/* =========================================
 * RENTAL CALCULATOR COMPACT
 * ======================================= */
.trcm-calc-wrapper { width: 100%; max-width: 850px; margin: 0 auto; background: #ffffff; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); overflow: hidden; border: 1px solid #eaeaea; scroll-margin-top: 80px; }
.trcm-calc-header { background: #946F33; color: #ffffff; padding: 12px 18px; font-size: 1.1rem; font-weight: 700; font-family: 'Playfair Display', serif; display: flex; align-items: center; gap: 8px; }
.trcm-calc-header svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.trcm-calc-body { display: grid; grid-template-columns: 1fr 0.9fr; gap: 20px; padding: 20px; background: #fafaf9; }
.trcm-calc-group { margin-bottom: 14px; }
.trcm-calc-group label { display: block; margin-bottom: 6px; font-size: 0.75rem; color: #475569; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.trcm-calc-group select, .trcm-calc-group input[type="number"] { width: 100%; padding: 8px 12px; border-radius: 6px; border: 1px solid #cbd5e1; font-size: 0.9rem; color: #0f172a; background: #fff; outline: none; box-sizing: border-box; }
.trcm-calc-group select:focus, .trcm-calc-group input[type="number"]:focus { border-color: #946F33; box-shadow: 0 0 0 2px rgba(148, 111, 51, 0.15); }
.trcm-calc-checkbox { display: flex; align-items: center; gap: 8px; margin-top: 8px; margin-bottom: 14px; }
.trcm-calc-checkbox input { width: 14px; height: 14px; cursor: pointer; accent-color: #946F33; }
.trcm-calc-checkbox label { margin: 0; cursor: pointer; font-size: 0.8rem; color: #1e293b; font-weight: 500; }

.trcm-calc-included { background: #fff; padding: 12px; border-radius: 6px; border: 1px solid #e2e8f0; }
.trcm-included-item { display: flex; justify-content: space-between; font-size: 0.8rem; color: #64748b; padding: 3px 0; }
.trcm-included-item .trcm-check { color: #059669; font-weight: 600; }

.trcm-calc-image-box { margin-top: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; }
.trcm-calc-image-title { font-size: 0.7rem; font-weight: 600; color: #64748b; text-transform: uppercase; margin-bottom: 8px; }
.trcm-calc-image-wrap { position: relative; width: 100%; padding-top: 55%; border-radius: 6px; overflow: hidden; background: #f1f5f9; }
.trcm-calc-image-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.trcm-calc-image-name { position: absolute; bottom: 8px; left: 8px; background: rgba(15, 23, 42, 0.85); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 500; }

.trcm-breakdown-box { background: #fff; border: 1px solid rgba(148, 111, 51, 0.35); border-radius: 8px; padding: 16px; box-shadow: 0 6px 18px rgba(148, 111, 51, 0.08); margin-bottom: 16px; }
.trcm-breakdown-box h3 { margin: 0 0 14px 0; font-size: 1.15rem; font-weight: 700; color: #1e293b; font-family: 'Playfair Display', serif; }
.trcm-bd-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.8rem; color: #64748b; }
.trcm-bd-row span:last-child { font-weight: 600; color: #0f172a; }
.trcm-bd-divider { border-top: 1px solid #e2e8f0; margin: 12px 0; }
.trcm-bd-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.trcm-bd-total span:first-child { font-size: 0.95rem; font-weight: 700; color: #1e293b; }
.trcm-bd-total span:last-child, .trcm-calc-amount { font-size: 1.25rem; font-weight: 700; color: #946F33; font-family: 'Playfair Display', serif; }

.trcm-bd-wa-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: #946F33; color: #fff !important; padding: 10px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.3s ease; box-sizing: border-box; }
.trcm-bd-wa-btn:hover { background: #1e293b; transform: translateY(-2px); color: #fff !important; }

.trcm-calc-protips { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.trcm-calc-protips h4 { color: #1e293b; margin: 0 0 8px 0; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; font-weight: 700; font-family: 'Playfair Display', serif; }
.trcm-calc-protips ul { margin: 0; padding-left: 16px; color: #475569; font-size: 0.75rem; line-height: 1.5; }
.trcm-calc-protips li { margin-bottom: 4px; }

/* =========================================
 * CAR GALLERY MODAL
 * ======================================= */
.trcm-modal { position: fixed; inset: 0; z-index: 9999; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.trcm-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.trcm-modal-overlay { position: absolute; inset: 0; background: radial-gradient(circle at top left, rgba(148, 111, 51, 0.55), transparent 55%), rgba(15, 23, 42, 0.85); backdrop-filter: blur(4px); z-index: 1; }
.trcm-modal-dialog { position: relative; z-index: 2; max-width: 600px; width: 100%; max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 16px; background: #0b0f19; }
.trcm-modal-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 999px; border: none; background: rgba(255,255,255,0.1); color: #f9fafb; font-size: 20px; cursor: pointer; z-index: 3; }
.trcm-modal-car-header { padding: 24px 20px 16px; align-items: center; }
.trcm-modal-car-header h2 { margin: 0 0 12px; font-size: 1.8rem; color: #ffffff; text-align: center; font-family: 'Playfair Display', serif; }
.trcm-modal-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 12px; padding-bottom: 12px; margin: 0 -5px;}
.trcm-modal-slider::-webkit-scrollbar { height: 6px; }
.trcm-modal-slider::-webkit-scrollbar-track { background: #1e293b; border-radius: 10px; }
.trcm-modal-slider::-webkit-scrollbar-thumb { background: #946F33; border-radius: 10px; }
.trcm-modal-slider img { width: 100%; max-width: 500px; height: 300px; object-fit: cover; flex: 0 0 auto; scroll-snap-align: center; border-radius: 12px; margin: 0 5px;}

/* =========================================
 * RESPONSIVE ADJUSTMENTS (MOBILE FIXES)
 * ======================================= */
@media (max-width: 850px) { 
    .trcm-calc-body { grid-template-columns: 1fr; gap: 20px; padding: 20px; } 
    .trcm-calc-included { display: none !important; }
}

@media (max-width: 600px) {
    .trcm-grid, .trcm-premium-grid { grid-template-columns: 1fr; gap: 20px; }
    .trcm-card-content { padding: 16px; }
    .trcm-modal-dialog { max-width: 94%; margin: 24px auto; } 
    .trcm-modal-slider img { height: 200px; max-width: 85vw; } 
}