/* ── ACS Car Finder Styles ── */
:root {
  --acs-blue:       #1E3A5F;
  --acs-accent:     #E63946;
  --acs-light-blue: #E8F4FD;
  --acs-text:       #1A1A2E;
  --acs-gray:       #6B7280;
  --acs-border:     #E5E7EB;
  --acs-bg:         #F8FAFC;
  --acs-white:      #FFFFFF;
  --acs-green:      #059669;
  --acs-light-gray: #F3F4F6;
  --acs-yellow:     #F59E0B;
}

.acs-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; color: var(--acs-text); }

/* ── FILTERS ── */
.acs-filters {
  background: var(--acs-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  margin-bottom: 24px;
}
.acs-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.acs-filter-item label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--acs-gray);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 5px;
}
.acs-filter-item select,
.acs-filter-item input[type="number"] {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--acs-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--acs-text);
  background: var(--acs-white);
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  box-sizing: border-box;
}
.acs-filter-item input[type="number"] {
  background-image: none;
  padding-right: 12px;
}
.acs-filter-item select:focus,
.acs-filter-item input:focus {
  outline: none;
  border-color: var(--acs-blue);
}
.acs-filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.acs-btn-primary {
  background: var(--acs-accent);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.acs-btn-primary:hover { background: #c0392b; transform: translateY(-1px); }
.acs-btn-secondary {
  background: var(--acs-light-gray);
  color: var(--acs-text);
  border: none;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.acs-btn-secondary:hover { background: var(--acs-border); }

/* ── RESULTS HEADER ── */
.acs-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.acs-count { font-size: 15px; color: var(--acs-gray); }
.acs-count #acs-count-num { font-size: 22px; font-weight: 800; color: var(--acs-text); }
#acs-sort {
  padding: 8px 14px;
  border: 1px solid var(--acs-border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  background: var(--acs-white);
}

/* ── GRID ── */
.acs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

/* ── CAR CARD ── */
.acs-card {
  background: var(--acs-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.acs-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.acs-card-img {
  position: relative;
  height: 175px;
  background: linear-gradient(135deg, #EEF2F7, #E2E8F0);
  overflow: hidden;
}
.acs-card-img img { width: 100%; height: 100%; object-fit: cover; }
.acs-fuel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.acs-badge-hybrid   { background: #D1FAE5; color: #065F46; }
.acs-badge-electric { background: #DBEAFE; color: #1E40AF; }
.acs-badge-benzin   { background: #FEF3C7; color: #92400E; }
.acs-badge-dizel    { background: #F3F4F6; color: #374151; }
.acs-badge-lpg      { background: #EDE9FE; color: #5B21B6; }
.acs-badge-default  { background: #E5E7EB; color: #374151; }

.acs-card-body { padding: 16px; }
.acs-car-brand { font-size: 11px; font-weight: 700; color: var(--acs-gray); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.acs-car-name  { font-size: 16px; font-weight: 700; color: var(--acs-text); margin-bottom: 8px; line-height: 1.3; }
.acs-car-specs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.acs-spec      { font-size: 12px; color: var(--acs-gray); }
.acs-car-price { font-size: 20px; font-weight: 800; color: var(--acs-blue); margin-bottom: 12px; }
.acs-car-price small { font-size: 12px; font-weight: 500; color: var(--acs-gray); }
.acs-card-actions { display: flex; gap: 8px; }
.acs-btn-card-primary {
  flex: 1;
  background: var(--acs-blue);
  color: #fff;
  border: none;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.acs-btn-card-primary:hover { background: #2D4E7A; }
.acs-btn-card-secondary {
  background: var(--acs-light-gray);
  color: var(--acs-text);
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.acs-btn-card-secondary:hover { background: var(--acs-border); }

/* ── NO RESULTS ── */
.acs-no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 24px;
  color: var(--acs-gray);
  background: var(--acs-white);
  border-radius: 12px;
}
.acs-no-results .acs-no-icon { font-size: 48px; margin-bottom: 12px; }
.acs-no-results h3 { font-size: 20px; font-weight: 700; color: var(--acs-text); margin-bottom: 6px; }

/* ── SKELETON ── */
.acs-skeleton-wrap { display: contents; }
.acs-skeleton-card {
  background: var(--acs-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.acs-skel {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: acs-shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes acs-shimmer { from { background-position: 200% center; } to { background-position: -200% center; } }
.acs-skel-img { height: 175px; border-radius: 0; }
.acs-skel-body { padding: 16px; }
.acs-skel-line { height: 14px; margin-bottom: 10px; }
.acs-skel-short { width: 40%; }
.acs-skel-long  { width: 80%; height: 18px; }
.acs-skel-med   { width: 60%; }

/* ── MODAL ── */
.acs-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99999;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.acs-modal-overlay.acs-open { display: flex; align-items: flex-start; justify-content: center; }
.acs-modal {
  background: var(--acs-white);
  border-radius: 16px;
  width: 100%;
  max-width: 920px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  animation: acs-modal-in .25s ease;
  overflow: hidden;
}
@keyframes acs-modal-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.acs-modal-header {
  background: linear-gradient(135deg, var(--acs-blue), #2D5282);
  padding: 24px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.acs-modal-header h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px 0; }
.acs-modal-header p  { opacity: .8; font-size: 14px; margin: 0; }
.acs-modal-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.acs-modal-close:hover { background: rgba(255,255,255,.35); }
.acs-modal-body { padding: 24px; }
.acs-modal-price { font-size: 26px; font-weight: 800; color: var(--acs-blue); margin-bottom: 20px; }
.acs-modal-price small { font-size: 13px; color: var(--acs-gray); font-weight: 500; }

/* ── TABS ── */
.acs-tabs {
  display: flex;
  border-bottom: 2px solid var(--acs-border);
  margin-bottom: 24px;
  overflow-x: auto;
  gap: 0;
}
.acs-tab {
  padding: 11px 18px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--acs-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .2s;
}
.acs-tab.active { color: var(--acs-blue); border-bottom-color: var(--acs-accent); }
.acs-tab:hover  { color: var(--acs-text); }
.acs-tab-panel  { display: none; }
.acs-tab-panel.active { display: block; }

/* ── YOUTUBE GRID ── */
.acs-yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.acs-yt-card {
  background: var(--acs-light-gray);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--acs-border);
  cursor: pointer;
  transition: box-shadow .2s;
}
.acs-yt-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.acs-yt-thumb {
  position: relative;
  height: 140px;
  background: #1A1A2E;
  overflow: hidden;
}
.acs-yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.acs-yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  transition: background .2s;
}
.acs-yt-card:hover .acs-yt-play { background: rgba(0,0,0,.5); }
.acs-yt-play-btn {
  width: 46px;
  height: 46px;
  background: rgba(255,0,0,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.acs-yt-info { padding: 12px; }
.acs-yt-channel { font-size: 11px; font-weight: 700; color: var(--acs-accent); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.acs-yt-title   { font-size: 13px; font-weight: 600; color: var(--acs-text); line-height: 1.4; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acs-yt-views   { font-size: 12px; color: var(--acs-gray); }
.acs-loading    { color: var(--acs-gray); font-style: italic; padding: 20px 0; }

/* ── PRICE LINKS ── */
.acs-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.acs-price-link {
  background: var(--acs-light-gray);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--acs-border);
  text-decoration: none;
  color: var(--acs-text);
  transition: box-shadow .2s, transform .2s;
  display: block;
}
.acs-price-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-2px); }
.acs-price-link-icon { font-size: 26px; margin-bottom: 8px; }
.acs-price-link-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.acs-price-link-desc { font-size: 12px; color: var(--acs-gray); }

/* ── SAHIBINDEN ── */
.acs-sahibinden-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--acs-light-gray);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--acs-border);
  text-decoration: none;
  color: var(--acs-text);
  transition: box-shadow .2s;
}
.acs-sahibinden-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.acs-s-icon { font-size: 32px; flex-shrink: 0; }
.acs-s-info h4 { font-size: 14px; font-weight: 700; margin: 0 0 3px 0; }
.acs-s-info p  { font-size: 13px; color: var(--acs-gray); margin: 0; }
.acs-s-cta {
  text-align: center;
  margin-top: 14px;
}
.acs-s-cta a {
  color: var(--acs-blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.acs-s-cta a:hover { text-decoration: underline; }

/* ── SPECS TABLE ── */
.acs-specs-table { width: 100%; border-collapse: collapse; }
.acs-specs-table tr:nth-child(even) td { background: var(--acs-light-gray); }
.acs-specs-table td { padding: 9px 14px; font-size: 14px; border-bottom: 1px solid var(--acs-border); }
.acs-specs-table td:first-child { font-weight: 600; color: var(--acs-gray); width: 45%; }
.acs-specs-table td:last-child  { color: var(--acs-text); font-weight: 600; }

/* ── VIDEO EMBED OVERLAY ── */
.acs-video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.acs-video-overlay.acs-open { display: flex; }
.acs-video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16/9;
}
.acs-video-wrap iframe { width: 100%; height: 100%; border: none; border-radius: 8px; }
.acs-video-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 10px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .acs-filter-grid   { grid-template-columns: 1fr 1fr; }
  .acs-grid          { grid-template-columns: 1fr; }
  .acs-modal         { border-radius: 0; min-height: 100dvh; }
  .acs-modal-overlay { padding: 0; align-items: flex-start; }
  .acs-yt-grid       { grid-template-columns: 1fr; }
  .acs-price-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .acs-filter-grid { grid-template-columns: 1fr; }
  .acs-modal-header h2 { font-size: 18px; }
}
