/* ==========================================================================
   Booking Process — Extracted Inline Styles
   Used by: _sidebar.html, step5.html, booking_create.html, car_list.html, home.html
   ========================================================================== */

/* --- Partner Badge (small overlay on vehicle photos) --- */
.partner-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 6px;
    padding: 5px 8px;
    z-index: 2;
    line-height: 0;
    display: block;
}

.partner-badge img {
    width: 55px;
    height: 18px;
    object-fit: contain;
    border-radius: 0 !important;
    display: block;
}

/* Larger variant used in car-list and home fleet cards */
.partner-badge--lg {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
}

.partner-badge--lg img {
    width: 60px;
    height: 20px;
}

/* --- Sidebar Vehicle Photo Wrapper --- */
.sidebar-vehicle-photo {
    position: relative;
    display: inline-block;
}

/* --- Sidebar "or similar" label --- */
.sidebar-or-similar {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Sidebar Vehicle Category Row --- */
.sidebar-vehicle-category {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Sidebar fleet body bottom padding --- */
.sidebar-fleet-body {
    padding-bottom: 12px;
}

/* --- Sidebar Action Links --- */
.sidebar-action-link {
    color: #e53935;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-action-link:hover {
    text-decoration: underline;
}

.sidebar-action-link--sm {
    font-size: 12px;
}

/* --- Collapse Icon (chevron) --- */
.collapse-icon {
    font-size: 10px;
    transition: transform 0.2s;
}

/* --- Surcharges warning icon color --- */
.surcharge-icon {
    color: #e67e22;
}

/* --- Sidebar final price highlight --- */
.sidebar-final-price {
    color: #fff;
}

/* ==========================================================================
   Booking Modals — styles kept inline for specificity/reliability
   ========================================================================== */

/* ==========================================================================
   Pricing Text Colors (Extras, Insurance, Cancellation)
   ========================================================================== */

.price-highlight {
    color: #1a237e;
}

.price-highlight--nowrap {
    white-space: nowrap;
}

/* Extra select width — needs !important to override Bootstrap's .form-select width:100% */
.extra-qty-select {
    width: 70px !important;
}

/* ==========================================================================
   Alerts inside booking steps
   ========================================================================== */

.booking-alert-info {
    font-size: 0.9rem;
}

.booking-alert-warning {
    font-size: 0.9rem;
}

/* ==========================================================================
   Homepage Testimonials — Equal Height
   ========================================================================== */

.testimonial-item--full {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-item--full .testimonial-header {
    flex: 1;
}

/* ==========================================================================
   Image Box — position context for partner badge overlay
   Only applies to vehicle card image boxes (inside fleet items & sidebar)
   ========================================================================== */

.perfect-fleet-item .image-box,
.fleets-single-sidebar-box .image-box {
    position: relative;
}

/* ==========================================================================
   Fleet Category Modal (Car List Page)
   ========================================================================== */

.fleet-category-modal .modal-content {
    border-radius: 16px;
    border: none;
}

.fleet-category-modal .modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 24px;
}

.fleet-category-modal .modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

/* ==========================================================================
   Checkout (Step 5) — Vehicle Rental Card (Main Section)
   ========================================================================== */

/* Dark vehicle card area (reuses sidebar styling) */
.checkout-vehicle-dark {
    background: linear-gradient(160deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 1.25rem;
    color: #fff;
}

.checkout-vehicle-dark strong {
    color: #fff;
}

.checkout-vehicle-dark .sidebar-or-similar {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.checkout-vehicle-dark .sidebar-vehicle-category {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.checkout-vehicle-dark .perfect-fleet-body {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.checkout-vehicle-dark .perfect-fleet-body ul li {
    color: rgba(255, 255, 255, 0.7);
}

.checkout-vehicle-dark .sidebar-action-link {
    color: #e53935;
    font-size: 13px;
    font-weight: 600;
}

/* Vehicle title (inline with "or similar") */
.checkout-vehicle-title {
    margin-bottom: 2px;
}

/* Vehicle photo wrapper */
.checkout-vehicle-photo {
    position: relative;
    display: block;
    width: 100%;
}

.checkout-vehicle-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Smaller partner badge specifically in checkout */
.partner-badge--checkout {
    top: 6px;
    right: 6px;
    padding: 3px 6px;
}

.partner-badge--checkout img {
    width: 44px;
    height: 15px;
}

/* Action links (Change location) — light card context */
.checkout-action-link {
    color: #e53935;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.checkout-action-link:hover {
    color: #c62828;
    text-decoration: underline;
}

/* Location items */
.checkout-location-item {
    padding: 0.5rem 0;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .checkout-vehicle-dark {
        padding: 1rem;
    }

    .checkout-vehicle-dark .checkout-vehicle-photo {
        max-width: 100%;
        margin: 0 auto 1rem;
    }

    .checkout-vehicle-dark .col-12.col-md-7 {
        text-align: left;
    }

    .checkout-vehicle-dark .checkout-vehicle-title strong {
        font-size: 1.1rem !important;
    }

    .checkout-vehicle-dark .perfect-fleet-body ul {
        justify-content: flex-start;
    }

    .checkout-vehicle-dark .perfect-fleet-body ul li {
        font-size: 0.8rem;
    }
}

/* Driver info icon circles */
.checkout-driver-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(26, 35, 126, 0.08);
    color: var(--rc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-right: 0.75rem;
}

/* Checkout content wrapper — inset from progress bar on desktop */
.checkout-content-wrapper {
    margin: 0 50px;
}

@media (max-width: 767.98px) {
    .checkout-content-wrapper {
        margin: 0;
    }
}

/* ==========================================================================
   Step 1 — Review Your Rental (Full-width dark card)
   ========================================================================== */

.booking-review-card {
    background: linear-gradient(160deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.booking-review-photo {
    position: relative;
    display: block;
}

.booking-review-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.booking-review-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.booking-review-title span {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.booking-review-category {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.booking-review-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.booking-review-specs li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.booking-review-specs li img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* Summary rows */
.booking-review-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    margin-bottom: 0.75rem;
}

.booking-review-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Daily breakdown */
.booking-review-breakdown {
    margin-top: 8px;
    margin-bottom: 8px;
}

.booking-review-breakdown-toggle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.booking-review-breakdown-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.booking-review-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 2px 0;
}

/* Total */
.booking-review-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.booking-review-no-dates {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 1rem;
}

/* Locations bar */
.booking-review-locations {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.booking-review-loc-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-review-loc-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
}

.booking-review-loc-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.booking-review-loc-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767.98px) {
    .booking-review-card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .booking-review-title {
        font-size: 1.25rem;
    }

    .booking-review-specs {
        gap: 10px;
    }

    .booking-review-loc-item {
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   Field Tooltip (click-based, mobile-friendly)
   ========================================================================== */
.field-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #6c757d;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.field-tooltip-trigger:hover,
.field-tooltip-trigger.active {
    color: #1a237e;
}

.field-tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    width: 280px;
    white-space: normal;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: tooltipFadeIn 0.15s ease;
}

.field-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 8px;
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    .field-tooltip-bubble {
        right: -10px;
        width: 220px;
    }
}

/* ==========================================================================
   Language Switcher (top bar)
   ========================================================================== */
.top-bar-lang {
    position: relative;
    overflow: visible;
}

.top-bar-links {
    overflow: visible;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 13px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 220px;
    padding: 6px 0;
    z-index: 99999;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.lang-dropdown::-webkit-scrollbar {
    width: 4px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.lang-dropdown.open {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #e0e0e0 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.lang-option .lang-flag {
    width: 20px !important;
    height: 14px !important;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-option:hover {
    background: #222;
    color: #ffffff !important;
    text-decoration: none;
}

.lang-option.active {
    background: #222;
    color: #ffffff !important;
    font-weight: 600;
}

/* Mobile language switcher (next to hamburger) */
.mobile-lang-wrapper {
    display: none;
    position: relative;
}

.mobile-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s;
}

.mobile-lang-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #fff !important;
}

.mobile-lang-trigger .lang-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.mobile-lang-dropdown {
    right: 0;
    left: auto;
}

@media (max-width: 991px) {
    .mobile-lang-wrapper {
        display: block;
        margin-right: 10px;
        float: right;
        position: absolute;
        right: 60px;
    }
}
