/* cabs.css - Styling for the Cabs page based on hotels.css */

:root {
    --primary-dark: #041b3b;
    --accent-yellow: #fdbb2d;
    --accent-hover: #e5a828;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    background-color: #f8fafc;
    font-family: 'Poppins', sans-serif;
}

/* ===== HERO SECTION ===== */
.cab-hero {
    position: relative;
    background: linear-gradient(to right, rgba(4, 27, 59, 0.95) 0%, rgba(4, 27, 59, 0.6) 50%, rgba(4, 27, 59, 0.2) 100%), url('landing/assets/images/herosection.webp') center/cover;
    color: white;
    padding: 80px 0 120px 0; /* Extra bottom padding for the floating search bar */
}

.cab-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cab-hero p {
    font-size: 15px;
    max-width: 500px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* ===== FLOATING SEARCH BAR ===== */
.cab-search-bar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 16px;
    position: relative;
}

.search-field:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border-color);
}

.search-icon {
    color: var(--text-muted);
    font-size: 20px;
    margin-top: 4px;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.search-input-group label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.search-input-group input, .search-input-group select {
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-dark);
    padding: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.search-input-group input::placeholder {
    color: var(--primary-dark);
}

.btn-search {
    background: var(--accent-yellow);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-search:hover {
    background: var(--accent-hover);
}

/* ===== MAIN LAYOUT ===== */
.cab-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 80px;
}

/* ===== SIDEBAR ===== */
.cab-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    align-self: start;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
}

.clear-all-btn {
    font-size: 12px;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
}

.filter-section {
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

.filter-section-body {
    padding: 0 20px 20px;
    display: block;
}

.filter-check-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    cursor: pointer;
}

.check-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-wrap input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-yellow);
}

.apply-filters-btn {
    width: 100%;
    padding: 14px;
    background: #f1f5f9;
    border: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.apply-filters-btn:hover {
    background: #e2e8f0;
}

/* ===== TOP BAR ===== */
.cab-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cab-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.sort-dropdown select {
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-dark);
    outline: none;
    cursor: pointer;
}

/* ===== CAB CARD (LIST VIEW) ===== */
.cab-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: 0.3s;
}

.cab-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.cab-img-wrap {
    width: 300px;
    background: #f8fafc;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.cab-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cab-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    background: var(--primary-dark);
    color: white;
}

.cab-info-wrap {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cab-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cab-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.cab-features {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cab-features i {
    color: var(--primary-dark);
    opacity: 0.7;
}

.cab-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cab-price-wrap {
    width: 200px;
    border-left: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
}

.price-row {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 22px;
    font-weight: 800;
    color: #ef4444; 
    margin: 0;
}

.price-night {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.btn-book {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--accent-yellow);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}

.btn-book:hover {
    background: var(--accent-hover);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .cab-layout {
        grid-template-columns: 1fr;
    }
    .cab-sidebar {
        display: none;
    }
    .cab-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-field:not(:last-child)::after {
        display: none;
    }
    .search-field {
        border-bottom: 1px solid var(--border-color);
        padding: 12px 0;
    }
    .cab-card {
        flex-direction: column;
    }
    .cab-img-wrap {
        width: 100%;
        height: 200px;
    }
    .cab-price-wrap {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}
