/* ============================================================
   VELORA — Araç detay sayfası
   ============================================================ */

/* Kompakt breadcrumb hero */
.page-car .page-hero { padding: clamp(40px, 5vw, 66px) 0 clamp(32px, 4vw, 50px); }
.page-car .page-hero h1 { font-size: clamp(30px, 3.6vw, 46px); }
.page-car .page-hero-sub { margin-top: 10px; font-size: 15.5px; letter-spacing: .02em; }

/* ---------- Ana yerleşim ---------- */
.car-detail { padding-top: clamp(40px, 5vw, 64px); }
.car-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(28px, 3.4vw, 48px); align-items: start;
}
@media (max-width: 1080px) {
  /* minmax(0,…) şart: düz "1fr" min-width:auto olduğundan Swiper galeriyi
     ölçerken kolonu sonsuz büyütüp sayfayı yatay taşırıyordu. */
  .car-layout { grid-template-columns: minmax(0, 1fr); }
  .car-aside { position: static; }
}
.car-layout > * { min-width: 0; }
.car-gallery-wrap, .car-gallery, .car-thumbs { max-width: 100%; min-width: 0; }

/* ---------- Galeri ---------- */
.car-gallery-wrap { position: relative; }
.car-gallery-badge { position: absolute; top: 18px; left: 18px; z-index: 20; box-shadow: var(--shadow-gold); }
.car-gallery {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2);
  border: 1px solid rgba(201, 169, 106, .38); box-shadow: var(--shadow-md);
  position: relative;
}
.car-gallery::after {
  content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.car-gallery .swiper-slide { aspect-ratio: 16 / 10; }
.car-gallery .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.car-gallery .swiper-pagination { bottom: 14px; }

.car-thumbs { margin-top: 12px; }
.car-thumbs .swiper-slide {
  aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  border: 2px solid transparent; opacity: .5; background: var(--ink-2);
  transition: opacity .25s, border-color .25s, transform .25s var(--ease);
}
.car-thumbs .swiper-slide:hover { opacity: .85; }
.car-thumbs .swiper-slide-thumb-active { border-color: var(--gold); opacity: 1; }
.car-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bölüm başlıkları ---------- */
.car-sec { margin-top: clamp(38px, 4.4vw, 56px); }
.car-sec-h {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: clamp(21px, 2.2vw, 26px);
}
.car-sec-h i { font-size: 27px; color: var(--gold-dark); flex-shrink: 0; }
.car-sec-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 169, 106, .45), transparent); }

/* ---------- Teknik özellik kutucukları ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.spec-tile:hover { transform: translateY(-4px); border-color: rgba(201, 169, 106, .6); box-shadow: var(--shadow-md); }
.spec-tile i {
  /* Duotone ikonlar iki katmandır (::before + ::after, -1em ile bindirilir);
     grid katmanları ayrı hücrelere böldüğünden flex ile ortalanır. */
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 23px;
  color: var(--gold-dark); background: rgba(201, 169, 106, .13); border: 1px solid rgba(201, 169, 106, .4);
}
.spec-tile b { font-size: 15px; line-height: 1.35; color: var(--ink); }
.spec-tile span { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* ---------- Açıklama ---------- */
.car-desc .car-lead {
  font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 20.5px);
  line-height: 1.65; color: var(--ink);
}
.car-desc p { color: var(--muted); font-size: 15.5px; }

/* ---------- Donanım çipleri ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-chip {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.feature-chip:hover { border-color: rgba(201, 169, 106, .55); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature-chip i { font-size: 21px; color: var(--gold-dark); flex-shrink: 0; }

/* ---------- Kiralama koşulları ---------- */
.terms-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 24px 20px; box-shadow: var(--shadow-sm);
}
.term-row {
  display: flex; align-items: center; gap: 15px; padding: 16px 0;
  border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.term-row i {
  /* Duotone ikon katmanları grid'de ayrı hücrelere düşer; flex ile ortalanır. */
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 21px;
  color: var(--gold-dark); background: rgba(201, 169, 106, .12); border: 1px solid rgba(201, 169, 106, .35);
  flex-shrink: 0;
}
.term-row span { color: var(--muted); font-weight: 600; }
.term-row b { margin-left: auto; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.term-note {
  display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; padding: 14px 16px;
  background: rgba(201, 169, 106, .09); border: 1px dashed rgba(201, 169, 106, .45);
  border-radius: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.6;
}
.term-note i { font-size: 20px; color: var(--gold-dark); margin-top: 1px; flex-shrink: 0; }

/* ---------- Paylaşım ---------- */
.share-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: clamp(32px, 3.6vw, 46px); padding-top: 24px; border-top: 1px solid var(--line);
}
.share-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); margin-right: 4px; }
.share-label i { font-size: 20px; color: var(--gold-dark); }
.share-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  transition: all .25s var(--ease);
}
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.share-btn.wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-btn.tw:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.share-btn.fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }

/* ---------- Yapışkan rezervasyon kartı ---------- */
.car-aside { position: sticky; top: calc(var(--nav-h) + 22px); }
.car-book {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.4vw, 30px);
  box-shadow: var(--shadow-lg), 0 0 64px rgba(201, 169, 106, .16);
}
.car-book > * { position: relative; z-index: 2; }

.cb-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line-d); }
.cb-label {
  margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.cb-price { display: flex; align-items: baseline; gap: 9px; }
.cb-price b { font-family: var(--font-display); font-size: clamp(34px, 3vw, 40px); font-weight: 700; color: var(--gold-2); line-height: 1.1; }
.cb-price small { font-size: 13.5px; font-weight: 600; color: var(--muted-2); }

.rate-tiers { border: 1px dashed rgba(201, 169, 106, .4); border-radius: 12px; overflow: hidden; }
.rate-tier { display: flex; align-items: center; gap: 9px; padding: 10px 14px; font-size: 13px; color: var(--muted-2); }
.rate-tier + .rate-tier { border-top: 1px dashed rgba(201, 169, 106, .25); }
.rate-tier i { font-size: 17px; color: var(--gold); flex-shrink: 0; }
.rate-tier span { font-weight: 700; }
.rate-tier b { margin-left: auto; color: var(--bone); font-size: 13.5px; white-space: nowrap; }
.rate-tier em {
  font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  background: rgba(46, 158, 107, .18); color: #6fd6a8; border: 1px solid rgba(46, 158, 107, .35);
  padding: 3px 8px; border-radius: 999px;
}

.cb-fields { display: flex; flex-direction: column; gap: 14px; }
/* minmax(0,…): input min-content'i dar ekranda sütunu taşıramaz */
.cb-dt { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.cb-dt > .input { min-width: 0; }

.cb-summary {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px;
}
.cb-summary .row { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); }
.cb-summary .row b { color: var(--bone); font-weight: 700; }
.cb-summary .row.total { border-top: 1px dashed var(--line-d); padding-top: 10px; margin-top: 2px; }
.cb-summary .row.total b { color: var(--gold-2); font-family: var(--font-display); font-size: 21px; }

.avail-chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: 13px;
}
.avail-chip i { font-size: 17px; }
.avail-chip.ok { background: rgba(46, 158, 107, .16); color: #6fd6a8; border: 1px solid rgba(46, 158, 107, .4); }
.avail-chip.no { background: rgba(214, 69, 69, .15); color: #ff9b9b; border: 1px solid rgba(214, 69, 69, .4); }
.avail-note { margin: -6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted-2); }
.avail-note a { color: var(--gold-2); text-decoration: underline; }
.avail-note a:hover { color: var(--gold); }

.car-book .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; box-shadow: none; }

.trust-row { display: flex; gap: 8px; padding-top: 4px; }
.trust-row span {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: 10.8px; font-weight: 700; letter-spacing: .03em; color: var(--muted-2); line-height: 1.35;
}
.trust-row i { font-size: 21px; color: var(--gold); }

/* ---------- Tam genişlik rezervasyon bandı ---------- */
.car-cta-band { padding: clamp(52px, 6vw, 84px) 0; }
.car-cta-band .section-head { margin-bottom: clamp(26px, 3vw, 40px); }
.car-cta-band .booking-widget { border-color: rgba(201, 169, 106, .4); }

/* ---------- Alt rezervasyon bandı (form yerine çağrı) ---------- */
.band-cta { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.band-cta .btn { box-shadow: 0 16px 44px rgba(201, 169, 106, .38); }
.band-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
  font-size: 13.5px; font-weight: 600; color: rgba(246, 244, 239, .8);
}
.band-trust span { display: inline-flex; align-items: center; gap: 8px; }
.band-trust i { color: var(--gold-2); font-size: 18px; }
@media (max-width: 560px) {
  .band-cta .btn { width: 100%; }
  .band-trust { gap: 10px 20px; font-size: 12.5px; }
}
