html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    padding-top: var(--header-height);
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: var(--container-width);
    max-width: var(--max-width);
    margin: auto;
    padding: 0 50px;
}



header{
    background:var(--white);
    height:var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}



.navbar{
    height: 100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo img{
    height: 70px;
    max-height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}

nav ul{

    display:flex;

    gap:55px;

    list-style:none;

}

nav a{
    text-decoration:none;
    color:var(--text-main);
    font-weight:600;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu styling */
nav ul li {
    position: relative;
    display: flex;
    align-items: center;
}

nav ul li .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

nav ul li .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    text-align: left;
}

nav ul li .dropdown-menu a:hover {
    background: var(--surface-hover);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-caret {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

nav ul li:hover .nav-caret {
    transform: rotate(180deg);
}

.right{
    display:flex;
    align-items:center;
    gap:18px;
}

.search-box{
    width:380px;
    height:55px;
    border:1px solid var(--border-color);
    border-radius:var(--radius-lg);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    background: var(--bg-color);
    transition: var(--transition);
    position: relative;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.15);
    background: var(--surface-color);
}

.search-box input{
    width:100%;
    border:none;
    outline:none;
    font-size:17px;
    background: transparent;
    color: var(--text-main);
}

.material-symbols-outlined{
    cursor:pointer;
    color:var(--text-main);
    background-color: #00000000;
    border: none;
    transition: var(--transition);
}

.material-symbols-outlined:hover {
    color: var(--primary-color);
}

/* ======================Compare Option inside Cards=========================== */

.compare-container {
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.compare-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    user-select: none;
}

.compare-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Floating Compare Bar */
.compare-bar {
    position: fixed;
    bottom: -120px;
    left: 0;
    width: 100%;
    height: 90px;
    background: var(--surface-color);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    z-index: 999;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.compare-bar.active {
    bottom: 0;
}

.compare-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    margin: auto;
}

.compare-cars-list {
    display: flex;
    gap: 15px;
}

.compare-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
}

.compare-item img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.compare-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.compare-item .remove-compare {
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    padding-left: 5px;
}

.compare-item .remove-compare:hover {
    color: var(--danger);
}

.compare-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Specs Modal Layout */
.spec-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 35px;
}

.spec-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-left img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.price-rating-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-rating-info h3 {
    font-size: 26px;
    color: var(--primary-color);
    font-weight: 700;
}

.rating-badge {
    background: #fff8e6;
    color: var(--warning);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: 1px solid #ffe6a3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dark-theme .rating-badge {
    background: #2a2010;
    border-color: #4a3410;
}

.spec-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    gap: 25px;
    margin-bottom: 20px;
}

.spec-tab-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.spec-tab-btn.active {
    color: var(--primary-color);
}

.spec-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.spec-tab-content {
    display: none;
}

.spec-tab-content.active {
    display: block;
}

.overview-highlights {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.overview-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-muted);
}

.overview-highlights li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    font-size: 16px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td.spec-name {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.specs-table td.spec-val {
    color: var(--text-main);
    font-weight: 600;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Comparison Table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.compare-table th, .compare-table td {
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    text-align: center;
    font-size: 15px;
    color: var(--text-main);
}

.compare-table th {
    background: var(--bg-color);
    color: var(--text-main);
    font-weight: 600;
    width: 25%;
}

.compare-table th img {
    display: block;
    margin: 12px auto 0;
    width: 120px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.compare-table td.spec-label {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    width: 25%;
}

.compare-table td.spec-value {
    font-weight: 500;
}

.compare-table .highlight-diff {
    background: rgba(229, 169, 59, 0.08);
}

.dark-theme .compare-table .highlight-diff {
    background: rgba(229, 169, 59, 0.15);
}

/* City Selection Grid */
.search-city-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-bottom: 25px;
}

.search-city-input input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: var(--text-main);
}

.search-city-input span {
    color: var(--text-muted);
}

.popular-cities h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 18px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.city-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface-color);
}

.city-item:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.city-item span {
    font-size: 32px;
    color: var(--text-muted);
    transition: var(--transition);
}

.city-item:hover span {
    color: var(--primary-color);
}

.city-item p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.city-item:hover p {
    color: var(--primary-color);
}

/* Login/Signup Auth Modal */
.auth-tabs {
    display: flex;
    gap: 25px;
}

.auth-tab-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.auth-tab-btn.active {
    color: var(--primary-color);
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: flex;
    flex-direction: column;
}

.forgot-pass {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-pass a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-pass a:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
}

.auth-status {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.auth-status.success { color: var(--success); }
.auth-status.error { color: var(--danger); }

/* Mobile Menu Toggle & Navigation Drawer */
#menuToggle {
    display: none;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: var(--surface-color);
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-header img {
    width: 130px;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.drawer-links a:hover {
    background: var(--surface-hover);
    color: var(--primary-color);
}

.drawer-links a span {
    font-size: 22px;
    color: var(--text-muted);
}

.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.drawer-overlay.active {
    display: block;
}

/* Common Utilities & Core Layouts */
.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
}

.section {
    padding: 70px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
}

.section-header a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.section-header a:hover {
    color: var(--primary-dark);
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 30px;
    border-radius: var(--radius-round);
    background: var(--primary-color);
    color: var(--text-on-primary, #000000);
    font-weight: 600;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-dark);
}

.btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 30px;
    border-radius: var(--radius-round);
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn-clear:hover {
    background: var(--surface-hover);
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* Modals Core Framework */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-overlay-bg);
    backdrop-filter: var(--backdrop-blur);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--surface-color);
    margin: auto;
    padding: 30px;
    border: var(--card-border);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    color: var(--text-main);
}

.modal-content.large {
    max-width: 800px;
}

.modal-content.extra-large {
    max-width: 1100px;
}

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

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
}

.close-modal {
    color: var(--text-muted);
    font-size: 32px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

/* Form Controls & Inputs */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input {
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.15);
    background: var(--surface-color);
}

/* Autocomplete Suggestion Dropdowns */
.input-container-rel {
    position: relative;
    width: 100%;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: var(--surface-color);
    border: var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--surface-hover);
}

.suggestion-item img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.suggestion-details {
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
}

.suggestion-price {
    font-size: 13px;
    color: var(--primary-color);
}

.no-suggestions {
    padding: 15px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ==============================FOOTER====================================== */

/*==============================
FOOTER
==============================*/

footer{
    background: #000000;
    color: #ffffff;
    margin-top: 70px;
    border-top: 1px solid var(--border-color);
}

.footer-container{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:40px;

    padding:60px 50px;

}

.footer-column h3{

    margin-bottom:20px;

    font-size:28px;

}

.footer-column p{

    color:#cfcfcf;

    line-height:1.8;

    margin-bottom:10px;

}

.footer-column ul{

    list-style:none;

}

.footer-column ul li{

    margin-bottom:12px;

}

.footer-column ul li a{

    color:#cfcfcf;

    text-decoration:none;

    transition:0.3s;

}

.footer-column ul li a:hover{

    color:var(--primary-color);

}

.social-icons{

    display:flex;

    gap:15px;

    margin-top:20px;

}

.social-icons a{

    width:45px;

    height:45px;

    border-radius:50%;

    background:#333;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    transition:.3s;

}

.social-icons a:hover{

    background:var(--primary-color);

}

.copyright{
    text-align:center;
    border-top:1px solid #444;
    padding:20px;
    color:#bbb;
}

/* Dark theme select dropdown options styles */
body.dark-theme select,
body.dark-theme select option {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}