/* ===== GOEV Marketplace — Light Theme ===== */

:root {
  --green:        #00A651;
  --green-dark:   #008040;
  --green-light:  #E8F7EF;
  --green-mid:    #CCF0DD;
  --black:        #1A1A2E;
  --dark:         #16213E;
  --gray-900:     #111827;
  --gray-700:     #374151;
  --gray-500:     #6B7280;
  --gray-400:     #9CA3AF;
  --gray-200:     #E5E7EB;
  --gray-100:     #F3F4F6;
  --gray-50:      #F9FAFB;
  --white:        #FFFFFF;
  --border:       #E5E7EB;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-md:    0 8px 28px rgba(0,0,0,0.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.12);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --transition:   all 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-main:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--white); color: var(--gray-900); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 72px 0; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 26px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.01em;
  transition: var(--transition); cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 3px 12px rgba(0,166,81,0.30); }
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 6px 20px rgba(0,166,81,0.40); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--green); font-weight: 700; box-shadow: var(--shadow); }
.btn-white:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--gray-700); transform: translateY(-1px); }
.btn-sm { padding: 8px 20px; font-size: 0.84rem; }
.btn-lg { padding: 14px 36px; font-size: 0.95rem; }

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: 44px; }
.section-header.center { text-align: center; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; color: var(--gray-900); line-height: 1.25; }
.section-header h2 span { color: var(--green); }
.section-header p { color: var(--gray-500); font-size: 0.95rem; margin-top: 10px; }
.section-header.center p { max-width: 520px; margin: 10px auto 0; }

.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 0; height: 80px; gap: 24px; }

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 800;
  color: var(--black); flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: #fff; font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,166,81,0.35);
}
.nav-logo span { color: var(--green); }

/* Logo images */
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 44px;
  opacity: 0.92;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 7px 13px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 500; color: var(--gray-700);
  transition: var(--transition); white-space: nowrap;
}
.nav-links a:hover { color: var(--green); background: var(--green-light); }
.nav-links a.active { color: var(--green); font-weight: 600; background: var(--green-light); }
.mobile-menu a.active { color: var(--green); background: var(--green-light); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; background: transparent; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; position: fixed; top: 80px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 16px 20px 20px;
  flex-direction: column; gap: 4px; z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; color: var(--gray-700); transition: var(--transition); }
.mobile-menu a:hover { background: var(--green-light); color: var(--green); }
.mobile-menu .btn { margin-top: 12px; justify-content: center; border-radius: 50px; }

/* ===== HERO SLIDER ===== */
.hero {
  position: relative; overflow: hidden;
  margin-top: 80px; /* offset fixed header */
}
.hero-slide { display: none; position: relative; }
.hero-slide.active { display: block; }
.hero-slide img.slide-bg {
  width: 100%; height: 520px; object-fit: cover;
  display: block;
}
.hero-slide .slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.20) 60%, transparent 100%);
}
.hero-slide .slide-content {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 100%; pointer-events: none;
}
.hero-slide .slide-content .container { pointer-events: auto; }
.slide-text { max-width: 520px; }
.slide-text h1 {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slide-text p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 24px; }
.slide-text .slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: pointer;
}
.hero-arrow:hover { background: var(--green); border-color: var(--green); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* Hero dots */
.hero-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); transition: var(--transition); cursor: pointer;
}
.hero-dot.active { background: var(--green); width: 24px; border-radius: 4px; }

/* ===== SEARCH BAR ===== */
.search-section { background: var(--white); border-bottom: 1px solid var(--border); padding: 20px 0; }
.search-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px 8px 6px 6px;
  display: flex; gap: 0; align-items: stretch; box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.search-field {
  flex: 1; min-width: 150px; padding: 10px 18px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.search-field:last-of-type { border-right: none; }
.sf-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-400); margin-bottom: 3px; }
.search-field input, .search-field select {
  background: transparent; border: none; font-size: 0.9rem;
  color: var(--gray-900); font-weight: 500;
}
.search-field select option { background: #fff; }
.search-card .btn { flex-shrink: 0; border-radius: 10px; align-self: center; }

/* ===== FEATURED BRANDS ===== */
.brands-section { background: var(--white); }
.brands-circles {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 32px 40px;
  margin-bottom: 36px;
}
.brand-circle {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; transition: var(--transition);
}
.brand-circle:hover { transform: translateY(-4px); }
.brand-circle .b-logo {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gray-100); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; transition: var(--transition);
  overflow: hidden;
}
.brand-circle:hover .b-logo { border-color: var(--green); background: var(--green-light); box-shadow: 0 4px 16px rgba(0,166,81,0.2); }
.brand-circle .b-name { font-size: 0.88rem; font-weight: 600; color: var(--gray-900); }
.brand-circle .b-count { font-size: 0.75rem; color: var(--gray-500); }

/* ===== POPULAR MODELS ===== */
.models-section { background: var(--gray-50); }
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }

.model-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column;
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green); }

.model-img {
  width: 100%; height: 190px; object-fit: cover;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
}
.model-img img { width: 100%; height: 190px; object-fit: cover; }
.model-img.placeholder { font-size: 5rem; background: linear-gradient(135deg, var(--gray-100), var(--gray-50)); }

.model-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.model-brand-lbl { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 3px; }
.model-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 5px; }
.model-desc { font-size: 0.84rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 14px; flex: 1; }

.model-specs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; padding: 12px; background: var(--gray-50); border-radius: var(--radius-sm); }
.spec-row { display: flex; justify-content: space-between; font-size: 0.84rem; }
.spec-row .s-key { color: var(--gray-500); }
.spec-row .s-val { font-weight: 600; color: var(--gray-900); }

.model-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.model-price .p-label { font-size: 0.75rem; color: var(--gray-500); }
.model-price .p-val { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }

/* ===== NEW LISTINGS SLIDER ===== */
.listings-section { background: var(--white); }
.listings-wrap { overflow: hidden; position: relative; }
.listings-track { display: flex; gap: 20px; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }

.listing-card {
  min-width: 260px; max-width: 260px; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green); }
.lc-img {
  height: 170px; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.8rem; position: relative; overflow: hidden;
}
.lc-img img { width: 100%; height: 100%; object-fit: cover; }
.lc-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.lc-badge.new { background: var(--green); color: #fff; }
.lc-badge.featured { background: #1A73E8; color: #fff; }
.lc-badge.sale { background: #F44336; color: #fff; }
.lc-heart {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; transition: var(--transition);
}
.lc-heart:hover { border-color: #F44336; color: #F44336; }
.lc-body { padding: 14px; }
.lc-brand { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-400); }
.lc-name { font-weight: 700; font-size: 0.95rem; margin: 3px 0 10px; color: var(--gray-900); }
.lc-specs { display: flex; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.lc-spec { font-size: 0.8rem; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.lc-footer { display: flex; justify-content: space-between; align-items: center; }
.lc-price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.lc-price .orig { font-size: 0.75rem; color: var(--gray-400); text-decoration: line-through; font-weight: 400; }

/* Slider controls row */
.section-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.slider-btns { display: flex; gap: 10px; }
.slider-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--gray-700); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.view-all-link { font-size: 0.88rem; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.view-all-link:hover { gap: 8px; }

/* ===== WHY CHOOSE ===== */
.why-section { background: var(--gray-50); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.why-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 26px; text-align: center;
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green); }
.why-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-light); margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; transition: var(--transition);
  border: 2px solid var(--green-mid);
}
.why-card:hover .why-icon { background: var(--green); }
.why-card h3 { font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--gray-900); }
.why-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

/* ===== CHARGING PREVIEW ===== */
.charging-section { background: var(--white); }
.charging-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.charging-map {
  border-radius: var(--radius-xl); overflow: hidden;
  height: 340px; background: var(--gray-100);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.map-placeholder { text-align: center; }
.map-placeholder .map-icon { font-size: 3.5rem; margin-bottom: 12px; }
.map-placeholder h3 { font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.map-placeholder p { font-size: 0.88rem; color: var(--gray-500); }
.charging-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.c-stat {
  background: var(--green-light); border: 1px solid var(--green-mid);
  border-radius: var(--radius); padding: 16px 18px;
}
.c-stat .c-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--green); }
.c-stat .c-lbl { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #00A651 0%, #008040 100%);
  padding: 64px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  right: -100px; top: -100px; pointer-events: none;
}
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-text h2 { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700; color: #fff; margin-bottom: 10px; }
.cta-text p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--gray-50); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.t-stars { color: #F59E0B; font-size: 0.88rem; letter-spacing: 2px; margin-bottom: 12px; }
.t-text { font-size: 0.9rem; color: var(--gray-600, #4B5563); line-height: 1.7; margin-bottom: 18px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 0.9rem; flex-shrink: 0;
}
.t-name { font-weight: 600; font-size: 0.88rem; }
.t-role { font-size: 0.8rem; color: var(--gray-400); }

/* ===== NEWSLETTER ===== */
.newsletter-section { background: var(--green-light); border-top: 1px solid var(--green-mid); border-bottom: 1px solid var(--green-mid); padding: 56px 0; }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter-inner h2 { font-family: var(--font-display); font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.newsletter-inner p { color: var(--gray-500); margin-bottom: 24px; }
.nl-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.nl-form input {
  flex: 1; border: 1.5px solid var(--green-mid); border-radius: 50px;
  padding: 12px 22px; font-size: 0.9rem; background: #fff;
  transition: var(--transition); color: var(--gray-900);
}
.nl-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,166,81,0.12); }
.nl-form input::placeholder { color: var(--gray-400); }

/* ===== FOOTER ===== */
.site-footer { background: #111827; color: #D1D5DB; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .nav-logo { color: #fff; margin-bottom: 14px; }
.footer-brand .nav-logo span { color: var(--green); }
.footer-brand .logo-icon { background: var(--green); }
.footer-brand p { font-size: 0.88rem; color: #9CA3AF; line-height: 1.65; max-width: 260px; margin-bottom: 22px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; color: #9CA3AF; transition: var(--transition);
}
.social-link:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }
.footer-col h4 { font-size: 0.84rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 0.88rem; color: #9CA3AF; transition: var(--transition); }
.footer-col ul a:hover { color: var(--green); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; color: #9CA3AF; margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 0; }
.footer-bottom p { font-size: 0.8rem; color: #6B7280; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 0.8rem; color: #6B7280; transition: var(--transition); }
.footer-links a:hover { color: var(--green); }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 100px 0 56px;
  background: linear-gradient(135deg, var(--gray-50) 0%, #EDF7F2 100%);
  border-bottom: 1px solid var(--border);
  margin-top: 80px;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--gray-400); margin-bottom: 16px; }
.breadcrumb a { color: var(--green); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; color: var(--gray-900); margin-bottom: 12px; line-height: 1.2; }
.page-hero h1 span { color: var(--green); }
.page-hero p { color: var(--gray-500); font-size: 1rem; max-width: 520px; }

/* ===== USED EV SALE ===== */
.used-ev-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; }
.filter-sidebar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px; height: fit-content;
}
.filter-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.95rem; color: var(--gray-900); margin-bottom: 20px; }
.filter-title button { font-size: 0.8rem; color: var(--green); background: transparent; font-family: inherit; }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; cursor: pointer; }
.filter-option input[type="checkbox"] { accent-color: var(--green); width: 15px; height: 15px; }
.filter-option label { font-size: 0.88rem; color: var(--gray-700); cursor: pointer; flex: 1; }
.filter-option .cnt { font-size: 0.75rem; color: var(--gray-400); background: var(--gray-100); padding: 2px 7px; border-radius: 10px; }
.filter-options { max-height: 188px; overflow-y: auto; padding-right: 6px; margin-right: -6px; scrollbar-width: thin; scrollbar-color: var(--gray-200) transparent; }
.filter-options::-webkit-scrollbar { width: 6px; }
.filter-options::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 6px; }
.filter-options::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
.filter-options .filter-option:last-child { margin-bottom: 2px; }
.range-slider { width: 100%; accent-color: var(--green); margin-bottom: 6px; }
.range-vals { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gray-500); }

.listing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.results-count { font-size: 0.88rem; color: var(--gray-500); }
.results-count strong { color: var(--gray-900); }
.sort-select { border: 1.5px solid var(--border); border-radius: 9px; padding: 8px 14px; font-size: 0.88rem; background: var(--white); color: var(--gray-700); }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

/* ===== BRANDS PAGE ===== */
.brand-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.brand-detail-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
}
.brand-detail-card:hover { box-shadow: var(--shadow-md); border-color: var(--green); transform: translateY(-3px); }
.bdc-header {
  padding: 22px 22px 18px; display: flex; align-items: center; gap: 14px;
  background: var(--gray-50); border-bottom: 1px solid var(--border);
}
.bdc-logo {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; flex-shrink: 0;
}
.bdc-info h3 { font-weight: 700; font-size: 1rem; color: var(--gray-900); }
.bdc-info p { font-size: 0.8rem; color: var(--gray-400); margin-top: 3px; }
.bdc-body { padding: 18px 22px; }
.bdc-desc { font-size: 0.84rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }
.bdc-models { display: flex; flex-direction: column; }
.bdc-model-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--gray-100); }
.bdc-model-row:last-child { border-bottom: none; }
.bdc-model-name { font-size: 0.88rem; font-weight: 500; color: var(--gray-900); }
.bdc-model-price { font-size: 0.84rem; font-weight: 700; color: var(--green); }
.bdc-footer { padding: 14px 22px; border-top: 1px solid var(--border); }

/* filter tabs */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab-btn { padding: 8px 20px; border-radius: 50px; font-size: 0.84rem; font-weight: 600; border: 1.5px solid var(--border); background: var(--white); color: var(--gray-600, #4B5563); transition: var(--transition); cursor: pointer; }
.tab-btn:hover { border-color: var(--green); color: var(--green); }
.tab-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== CHARGING PAGE ===== */
.charging-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.charging-map-full {
  border-radius: var(--radius-lg); overflow: hidden;
  height: 520px; background: var(--gray-100);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.station-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.station-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: var(--transition); cursor: pointer;
}
.station-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.station-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-light); border: 1px solid var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.station-info h4 { font-weight: 700; font-size: 0.88rem; color: var(--gray-900); margin-bottom: 3px; }
.station-info p { font-size: 0.8rem; color: var(--gray-500); }
.station-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.s-tag { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; background: var(--gray-100); color: var(--gray-500); }
.station-right { margin-left: auto; text-align: right; flex-shrink: 0; }
.s-available { font-size: 0.8rem; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 4px; }
.s-available::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.s-busy { color: #F59E0B; }
.s-busy::before { background: #F59E0B; }
.s-power { font-size: 0.75rem; color: var(--gray-400); margin-top: 3px; }

/* ===== PARTNER PAGE ===== */
.partner-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-bottom: 56px; }
.step-card {
  text-align: center; padding: 28px 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: var(--transition); position: relative;
}
.step-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step-card h3 { font-weight: 700; font-size: 0.95rem; margin-bottom: 7px; color: var(--gray-900); }
.step-card p { font-size: 0.84rem; color: var(--gray-500); }

.partner-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 44px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--gray-50); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 15px;
  color: var(--gray-900); font-size: 0.9rem; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(0,166,81,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: #fff; }
.benefit-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.benefit-chip { display: flex; align-items: center; gap: 7px; padding: 10px 16px; background: var(--green-light); border: 1px solid var(--green-mid); border-radius: 50px; font-size: 0.84rem; font-weight: 600; color: var(--green-dark); }

/* ===== ABOUT PAGE ===== */
.about-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 60px 0; }
.about-img {
  border-radius: var(--radius-xl); overflow: hidden; height: 380px;
  background: linear-gradient(135deg, var(--green-light), #EBF5FB);
  display: flex; align-items: center; justify-content: center; font-size: 7rem;
  border: 1px solid var(--green-mid);
}
.about-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.about-stat {
  text-align: center; padding: 28px 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: var(--transition);
}
.about-stat:hover { border-color: var(--green); box-shadow: var(--shadow); }
.about-stat .a-val { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--green); }
.about-stat .a-lbl { font-size: 0.84rem; color: var(--gray-500); margin-top: 5px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px; text-align: center;
  transition: var(--transition);
}
.team-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #fff;
}
.team-name { font-weight: 700; font-size: 0.95rem; color: var(--gray-900); }
.team-role { font-size: 0.8rem; color: var(--green); font-weight: 600; margin: 4px 0 8px; }
.team-bio { font-size: 0.84rem; color: var(--gray-500); line-height: 1.5; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; display: flex; gap: 14px;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-light); border: 1px solid var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-card h4 { font-weight: 700; font-size: 0.88rem; color: var(--gray-900); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.88rem; color: var(--gray-500); }
.contact-card a:hover { color: var(--green); }
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px;
  box-shadow: var(--shadow);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-green { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green-mid); }
.badge-blue { background: #DBEAFE; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-orange { background: #FEF3C7; color: #D97706; border: 1px solid #FDE68A; }
.badge-red { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE — TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
  /* Layout grids */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .used-ev-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .filter-title { grid-column: 1 / -1; }
  .charging-layout { grid-template-columns: 1fr; }
  .charging-map-full { height: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img { height: 240px; }
  .cta-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-steps { grid-template-columns: repeat(2, 1fr); }

  /* Models / brands grids */
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }

  /* Hero */
  .slide-text { max-width: 420px; }
  .slide-text h1 { font-size: 2rem; }
}

/* ===== RESPONSIVE — MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Spacing */
  .section-pad { padding: 44px 0; }

  /* Hero */
  .hero-slide img.slide-bg { height: 380px; object-position: center; }
  .slide-text h1 { font-size: 1.7rem; line-height: 1.2; }
  .slide-text p { font-size: 0.88rem; }
  .slide-actions { gap: 10px; }
  .slide-actions .btn { padding: 10px 22px; font-size: 0.84rem; }
  .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }

  /* Search bar */
  .search-card { flex-direction: column; padding: 12px; border-radius: var(--radius); }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 4px; }
  .search-field:last-of-type { border-bottom: none; }
  .search-card .btn { width: 100%; border-radius: 8px; justify-content: center; }

  /* Section headers */
  .section-header h2 { font-size: 1.5rem; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Brands */
  .brands-circles { gap: 16px 24px; }
  .brand-circle .b-logo { width: 68px; height: 68px; font-size: 1.6rem; }

  /* Listings slider */
  .listing-card { min-width: 230px; max-width: 230px; }

  /* Models */
  .models-grid { grid-template-columns: 1fr; }

  /* Why / team / benefits */
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-steps { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Brand detail */
  .brand-detail-grid { grid-template-columns: 1fr; }
  .filter-tabs { gap: 6px; }
  .tab-btn { padding: 7px 14px; font-size: 0.8rem; }

  /* Used EV */
  .filter-sidebar { display: block; }
  .listing-toolbar { flex-direction: column; align-items: flex-start; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Partner form */
  .partner-form-wrap { padding: 24px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

  /* Contact form */
  .contact-form-wrap { padding: 24px 16px; }

  /* CTA */
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { justify-content: center; }

  /* Newsletter */
  .nl-form { flex-direction: column; gap: 10px; }
  .nl-form input, .nl-form .btn { width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-links { justify-content: center; }

  /* About */
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-img { display: none; }
  .benefit-chips { gap: 8px; }
  .benefit-chip { font-size: 0.8rem; padding: 8px 12px; }

  /* Charging */
  .charging-layout { grid-template-columns: 1fr; }
  .station-card { flex-wrap: wrap; }
  .station-right { margin-left: 0; margin-top: 8px; }

  /* Page hero */
  .page-hero { padding: 80px 0 36px; }
  .page-hero h1 { font-size: 1.8rem; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE — SMALL MOBILE (≤480px) ===== */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  /* Nav */
  .nav-wrapper { height: 70px; }
  .logo-img { height: 30px; }

  /* Hero */
  .hero-slide img.slide-bg { height: 320px; }
  .slide-text h1 { font-size: 1.4rem; }
  .slide-text p { display: none; }
  .hero-dots { bottom: 12px; }

  /* Stats bar (charging page) */
  .charging-stats-bar { grid-template-columns: repeat(2, 1fr) !important; }

  /* Brands */
  .brands-circles { gap: 14px 18px; }
  .brand-circle .b-logo { width: 60px; height: 60px; font-size: 1.4rem; }
  .brand-circle .b-name { font-size: 0.8rem; }
  .brand-circle .b-count { display: none; }

  /* Listings */
  .listing-card { min-width: 200px; max-width: 200px; }

  /* Models & listing grids — single column */
  .listing-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Section headers */
  .section-header h2 { font-size: 1.35rem; }
  .page-hero h1 { font-size: 1.5rem; }

  /* Buttons */
  .btn-lg { padding: 12px 24px; font-size: 0.9rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .social-links { flex-wrap: wrap; }
}

/* ===== CUSTOM SELECT DROPDOWN (global) ===== */
.csel-wrap { position: relative; user-select: none; display: inline-block; width: 100%; }
.csel-trigger {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: var(--font-main);
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color .2s;
  white-space: nowrap;
  overflow: hidden;
}
.csel-trigger .csel-label { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.csel-trigger .csel-arrow { flex-shrink: 0; transition: transform .2s; color: var(--gray-400); }
.csel-wrap.open .csel-trigger { border-color: var(--green); border-radius: 10px 10px 0 0; }
.csel-wrap.open .csel-arrow { transform: rotate(180deg); }
.csel-list {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1.5px solid var(--green);
  border-top: none;
  border-radius: 0 0 10px 10px;
  list-style: none;
  margin: 0; padding: 4px 0;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  max-height: 240px;
  overflow-y: auto;
}
.csel-wrap.open .csel-list { display: block; }
.csel-list li {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: var(--font-main);
  color: var(--gray-700);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.csel-list li:hover { background: var(--green-light); color: var(--green); }
.csel-list li.csel-selected { color: var(--green); font-weight: 600; }

/* brand card — distributor */
.brand-detail-card { display: flex; flex-direction: column; }
.dc-logo { height: 52px; min-width: 52px; max-width: 130px; padding: 4px 8px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; color: var(--green); }
.dc-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.dc-brands { padding: 16px 22px 20px; }
.dc-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 6px; }
.dc-brand-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.dc-brand-row:last-child { border-bottom: none; padding-bottom: 0; }
.dc-brand-logo { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; color: var(--green); flex-shrink: 0; overflow: hidden; }
.dc-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.dc-brand-info { display: flex; flex-direction: column; }
.dc-brand-name { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); }
.dc-brand-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 2px; }

/* ===== USED EV DETAIL PAGE ===== */
.ud-section { background: var(--gray-50); padding-top: 110px; }
.ud-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ud-backbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 50px; background: var(--white); font-size: 0.88rem; font-weight: 600; color: var(--gray-900); flex-shrink: 0; transition: var(--transition); }
.ud-backbtn:hover { border-color: var(--green); color: var(--green); }
.ud-crumbs { font-size: 0.84rem; color: var(--gray-500); margin: 0; display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ud-crumbs a { color: var(--gray-500); }
.ud-crumbs a:hover { color: var(--green); }
.ud-title { font-size: 1.9rem; line-height: 1.2; color: var(--gray-900); margin-bottom: 20px; }
.ud-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.ud-gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); border: 1px solid var(--border); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.ud-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ud-noimg-icon, .ud-gallery.ud-empty::after { font-size: 5rem; }
.ud-gallery.ud-empty::after { content: ""; width: 88px; height: 88px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17v-4l2-5h14l2 5v4'/%3E%3Cpath d='M3 13h18'/%3E%3Cpath d='M5 17h2M17 17h2'/%3E%3Ccircle cx='7.5' cy='17' r='1.5'/%3E%3Ccircle cx='16.5' cy='17' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.ud-save { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--green); border: none; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 0.9rem; cursor: pointer; box-shadow: var(--shadow-sm); }
.ud-save.on { background: var(--green); color: #fff; }
.ud-save.on svg { fill: currentColor; }
.ud-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff; box-shadow: var(--shadow-sm); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--gray-900); }
.ud-prev { left: 14px; } .ud-next { right: 14px; }
.ud-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.65); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 50px; }
.ud-h2 { font-size: 1.5rem; margin: 32px 0 16px; color: var(--gray-900); }
.ud-ovgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 24px; }
.ud-ov { display: flex; gap: 12px; align-items: flex-start; }
.ud-ic { width: 24px; height: 24px; flex-shrink: 0; color: var(--gray-600, #4B5563); margin-top: 1px; }
.ud-ov-k { font-size: 0.95rem; font-weight: 600; color: var(--gray-900); }
.ud-ov-v { font-size: 0.95rem; color: var(--gray-500); margin-top: 2px; }
.ud-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.ud-price { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); }
.ud-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.ud-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ud-seller { font-weight: 700; font-size: 1.05rem; color: var(--gray-900); }
.ud-note { font-size: 0.88rem; color: var(--gray-500); line-height: 1.55; margin: 6px 0 16px; }
.ud-btn { width: 100%; justify-content: center; margin-top: 10px; }
.ud-btn:first-of-type { margin-top: 0; }
.ud-report { display: block; text-align: center; background: var(--gray-100); color: var(--green); font-weight: 600; font-size: 0.9rem; padding: 14px; border-radius: 10px; }
.ud-sell h3 { font-size: 1.05rem; color: var(--gray-900); }
.ud-back { font-size: 0.88rem; font-weight: 600; color: var(--green); }
@media (max-width: 960px) {
  .ud-layout { grid-template-columns: 1fr; }
  .ud-side { position: static; }
  .ud-ovgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ud-title { font-size: 1.5rem; }
  .ud-ovgrid { grid-template-columns: 1fr; }
}

/* ===== AUTH (Google sign-in) ===== */
.auth-box { display: flex; align-items: center; flex-shrink: 0; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-menu[hidden], .auth-box [hidden], .mobile-menu [hidden] { display: none !important; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.user-name { font-size: 0.88rem; font-weight: 600; color: var(--gray-900); }
@media (max-width: 768px) { .auth-box { display: none; } }

/* user dropdown + settings page */
.user-menu { position: relative; }
.user-toggle { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--border); border-radius: 50px; padding: 4px 12px 4px 4px; cursor: pointer; transition: var(--transition); }
.user-toggle:hover { border-color: var(--green); }
.user-toggle .user-avatar { width: 30px; height: 30px; }
.user-caret { color: var(--gray-500); transition: var(--transition); }
.user-toggle[aria-expanded="true"] .user-caret { transform: rotate(180deg); }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; z-index: 1000; }
.user-dropdown[hidden] { display: none !important; }
.user-dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--gray-100); margin-bottom: 6px; }
.user-dd-name { font-weight: 700; font-size: 0.9rem; color: var(--gray-900); }
.user-dd-email { font-size: 0.8rem; color: var(--gray-500); word-break: break-all; margin-top: 2px; }
.user-dd-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; color: var(--gray-700); background: transparent; border: none; cursor: pointer; }
.user-dd-item:hover { background: var(--green-light); color: var(--green); }
.st-wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.st-wrap > div[data-auth-in] { display: flex; flex-direction: column; gap: 20px; }
.st-wrap > div[data-auth-in][hidden], .st-card[hidden] { display: none !important; }
.st-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.st-card h2 { font-size: 1.15rem; margin-bottom: 14px; color: var(--gray-900); }
.st-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.st-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.st-name { font-weight: 700; font-size: 1.05rem; color: var(--gray-900); }
.st-email { font-size: 0.9rem; color: var(--gray-500); }
.st-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--gray-100); font-size: 0.9rem; }
.st-key { color: var(--gray-500); } .st-val { font-weight: 700; color: var(--gray-900); }
.st-note { font-size: 0.88rem; color: var(--gray-500); line-height: 1.55; margin-bottom: 14px; }

/* post form, my posts, listing */
.st-wrap.st-wide { max-width: 860px; }
.pf-photos { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.pf-photo { position: relative; width: 96px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-photo button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,0.65); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.pf-error { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #FEF2F2; color: #B91C1C; font-size: 0.88rem; font-weight: 600; }
.pf-error[hidden] { display: none; }
.pf-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.form-group input[type="file"] { padding: 10px; }
.mp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mp-list { display: flex; flex-direction: column; gap: 12px; }
.mp-row { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.mp-thumb { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--gray-100); flex-shrink: 0; }
.mp-info { flex: 1; min-width: 0; }
.mp-title { font-weight: 700; color: var(--gray-900); }
.mp-sub { font-size: 0.84rem; color: var(--gray-500); margin-top: 3px; }
.mp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-del { color: #B91C1C; border-color: #FCA5A5; }
.mp-del:hover { background: #FEF2F2; }
.ls-desc { font-size: 0.95rem; line-height: 1.7; color: var(--gray-700); white-space: pre-wrap; }
.ls-wa { background: #25D366; border-color: #25D366; }
@media (max-width: 640px) { .mp-row { flex-wrap: wrap; } .mp-actions { width: 100%; } }

/* ===== SKELETON LOADERS ===== */
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel, .img-loading::after, .auth-box.auth-pending::before {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%; animation: skel-shimmer 1.4s linear infinite;
}
.skel { display: block; border-radius: 8px; }
.skel-line { height: 14px; margin-bottom: 10px; }
.skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; }
.skel-title { height: 32px; width: 55%; margin-bottom: 20px; }
.skel-block { height: 100%; min-height: 160px; border-radius: 0; }
.skel-btn { height: 40px; width: 120px; border-radius: 50px; }
.img-loading { position: relative; }
.img-loading::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none; }
.img-loading > img { opacity: 0; }
img { transition: opacity 0.25s ease; }
.auth-box.auth-pending { position: relative; width: 96px; height: 38px; }
.auth-box.auth-pending > * { visibility: hidden; }
.auth-box.auth-pending::before { content: ""; position: absolute; inset: 0; border-radius: 50px; }
.skel-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.skel-card .skel-img { height: 190px; border-radius: 0; }
.skel-card .skel-body { padding: 18px; }
.skel-row { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.skel-row .skel-thumb { width: 96px; height: 72px; flex-shrink: 0; }
.skel-row .skel-info { flex: 1; }
.ls-skel .ud-gallery { background: transparent; border: none; }
@media (prefers-reduced-motion: reduce) { .skel, .img-loading::after, .auth-box.auth-pending::before { animation: none; } }

/* line icons (replaces emoji) */
.li { width: 1.1em; height: 1.1em; vertical-align: -0.2em; flex-shrink: 0; display: inline-block; }
.li-star { fill: currentColor; width: 1em; height: 1em; margin-right: 2px; }
.t-stars { letter-spacing: 0; display: flex; align-items: center; }
.lc-heart .li { width: 18px; height: 18px; vertical-align: middle; transition: var(--transition); }
.lc-heart.on { color: #F44336; border-color: #F44336; }
.lc-heart.on .li { fill: currentColor; }
.why-icon .li, .station-icon .li { width: 1em; height: 1em; }
.about-img .li { width: 1em; height: 1em; margin: 0 6px; }
.user-dd-item .li, .benefit-chip .li, .topic-card .li, .cl-link-icon .li { vertical-align: middle; }
.btn .li, button .li { vertical-align: -0.2em; }
.ud-noimg-icon .li { width: 80px; height: 80px; color: var(--gray-400); }

/* hover photo slider on listing cards */
.model-img.slider { position: relative; overflow: hidden; display: block; }
.model-img.slider .slider-track { display: flex; height: 100%; width: 100%; will-change: transform; }
.model-img.slider .slider-track img { flex: 0 0 100%; width: 100%; height: 190px; object-fit: cover; }
.slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.slider-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); transition: var(--transition); }
.slider-dots span.on { background: #fff; width: 16px; border-radius: 3px; }

/* footer about + legal pages */
.legal-wrap { max-width: 780px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 40px; box-shadow: var(--shadow-sm); }
.legal-wrap h2 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--gray-900); }
.legal-wrap h2:first-of-type { margin-top: 8px; }
.legal-wrap p, .legal-wrap li { font-size: 0.95rem; line-height: 1.75; color: var(--gray-600, #4B5563); }
.legal-wrap ul { padding-left: 20px; margin: 8px 0; list-style: disc; }
.legal-updated { font-size: 0.84rem; color: var(--gray-500); margin-bottom: 8px; }
@media (max-width: 640px) { .legal-wrap { padding: 24px 18px; } }


.station-wide { grid-column: 1 / -1; }
.conn-panel { margin: 12px 0 6px; background: #EEF3F5; border-radius: 20px; padding: 10px 22px; max-width: 560px; }
.conn-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.conn-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.conn-name { font-size: 14px; font-weight: 500; color: var(--gray-900); }
.conn-meta { font-size: 12px; color: var(--gray-500); }
.conn-total { font-size: 14px; color: var(--gray-500); }
.conn-count { min-width: 22px; text-align: right; font-size: 14px; font-weight: 500; color: var(--gray-900); }

/* readable text on phones: 16px inputs stop iOS from zooming the page on focus */
@media (max-width: 768px) {
  input, textarea, select, .csel-trigger { font-size: 16px; }
}
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

.station-map-btn { margin-top: 10px; padding: 8px 16px; font-size: 0.8rem; }
.station-map-btn .li { width: 14px; height: 14px; }

/* featured (large) station card */
.station-card.station-wide { padding: 32px 36px; gap: 24px; align-items: flex-start; cursor: default; }
.station-wide .station-icon { width: 64px; height: 64px; border-radius: 16px; font-size: 1.8rem; }
.station-wide .station-info { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; justify-items: start; }
.station-wide .station-info > * { grid-column: 1 / -1; }
.station-wide .station-info h4 { grid-column: 1; font-size: 1.4rem; line-height: 1.25; margin: 0 0 6px; }
.station-wide .station-info > p { grid-column: 1; font-size: 1rem; margin: 0; }
.station-card.station-wide { position: relative; }
.station-wide .station-map-btn { position: absolute; right: 36px; bottom: 38px; margin: 0; padding: 12px 22px; font-size: 0.9rem; }
.station-wide .station-right { align-self: flex-start; }
.station-wide .s-power { display: inline-block; margin: 0; padding: 7px 14px; border-radius: 50px; background: var(--green-light); color: var(--green-dark); font-size: 0.84rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) {
  .station-card.station-wide { padding: 22px 20px; flex-wrap: wrap; }
  .station-wide .station-icon { width: 52px; height: 52px; font-size: 1.4rem; }
    .station-wide .station-info h4 { font-size: 1.25rem; }
  .station-wide .station-map-btn { margin-top: 18px; }
  }

/* connector chips (station cards) */
.conn-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.conn-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 50px; background: var(--white); }
.conn-ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--gray-900); }
.conn-chip-t { display: flex; flex-direction: column; line-height: 1.25; }
.conn-chip-t b { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.conn-chip-t i { font-style: normal; font-size: 12px; color: var(--gray-500); }

.station-hours { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.88rem; font-weight: 600; color: var(--green-dark); }
.station-wide .station-info > p.station-hours { font-size: 0.92rem; margin-top: 8px; }

.station-wide .conn-label { margin-top: 18px; }
.station-wide .conn-label + .conn-chips { margin-top: 10px; }

.station-wide .s-hours { display: inline-flex; align-items: center; gap: 6px; }
.station-wide .s-hours .li { width: 15px; height: 15px; }

@media (max-width: 1100px) {
  .station-wide .station-map-btn { position: static; margin-top: 18px; }
}
.station-wide .conn-label .s-power { display: inline; padding: 0; background: none; border-radius: 0; font-size: 14px; font-weight: 500; color: var(--gray-500); }

/* model filter group + hidden cards */
.model-card[hidden] { display: none !important; }
#modelGroup[hidden], .model-block[hidden] { display: none !important; }
.model-block + .model-block { margin-top: 16px; }

[hidden] { display: none !important; }

/* brand / model tree view */
.tree-row { display: flex; align-items: center; gap: 4px; }
.tree-row > .filter-option { flex: 1; min-width: 0; }
.tree-caret { width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--gray-700); background: var(--gray-100); border-radius: 6px; margin-bottom: 8px; padding: 0; }
button.tree-caret:hover { color: var(--green); background: var(--green-light); }
.tree-caret svg { transition: transform .2s; }
.tree-node.open > .tree-row .tree-caret svg { transform: rotate(90deg); }
.tree-spacer { pointer-events: none; }
.tree-children { margin: -2px 0 6px 10px; padding-left: 16px; border-left: 1.5px solid var(--gray-200); }
.tree-children .filter-option { margin-bottom: 6px; }
.filter-option input[type="checkbox"]:indeterminate { accent-color: var(--green); }

.tree-node:has(.tree-children) > .tree-row .filter-option label { cursor: pointer; }
.tree-node:has(.tree-children) > .tree-row { cursor: pointer; }
.tree-spacer { background: transparent !important; }

/* tree: no arrow; hover highlight on every filter row */
.tree-caret, .tree-spacer { display: none !important; }
.filter-sidebar .filter-option { padding: 5px 8px; margin: 0 -8px 2px; border-radius: 8px; transition: background .15s ease, color .15s ease; }
.filter-sidebar .filter-option:hover { background: var(--green-light); }
.filter-sidebar .filter-option:hover > label:not(.cnt) { color: var(--green-dark); }
.filter-sidebar .filter-option:hover .cnt { background: #fff; }
.tree-node:has(.tree-children) > .tree-row .filter-option { cursor: pointer; }
.tree-children { margin: 2px 0 6px 14px; padding-left: 14px; }
.tree-children .filter-option { margin-bottom: 2px; }
.filter-options { max-height: 214px; }

/* brand/model rows: hover + selected highlight hugs the checkbox and text only */
.tree-row > .filter-option { flex: 0 0 auto; }
.tree-row .filter-option, .tree-children .filter-option { width: fit-content; max-width: 100%; margin-right: 0; padding-right: 12px; }

/* color picker (post form) */
.color-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1.5px solid var(--border); border-radius: 50px; background: var(--white); font-size: 0.84rem; font-weight: 500; color: var(--gray-700); transition: border-color .15s, background .15s, color .15s; }
.color-opt:hover { border-color: var(--green); background: var(--green-light); }
.color-opt.on { border-color: var(--green); background: var(--green-light); color: var(--green-dark); font-weight: 600; box-shadow: 0 0 0 2px rgba(0,166,81,0.15); }
.color-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 1px solid rgba(17,24,39,0.18); flex-shrink: 0; position: relative; }
.color-dot-other { background: var(--c); }
.color-opt.on .color-dot::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.color-opt[data-color="White"].on .color-dot::after, .color-opt[data-color="Yellow"].on .color-dot::after, .color-opt[data-color="Beige"].on .color-dot::after, .color-opt[data-color="Silver"].on .color-dot::after { border-color: #111827; filter: none; }

.pf-check { display: flex !important; align-items: center; gap: 8px; text-transform: none !important; letter-spacing: 0 !important; font-size: 0.88rem !important; font-weight: 500 !important; color: var(--gray-700) !important; cursor: pointer; }
.pf-check input { width: 16px; height: 16px; accent-color: var(--green); }
.form-group input:disabled { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; }

/* segmented control (condition) */
.seg { display: inline-flex; border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; background: var(--white); align-self: flex-start; }
.seg-opt { padding: 9px 26px; font-size: 0.9rem; font-weight: 600; color: var(--gray-700); background: transparent; transition: background .15s, color .15s; }
.seg-opt:hover { background: var(--green-light); color: var(--green-dark); }
.seg-opt.on { background: var(--green); color: #fff; }

/* field validation */
.form-group.has-error input:not([type="checkbox"]), .form-group.has-error textarea, .form-group.has-error .csel-trigger, .form-group.has-error .seg, .form-group.has-error input[type="file"] { border-color: #DC2626 !important; background: #FEF2F2; }
.form-group.has-error > label:first-child { color: #B91C1C; }
.form-group.has-error input:focus, .form-group.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }
.field-msg { margin: 0; font-size: 0.8rem; font-weight: 600; color: #DC2626; }

/* "This is your listing" card: more breathing room */
#lsOwner { padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
#lsOwner .ud-seller { margin-bottom: 6px; font-size: 1.05rem; }
#lsOwner .ud-btn { margin-top: 0 !important; padding-top: 13px; padding-bottom: 13px; }

/* confirm popup */
body.modal-open { overflow: hidden; }
.modal-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17,24,39,0.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .16s ease; }
.modal-overlay.show { opacity: 1; }
.modal { width: 100%; max-width: 420px; background: var(--white); border-radius: 20px; padding: 32px 28px 24px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.25); transform: translateY(12px) scale(.97); transition: transform .16s ease; }
.modal-overlay.show .modal { transform: none; }
.modal-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #FEF2F2; color: #DC2626; display: flex; align-items: center; justify-content: center; }
.modal-title { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.modal-msg { font-size: 0.92rem; line-height: 1.6; color: var(--gray-500); margin-bottom: 24px; word-break: break-word; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; justify-content: center; padding: 12px 16px; }
.modal-danger { background: #DC2626; color: #fff; border: 1.5px solid #DC2626; }
.modal-danger:hover { background: #B91C1C; border-color: #B91C1C; }
@media (max-width: 420px) { .modal-actions { flex-direction: column-reverse; } }

/* admin portal */
.ad-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.ad-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.ad-stat-v { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--green); line-height: 1.1; }
.ad-stat-l { font-size: 0.84rem; color: var(--gray-500); margin-top: 6px; }
.ad-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.ad-search { flex: 1; min-width: 220px; max-width: 420px; padding: 11px 16px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--white); font-size: 0.92rem; }
.ad-search:focus { border-color: var(--green); }
.ad-tablewrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 860px; }
.ad-table th { text-align: left; font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); padding: 14px 16px; border-bottom: 1.5px solid var(--border); background: var(--gray-50); white-space: nowrap; }
.ad-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-900); vertical-align: middle; }
.ad-table tr:last-child td { border-bottom: none; }
.ad-table .r { text-align: right; }
.ad-who { display: flex; align-items: center; gap: 12px; }
.ad-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.ad-name { font-weight: 600; } .ad-email { font-size: 0.8rem; color: var(--gray-500); }
.ad-pill { display: inline-block; padding: 3px 11px; border-radius: 50px; font-size: 0.76rem; font-weight: 700; }
.ad-pill.on { background: var(--green-light); color: var(--green-dark); } .ad-pill.off { background: #FEF2F2; color: #B91C1C; }
.ad-actions { white-space: nowrap; } .ad-actions .btn + .btn { margin-left: 8px; }
.ad-table td { white-space: nowrap; }

/* filter lists: never scroll sideways (rows use small negative margins for the hover highlight) */
.filter-sidebar .filter-options { overflow-x: hidden; overflow-y: auto; padding: 0 8px; margin: 0 -8px; }

/* searchable dropdowns (Brand, Location) */
.csel-list .csel-search { position: sticky; top: 0; z-index: 2; padding: 8px; background: #fff; cursor: default; border-bottom: 1px solid var(--gray-100); }
.csel-list .csel-search:hover { background: #fff; color: inherit; }
.csel-search input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.88rem; background: var(--gray-50); }
.csel-search input:focus { border-color: var(--green); background: #fff; }
.csel-list .csel-empty { color: var(--gray-400); cursor: default; }
.csel-list .csel-empty:hover { background: transparent; color: var(--gray-400); }

/* form buttons: Cancel (and Delete when editing) on the left, Publish on the right */
.pf-actions { justify-content: flex-start; align-items: center; }
.pf-actions .pf-publish { margin-left: auto; }
@media (max-width: 480px) { .pf-actions { flex-direction: column-reverse; align-items: stretch; } .pf-actions .btn { width: 100%; justify-content: center; } .pf-actions .pf-publish { margin-left: 0; } }

/* launch fixes: stop sideways scrolling on phones */
.used-ev-layout { grid-template-columns: 270px minmax(0, 1fr); }
.used-ev-layout > * { min-width: 0; }
@media (max-width: 1024px) { .used-ev-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .partner-split { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; } .partner-split > * { min-width: 0; } }
.model-card { min-width: 0; }
.model-footer { flex-wrap: wrap; gap: 10px 12px; }
.model-footer .btn { margin-left: auto; }

.btn.disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; cursor: not-allowed; }
#mpLimitNote { display: flex; } #mpLimitNote[hidden] { display: none !important; }

/* admin posting */
.ad-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 50px; background: var(--green-light); color: var(--green-dark); font-size: 0.65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.ls-admin-tag { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 2px; padding: 4px 12px; border-radius: 50px; background: var(--green-light); color: var(--green-dark); font-size: 0.8rem; font-weight: 700; }
.ls-admin-tag[hidden] { display: none; }

/* toast notifications */
.toast-box { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4000; display: flex; flex-direction: column; gap: 10px; align-items: center; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; background: var(--gray-900); color: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.28); font-size: 0.9rem; font-weight: 500; opacity: 0; transform: translateY(14px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: none; }
.toast-ic { flex-shrink: 0; }
.toast-success .toast-ic { color: #4ADE80; } .toast-info .toast-ic { color: #93C5FD; } .toast-error .toast-ic { color: #F87171; }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-x { background: transparent; color: rgba(255,255,255,0.6); font-size: 1.3rem; line-height: 1; padding: 0 4px; cursor: pointer; }
.toast-x:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* location filter rows (All of Sri Lanka + districts) */
.filter-sidebar .loc-list { padding: 0; margin: 0; max-height: 282px; }
.loc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px; border: none; border-bottom: 1px solid var(--gray-100); background: transparent; text-align: left; font-size: 0.92rem; color: var(--gray-700); cursor: pointer; transition: background .15s ease; }
.loc-row:last-of-type { border-bottom: none; }
.loc-row:hover { background: var(--gray-50); }
.loc-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; margin: 0; }
.loc-name { flex: 1; min-width: 0; }
.loc-count { font-size: 0.8rem; color: var(--gray-500); white-space: nowrap; }
.loc-all.active, .loc-row:has(input:checked) { background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.loc-all.active .loc-count, .loc-row:has(input:checked) .loc-count { color: var(--green-dark); font-weight: 500; }

/* brand tree in the row style */
.tree-node > .tree-children { margin: 0; padding: 0; border-left: none; }
.loc-row.loc-sub { padding-left: 38px; font-size: 0.88rem; background: var(--gray-50); }
.loc-row.loc-sub:hover { background: var(--gray-100); }
.loc-row.loc-sub:has(input:checked) { background: var(--green-light); }
.tree-node.open > .loc-row:has(input:indeterminate) { background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.tree-node > .tree-row { border-bottom: 1px solid var(--gray-100); }

/* brand cards: each card is only as tall as its own content */
.brand-detail-grid { align-items: start; }
.brand-detail-card { height: auto; }

/* shown when the page is using the test database */
.test-badge { position: fixed; left: 14px; bottom: 14px; z-index: 3500; padding: 6px 12px; border-radius: 50px; background: #F59E0B; color: #111827; font-size: 0.7rem; font-weight: 800; letter-spacing: .08em; box-shadow: 0 4px 14px rgba(0,0,0,0.2); pointer-events: none; }


/* ===== Charging page on phones ===== */
@media (max-width: 640px) {
  /* search box: buttons fill the width, stacked */
  .search-bar { padding: 14px 16px !important; margin-bottom: 24px !important; }
  .search-bar input[type="text"] { min-width: 0 !important; flex: 1 1 0% !important; }   /* stays on the same line as the magnifier icon */
  .search-bar .btn, .search-bar #locateBtn { flex: 1 1 100%; width: 100%; justify-content: center; }

  /* map: shorter, label spans the width instead of floating at the right */
  .charging-map-full { height: 300px; border-radius: var(--radius); }
  .map-label { left: 10px !important; right: 10px !important; max-width: none !important; font-size: 0.78rem !important; padding: 7px 12px !important; }
  #mapLocateBtn { bottom: 14px !important; right: 10px !important; }

  /* featured station card: icon + open-hours badge on one row, details underneath */
  .station-card.station-wide { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon hours" "info info"; gap: 16px 12px; padding: 20px 16px; align-items: center; }
  .station-wide .station-icon { grid-area: icon; width: 48px; height: 48px; font-size: 1.3rem; }
  .station-wide .station-right { grid-area: hours; justify-self: end; align-self: center; margin: 0; }
  .station-wide .station-info { grid-area: info; width: 100%; }
  .station-wide .station-info h4 { font-size: 1.15rem; }
  .station-wide .station-info > p { font-size: 0.92rem; }
  .conn-chips { gap: 8px; }
  .conn-chip { padding: 8px 14px; }
  .station-wide .station-map-btn { width: 100%; justify-content: center; margin-top: 16px; }
  .section-pad h3 { line-height: 1.4; }
}

/* mobile menu: the green button keeps white text */
.mobile-menu a.btn-primary, .mobile-menu a.btn-primary:hover { color: #fff; background: var(--green); }
.mobile-menu a.btn-primary:hover { background: var(--green-dark); }

/* charging page: let the single column shrink to the screen (fixes a 14px overflow on 320px phones) */
.charging-layout { grid-template-columns: minmax(0, 1fr); }
.charging-layout > * { min-width: 0; }
.station-list { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
