/**
 * Tekil ilan detay — logo, derinlik, marka tutarlılığı
 */

.eg-site--detail {
  background: var(--eg-surface-muted, #faf8f5);
  background-image: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(26, 122, 109, 0.06), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(107, 91, 149, 0.05), transparent);
}

.eg-detail-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.eg-detail {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 2px 4px rgba(20, 92, 82, 0.04),
    0 16px 48px rgba(26, 122, 109, 0.1),
    0 32px 64px rgba(30, 41, 59, 0.08);
}

/* Üst şerit: logo + breadcrumb + aksiyonlar */
.eg-detail__titlebar {
  display: block;
  background: linear-gradient(135deg, #145c52 0%, #1a7a6d 45%, #2a9d8f 85%, #3d8b7a 100%);
  color: #fff;
  padding: 0;
  margin: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.eg-detail__titlebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8685a 0%, #f0c987 35%, #fff 50%, #fcd4cc 100%);
  opacity: 0.9;
}

.eg-detail__ilan-no {
  margin: 0 0 6px;
  font-size: 13px;
  opacity: 0.92;
  letter-spacing: 0.02em;
}

.eg-detail__ilan-no-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
}

.eg-detail__ilan-no-value.is-copied {
  border-bottom-color: #fcd4cc;
}

.eg-detail__titlebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.eg-detail__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.eg-detail__logo .eg-logo {
  display: block;
  padding: 4px 8px 4px 2px;
  margin: -4px -8px -4px -2px;
  border-radius: 10px;
  transition: background 0.2s;
}

.eg-detail__logo .eg-logo:hover {
  background: rgba(255, 255, 255, 0.12);
}

.eg-detail__logo .eg-logo__svg {
  height: 40px;
  width: auto;
  max-width: 200px;
}

.eg-breadcrumb--on-dark {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.eg-breadcrumb--on-dark a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.eg-breadcrumb--on-dark a:hover {
  color: #fff;
  text-decoration: underline;
}

.eg-breadcrumb--on-dark .eg-breadcrumb__sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.45);
}

.eg-breadcrumb--on-dark .eg-breadcrumb__current {
  color: #fff;
  font-weight: 700;
}

.eg-detail__titlebar-main {
  padding: 18px 24px 22px;
}

.eg-detail__title {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

.eg-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eg-detail__chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.eg-detail__title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.eg-detail__title-actions .eg-share-actions a,
.eg-detail__title-actions .eg-detail__fav,
.eg-detail__title-actions .eg-compare-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.eg-detail__title-actions .eg-share-actions a:hover,
.eg-detail__title-actions .eg-detail__fav:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* 3 sütun hero */
.eg-detail__hero--3col {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 1fr) minmax(220px, 280px);
  gap: 0;
  border: none;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04);
}

.eg-detail__gallery-col,
.eg-detail__specs-col,
.eg-detail__seller-col {
  padding: 22px;
  border-right: 1px solid var(--eg-border, #e8e4dc);
}

.eg-detail__gallery-col {
  background: linear-gradient(180deg, #fafcfb 0%, #fff 100%);
}

.eg-detail__specs-col {
  background: linear-gradient(180deg, #f6faf9 0%, #fafafa 100%);
}

.eg-detail__seller-col {
  border-right: none;
  background: #fff;
}

.eg-detail__price--inline {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--eg-brand, #1a7a6d);
  letter-spacing: -0.02em;
}

.eg-detail__location--inline {
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--eg-text-muted, #64748b);
}

.eg-detail__location--inline .dashicons {
  color: var(--eg-brand-mid, #22897a);
}

.eg-spec-table--zebra {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e0ebe8;
  box-shadow: 0 4px 16px rgba(26, 122, 109, 0.06);
  background: #fff;
}

.eg-spec-table--zebra th,
.eg-spec-table--zebra td {
  padding: 11px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid #eef4f2;
}

.eg-spec-table--zebra th {
  font-weight: 700;
  color: #475569;
  text-align: left;
  width: 42%;
  background: #f8fcfb;
}

.eg-spec-table--zebra td.is-highlight {
  font-weight: 800;
  color: var(--eg-brand, #1a7a6d);
}

.eg-spec-table--zebra tbody tr:nth-child(even) td {
  background: #fafcfb;
}

.eg-spec-table--zebra tbody tr:last-child th,
.eg-spec-table--zebra tbody tr:last-child td {
  border-bottom: none;
}

/* Satıcı kutusu */
.eg-detail__seller {
  padding: 20px;
  border-radius: 16px;
  border: 2px solid var(--eg-border-accent, #d4ebe7);
  background: linear-gradient(165deg, #fff 0%, #f8fcfb 100%);
  box-shadow:
    0 2px 8px rgba(26, 122, 109, 0.06),
    0 12px 28px rgba(30, 41, 59, 0.06);
}

.eg-detail__seller h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eg-brand, #1a7a6d);
}

.eg-detail__seller-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--eg-text, #1e293b);
  margin: 0 0 12px;
}

.eg-detail__seller .eg-btn--primary {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(26, 122, 109, 0.25);
}

.eg-safety-tip {
  margin-top: 14px;
  padding: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  background: rgba(232, 104, 90, 0.08);
  border-radius: 10px;
  border-left: 3px solid var(--eg-accent, #e8685a);
  color: #64748b;
}

/* Alt bölümler */
.eg-detail__description,
.eg-detail__contact,
.eg-detail__equipment,
.eg-detail__damage,
.eg-detail__video,
.eg-detail__similar,
.eg-detail__report {
  margin: 0;
  padding: 28px 24px;
  border-top: 1px solid var(--eg-border, #e8e4dc);
}

.eg-detail__section-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--eg-border-accent, #d4ebe7);
}

.eg-detail__section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--eg-brand, #1a7a6d);
  letter-spacing: -0.02em;
}

.eg-detail__description-body {
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--eg-surface-muted, #faf8f5);
  border: 1px solid var(--eg-border, #e8e4dc);
  line-height: 1.65;
  font-size: 0.95rem;
}

.eg-detail__tabs {
  margin: 0;
  padding: 0 24px;
  border-top: 1px solid var(--eg-border, #e8e4dc);
  background: #f8fcfb;
  gap: 4px;
}

.eg-detail__tab {
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 0.85rem;
}

.eg-detail__tab.is-active {
  background: #fff;
  color: var(--eg-brand, #1a7a6d);
  box-shadow: 0 -2px 0 var(--eg-brand, #1a7a6d);
}

.eg-detail__tab-panels {
  margin: 0;
  padding: 24px;
  border-top: none;
  background: #fff;
}

.eg-map-box {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--eg-border-accent, #d4ebe7);
  box-shadow: 0 8px 24px rgba(26, 122, 109, 0.08);
}

@media (max-width: 1024px) {
  .eg-detail__hero--3col {
    grid-template-columns: 1fr 1fr;
  }

  .eg-detail__seller-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .eg-detail__hero--3col {
    grid-template-columns: 1fr;
  }

  .eg-detail__gallery-col,
  .eg-detail__specs-col,
  .eg-detail__seller-col {
    border-right: none;
    border-bottom: 1px solid var(--eg-border, #e8e4dc);
  }

  .eg-detail__titlebar-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .eg-detail__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .eg-detail__title-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
