/*
Theme Name:  CME Cars
Theme URI:   https://cmecars.co.uk
Author:      CME Cars
Description: Custom theme for CME Cars used car dealership. Manage listings easily from the Cars section in the WordPress dashboard.
Version:     1.0.0
License:     Proprietary
Text Domain: cme-cars
*/
    /* ============================================================
       RESET & BASE
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --blue:       #2B60C8;
      --blue-dark:  #1C3F8A;
      --blue-light: #EBF0FB;
      --navy:       #111827;
      --slate:      #374151;
      --muted:      #6B7280;
      --border:     #E5E7EB;
      --bg-light:   #F8F9FB;
      --white:      #FFFFFF;
      --amber:      #F59E0B;
      --amber-dark: #D97706;
      --radius:     10px;
      --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
      --shadow-md:  0 4px 16px rgba(0,0,0,.12);
      --shadow-lg:  0 8px 32px rgba(0,0,0,.16);
    }

    html { scroll-behavior: smooth; }
    body { font-family: 'Inter', sans-serif; color: var(--slate); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
    img  { display: block; max-width: 100%; }
    a    { color: inherit; text-decoration: none; }

    /* ============================================================
       UTILITY
    ============================================================ */
    .container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

    .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s ease; border: none; text-decoration: none; }
    .btn-primary { background: var(--amber); color: var(--navy); }
    .btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
    .btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
    .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
    .btn-dark { background: var(--navy); color: var(--white); }
    .btn-dark:hover { background: #0f172a; transform: translateY(-1px); }
    .btn-white { background: var(--white); color: var(--navy); }
    .btn-white:hover { background: var(--bg-light); transform: translateY(-1px); }

    .section-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
    .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); line-height: 1.2; }
    .section-sub   { font-size: 1rem; color: var(--muted); margin-top: 8px; }

    /* ============================================================
       TOP BAR
    ============================================================ */
    .topbar { background: var(--navy); color: rgba(255,255,255,.75); font-size: .78rem; padding: 8px 0; }
    .topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
    .topbar a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 5px; transition: color .2s; }
    .topbar a:hover { color: var(--amber); }
    .topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }

    /* ============================================================
       HEADER
    ============================================================ */
    .header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
    .header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
    .logo-wrap { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
    .logo-img { height: 52px; width: auto; object-fit: contain; border-radius: 8px; }
    .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
    .logo-name { font-size: 1.25rem; font-weight: 800; color: var(--blue); }
    .logo-sub  { font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
    nav { display: flex; align-items: center; gap: 8px; }
    nav a { font-size: .88rem; font-weight: 500; color: var(--slate); padding: 6px 14px; border-radius: 8px; transition: all .2s; }
    nav a:hover { color: var(--blue); background: var(--blue-light); }
    .nav-cta { background: var(--blue) !important; color: var(--white) !important; padding: 8px 18px !important; border-radius: 8px; font-weight: 600 !important; }
    .nav-cta:hover { background: var(--blue-dark) !important; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
    .hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
    .mobile-nav { display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--border); padding: 16px 24px 20px; gap: 4px; }
    .mobile-nav a { font-size: .92rem; font-weight: 500; color: var(--slate); padding: 10px 12px; border-radius: 8px; transition: all .2s; }
    .mobile-nav a:hover { background: var(--blue-light); color: var(--blue); }

    /* ============================================================
       HERO
    ============================================================ */
    .hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #3B72D8 100%); color: var(--white); padding: 80px 0 90px; position: relative; overflow: hidden; }
    .hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
    .hero-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 680px; }
    .hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 100px; padding: 6px 16px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
    .hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
    .hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; }
    .hero h1 span { color: var(--amber); }
    .hero p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.85); max-width: 540px; }
    .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
    .hero-stats { display: flex; gap: 36px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); flex-wrap: wrap; }
    .hero-stat .num { font-size: 1.5rem; font-weight: 800; color: var(--white); }
    .hero-stat .lbl { font-size: .75rem; color: rgba(255,255,255,.65); font-weight: 500; }

    /* ============================================================
       TRUST BAR
    ============================================================ */
    .trust-bar { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 18px 0; }
    .trust-items { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
    .trust-item { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--slate); }
    .trust-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 1rem; flex-shrink: 0; }

    /* ============================================================
       LISTINGS GRID
    ============================================================ */
    .listings { padding: 72px 0; }
    .listings-header { text-align: center; margin-bottom: 48px; }
    .car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

    .car-card {
      background: var(--white);
      border-radius: 14px;
      border: 1px solid var(--border);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: box-shadow .25s ease, transform .25s ease;
      display: flex;
      flex-direction: column;
      cursor: pointer;
    }
    .car-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

    .car-img-wrap { position: relative; height: 220px; overflow: hidden; background: var(--bg-light); }
    .car-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
    .car-card:hover .car-img-wrap img { transform: scale(1.05); }

    .car-badge { position: absolute; top: 12px; left: 12px; background: var(--blue); color: var(--white); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
    .car-badge.badge-new { background: var(--amber); color: var(--navy); }

    /* Photo count chip */
    .photo-count { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; display: flex; align-items: center; gap: 5px; }

    .car-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
    .car-year { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
    .car-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
    .car-meta { display: flex; gap: 12px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
    .car-desc { font-size: .84rem; color: var(--muted); line-height: 1.6; flex: 1; }
    .car-features { display: flex; flex-wrap: wrap; gap: 5px; }
    .feature-tag { background: var(--bg-light); border: 1px solid var(--border); color: var(--slate); font-size: .7rem; font-weight: 500; padding: 3px 9px; border-radius: 100px; }

    .car-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-light); }
    .car-price { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
    .car-price span { font-size: .72rem; font-weight: 500; color: var(--muted); display: block; line-height: 1; }
    .view-listing-btn { background: var(--blue); color: var(--white); font-size: .82rem; font-weight: 600; padding: 9px 16px; border-radius: 8px; transition: all .2s; display: flex; align-items: center; gap: 6px; }
    .view-listing-btn:hover { background: var(--blue-dark); }

    /* ============================================================
       LISTING MODAL
    ============================================================ */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.82);
      z-index: 1000;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      overflow-y: auto;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity .3s ease, visibility .3s ease;
    }
    .modal-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .modal-container {
      background: var(--white);
      border-radius: 18px;
      width: 100%;
      max-width: 1080px;
      margin: auto;
      overflow: hidden;
      transform: translateY(40px) scale(.98);
      transition: transform .35s cubic-bezier(.22,1,.36,1);
      box-shadow: 0 24px 80px rgba(0,0,0,.4);
    }
    .modal-overlay.open .modal-container { transform: translateY(0) scale(1); }

    /* Modal top bar */
    .modal-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      border-bottom: 1px solid var(--border);
      background: var(--white);
      position: sticky;
      top: 0;
      z-index: 10;
    }
    .modal-topbar-left { display: flex; align-items: center; gap: 12px; }
    .modal-back-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: .84rem;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      padding: 6px 12px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--white);
      transition: all .2s;
    }
    .modal-back-btn:hover { color: var(--navy); border-color: var(--navy); }
    .modal-title-small { font-size: .88rem; font-weight: 600; color: var(--navy); }
    .modal-close {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--white);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem;
      color: var(--muted);
      transition: all .2s;
      flex-shrink: 0;
    }
    .modal-close:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

    /* Modal body: gallery + info side by side */
    .modal-body { display: grid; grid-template-columns: 1fr 380px; overflow: hidden; min-width: 0; }

    /* --- GALLERY --- */
    .modal-gallery { background: #0a0a0a; position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }

    .gallery-main {
      position: relative;
      height: 440px;
      max-height: 54vh;
      flex-shrink: 0;
      overflow: hidden;
      background: #111;
    }

    .gallery-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity .4s ease;
    }
    .gallery-slide.active { opacity: 1; z-index: 1; }
    .gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

    .gallery-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 5;
      width: 44px; height: 44px;
      border-radius: 50%;
      background: rgba(0,0,0,.55);
      border: 1px solid rgba(255,255,255,.2);
      color: #fff;
      font-size: 1rem;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background .2s, transform .2s;
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
    }
    .gallery-nav-btn:hover { background: rgba(0,0,0,.85); transform: translateY(-50%) scale(1.08); }
    .gallery-nav-btn.g-prev { left: 14px; }
    .gallery-nav-btn.g-next { right: 14px; }

    .gallery-counter {
      position: absolute;
      bottom: 14px;
      right: 14px;
      z-index: 5;
      background: rgba(0,0,0,.6);
      color: #fff;
      font-size: .72rem;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 20px;
      letter-spacing: .04em;
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
    }

    /* Fullscreen hint */
    .gallery-fullscreen-hint {
      position: absolute;
      bottom: 14px;
      left: 14px;
      z-index: 5;
      background: rgba(0,0,0,.5);
      color: rgba(255,255,255,.75);
      font-size: .68rem;
      font-weight: 500;
      padding: 3px 10px;
      border-radius: 20px;
    }

    .gallery-thumbs {
      display: flex;
      flex-wrap: nowrap;
      gap: 6px;
      padding: 10px 12px;
      background: #111;
      overflow-x: auto;
      overflow-y: hidden;
      width: 100%;
      box-sizing: border-box;
      scrollbar-width: thin;
      scrollbar-color: #444 #111;
    }
    .gallery-thumbs::-webkit-scrollbar { height: 4px; }
    .gallery-thumbs::-webkit-scrollbar-track { background: #111; }
    .gallery-thumbs::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }

    .gallery-thumb {
      width: 84px;
      height: 60px;
      flex-shrink: 0;
      border-radius: 6px;
      overflow: hidden;
      cursor: pointer;
      border: 2px solid transparent;
      opacity: .55;
      transition: opacity .2s, border-color .2s, transform .15s;
    }
    .gallery-thumb:hover { opacity: .85; transform: scale(1.04); }
    .gallery-thumb.active { border-color: var(--amber); opacity: 1; }
    .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

    /* --- MODAL INFO PANEL --- */
    .modal-info {
      padding: 28px 28px 24px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      overflow-y: auto;
      max-height: calc(100vh - 120px);
      border-left: 1px solid var(--border);
    }

    .modal-badge-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .modal-badge { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
    .modal-badge.blue  { background: var(--blue-light); color: var(--blue); }
    .modal-badge.amber { background: #FEF3C7; color: #92400E; }
    .modal-badge.green { background: #D1FAE5; color: #065F46; }
    .modal-year-mileage { font-size: .8rem; color: var(--muted); font-weight: 500; }

    .modal-car-title { font-size: 1.35rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
    .modal-car-sub   { font-size: .88rem; color: var(--muted); margin-top: 2px; }

    .modal-price-row { display: flex; align-items: baseline; gap: 8px; }
    .modal-price { font-size: 2rem; font-weight: 800; color: var(--navy); }
    .modal-price-label { font-size: .78rem; color: var(--muted); }

    /* Quick specs grid */
    .quick-specs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .qs-item {
      background: var(--bg-light);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 12px;
    }
    .qs-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
    .qs-value { font-size: .92rem; font-weight: 700; color: var(--navy); }

    /* Key car details row */
    .car-detail-pills { display: flex; flex-wrap: wrap; gap: 6px; }
    .detail-pill { display: flex; align-items: center; gap: 5px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: .78rem; font-weight: 500; color: var(--slate); }

    /* CTA buttons */
    .modal-ctas { display: flex; flex-direction: column; gap: 8px; }
    .modal-cta-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 13px 20px;
      border-radius: 10px;
      font-weight: 700;
      font-size: .92rem;
      text-decoration: none;
      transition: all .2s;
      border: none;
      cursor: pointer;
    }
    .cta-call    { background: var(--blue); color: #fff; }
    .cta-call:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
    .cta-whatsapp { background: #25D366; color: #fff; }
    .cta-whatsapp:hover { background: #1da851; transform: translateY(-1px); box-shadow: var(--shadow-md); }
    .cta-email   { background: var(--bg-light); color: var(--navy); border: 1px solid var(--border); }
    .cta-email:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }

    /* --- MODAL DETAILS SECTION (below gallery+info) --- */
    .modal-details {
      border-top: 1px solid var(--border);
      padding: 36px 36px 40px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
    }

    .detail-section h3 {
      font-size: 1rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 16px;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--blue-light);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .about-text {
      font-size: .88rem;
      color: var(--slate);
      line-height: 1.75;
      white-space: pre-line;
    }

    /* Spec table */
    .spec-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
    .spec-table tr { border-bottom: 1px solid var(--border); }
    .spec-table tr:last-child { border-bottom: none; }
    .spec-table td { padding: 9px 4px; vertical-align: top; }
    .spec-table td:first-child { color: var(--muted); font-weight: 500; width: 45%; }
    .spec-table td:last-child  { color: var(--navy); font-weight: 600; }

    /* Features grid */
    .features-grid { display: flex; flex-wrap: wrap; gap: 7px; }
    .feat-tag {
      display: flex;
      align-items: center;
      gap: 5px;
      background: var(--blue-light);
      color: var(--blue-dark);
      border: 1px solid #c7d9f5;
      font-size: .76rem;
      font-weight: 600;
      padding: 5px 11px;
      border-radius: 20px;
    }
    .feat-tag::before { content: '✓'; font-size: .7rem; font-weight: 800; }

    /* ============================================================
       WHY US
    ============================================================ */
    .why-us { background: var(--navy); color: var(--white); padding: 72px 0; }
    .why-us .section-label { color: var(--amber); }
    .why-us .section-title { color: var(--white); }
    .why-header { text-align: center; margin-bottom: 48px; }
    .why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
    .why-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 28px 24px; text-align: center; transition: background .2s; }
    .why-card:hover { background: rgba(255,255,255,.1); }
    .why-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
    .why-card h3 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
    .why-card p  { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.6; }

    /* ============================================================
       CONTACT
    ============================================================ */
    .contact { padding: 72px 0; background: var(--bg-light); }
    .contact-header { text-align: center; margin-bottom: 48px; }
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
    .contact-info-card { background: var(--white); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
    .contact-card-header { background: var(--blue); padding: 24px 28px; color: var(--white); }
    .contact-card-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
    .contact-card-header p  { font-size: .82rem; color: rgba(255,255,255,.75); }
    .contact-items { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
    .contact-item { display: flex; align-items: flex-start; gap: 16px; }
    .contact-item-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
    .contact-item-icon.blue  { background: var(--blue-light); color: var(--blue); }
    .contact-item-icon.green { background: #E8FBF0; color: #16A34A; }
    .contact-item-icon.amber { background: #FEF3C7; color: var(--amber-dark); }
    .contact-item-text .label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
    .contact-item-text a, .contact-item-text p { font-size: .95rem; font-weight: 600; color: var(--navy); transition: color .2s; }
    .contact-item-text a:hover { color: var(--blue); }
    .contact-item-text .sub { font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 1px; }
    .social-card { background: var(--white); border-radius: 14px; border: 1px solid var(--border); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 20px; }
    .social-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
    .social-links { display: flex; flex-direction: column; gap: 12px; }
    .social-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--border); font-weight: 600; font-size: .9rem; color: var(--navy); transition: all .2s; }
    .social-link:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateX(3px); }
    .social-link.facebook:hover  { background: #EBF3FC; color: #1877F2; }
    .social-link.instagram:hover { background: #FEF0F6; color: #E1306C; }
    .social-link.whatsapp:hover  { background: #E8FBF0; color: #25D366; }
    .social-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
    .social-icon.facebook  { background: #1877F2; color: #fff; }
    .social-icon.instagram { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); color: #fff; }
    .social-icon.whatsapp  { background: #25D366; color: #fff; }
    .social-link-text .name   { display: block; font-weight: 600; }
    .social-link-text .handle { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
    .map-card { background: var(--white); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 20px; }
    .map-placeholder { height: 180px; background: linear-gradient(135deg, var(--blue-light) 0%, #d0e0f8 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
    .map-placeholder .map-icon { font-size: 2.5rem; }
    .map-placeholder p     { font-size: .85rem; font-weight: 600; color: var(--blue-dark); }
    .map-placeholder small { font-size: .75rem; color: var(--muted); }
    .directions-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--blue); color: var(--white); font-weight: 600; font-size: .88rem; transition: background .2s; }
    .directions-btn:hover { background: var(--blue-dark); }

    /* ============================================================
       CTA BANNER
    ============================================================ */
    .enquiry-banner { background: linear-gradient(135deg, var(--amber) 0%, #FBBF24 100%); padding: 56px 0; }
    .enquiry-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
    .enquiry-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--navy); margin-bottom: 6px; }
    .enquiry-text p  { color: rgba(17,24,39,.7); font-size: .95rem; }
    .enquiry-actions { display: flex; gap: 12px; flex-wrap: wrap; }

    /* ============================================================
       FOOTER
    ============================================================ */
    .footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 56px 0 0; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
    .footer-brand .logo-wrap { margin-bottom: 16px; }
    .footer-brand .logo-name { color: var(--white); }
    .footer-brand .logo-sub  { color: rgba(255,255,255,.5); }
    .footer-desc { font-size: .85rem; line-height: 1.7; margin-bottom: 20px; margin-top: 16px; }
    .footer-social { display: flex; gap: 10px; }
    .fsocial-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: .9rem; color: rgba(255,255,255,.75); transition: all .2s; }
    .fsocial-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
    .footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-links a { font-size: .88rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 6px; transition: color .2s; }
    .footer-links a:hover { color: var(--white); }
    .footer-contact-items { display: flex; flex-direction: column; gap: 12px; }
    .fcontact-item { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; }
    .fcontact-item .icon { color: var(--blue); margin-top: 2px; flex-shrink: 0; }
    .fcontact-item a { color: rgba(255,255,255,.75); transition: color .2s; }
    .fcontact-item a:hover { color: var(--white); }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .78rem; }
    .footer-bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
    .footer-bottom a:hover { color: var(--white); }

    /* ============================================================
       BACK TO TOP
    ============================================================ */
    .back-top { position: fixed; bottom: 28px; right: 24px; width: 44px; height: 44px; background: var(--blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 200; cursor: pointer; }
    .back-top.visible { opacity: 1; pointer-events: all; }
    .back-top:hover { transform: translateY(-3px); }

    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 900px) {
      .contact-grid { grid-template-columns: 1fr; }
      .footer-grid  { grid-template-columns: 1fr 1fr; }
      .modal-body   { grid-template-columns: 1fr; }
      .modal-info   { max-height: none; border-left: none; border-top: 1px solid var(--border); }
      .modal-details { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
    }

    @media (max-width: 700px) {
      nav { display: none; }
      .hamburger { display: flex; }
      .topbar-inner { justify-content: center; }
      .topbar-links { justify-content: center; }
      .hero { padding: 56px 0 64px; }
      .car-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; gap: 32px; }
      .enquiry-inner { flex-direction: column; text-align: center; }
      .enquiry-actions { justify-content: center; }
      .footer-bottom { justify-content: center; text-align: center; }
      .modal-overlay { padding: 0; align-items: flex-end; }
      .modal-container { border-radius: 18px 18px 0 0; max-height: 95vh; overflow-y: auto; }
      .gallery-main { min-height: 220px; }
      .modal-info { padding: 20px; }
      .modal-details { padding: 24px 20px; }
      .quick-specs { grid-template-columns: 1fr 1fr; }
    }
