/* ========================================
   UPCARS - MAIN STYLES
   Apple-Inspired Design
   ======================================== */

/* ========================================
   CSS VARIABLES (Design System)
   ======================================== */
:root {
  /* Colors */
  --color-primary: #000000;
  --color-secondary: #86868b;
  --color-accent: #2769a9;
  --color-accent-hover: #0077ed;
  --color-success: #30d158;
  --color-error: #ff3b30;
  --color-warning: #ff9500;
  --color-info: #64d2ff;

  --color-background: #ffffff;
  --color-surface: #f5f5f7;
  --color-surface-hover: #e8e8ed;
  --color-text: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-border: #d2d2d7;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 80px;
  --spacing-2xl: 120px;

  /* Typography */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;
  --font-size-4xl: 64px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.8;

  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 18px;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-tooltip: 1050;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #2769a9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-small {
  font-size: var(--font-size-sm);
}

.text-center {
  text-align: center;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.main-content {
  min-height: calc(100vh - 200px);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-gray {
  background-color: var(--color-surface);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--spacing-md);
}

.navbar-brand {
  flex-shrink: 0;
}

.navbar-brand .logo img {
  max-width: none;
  height: 44px;
  width: auto;
}

.navbar-brand .logo {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.navbar-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--spacing-md);
  margin: 0;
}

.navbar-menu a {
  display: inline-block;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
  font-weight: 500;
  white-space: nowrap;
}

.navbar-menu a:hover {
  background-color: var(--color-surface);
}

.navbar-menu a.active {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.language-btn:hover {
  background-color: var(--color-surface);
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--spacing-xs);
  background: var(--color-surface);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  overflow: hidden;
}

.language-dropdown.show {
  display: block;
}

.language-dropdown a {
  display: block;
  padding: var(--spacing-sm);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: background-color var(--transition-fast);
}

.language-dropdown a:hover {
  background-color: var(--color-surface);
}

.language-dropdown a.active {
  background-color: var(--color-accent);
  color: white;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-btn {
  background: none;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
}

.user-btn:hover {
  background-color: var(--color-surface);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--spacing-xs);
  background: var(--color-surface);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: var(--spacing-sm);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: background-color var(--transition-fast);
}

.user-dropdown a:hover {
  background-color: var(--color-surface);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: var(--spacing-xs) 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  transition: var(--transition-base);
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-align: center;
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.navbar-actions .btn-primary {
  border: 2px solid transparent;
}

.navbar-actions .btn-primary:hover {
  background-color: white;
  color: #2769a9;
  border-color: #2769a9;
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
}

.btn-secondary:hover {
  background-color: var(--color-surface-hover);
}

.btn-text {
  background: none;
  color: var(--color-accent);
  padding: 8px 16px;
}

.btn-text:hover {
  background-color: var(--color-surface);
}

.btn-small {
  padding: 8px 16px;
  font-size: var(--font-size-sm);
}

/* ========================================
   FORMS
   ======================================== */
.search-box {
  max-width: 600px;
  margin: var(--spacing-lg) auto;
}

.search-form {
  display: flex;
  gap: var(--spacing-sm);
}

.search-input {
  flex: 1;
  padding: 14px 20px;
  font-size: var(--font-size-base);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* ========================================
   ALERTS (see bottom of file for full styles)
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: var(--spacing-2xl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
}

.hero-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
}

.stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
}

.stat-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: var(--spacing-xs);
}

/* ========================================
   TEST STATUS (for development)
   ======================================== */
.test-status {
  padding: var(--spacing-lg);
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.status-card {
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  border: 2px solid var(--color-border);
  text-align: center;
}

.status-card.status-success {
  border-color: var(--color-success);
  background-color: rgba(48, 209, 88, 0.05);
}

.status-card.status-error {
  border-color: var(--color-error);
  background-color: rgba(255, 59, 48, 0.05);
}

.status-icon {
  font-size: var(--font-size-3xl);
  margin: var(--spacing-sm) 0;
}

.status-card .small {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: var(--spacing-xs);
}

/* ========================================
   BRANDS GRID
   ======================================== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-md);
}

.brand-card {
  padding: var(--spacing-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: var(--transition-base);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.brand-name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

/* ========================================
   LISTINGS GRID
   ======================================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.listing-card {
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.listing-image {
  aspect-ratio: 16 / 9;
  background-color: var(--color-surface);
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.listing-content {
  padding: var(--spacing-md);
}

.listing-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

.listing-year,
.listing-mileage {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xs);
}

.listing-price {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin: var(--spacing-sm) 0;
}

/* ========================================
   STEPS GRID
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.step-card {
  text-align: center;
  padding: var(--spacing-lg);
}

.step-number {
  width: 64px;
  height: 64px;
  background-color: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--spacing-md);
}

/* ========================================
   FOOTER (see bottom of file for full styles)
   ======================================== */
.footer-section ul {
  list-style: none;
}

/* ========================================
   ERROR PAGE
   ======================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

.error-content {
  text-align: center;
  max-width: 600px;
}

.error-code {
  font-size: 120px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--spacing-md);
}

.error-title {
  margin-bottom: var(--spacing-sm);
}

.error-message {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.error-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

/* ========================================
   HOMEPAGE – GoCar / CarLazer inspired
   ======================================== */

/* Hero */
.hp-hero {
  position: relative;
  padding: 140px 0 80px;
  z-index: 10;
}

.hp-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
  overflow: hidden;
  opacity: 0.3;
}

.hp-hero-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 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.03'%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");
  opacity: 0.5;
}

.hp-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-background) 0%, transparent 100%);
  z-index: 1;
}

.hp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.hp-hero-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hp-hero-subtitle {
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 40px;
  font-weight: 400;
}

/* Search Tabs */
.hp-search-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 4px;
  display: inline-flex;
}

.hp-tab {
  padding: 10px 28px;
  border-radius: 10px;
  border: none;
  /*background: transparent;*/
  /*color: rgba(255,255,255,0.7);*/
  color:#000;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hp-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.hp-tab.active {
  background: var(--color-accent);
  color: #fff;
}

/* Search Bar */
.hp-search-bar {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 50;
}

.hp-search-fields {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.hp-search-field {
  flex: 1;
  position: relative;
}

.hp-search-field select,
.hp-search-field input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.hp-search-field select option {
  background: #1a1a2e;
  color: #fff;
}

.hp-search-field select:focus,
.hp-search-field input:focus {
  background: rgba(255,255,255,0.18);
}

.hp-search-field input::placeholder {
  color: rgba(255,255,255,0.5);
}

.hp-search-btn {
  padding: 14px 32px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-search-btn:hover {
  background: #0077ed;
  transform: translateY(-1px);
}

.hp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  z-index: 2;
  pointer-events: none;
}

.hp-euro-icon {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.hp-search-field-brand .autocomplete-input,
.hp-search-field-model .autocomplete-input,
.hp-search-field-brand .ac-input,
.hp-search-field-model .ac-input {
  padding-left: 42px !important;
}

.hp-search-field-price .hp-search-select {
  padding-left: 42px;
}

.hp-search-select {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.hp-search-select:focus {
  background: rgba(255,255,255,0.18);
}

.hp-search-select option {
  background: #1a1a2e;
  color: #fff;
}

.hp-search-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  margin: 8px 0;
  flex-shrink: 0;
}

.hp-search-extras {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.hp-advanced-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /*color: rgba(255,255,255,0.6);*/
  color: #000;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.hp-advanced-link:hover {
  color: #fff;
}

/* Autocomplete in hero - override dark theme */
.hp-search-bar .ac-wrapper {
  position: relative;
  z-index: 100;
}

.hp-search-bar .ac-input-wrap {
  position: relative;
}

.hp-search-bar .ac-icon-search {
  display: none;
}

.hp-search-bar .ac-input {
  width: 100%;
  padding: 14px 16px 14px 42px !important;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: background 0.2s;
}

.hp-search-bar .ac-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.hp-search-bar .ac-input:focus {
  background: rgba(255,255,255,0.18);
  box-shadow: none;
  border-color: transparent;
}

.hp-search-bar .ac-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
}

.hp-search-bar .ac-clear:hover {
  background: rgba(255,255,255,0.25);
}

.hp-search-bar .ac-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  margin-top: 4px;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.hp-search-bar .ac-option {
  padding: 10px 16px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.15s;
}

.hp-search-bar .ac-option:hover,
.hp-search-bar .ac-highlighted {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Stats Row */
.hp-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 36px;
}

.hp-stat {
  text-align: center;
}

.hp-stat strong,
.hp-stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #000;
}

.hp-stat span,
.hp-stat-label {
  display: block;
  font-size: 13px;
  /* color: rgba(255,255,255,0.6);*/
  color: #000;
  margin-top: 2px;
}

/* ---- Sections ---- */
.hp-section {
  padding: 72px 0;
}

.hp-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.hp-section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hp-section-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
}

.hp-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  margin-top: 12px;
  font-size: 15px;
  transition: gap 0.2s;
}

.hp-section-link:hover {
  gap: 10px;
}

/* ---- Brands Grid ---- */
.hp-brands {
  background: var(--color-surface);
}

.hp-brands-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  background: var(--color-background);
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.25s;
  border: 1px solid var(--color-border);
}

.hp-brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: var(--color-accent);
}

.hp-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.hp-brand-icon {
  width: 56px;
  height: 56px;
  background: var(--color-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.hp-brand-name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.hp-brand-count {
  font-size: 11px;
  color: var(--color-text-secondary);
}

/* ---- Body Types ---- */
.hp-body-types {
  background: var(--color-background);
}

.hp-body-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-body-card {
  text-align: center;
  padding: 28px 12px;
  border-radius: 16px;
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.25s;
  border: 1px solid transparent;
}

.hp-body-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.hp-body-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.hp-body-label {
  font-size: 14px;
  font-weight: 600;
}

/* ---- Listing Cards ---- */
.hp-listings-section {
  background: var(--color-surface);
  padding-top: 30px;
  padding-bottom: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.hp-listings-section:nth-child(even) {
  background: var(--color-background);
}

.hp-cards-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 24px 16px;
  max-width: 1248px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hp-cards-scroll::-webkit-scrollbar {
  display: none;
}

.hp-cards-scroll .hp-card {
  min-width: 300px;
  max-width: 340px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.hp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-card {
  background: var(--color-background);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s;
  border: 1px solid var(--color-border);
}

.hp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
  border-color: var(--color-accent);
}

.hp-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}

.hp-card-badge.vip {
  background: linear-gradient(135deg, #f5a623, #f7c948);
}

.hp-card-badge.premium {
  background: linear-gradient(135deg, #7b61ff, #9b8cff);
}

.hp-card-badge.standard {
  background: var(--color-accent);
}

.hp-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface);
}

.hp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.hp-card-img .no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 40px;
  color: var(--color-text-secondary);
  background: var(--color-surface);
}

.hp-card-body {
  padding: 16px 20px 20px;
}

.hp-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.hp-card-specs span {
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  padding: 4px 10px;
  border-radius: 6px;
}

.hp-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

/* ---- How it Works ---- */
.hp-how-it-works {
  background: var(--color-background);
  margin-top: 30px;
  margin-bottom: 30px;
}

.hp-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-step {
  text-align: center;
  flex: 1;
  max-width: 220px;
}

.hp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.hp-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-accent);
}

.hp-step-line {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin-top: 48px;
}

.hp-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.hp-step p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---- CTA Section ---- */
.hp-cta {
  padding: 80px 0;
  background: var(--color-surface);
}

.hp-cta-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  background: linear-gradient(135deg, #0a0a1a, #1b263b);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.hp-cta-card h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hp-cta-card p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hp-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hp-cta-content {
  position: relative;
  z-index: 1;
}

.hp-cta-visual {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.hp-cta-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(0,113,227,0.15);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}

.hp-cta-circle-2 {
  width: 200px;
  height: 200px;
  background: rgba(0,113,227,0.1);
  top: auto;
  bottom: -60px;
  right: auto;
  left: -40px;
}

.hp-cta-btn-primary,
.hp-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}

.hp-cta-btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.hp-cta-btn-primary:hover {
  background: #0077ed;
  transform: translateY(-2px);
}

.hp-cta-btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.hp-cta-btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hp-brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hp-body-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hp-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-hero-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .hp-hero {
    padding: 120px 0 60px;
  }
  .hp-hero-title {
    font-size: 32px;
  }
  .hp-hero-subtitle {
    font-size: 17px;
  }
  .hp-search-fields {
    flex-direction: column;
  }
  .hp-search-btn {
    justify-content: center;
  }
  .hp-stats {
    gap: 24px;
  }
  .hp-stat-number {
    font-size: 22px;
  }
  .hp-section {
    padding: 48px 0;
  }
  .hp-section-title {
    font-size: 28px;
  }
  .hp-brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .hp-brand-card {
    padding: 16px 8px;
  }
  .hp-brand-logo, .hp-brand-icon {
    width: 44px;
    height: 44px;
  }
  .hp-body-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .hp-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hp-steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .hp-step-line {
    width: 2px;
    height: 24px;
    margin: 0;
  }
  .hp-cta-card {
    padding: 40px 24px;
  }
  .hp-cta-card h2 {
    font-size: 28px;
  }
  .hp-cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hp-hero-title {
    font-size: 26px;
  }
  .hp-brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-body-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hp-stat {
    min-width: 80px;
  }
  .hp-tab {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* Dark mode adjustments for homepage */
[data-theme="dark"] .hp-hero-overlay {
  background: linear-gradient(to top, var(--color-background) 0%, transparent 100%);
}

[data-theme="dark"] .hp-card {
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .hp-card:hover {
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

[data-theme="dark"] .hp-brand-card {
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .hp-brand-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

[data-theme="dark"] .hp-body-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}


/* ==========================================================================
   LISTINGS PAGE - Modern Styling
   ========================================================================== */

.listings-page-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  margin-top: 24px;
}

.listings-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.filter-panel {
  background: var(--color-surface);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.filter-panel-title {
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-surface-hover);
  font-size: 18px;
  font-weight: 600;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-of-type {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: all 0.2s;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-surface-hover);
}

.filter-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn-primary {
  background: #2769a9;
  color: white;
  border: none;
}

.filter-btn-primary:hover {
  background: #0077ed;
}

.filter-btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: none;
  flex: 0;
  padding: 14px 18px;
}

.filter-btn-secondary:hover {
  background: var(--color-surface-hover);
}

/* Listings Results Area */
.listings-results {
  min-height: 400px;
}

.results-toolbar {
  background: var(--color-surface);
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.results-count {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.sort-select {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--color-surface);
  cursor: pointer;
}

/* Listing Cards - Grid Layout */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.listing-card-v2 {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.listing-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.listing-card-v2-image {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--color-surface);
  overflow: hidden;
}

.listing-card-v2-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.listing-card-v2-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-hover));
}

.vehicle-photo-placeholder,
.hp-card-placeholder:has(.vehicle-placeholder-logo),
.listing-card-v2-placeholder:has(.vehicle-placeholder-logo) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #fff;
}

.vehicle-photo-placeholder-detail {
  aspect-ratio: 16/9;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

img.vehicle-placeholder-logo {
  width: 65% !important;
  height: auto !important;
  max-width: 380px;
  max-height: 60%;
  object-fit: contain !important;
  transform: none !important;
}

.listing-card-v2-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-secondary);
}

/* Card Badges */
.listing-badge {
  position: absolute;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.listing-badge-boost {
  top: 14px;
  left: 14px;
  color: white;
}

.listing-badge-boost.standard {
  background: linear-gradient(135deg, #ff9500, #ff6b00);
}

.listing-badge-boost.premium {
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: var(--color-text);
}

.listing-badge-boost.vip {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.listing-badge-new {
  top: 14px;
  right: 14px;
  background: #2769a9;
  color: white;
}

.listing-badge-status {
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
}

/* Card Actions */
.listing-card-actions {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-action-btn {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.card-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-action-btn-favorite {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
}

.card-action-btn-favorite.active {
  background: rgba(255, 59, 48, 0.95);
}

/* Card Content */
.listing-card-v2-content {
  padding: 20px 24px 24px;
}

.listing-card-v2-title {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.listing-card-v2-subtitle {
  margin: 0 0 14px 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.listing-card-v2-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.spec-tag {
  background: var(--color-surface);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--color-text);
  font-weight: 500;
}

.listing-card-v2-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-surface);
}

.listing-card-v2-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
}

.listing-card-v2-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.listing-card-v2-location svg {
  width: 14px;
  height: 14px;
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 80px 40px;
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.no-results h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
  color: var(--color-text);
}

.no-results p {
  color: var(--color-text-secondary);
  font-size: 16px;
  margin: 0 0 28px 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .listings-page-layout {
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .listings-page-layout {
    grid-template-columns: 1fr;
  }

  .listings-sidebar {
    position: relative;
    top: 0;
  }

  .filter-panel {
    display: none;
  }

  .filter-panel.mobile-open {
    display: block;
  }

  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .results-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .results-sort {
    justify-content: space-between;
  }
}

/* Fiche annonce — colonne principale + sidebar taxes */
.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

@media (max-width: 992px) {
  .listing-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Save Search Section */
.save-search-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-surface-hover);
}

.save-search-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--color-surface);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}

.save-search-btn:hover {
  background: var(--color-surface-hover);
}

.save-search-btn svg {
  width: 18px;
  height: 18px;
}

/* Hide mobile filter toggle on desktop */
.mobile-filter-toggle {
  display: none;
}

/* ========================================
   AUTOCOMPLETE COMPONENT
   ======================================== */
.ac-wrapper {
  position: relative;
  width: 100%;
}

.ac-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ac-icon-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  pointer-events: none;
  flex-shrink: 0;
}

.ac-input {
  width: 100%;
  padding: 14px 40px 14px 40px;
  border: 2px solid var(--color-surface-hover);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.ac-input::placeholder {
  color: var(--color-text-secondary);
  font-weight: 400;
}

.ac-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
  background: var(--color-surface);
}

.ac-input.ac-has-value {
  font-weight: 600;
  color: var(--color-text);
}

.ac-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: var(--color-surface-hover);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.ac-clear:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.ac-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}

.ac-dropdown.ac-open {
  display: block;
  animation: acSlideIn 0.15s ease-out;
}

@keyframes acSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ac-option {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
  transition: background 0.1s;
  line-height: 1.4;
}

.ac-option:hover,
.ac-option.ac-highlighted {
  background: var(--color-surface);
}

.ac-option strong {
  color: var(--color-accent);
  font-weight: 700;
}

.ac-empty {
  padding: 16px 14px;
  color: var(--color-text-secondary);
  font-size: 14px;
  text-align: center;
}

.ac-disabled .ac-input {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-surface);
}

.ac-disabled .ac-icon-search {
  opacity: 0.4;
}

/* Autocomplete scrollbar */
.ac-dropdown::-webkit-scrollbar {
  width: 6px;
}

.ac-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.ac-dropdown::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* Autocomplete in filter sidebar (smaller) */
.filter-group .ac-input {
  padding: 12px 36px 12px 36px;
  border-width: 1px;
  border-color: var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--color-surface);
}

.filter-group .ac-icon-search {
  left: 12px;
}

.filter-group .ac-icon-search svg,
.filter-group .ac-icon-search {
  width: 14px;
  height: 14px;
}

.filter-group .ac-clear {
  right: 8px;
  width: 20px;
  height: 20px;
}

.filter-group .ac-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.filter-group .ac-dropdown {
  border-radius: 10px;
  max-height: 240px;
}

.filter-group .ac-option {
  padding: 8px 12px;
  font-size: 13px;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.4s; }

.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   MOBILE MENU DRAWER
   ======================================== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1099;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-surface);
  z-index: 1100;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-drawer.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-surface-hover);
}

.mobile-menu-header .logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  background: var(--color-surface);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-menu-close:hover {
  background: var(--color-surface-hover);
}

.mobile-menu-nav {
  padding: 16px 0;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
}

.mobile-menu-nav a:hover {
  background: var(--color-surface);
}

.mobile-menu-nav a.active {
  color: var(--color-accent);
  font-weight: 600;
}

.mobile-menu-nav .menu-divider {
  height: 1px;
  background: var(--color-surface-hover);
  margin: 8px 24px;
}

.mobile-menu-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-surface-hover);
}

.mobile-menu-footer .btn {
  display: block;
  text-align: center;
  margin-bottom: 8px;
  width: 100%;
}

/* Hamburger animation */
.mobile-menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-surface-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #2769a9;
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

.scroll-to-top:hover svg {
  color: white;
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
  transition: color 0.2s;
}

/* ========================================
   IMPROVED ALERTS
   ======================================== */
.alert {
  padding: 0;
  font-size: var(--font-size-sm);
  animation: alertSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@keyframes alertSlideIn {
  from {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
  }
}

.alert .container {
  padding: 14px var(--spacing-md);
}

.alert-success {
  background-color: #e8f8ef;
  color: #0d663b;
  border-bottom: 2px solid #30d158;
}

.alert-error {
  background-color: #fef0f0;
  color: #8b1a1a;
  border-bottom: 2px solid #ff3b30;
}

.alert-info {
  background-color: #edf5ff;
  color: #0c5a7a;
  border-bottom: 2px solid #2769a9;
}

.alert-fade-out {
  animation: alertSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes alertSlideOut {
  from {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
  }
  to {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ========================================
   IMPROVED FOOTER
   ======================================== */
.footer {
  background-color: #1d1d1f;
  padding: 64px 0 32px;
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-section h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-section > p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   LISTING CARD ENHANCED INFO
   ======================================== */
.listing-card-specs-detailed {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.listing-card-specs-detailed .spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--color-surface);
  border-radius: 6px;
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.listing-card-specs-detailed .spec-chip svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.listing-card-location-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.listing-card-location-info svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ========================================
   TOAST NOTIFICATIONS (improved)
   ======================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  max-width: 380px;
  animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.toast-success {
  border-left: 4px solid #30d158;
}

.toast-notification.toast-error {
  border-left: 4px solid #ff3b30;
}

.toast-notification.toast-info {
  border-left: 4px solid #2769a9;
}

.toast-notification.toast-out {
  animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

/* ========================================
   SKELETON LOADING STATES
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.skeleton-image {
  aspect-ratio: 16/10;
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
}

.skeleton-text {
  height: 14px;
  margin: 12px 20px;
}

.skeleton-text-short {
  height: 14px;
  width: 60%;
  margin: 8px 20px;
}

.skeleton-price {
  height: 22px;
  width: 40%;
  margin: 12px 20px 20px;
}

/* ========================================
   FOCUS STYLES (Accessibility)
   ======================================== */
*:focus-visible {
  outline: 2px solid #2769a9;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #2769a9;
  outline-offset: 2px;
}

/* ========================================
   SMOOTH SECTION TRANSITIONS
   ======================================== */
.section + .section {
  border-top: none;
}

.featured-section,
.recent-section {
  position: relative;
}

.popular-section,
.body-types-section,
.how-it-works-section {
  position: relative;
}

/* ========================================
   LISTING CARD HOVER IMPROVEMENTS
   ======================================== */
.listing-card-modern,
.featured-card,
.listing-card-v2 {
  will-change: transform;
}

.body-type-card {
  will-change: transform;
}

/* Improved card focus for keyboard nav */
.listing-card-link:focus-visible,
.featured-card-link:focus-visible {
  outline: none;
}

.listing-card-link:focus-visible .listing-card-modern,
.featured-card-link:focus-visible .featured-card {
  outline: 2px solid #2769a9;
  outline-offset: 2px;
}

/* ========================================
   DARK MODE
   ======================================== */
[data-theme="dark"] {
  --color-primary: #ffffff;
  --color-secondary: #98989d;
  --color-accent: #2997ff;
  --color-accent-hover: #64b5f6;
  --color-background: #000000;
  --color-surface: #1c1c1e;
  --color-surface-hover: #2c2c2e;
  --color-text: #f5f5f7;
  --color-text-secondary: #98989d;
  --color-border: #38383a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .header {
  background-color: rgba(0, 0, 0, 0.92);
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .listing-card-v2,
[data-theme="dark"] .listing-card-modern,
[data-theme="dark"] .featured-card,
[data-theme="dark"] .body-type-card,
[data-theme="dark"] .step-icon {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .filter-panel {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .filter-input,
[data-theme="dark"] .filter-select {
  background: var(--color-surface-hover);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .btn-text {
  color: var(--color-text);
}

[data-theme="dark"] .spec-tag {
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
}

[data-theme="dark"] .language-dropdown,
[data-theme="dark"] .user-dropdown {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .language-dropdown a,
[data-theme="dark"] .user-dropdown a {
  color: var(--color-text);
}

[data-theme="dark"] .language-dropdown a:hover,
[data-theme="dark"] .user-dropdown a:hover {
  background: var(--color-surface-hover);
}

[data-theme="dark"] .mobile-menu-drawer {
  background: var(--color-surface);
}

[data-theme="dark"] .mobile-menu-nav a {
  color: var(--color-text);
}

[data-theme="dark"] .mobile-menu-nav a:hover {
  background: var(--color-surface-hover);
}

[data-theme="dark"] .alert {
  border-color: var(--color-border);
}

[data-theme="dark"] .no-results {
  color: var(--color-text);
}

[data-theme="dark"] .results-toolbar {
  border-color: var(--color-border);
}

[data-theme="dark"] .sort-select {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1c1c1e 0%, #000000 100%);
}

[data-theme="dark"] .alert-success {
  background-color: #0d2818;
  color: #30d158;
  border-bottom-color: #30d158;
}

[data-theme="dark"] .alert-error {
  background-color: #2d1215;
  color: #ff6961;
  border-bottom-color: #ff3b30;
}

[data-theme="dark"] .alert-info {
  background-color: #0d1f33;
  color: #64b5f6;
  border-bottom-color: var(--color-accent);
}

[data-theme="dark"] .footer {
  background-color: #000000;
  border-top: 1px solid var(--color-border);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--color-surface-hover);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--color-text-secondary);
}

[data-theme="dark"] .modal-content,
[data-theme="dark"] .popup,
[data-theme="dark"] .dropdown-menu {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .breadcrumb a {
  color: var(--color-text-secondary);
}

[data-theme="dark"] .badge-boost-premium {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
}

[data-theme="dark"] .badge-boost-vip {
  background: linear-gradient(135deg, #9b59b6, #6c3483);
}

[data-theme="dark"] .instant-search-results {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .instant-search-item:hover {
  background: var(--color-surface-hover);
}

[data-theme="dark"] .tab-btn {
  color: var(--color-text-secondary);
}

[data-theme="dark"] .tab-btn.active {
  color: var(--color-accent);
}

[data-theme="dark"] table,
[data-theme="dark"] th,
[data-theme="dark"] td {
  border-color: var(--color-border);
}

[data-theme="dark"] th {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

[data-theme="dark"] td {
  color: var(--color-text);
}

[data-theme="dark"] tr:hover td {
  background: var(--color-surface);
}

/* Dark mode toggle button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background var(--transition-fast);
  width: 36px;
  height: 36px;
}

.theme-toggle:hover {
  background: var(--color-surface);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

/* ========================================
   INSTANT SEARCH
   ======================================== */
.instant-search {
  position: relative;
  display: flex;
  align-items: center;
}

.instant-search-input {
  width: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--color-text);
  outline: none;
  transition: width 0.3s ease, padding 0.3s ease, background 0.3s ease;
  border-radius: var(--border-radius-full);
  height: 36px;
}

.instant-search.active .instant-search-input {
  width: 240px;
  padding: 0 36px 0 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.instant-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background var(--transition-fast);
  width: 36px;
  height: 36px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.instant-search-btn:hover {
  background: var(--color-surface);
}

.instant-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 480px;
  overflow-y: auto;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  display: none;
  animation: searchDropIn 0.2s ease;
}

.instant-search-results.show {
  display: block;
}

@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--color-border);
}

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

.search-result-item:hover {
  background: var(--color-surface);
}

.search-result-image {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.search-result-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.search-result-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 2px;
}

.search-result-footer {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.search-result-footer a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.search-no-results {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.search-loading {
  padding: 24px 16px;
  text-align: center;
}

.search-loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   DETAIL PAGE - Sections harmonisées
   ======================================== */
.gallery-expand {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 12px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: zoom-in;
    touch-action: pan-y pinch-zoom;
}

.gallery-expand span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.72);
    font-size: 13px;
    font-weight: 600;
}

.gallery-expand:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}

.gallery-viewer {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border: 0;
    background: #0c1823;
    color: #fff;
}

.gallery-viewer[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
}

.gallery-viewer-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.gallery-viewer-controls span {
    margin-inline-end: auto;
}

.gallery-viewer-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #697988;
    border-radius: 50%;
    background: #233644;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.gallery-viewer-controls button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.gallery-viewer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    touch-action: pan-y pinch-zoom;
}

.detail-section {
  background: var(--color-surface);
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.detail-section-title {
  margin: 0 0 24px 0;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /*color: var(--color-text-secondary);*/
  padding-bottom: 0px;
  /*border-bottom: 1px solid var(--color-border);*/
}

/* Spec items (caractéristiques principales) */
.detail-spec-item {
  padding: 12px 16px;
  background: var(--color-background);
  border-radius: 8px;
}

.detail-spec-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.detail-spec-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

/* Technical detail rows */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row-label {
  font-size: 14px;
  /*color: var(--color-text-secondary);*/
}

.detail-row-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

/* Category titles (equipment, etc.) */
.detail-category-title {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /*color: var(--color-accent);*/
}

/* Checkmark items */
.detail-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}

/* ========================================
   LOAD MORE BUTTON
   ======================================== */
.load-more-container {
  text-align: center;
  margin-top: 48px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all var(--transition-base);
}

.load-more-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-text-secondary);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.load-more-btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.load-more-progress {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Skeleton card for loading */
.listing-card-skeleton {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--color-background);
  border: 1px solid var(--color-border);
}

.listing-card-skeleton .skeleton-image {
  aspect-ratio: 16/10;
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
}

.listing-card-skeleton .skeleton-body {
  padding: 16px;
}

.listing-card-skeleton .skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
  margin-bottom: 10px;
}

.listing-card-skeleton .skeleton-line.w75 { width: 75%; }
.listing-card-skeleton .skeleton-line.w50 { width: 50%; }
.listing-card-skeleton .skeleton-line.w60 { width: 60%; }
.listing-card-skeleton .skeleton-line.w40 { width: 40%; }

.listing-card-skeleton .skeleton-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.listing-card-skeleton .skeleton-tag {
  height: 26px;
  width: 64px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
.main-content {
  animation: pageIn 0.4s ease both;
}

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

.page-transitioning .main-content {
  animation: pageOut 0.25s ease both;
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ========================================
   RESPONSIVE - INSTANT SEARCH
   ======================================== */
@media (max-width: 768px) {
  .instant-search.active .instant-search-input {
    width: 180px;
  }

  .instant-search-results {
    width: calc(100vw - 32px);
    right: -60px;
  }
}

@media (max-width: 480px) {
  .instant-search.active .instant-search-input {
    width: 140px;
    font-size: 13px;
  }

  .instant-search-results {
    width: calc(100vw - 16px);
    right: -70px;
  }
}

/* ========================================
   PWA INSTALL BANNER
   ======================================== */
.pwa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: none;
  justify-content: center;
  padding: 0 16px env(safe-area-inset-bottom, 16px) 16px;
  animation: pwa-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pwa-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  width: 100%;
  padding: 16px 20px;
  background: var(--color-surface-elevated, #ffffff);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

[data-theme="dark"] .pwa-banner-content {
  background: #2c2c2e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pwa-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.pwa-banner-text span {
  display: block;
  font-size: 13px;
  color: var(--color-secondary);
  line-height: 1.4;
}

.pwa-banner-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.pwa-banner-btn:hover {
  background: var(--color-accent-hover);
}

.pwa-banner-btn:active {
  transform: scale(0.96);
}

.pwa-banner-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-secondary);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.pwa-banner-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .pwa-banner-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .pwa-banner-content {
    gap: 12px;
    padding: 14px 16px;
  }
  .pwa-banner-text strong { font-size: 14px; }
  .pwa-banner-text span { font-size: 12px; }
  .pwa-banner-btn { padding: 8px 16px; font-size: 13px; }
}

/* PWA standalone mode adjustments */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
  }
  .pwa-banner { display: none !important; }
}

/* ========================================
   PRICING PAGE
   ======================================== */
.pricing-free-banner {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .pricing-free-banner {
  border-color: rgba(255, 255, 255, 0.08);
}

.pricing-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-accent);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.pricing-card {
  position: relative;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)),
              box-shadow 0.3s var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1));
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .pricing-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.pricing-card-popular {
  border: 2px solid var(--color-accent);
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.pricing-card-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--color-text);
}

.pricing-card-price {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .pricing-card-price {
  border-color: rgba(255, 255, 255, 0.08);
}

.pricing-amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.pricing-period {
  font-size: 14px;
  color: var(--color-secondary);
  margin-left: 4px;
}

.pricing-vat {
  font-size: 13px;
  color: var(--color-secondary);
  margin-top: 4px;
}

.pricing-card-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text);
}

.pricing-feature svg {
  flex-shrink: 0;
}

/* FAQ */
.pricing-faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .pricing-faq-item {
  border-color: rgba(255, 255, 255, 0.08);
}

.pricing-faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}

.pricing-faq-item summary::-webkit-details-marker {
  display: none;
}

.pricing-faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--color-secondary);
  transition: transform 0.2s;
}

.pricing-faq-item[open] summary::after {
  content: '-';
}

.pricing-faq-item p {
  padding: 0 0 20px;
  color: var(--color-secondary);
  line-height: 1.7;
  font-size: 15px;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-free-banner {
    padding: 24px;
  }
}

/* Prix des véhicules : mention fiscale lisible à côté du montant. */
.vehicle-price-tax {
    font-size: 0.65em;
    font-weight: 500;
    white-space: nowrap;
}

/* Recherche d'accueil : contraste indépendant de la photo et du thème. */
.hp-search-bar {
    background: #fff;
    border-color: #d4dce5;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
}
.hp-search-bar .hp-search-field select {
    background: #f1f5f9;
    color: #172b40;
}
.hp-search-bar .hp-search-field select option {
    background: #fff;
    color: #172b40;
}
.hp-search-bar .hp-search-icon { color: #40566d; }
.hp-search-bar .hp-search-divider { background: #cbd5e1; }
.hp-search-bar .hp-advanced-link { color: #243b53; }
.hp-search-bar .hp-advanced-link:hover { color: #013f6e; text-decoration: underline; }
.hp-search-bar .hp-search-field select:focus-visible {
    outline: 2px solid #2769a9;
    outline-offset: -2px;
}

/* Identification des vendeurs professionnels dans les vignettes. */
.listing-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
}
.listing-seller-label {
    color: var(--color-text-secondary);
    font-weight: 400;
    flex-shrink: 0;
}
.listing-seller a { color: var(--color-text); font-weight: 600; overflow-wrap: anywhere; }
.listing-seller a:hover { text-decoration: underline; }
.listing-seller a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Vignettes d'accueil : lecture en trois niveaux, du véhicule au vendeur. */
.hp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.hp-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.hp-card-link:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.hp-card-body { padding: 18px 20px; flex: 1; }
.hp-card-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 650;
    margin: 0 0 14px;
}
.hp-card-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    margin: 0 0 18px;
}
.hp-card-specs .hp-card-spec {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 12px;
    line-height: 1.4;
    border-radius: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}
.hp-card-spec svg { color: var(--color-text-secondary); flex-shrink: 0; }
.hp-card-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hp-card-price { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.5px; }
.hp-card-price .vehicle-price-tax { font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--color-text-secondary); }
.hp-card-location { font-size: 12px; color: var(--color-text-secondary); }
.listing-seller { flex-wrap: wrap; gap: 5px 7px; }
.listing-seller-icon { flex-shrink: 0; color: var(--color-text-secondary); }
.hp-card > .listing-seller {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 2px;
    padding: 14px 20px;
    margin-top: auto;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}
.hp-card > .listing-seller .listing-seller-icon { grid-row: 1 / 3; align-self: center; }
.hp-card > .listing-seller .listing-seller-label { grid-column: 2; font-size: 11px; line-height: 1.4; }
.hp-card > .listing-seller a { grid-column: 2; font-size: 13px; line-height: 1.5; color: var(--color-accent); }
@media (prefers-reduced-motion: reduce) {
    .hp-card, .hp-card-img img { transition: none; }
    .hp-card:hover, .hp-card:hover .hp-card-img img { transform: none; }
}

/* Les annonces similaires reprennent les vignettes d'accueil dans la colonne de détail. */
.similar-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 600px) {
    .similar-cards-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Tableau de gestion des annonces : défilement horizontal sur petits écrans. */
.my-listings-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.my-listings-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-background); }
.my-listings-table-wrap:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.my-listings-table { width: 100%; min-width: 1000px; border-collapse: collapse; text-align: left; font-size: 13px; }
.my-listings-table th { padding: 15px 16px; background: var(--color-surface); color: var(--color-text-secondary); font-weight: 600; }
.my-listings-table td { padding: 18px 16px; border-top: 1px solid var(--color-border); vertical-align: top; }
.my-listings-vehicle-cell { width: 34%; min-width: 290px; }
.my-listings-vehicle { display: flex; gap: 12px; align-items: center; color: var(--color-text); text-decoration: none; margin-bottom: 10px; }
.my-listings-vehicle:hover strong { text-decoration: underline; }
.my-listings-vehicle img, .my-listings-no-photo { width: 104px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--color-surface); }
.my-listings-no-photo { display: grid; place-items: center; }
.my-listings-vehicle strong { display: block; font-size: 14px; line-height: 1.5; }
.my-listings-meta { display: block; color: var(--color-text-secondary); font-size: 12px; margin-top: 4px; }
.my-listings-price { white-space: nowrap; }
.my-listings-price strong { display: block; font-size: 16px; color: var(--color-accent); }
.my-listings-price small { color: var(--color-text-secondary); }
.my-listings-status-cell { min-width: 220px; }
.my-listings-status { display: inline-block; margin-bottom: 10px; padding: 4px 9px; background: #e5e7eb; color: #374151; border-radius: 5px; font-weight: 600; }
.my-listings-status.is-active { background: #dcfce7; color: #166534; }
.my-listings-status.is-pending { background: #fff3cd; color: #805b00; }
.my-listings-status.is-expired { background: #fee2e2; color: #991b1b; }
.my-listings-status.is-sold { background: #ede9fe; color: #5b21b6; }
.my-listings-statistics { white-space: nowrap; line-height: 1.9; }
.my-listings-actions { min-width: 230px; }

.my-listings-carpass { min-width: 180px; max-width: 300px; }
.my-listings-carpass > div { margin-top: 10px; }

/* Actions de gestion : mêmes proportions, sans grands aplats de couleur. */
.my-listings-table td { vertical-align: middle; padding: 18px 16px; }
.my-listings-table tbody tr { transition: background-color 0.15s; }
.my-listings-table tbody tr:hover { background: var(--color-surface); }
.my-listings-vehicle { margin-bottom: 0; }
.my-listings-vehicle img, .my-listings-no-photo { border-radius: 9px; }
.my-listings-status-cell { min-width: 175px; }
.my-listings-price strong { font-size: 17px; }
.my-listings-price small { display: block; margin-top: 4px; }
.my-listings-actions { min-width: 225px; }
.my-listings-action-pair { display: flex; gap: 8px; }
.my-listings-action-pair > a { flex: 1; }
.my-listings-table .listing-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: var(--color-background);
    color: var(--color-text);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s, border-color 0.15s;
}
.my-listings-table .listing-row-button svg { flex-shrink: 0; }
.my-listings-table .listing-row-button:hover { background: var(--color-surface); border-color: var(--color-accent); }
.my-listings-table .listing-row-button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.my-listings-table .listing-row-button:disabled { opacity: 0.6; cursor: wait; }
.my-listings-table .listing-row-button-wide { width: 100%; margin-top: 8px; }
.my-listings-table .listing-row-button-danger { color: #b42318; background: #fff5f5; border-color: #f1d4d1; }
.my-listings-table .listing-row-button-danger:hover { background: #fee2e2; border-color: #b42318; }
.my-listings-table .listing-row-button-primary { color: #fff; background: #2769a9; border-color: #2769a9; }
.my-listings-table .listing-row-button-primary:hover { background: #1d5285; }
.my-listings-table .listing-row-button-boost { color: #875400; background: #fff8e8; border-color: #eeddb5; }
.my-listings-table .listing-row-button-boost:hover { background: #fff0cb; border-color: #bb8b32; }

/* Boost temporairement indisponible dans la gestion des annonces. */
.my-listings-table .listing-row-button-boost:disabled,
.my-listings-table .listing-row-button-boost:disabled:hover {
    color: var(--color-text-secondary);
    background: var(--color-surface);
    border-color: var(--color-border);
    opacity: 0.6;
    cursor: not-allowed;
}
