﻿* {
    box-sizing: border-box;
}

/* =========================
   NAVBAR
========================= */

/* =========================
                   NAVBAR
                ========================= */

.navbar {
    height: 76px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
}

    .logo:hover {
        text-decoration: none !important;
    }

    .logo img {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        border: 2px solid #e63946;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: black;
    white-space: nowrap;
    text-decoration: none !important;
}

/* MENU */

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

    .nav-links a {
        text-decoration: none;
        color: #394150;
        font-size: 15px;
        font-weight: 600;
    }

        .nav-links a:hover {
            color: #e63946;
        }

    /* LOGIN */

    .nav-links .login-btn {
        background: #e63946;
        color: #ffffff !important;
        padding: 11px 21px;
        border-radius: 8px;
        text-decoration: none;
    }


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #222;
}


/* =====================================================
   HERO XE CHO THUÊ
===================================================== */

.car-hero {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: linear-gradient( 90deg, rgba(4, 9, 20, 0.92) 0%, rgba(4, 9, 20, 0.82) 25%, rgba(4, 9, 20, 0.60) 48%, rgba(4, 9, 20, 0.30) 72%, rgba(4, 9, 20, 0.12) 100% ),
        url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
}


/* =====================================================
   OVERLAY
===================================================== */

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}


/* =====================================================
   NỘI DUNG
===================================================== */

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 35px;
    text-align: left;
    position: relative;
    z-index: 2;
}


/* =====================================================
   DÒNG DVDL ĐẶNG LÝ
===================================================== */

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 8px 17px;
    border-radius: 30px;
    background: rgba(230, 57, 70, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}


/* =====================================================
   TIÊU ĐỀ XE CHO THUÊ
===================================================== */

.hero-content h1 {
    max-width: 700px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(48px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}


/* =====================================================
   MÔ TẢ
===================================================== */

.hero-content p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}


/* =====================================================
   GẠCH ĐỎ TRANG TRÍ
===================================================== */

.hero-content::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 25px;
    background: #e63946;
    border-radius: 10px;
}


/* =====================================================
   HIỆU ỨNG ĐÁY HERO
===================================================== */

.car-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient( to bottom, transparent, rgba(247, 248, 250, 0.4) );
    pointer-events: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .car-hero {
        height: 450px;
        background-position: center;
    }

    .hero-content {
        padding: 0 25px;
    }

        .hero-content h1 {
            font-size: 52px;
        }

        .hero-content p {
            font-size: 17px;
        }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .car-hero {
        height: 400px;
        background-position: 65% center;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-subtitle {
        margin-bottom: 15px;
        padding: 7px 13px;
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: 40px;
        letter-spacing: -1px;
        margin-bottom: 14px;
    }

    .hero-content p {
        max-width: 420px;
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-content::after {
        width: 55px;
        height: 3px;
        margin-top: 18px;
    }
}


/* =========================
   SEARCH
========================= */

.search-box {
    max-width: 1100px;
    margin: -35px auto 40px;
    background: white;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: end;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
}

.search-item {
    flex: 1;
}

    .search-item label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #555;
    }

    .search-item input,
    .search-item select {
        width: 100%;
        height: 45px;
        border: 1px solid #ddd;
        border-radius: 7px;
        padding: 0 12px;
        font-size: 14px;
        background: white;
    }

.btn-search {
    height: 45px;
    padding: 0 30px;
    border: none;
    border-radius: 7px;
    background: #e63946;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-search:hover {
        background: #c92835;
    }


/* =========================
   MAIN CONTAINER
========================= */

.car-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}


/* =========================
   FILTER
========================= */

.filter-box {
    background: white;
    padding: 22px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

    .filter-box h3 {
        margin-top: 0;
        margin-bottom: 25px;
        font-size: 21px;
    }

.filter-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

    .filter-group h4 {
        margin: 0 0 14px;
        font-size: 15px;
    }

    .filter-group label {
        display: block;
        margin: 12px 0;
        color: #555;
        font-size: 14px;
        cursor: pointer;
    }

    .filter-group input {
        margin-right: 8px;
    }

.btn-filter {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 7px;
    background: #222;
    color: white;
    cursor: pointer;
    font-weight: 600;
}


/* =========================
   LIST HEADER
========================= */

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

    .list-header h2 {
        margin: 0 0 5px;
        font-size: 25px;
    }

    .list-header p {
        margin: 0;
        color: #777;
        font-size: 14px;
    }

.sort-select {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 0 12px;
    background: white;
}


/* =========================
   CAR GRID
========================= */

.cars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}


/* =========================
   CAR CARD
========================= */

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    transition: 0.3s;
}

    .car-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }


/* =========================
   CAR IMAGE
========================= */

.car-image {
    height: 210px;
    position: relative;
    overflow: hidden;
}

    .car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.4s;
    }

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-status {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #20a05a;
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}


/* =========================
   CAR CONTENT
========================= */

.car-content {
    padding: 18px;
}

.car-brand {
    color: #e63946;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.car-content h3 {
    margin: 6px 0 15px;
    font-size: 20px;
}

.car-info {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    color: #666;
    font-size: 13px;
}


/* =========================
   PRICE
========================= */

.car-bottom {
    border-top: 1px solid #eee;
    margin-top: 17px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price strong {
    color: #e63946;
    font-size: 18px;
}

.price small {
    color: #777;
    font-size: 12px;
}

.btn-detail {
    text-decoration: none;
    background: #222;
    color: white;
    padding: 9px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

    .btn-detail:hover {
        background: #e63946;
    }


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .car-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .filter-box {
        display: none;
    }

    .search-box {
        margin: -20px 20px 30px;
        flex-direction: column;
        align-items: stretch;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 25px;
    }

        .hero-content h1 {
            font-size: 36px;
        }
}


@media (max-width: 500px) {

    .car-hero {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .sort-select {
        width: 100%;
    }
}

/* =========================
   NÚT ÁP DỤNG BỘ LỌC
========================= */

.btn-filter {
    width: 100%;
    height: 46px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #e63946;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .btn-filter:hover {
        background: #c92f3b;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(230, 57, 70, 0.25);
    }


/* =========================
   NÚT XÓA BỘ LỌC
========================= */

.btn-clear-filter {
    width: 100%;
    height: 42px;
    margin-top: 10px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}


    /* Hover */

    .btn-clear-filter:hover {
        background: #f7f7f7;
        color: #e63946;
        border-color: #e63946;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    }


    /* Khi click */

    .btn-clear-filter:active {
        transform: translateY(0);
        box-shadow: none;
    }

/* =====================================================
   CONTACT BUTTON
===================================================== */

.contact-car-btn {
    width: auto;
    min-width: 95px;
    padding: 9px 16px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .contact-car-btn span {
        font-size: 16px;
        color: #fff;
    }

    .contact-car-btn:hover {
        background: #000;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    }

.contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

    .contact-modal.show {
        display: flex;
    }

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.contact-modal-box {
    position: relative;
    z-index: 2;
    width: 420px;
    max-width: 90%;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
    animation: modalShow .25s ease;
}

@keyframes modalShow {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f1f1;
    font-size: 22px;
    cursor: pointer;
}

.contact-modal-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #f3f4f6;
    font-size: 25px;
}

.contact-modal-box h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.contact-modal-box > p {
    margin: 0 0 20px;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.social-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    color: #222;
    transition: .2s;
    text-decoration: none !important;
}

    .social-contact:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 20px rgba(0,0,0,.08);
    }

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
}

.zalo .social-icon {
    color: #008fe5;
    background: #eaf7ff;
}

.facebook .social-icon {
    color: #1877f2;
    background: #edf3ff;
}

.phone .social-icon {
    color: #16a34a;
    background: #ecfdf3;
}

.social-content {
    flex: 1;
}

    .social-content strong {
        display: block;
        font-size: 14px;
        margin-bottom: 3px;
    }

    .social-content span {
        color: #888;
        font-size: 12px;
    }

.social-arrow {
    font-size: 18px;
    color: #999;
}

/* Customer contact / clickable car cards */
.car-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.car-card-link:hover {
    color: inherit;
    text-decoration: none;
}
.car-click-hint {
    font-size: 13px;
    font-weight: 600;
    color: #e63946;
    white-space: nowrap;
}
.car-contact-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    transition: .2s ease;
}
.contact-action:hover { transform: translateY(-1px); }
.contact-action.phone { color: #fff; background: #e63946; }
.contact-action.zalo { color: #fff; background: #0068ff; }
.contact-action.facebook { color: #fff; background: #1877f2; }
.footer-social-links { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.footer-social-links a { text-decoration:none; }
@media (max-width: 600px) {
  .car-contact-actions { grid-template-columns: 1fr; }
  .car-click-hint { white-space: normal; }
}
