/*
Theme Name: Mirror Safari Booking
Author: Sandeep(Under Mirror IT)
Version: 1.0
*/

:root {
    --bg-main: #0a0a0a;
    --bg-card: #141414;
    --accent-green: #00653e;
    --accent-hover: #f9701c;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-color: #2a2a2a;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.text-accent { color: var(--accent-green) !important; }
.bg-accent { background-color: var(--accent-green) !important; }

/* Left Panel Setup - Image Aligned Right */
.left-panel {
    height: 100vh;
    background: linear-gradient(to right, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.95) 100%), url('images/portal-img.jpg');
    background-size: cover;
    background-position: 35% center; 
    background-repeat: no-repeat;
    position: fixed;
    width: 41.666667%;
}

.tour-info-box {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
}

.feature-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.right-panel {
    margin-left: 41.666667%;
    padding: 60px;
    padding-bottom: 200px !important;
}

.bg-dark-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.step-circle {
    width: 32px;
    height: 32px;
    background-color: var(--accent-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
}

.step-circle-inactive {
    background-color: #2a2a2a !important;
    color: #666 !important;
}

.traveler-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #1a1a1a;
}

.counter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #888888;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: 0.2s;
}

.counter-btn:hover { border-color: var(--accent-green); color: var(--accent-green); }

.btn-accent {
    background-color: var(--accent-green);
    color: #fff;
    font-weight: 600;
    border: none;
}
.btn-accent:hover { background-color: var(--accent-hover); color: #fff; }

.ticket-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #1a1a1a;
    transition: 0.3s;
}

.ticket-card.active {
    background-color: rgba(0, 168, 89, 0.1);
    border-color: var(--accent-green);
}

.ticket-icon {
    width: 40px; height: 40px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-green);
}

.ticket-card.active .ticket-icon { background-color: var(--accent-green); color: #fff; }

.check-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid #444;
    display: flex; align-items: center; justify-content: center;
    color: transparent;
    transition: 0.2s;
}

.ticket-card.active .check-icon {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
}

.recommended-badge { font-size: 0.6rem; padding: 3px 6px; }
.cursor-pointer { cursor: pointer; }

/* Sticky Bottom Bar */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 58.333333%;
    background-color: rgba(15, 15, 15, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 20px 60px;
    z-index: 1000;
}

/* Typography & Contrast Fixes */
.step-summary-gray { color: #999999 !important; font-size: 0.85rem; }
.text-muted { color: #888888 !important; }
.sticky-bottom-bar .text-muted { color: #cccccc !important; font-weight: 500;}
.sticky-bottom-bar #old-total { color: #777777 !important; opacity: 1 !important;}

/* Calendar Styles - Forcing White Colors */
.calendar-box { background-color: #1a1a1a; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-grid div { color: #bbbbbb; }

.cal-date { 
    padding: 8px 0; 
    border-radius: 6px; 
    cursor: pointer; 
    color: #ffffff !important; /* Forces Future Dates to be White */
    transition: 0.2s; 
    font-weight: 500;
}
.cal-date:hover:not(.past):not(.active-date) { background-color: #333333; }
.cal-date.past { color: #444444 !important; cursor: not-allowed; background-color: transparent !important; }
.active-date { background-color: var(--accent-green) !important; color: #ffffff !important; font-weight: bold; }

.time-chip {
    background-color: transparent; border: 1px solid var(--border-color);
    color: #888888; padding: 8px 20px; border-radius: 20px;
    margin-right: 10px; transition: 0.3s;
}
.time-chip.active { background-color: var(--accent-green); border-color: var(--accent-green); color: #fff; }

@media (max-width: 768px) {
    .left-panel { position: relative; width: 100%; height: 50vh; }
    .right-panel { margin-left: 0; width: 100%; padding: 15px; padding-bottom: 180px !important; }
    .sticky-bottom-bar { width: 100%; padding: 15px; }
    .top-brand-header { display: none !important; }
}

/* Smooth Accordion Animation */
.step-body-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0;
}

.step-body-content.open {
    max-height: 800px; 
    opacity: 1;
}

/* Arrow Animation */
.bi-chevron-down, .bi-chevron-up {
    transition: transform 0.3s ease;
}
.rotate-180 {
    transform: rotate(180deg);
}

/* Checkout Header & Body */
.checkout-body { background-color: #0f0f0f; }
.checkout-header { background-color: #141414; }

/* Progress Steps */
.step-badge {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: bold;
}
.step-badge.active { background-color: var(--accent-green); color: #fff; }
.step-badge.inactive { background-color: #2a2a2a; color: #666; }

/* Form Inputs */
.icon-circle {
    width: 40px; height: 40px;
    background-color: rgba(0, 168, 89, 0.1);
    color: var(--accent-green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

.custom-input {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    padding: 12px 15px;
    border-radius: 8px;
}
.custom-input:focus {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 89, 0.25) !important;
}

/* Input Icon Wrapper */
.input-icon-wrapper { position: relative; }
.input-icon-wrapper .input-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #666;
}
.input-icon-wrapper .custom-input { padding-left: 45px; }

/* Checkbox Box (Not Decided Yet) */
.custom-checkbox-box {
    border: 1px solid #333;
    background-color: #1a1a1a;
    transition: 0.3s;
}
.custom-checkbox-box.active {
    border-color: #b8860b; /* Yellowish border as per screenshot */
    background-color: rgba(184, 134, 11, 0.05);
}

/* Summary Card Image Header */
.summary-image {
    height: 150px;
    background-size: cover;
    background-position: center 30%;
    border-bottom: 1px solid #333;
    position: relative;
}
.summary-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

/* Savings Badge */
.savings-badge {
    background-color: rgba(0, 168, 89, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 168, 89, 0.2);
}

/* Smooth Collapse Animation for Pickup Page */
.step-body-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0;
}

.step-body-content.open {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
}

/* Details Page Specific Styles */

/* Checked Step (Green Circle with Tick) */
.checked-step {
    background-color: transparent !important;
    color: var(--accent-green) !important;
    border: 1px solid var(--accent-green);
}

/* Custom Phone Group */
.custom-phone-group .form-select:focus,
.custom-phone-group .form-control:focus {
    box-shadow: none !important;
    border-color: var(--accent-green) !important;
}

.custom-phone-group .form-control {
    border-left: 0;
}
.custom-phone-group .input-group-text {
    border-left: 0;
    border-right: 0;
    background-color: #1a1a1a !important; /* Match input bg */
    border-color: #333 !important;
}

textarea.custom-input {
    resize: none;
}

/* Int-Tel-Input Dark Theme Overrides */
.iti { width: 100%; display: block; }
.iti__flag-container { padding: 2px; }
.iti__selected-flag { 
    background-color: rgba(0, 168, 89, 0.1) !important; 
    border-radius: 8px 0 0 8px; 
    padding: 0 15px;
}
.iti__country-list {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    white-space: normal;
}
.iti__country:hover, .iti__country.iti__highlight { background-color: var(--accent-green); color: #fff; }
.iti__divider { border-bottom: 1px solid #333; }
.iti__dial-code { color: #aaa; }
.iti__selected-dial-code { color: var(--accent-green); font-weight: bold; font-size: 1rem;}

/* Confirm Page Specific Styles */
.summary-block {
    background-color: #161616;
    border-radius: 8px;
    padding: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.summary-row:last-child { margin-bottom: 0; }
.summary-label { color: #888; }
.summary-value { color: #fff; font-weight: 500; text-align: right; }

.payment-info-box {
    background-color: rgba(30, 60, 100, 0.2); /* Dark bluish tint */
    border: 1px solid rgba(30, 60, 100, 0.5);
    border-radius: 8px;
    padding: 20px;
}

/* --- Single Product Page Styles --- */

/* --- Updated Single Product Styles for Exact Match --- */

.hero-product {
    /* Gradient: Transparent on left (0-30%), Dark on right (60-100%) */
    /* background: linear-gradient(to right, rgba(20,20,20,0) 0%, rgba(20,20,20,0) 30%, rgba(30,30,30,0.9) 60%, rgba(25,25,25,0.95) 100%), url('images/portal-img.jpg'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #ffffff;
    padding: 100px 0;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.product-title { 
    font-family: 'Impact', 'Oswald', 'Arial Narrow', sans-serif; /* Tall condensed font */
    font-weight: 900; 
    font-size: 3.8rem; 
    text-transform: uppercase; 
    margin-bottom: 5px; 
    letter-spacing: 1px;
}

.product-time { color: #dddddd; margin-bottom: 25px; font-size: 1rem; font-weight: 500; }
.product-desc { color: #cccccc; font-size: 0.95rem; line-height: 1.6; margin-bottom: 30px; }
.product-desc p { margin-bottom: 15px; }

.custom-accordion { 
    border-top: 1px solid #777777; 
    border-bottom: 1px solid #777777; /* Added bottom border */
    width: 100%; 
    margin-bottom: 20px;
}

.acc-section { border-bottom: 1px solid #555555; }
.acc-section:last-child { border-bottom: none; } /* Remove double border at end */

.acc-header { 
    padding: 15px 0; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 1rem;
    display: flex; 
    align-items: center; 
    color: #ffffff;
    transition: color 0.2s ease;
}

.acc-header:hover { color: #ff9900; }
.acc-header i { margin-right: 15px; transition: transform 0.3s ease; font-size: 0.8rem; }

.acc-body { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.4s ease; 
    padding: 0 10px 0 30px; 
    color: #bbbbbb; 
    font-size: 0.9rem; 
    opacity: 0;
    line-height: 1.5;
}

.acc-body ul { padding-left: 20px; margin-bottom: 0; }
.acc-body li { margin-bottom: 8px; }

.acc-section.active .acc-body { 
    max-height: 500px; 
    padding-bottom: 20px;
    opacity: 1;
}
.acc-section.active .acc-header i { transform: rotate(180deg); }

/* Updated Price Box to be Full Width */
.price-box { 
    background-color: #666666; 
    color: #ffffff;
    padding: 12px 20px; 
    border-radius: 4px; 
    font-weight: 700; 
    font-size: 1rem; 
    display: block; /* Changed from inline-block */
    width: 100%; /* Full width */
    margin-bottom: 25px; 
}

.btn-orange-book { 
    background-color: #997B49; 
    color: #fff; 
    font-weight: 500; 
    padding: 12px 35px; 
    border: none; 
    border-radius: 4px; 
    font-size: 1rem; 
    text-decoration: none; 
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn-orange-book:hover {
    background-color: #a97929;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .product-title { font-size: 2.5rem; }
    
    /* Mobile: Dark at the bottom (where text is), Transparent at the top */
    .hero-product { 
        background: linear-gradient(to top, rgba(15,15,15,0.98) 0%, rgba(15,15,15,0.9) 50%, rgba(15,15,15,0) 100%) !important; 
        padding-top: 250px; 
    }
}

/* --- Intl-Tel-Input Ultimate Dark Theme Fix --- */

.iti__country-list {
    background-color: #1a1a1a !important; 
    border: 1px solid #333333 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6) !important;
    padding: 10px 0 !important;
    overflow-x: hidden !important;
}


.iti__country-name, 
.iti__dial-code {
    color: #ffffff !important;
    font-size: 0.9rem !important;
}

.iti__country.iti__highlight {
    background-color: rgba(0, 168, 89, 0.2) !important;
    color: #ffffff !important;
}

.iti__country:hover {
    background-color: #00A859 !important;
}

.iti__selected-flag {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px 0 0 8px;
    padding: 0 15px !important;
}

.iti__divider {
    border-bottom: 1px solid #333333 !important;
}

.iti__flag-container {
    padding: 2px !important;
}

.iti__arrow {
    border-top-color: #888888 !important;
}
.iti__arrow--up {
    border-bottom-color: #888888 !important;
}

.iti__country-list .iti__search {
    background-color: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    padding: 8px !important;
    margin: 10px !important;
    border-radius: 5px !important;
}


.iti__country-list::-webkit-scrollbar {
    width: 6px;
}
.iti__country-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.woocommerce-order {
    color: #000;
}

/* Styling for the Return Buttons on Thank You Page */
.safari-order-footer {
    padding-top: 30px;
    border-top: 1px solid #333;
    margin-top: 40px !important;
}

.safari-order-footer .btn {
    min-width: 250px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.safari-order-footer .btn-outline-light:hover {
            background-color: #ffffff;
            color: #000000 !important;
        }
        .safari-order-footer .btn-accent {
            background-color: #00A859;
            border: none;
        }
        .safari-order-footer .btn-accent:hover {
            background-color: #008a49;
            transform: translateY(-2px);
            transition: all 0.3s ease;
        }

/* Hide product row if it has $0.00 price (Shared Safari) */
.woocommerce-order-details .order_item td.product-total:contains("$0.00"),
.woocommerce-order-details .order_item td.product-total:contains("රු.0.00") {
    display: none;
}
/* This ensures the row is removed if the price is zero */
.woocommerce-table__line-item:has(.product-total:contains("0.00")) {
    display: none !important;
}

