/* ==========================================================================
   Listing page — full-bleed, cinematic detail
   ========================================================================== */

.listing-page {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

.lp {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding-bottom: 4rem;
  overflow: clip;
}

.lp-aurora {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(ellipse 50% 45% at 18% 30%, rgba(46, 196, 182, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 82% 20%, rgba(255, 122, 69, 0.18), transparent 65%),
    radial-gradient(ellipse 35% 30% at 55% 60%, rgba(74, 163, 200, 0.1), transparent 70%);
  filter: blur(8px);
  animation: lpAurora 14s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes lpAurora {
  from { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); opacity: 1; }
}

.lp-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem 0.35rem;
  max-width: 1240px;
  margin: 0 auto;
}
.lp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s;
}
.lp-back:hover {
  border-color: color-mix(in srgb, var(--teal) 50%, var(--line));
  color: var(--teal);
  transform: translateX(-2px);
}
.lp-crumb {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.lp-crumb strong { color: var(--ink); font-weight: 650; }

.lp-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 380px);
  gap: 1.35rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem 0;
  align-items: start;
}

.lp-gallery {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  animation: lpRise 0.75s var(--ease) both;
}
@keyframes lpRise {
  from { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}

.lp-gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg), var(--surface));
}
.lp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease), filter 0.5s;
  animation: lpKen 18s ease-in-out infinite alternate;
}
@keyframes lpKen {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.12) translate(-2%, -1%); }
}
.lp-gallery:hover .lp-gallery-main img {
  filter: saturate(1.08) contrast(1.03);
}
.lp-gallery-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: lpShine 5.5s var(--ease) 1.2s infinite;
}
@keyframes lpShine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.lp-thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem;
  overflow-x: auto;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.lp-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  border-radius: 0.65rem;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--bg);
  opacity: 0.72;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.lp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lp-thumb:hover { opacity: 1; transform: translateY(-2px); }
.lp-thumb.active {
  opacity: 1;
  border-color: var(--teal);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--teal) 40%, transparent);
}

.lp-badge-row {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 2;
}
.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  background: rgba(10, 16, 18, 0.55);
}
.lp-chip.boost {
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.85), rgba(232, 93, 40, 0.75));
}
.lp-chip.cond-new {
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.9), rgba(26, 158, 146, 0.8));
}
.lp-chip.cond-used {
  background: linear-gradient(135deg, rgba(74, 163, 200, 0.9), rgba(40, 110, 140, 0.8));
}

.lp-panel {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-width: 0;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, var(--teal)) 0%, var(--surface) 42%, var(--surface) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  animation: lpRise 0.85s var(--ease) 0.08s both;
  overflow: visible;
  max-height: calc(100vh - var(--header-h) - 1.5rem);
  overflow-y: auto;
}
.lp-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%);
}
.lp-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.lp-title {
  margin: 0;
  font-family: var(--myth);
  font-weight: 600;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 48, "WONK" 0.55, "opsz" 64;
}
.lp-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.lp-price-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  color: var(--citrus);
  text-shadow: 0 0 40px rgba(255, 122, 69, 0.35);
  animation: lpPulse 3.2s ease-in-out infinite;
}
@keyframes lpPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
.lp-price-cur {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}
.lp-price-old {
  margin-left: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: line-through;
  opacity: 0.8;
}
.lp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.65rem;
}
.lp-stat {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.lp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.lp-pill em {
  font-style: normal;
  color: var(--ink);
}

.lp-actions,
.lp-actions-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  min-width: 0;
}
.lp-actions .btn,
.lp-actions-primary .btn {
  min-height: 2.85rem;
  min-width: 0;
  width: 100%;
  border-radius: 0.9rem;
  font-weight: 750;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lp-actions .btn.primary,
.lp-actions-primary .btn.primary {
  box-shadow: 0 10px 28px rgba(255, 122, 69, 0.35);
}
.lp-actions .btn.primary::after,
.lp-actions-primary .btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease);
}
.lp-actions .btn.primary:hover::after,
.lp-actions-primary .btn.primary:hover::after { transform: translateX(130%); }
.lp-actions-sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  min-width: 0;
}
.lp-actions-sec .btn {
  min-height: 2.45rem;
  min-width: 0;
  width: 100%;
  font-size: 0.82rem;
  padding-inline: 0.5rem;
  border-color: color-mix(in srgb, var(--line) 70%, var(--teal));
  background: color-mix(in srgb, var(--bg-2) 88%, var(--surface));
}

.lp-seller {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
  text-align: left;
  width: 100%;
  max-width: 100%;
  color: inherit;
  font: inherit;
  min-width: 0;
}
.lp-seller:hover {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  transform: translateY(-1px);
}
.lp-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--citrus));
  box-shadow: 0 8px 20px rgba(46, 196, 182, 0.3);
  flex-shrink: 0;
}
.lp-seller-meta {
  min-width: 0;
  overflow: hidden;
}
.lp-seller strong {
  display: block;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-seller small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-seller-go {
  color: var(--teal);
  font-weight: 750;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Teklif listesi — .row kullanma (auto-fit kaydırır) */
.lp-offers {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.75rem 0.8rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  background: color-mix(in srgb, var(--bg-2) 75%, transparent);
}
.lp-offers[hidden] { display: none !important; }
.lp-offers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-offers-head em {
  font-style: normal;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.lp-offers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.lp-offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}
.lp-offer-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.lp-offer-info strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--citrus);
}
.lp-offer-status {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
}
.lp-offer-row.is-pending .lp-offer-status { color: var(--teal); }
.lp-offer-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  flex-shrink: 0;
}
.lp-offer-actions .btn {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.lp-body {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 1.35rem;
  align-items: start;
}

.lp-block {
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 1.15rem 1.25rem 1.3rem;
  animation: lpRise 0.8s var(--ease) both;
}
.lp-block + .lp-block { margin-top: 1rem; }
.lp-block h3 {
  margin: 0 0 0.75rem;
  font-family: var(--myth);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 36, "WONK" 0.35, "opsz" 32;
}
.lp-desc {
  margin: 0;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  font-size: 1.02rem;
}
.lp-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-facts li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.lp-facts span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.lp-facts strong {
  font-weight: 700;
  font-size: 0.95rem;
}

.lp-map {
  height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.lp-map .leaflet-control-attribution { font-size: 9px; }

.lp-safe {
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.lp-safe li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}
.lp-safe small { color: var(--muted); }

.lp-rail-wrap {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}
.lp-rail-wrap h3 {
  margin: 0 0 0.75rem;
  font-family: var(--myth);
  font-weight: 600;
  font-variation-settings: "SOFT" 36, "WONK" 0.35, "opsz" 32;
}
.lp .related-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 220px);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}
.lp .related-card {
  scroll-snap-align: start;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  display: grid;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.lp .related-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
.lp .related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.lp .related-card-body { padding: 0.65rem 0.75rem 0.35rem; display: grid; gap: 0.2rem; }
.lp .related-card-body strong {
  font-size: 0.88rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lp .related-card .price { color: var(--citrus); font-weight: 800; font-size: 0.95rem; }
.lp .related-cmp {
  margin: 0.35rem 0.65rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--teal);
  border-radius: 0.65rem;
  padding: 0.4rem;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.lp .peer-list {
  display: grid;
  gap: 0.45rem;
}
.lp .peer-list button {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.lp .peer-list button:hover {
  border-color: var(--teal);
  transform: translateX(3px);
}

.lp-loading {
  min-height: 50vh;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  color: var(--muted);
}
.lp-loading .lp-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--teal);
  animation: lpSpin 0.8s linear infinite;
}
@keyframes lpSpin { to { transform: rotate(360deg); } }

body.listing-open .compare-dock { bottom: 0.5rem; }
body.listing-open .site-footer { display: none; }
body.listing-open #view-listing { padding-bottom: 5.5rem; }
body.listing-open:has(.compare-dock.expanded) #view-listing { padding-bottom: 11rem; }

@media (max-width: 960px) {
  .lp-stage,
  .lp-body {
    grid-template-columns: 1fr;
  }
  .lp-panel {
    position: relative;
    top: auto;
  }
  .lp-gallery-main { aspect-ratio: 16 / 11; }
}

@media (max-width: 560px) {
  .lp-actions-primary,
  .lp-actions-sec {
    grid-template-columns: 1fr 1fr;
  }
  .lp-offer-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .lp-offer-actions {
    width: 100%;
  }
  .lp-offer-actions .btn {
    flex: 1;
  }
  .lp-top { flex-wrap: wrap; gap: 0.5rem; }
  .lp-title { font-size: clamp(1.35rem, 6vw, 1.75rem); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-aurora,
  .lp-gallery-main img,
  .lp-gallery-shine,
  .lp-price-num { animation: none !important; }
}

.lp-counter {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  min-width: 4.5rem;
  text-align: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  pointer-events: none;
}
