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

body {
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: #f3f3f3;
    color: #111827;
}

/* Hide checkbox */
#menu-toggle {
    display: none;
}

/* ================= NAVBAR ================= */
.header {
    background: #d4d4d4;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Logo ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box {
    background: #2563eb;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
}

/* ===== Menu ===== */
.menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu li a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: 0.3s;
}

.menu li a:hover {
    color: #2563eb;
}

/* ===== Menu Button ===== */
.menu-btn {
    font-size: 26px;
    cursor: pointer;
    padding: 5px 10px;
    transition: 0.3s;
}

.menu-btn:hover {
    color: #2563eb;
}

/* ================= SIDEBAR ================= */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: -8px 0 20px rgba(0,0,0,0.08);
    padding: 40px 25px;
    transition: right 0.4s ease;
    z-index: 1100;
}

/* Sidebar Title */
.sidebar h3 {
    margin-bottom: 25px;
    font-size: 20px;
}

/* Sidebar Links */
.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 22px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    color: #2563eb;
    padding-left: 5px;
}

/* ================= OVERLAY ================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
}

/* ================= OPEN STATE ================= */
#menu-toggle:checked ~ .sidebar {
    right: 0;
}

#menu-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
}

/* ================= CLOSE BUTTON ================= */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
    color: #374151;
    transition: 0.3s;
}

.close-btn:hover {
    color: #2563eb;
}

/* ================= ACTIVE LINK ================= */
.sidebar ul li a.active {
    color: #2563eb;
    font-weight: 700;
    border-left: 3px solid #2563eb;
    padding-left: 10px;
}

/* ================= OVERLAY FIX ================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1050;
    cursor: pointer;
}

/* Show overlay */
#menu-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
}

/* ================= HERO SECTION ================= */
.hero {
    margin-top: -120px;
    position: relative;
    height: 800px;
    overflow: hidden;
}

/* Image */
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* Text */
.hero-content {
    position: absolute;
    top: 88%;
    left: 72%;
    transform: translate(-50%, -50%);
    color: white;
    -webkit-text-stroke: 0.6px black; 
    text-align: center;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

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

/* ================= HERO CARD ================= */
.hero-card {
    position: absolute;
    top: 60%;
    left: 80px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.97);
    padding: 30px;
    width: 320px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 3;
}

.hero-card h2 {
    font-size: 22px;
    margin-bottom: 5px;
    color: #2563eb;
}

.hero-card p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #444;
}

/* Input Group */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #555;
}

.input-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.input-group select:focus {
    border-color: #2563eb;
}

/* Button */
.find-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    background: #2563eb;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.find-btn:hover {
    background: #1e4ed8;
}

/* Sub Text */
.sub-text {
    position: relative;
    left: 5%;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #333;
}

/* Search Box Container */
.search-box {
    position: relative;
    display: flex;
    left: 5%;
    gap: 10px;
}

/* Input Field */
.search-box input {
    padding: 12px 18px;
    width: 280px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    font-size: 15px;
}

/* Button */
.search-box button {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background-color: #2d6cdf;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

/* Hover Effect */
.search-box button:hover {
    background-color: #1e4fbf;
}

/* vehiclas cards ============= */
.vehicle-style-section {
    padding: 60px 8%;
    text-align: center;
}

.vehicle-style-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 600;
    color: #111;
}

/* Grid Layout */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card as Link */
.vehicle-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;

    /* Important Fix */
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image perfectly fit inside */
.vehicle-card img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Title */
.vehicle-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin: 0;
    text-decoration: none;
}

/* Hover Effect */
.vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* View All Special Style */
.vehicle-card.view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6c63ff, #8f88ff);
    color: #fff;
    font-weight: 600;
}

.vehicle-card.view-all h3 {
    color: #fff;
}

/* Hover for View All */
.vehicle-card.view-all:hover {
    box-shadow: 0 10px 25px rgba(108,99,255,0.4);
}

/* ✅ Responsive Design */
@media (max-width: 1024px) {
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
}

/* RENT YOUR WAY SECTION */


.rent-your-way {
    padding: 80px 8%;
    text-align: center;
    background: #2564eb13;
}

.rent-your-way h2 {
    font-size: 28px;
    margin-bottom: 50px;
    font-weight: 600;
    color: #111;
}

.rent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.rent-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.rent-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
}

.rent-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}

.rent-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.rent-card button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #6c63ff, #8f88ff);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.rent-card button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(108,99,255,0.4);
}

.rent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .rent-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .rent-grid {
        grid-template-columns: 1fr;
    }
}

/*      BEST DEALS SECTION   */

.best-deals{
    padding:60px 8%;
    background:#f4f6f9;
}

.best-deals h2{
    text-align:center;
    margin-bottom:40px;
    font-size:28px;
}

/* SLIDER */
.slider-wrapper{
    position:relative;
    overflow:hidden;
}

.deals-container{
    display:flex;
    transition:transform 0.5s ease;
}

/* 4 Cards Per View */
.listing-card{
    flex:0 0 25%;
    box-sizing:border-box;
    padding:15px;
}

/* CARD */
.card-box{
    background:#ffffff; 
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s ease;
}

.card-box:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

/* IMAGE */
.image-section{
    position:relative;
}

.image-section img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

/* BADGE */
.badge{
    position:absolute;
    top:12px;
    left:12px;
    background:#111;
    color:#fff;
    font-size:12px;
    padding:6px 12px;
    border-radius:20px;
}

/* HEART */
.heart{
    position:absolute;
    top:12px;
    right:12px;
    background:#fff;
    width:34px;
    height:34px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:16px;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

/* CONTENT */
.content{
    padding:20px;
}

.condition{
    color:#777;
    font-size:14px;
}

.car-name{
    font-size:20px;
    font-weight:600;
    margin:6px 0;
}

.car-meta{
    color:#555;
    font-size:14px;
    margin-bottom:10px;
}

.price{
    font-size:22px;
    font-weight:bold;
}

.emi{
    color:#0a66c2;
    font-size:14px;
    margin-bottom:10px;
}

/* DEAL TAG */
.deal-tag{
    display:inline-block;
    padding:6px 12px;
    font-size:12px;
    border-radius:6px;
    font-weight:600;
    background:#e6f7ed;
    color:#1a7f37;
}

/* SLIDER BUTTONS */
.slider-btn{
    position:absolute;
    top:45%;
    transform:translateY(-50%);
    background:#111;
    color:#fff;
    border:none;
    width:45px;
    height:45px;
    border-radius:50%;
    cursor:pointer;
    font-size:20px;
    z-index:10;
}

.left{
    left:0;
}

.right{
    right:0;
}

/*      BEST DEALS SECTION   */

.best-deals {
    padding: 60px 8%;
}

.best-deals h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

/*  SLIDER WRAPPER*/
.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.deals-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

/* 4 cards per view */
.listing-card {
    flex: 0 0 25%;
    padding: 10px;
    box-sizing: border-box;
}

/*CARD BOX*/
.card-box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 380px; 
}

.card-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/*  IMAGE SECTION*/
.image-section {
    position: relative;
    width: 100%;
    height: 160px; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    width: 100%;
    height: auto; 
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/*BADGE*/
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #111;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
}

/* HEART ICON*/
.heart {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* CARD CONTENT*/
.content {
    padding: 15px;
}

.condition {
    color: #777;
    font-size: 13px;
    margin-bottom: 4px;
}

.car-name {
    font-size: 18px;
    font-weight: 600;
    margin: 4px 0;
}

.car-meta {
    color: #555;
    font-size: 13px;
    margin-bottom: 8px;
}

.price {
    font-size: 20px;
    font-weight: bold;
}

.emi {
    color: #0a66c2;
    font-size: 13px;
    margin-bottom: 8px;
}

.deal-tag {
    display: inline-block;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 6px;
    font-weight: 600;
    background: #e6f7ed;
    color: #2563eb;
    margin-bottom: 10px;
}

/*RENT BUTTON*/
.rent-btn {
    width: 100%;
    padding: 8px;
    border: none;
    background: #111;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-size: 14px;
}

.rent-btn:hover {
    background: #2563eb;
}

/*RESPONSIVE*/
@media (max-width: 1024px) {
    .listing-card {
        flex: 0 0 33.33%;
    }
}

@media (max-width: 768px) {
    .listing-card {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .listing-card {
        flex: 0 0 100%;
    }
}

/* stars count */

.info-strip{
    padding:60px 8%;
}

.info-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#2564eb9d;        
    color:#fff;
    padding:50px 60px;
    border-radius:16px;
    box-shadow:0 10px 40px rgba(0,0,0,0.15);
}

/* Each section */
.info-box{
    flex:1;
}

/* Left section */
.info-box h2{
    font-size:32px;
    margin-bottom:10px;
}

.big-text{
    font-size:20px;
    line-height:1.4;
    color:#ddd;
}

/* Center & Right alignment */
.center{
    text-align:center;
}

.right{
    text-align:right;
}

/* Headings */
.info-box h3{
    font-size:24px;
    margin-bottom:8px;
}

.info-box p{
    font-size:16px;
    color:#f0f0f0;
}

/* img box */

.image-only-section{
    padding:60px 8%;
}

.image-box{
    background:#111;       
    border-radius:18px;
    box-shadow:0 15px 40px rgba(0,0,0,0.15);
    display:flex;
    justify-content:center;
    align-items:center;
}

.image-box img{
    width:100%;
    border-radius:14px;
    object-fit:cover;
}

.image-box.card-box:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}


/* footer  */

  .image-section {
    position: relative;
    width: 100%;
    height: 100vh;
  }

  .image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Modern footer overlay */
  .image-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: white;
    font-family: sans-serif;
    padding: 40px 50px 20px;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-col {
    min-width: 200px;
  }

  .footer-col h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    border-bottom: 2px solid #fff3;
    display: inline-block;
    padding-bottom: 5px;
  }

  .footer-col p, .footer-col ul, .footer-col a {
    color: #eee;
    font-size: 0.95em;
    text-decoration: none;
  }

  .footer-col ul {
    list-style: none;
  }

  .footer-col ul li {
    margin-bottom: 6px;
  }

  .social-links a {
    color: #eee;
    margin: 0 5px;
    text-decoration: none;
    font-weight: 500;
  }

  .footer-bottom {
    text-align: center;
    font-size: 0.85em;
    color: #ccc;
  }

  .footer-bottom a {
    color: #ccc;
    text-decoration: none;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      gap: 15px;
    }
    .footer-col {
      min-width: auto;
    }
  }