/* ── Base Detail Page ─────────────────────────────────────── */
.breadcrumb-bar { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

.base-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-2xl);
  padding: var(--sp-2xl) 0 var(--sp-4xl);
}

/* Gallery */
.gallery { border-radius: var(--r-xl); overflow: hidden; margin-bottom: var(--sp-2xl); }
.gallery-main {
  min-height: 400px;
  max-height: 600px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: auto; max-height: 600px; object-fit: contain; display: block; }
.gallery-placeholder { display: flex; align-items: center; justify-content: center; min-height: 400px; font-size: 72px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 8px; background: var(--bg-card); border-top: 1px solid var(--border); overflow-x: auto; }
.gallery-thumb { width: 80px; height: 60px; border-radius: var(--r-md); overflow: hidden; cursor: pointer; flex-shrink: 0; opacity: .7; transition: opacity .2s; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; outline: 2px solid var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-premium-notice { font-size: 13px; color: var(--text-muted); background: var(--bg-card); padding: 6px 12px; margin: 0; border-top: 1px solid var(--border); text-align: center; }

/* Base header */
.base-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-xl); margin-bottom: var(--sp-2xl); flex-wrap: wrap; }
.base-name { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--text-primary); letter-spacing: -0.5px; }
.base-rating-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.base-rating-num { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--text-primary); }
.base-header-right { display: flex; gap: 8px; flex-wrap: wrap; }

/* Sections */
.base-section { margin-bottom: var(--sp-3xl); }
.base-section-title { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: var(--sp-lg); border-bottom: 2px solid var(--primary-light); padding-bottom: var(--sp-sm); }
.base-description { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }

/* Features */
.features-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-full); font-size: 13px; font-weight: 500; color: var(--text-secondary); }

/* Reviews */
.reviews-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-lg); }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-lg); margin-bottom: var(--sp-md); }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-md); margin-bottom: var(--sp-md); }
.reviewer-info { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; }
.reviewer-name { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--text-primary); }
.review-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review-photo-thumb { width: 100px; height: 100px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--border); cursor: pointer; transition: transform .2s; }
.review-photo-thumb:hover { transform: scale(1.05); }
.review-reply { background: var(--bg-surface); border-left: 3px solid var(--primary); padding: 10px 14px; border-radius: 0 var(--r-md) var(--r-md) 0; margin-top: 12px; }
.review-reply-label { font-family: var(--font-heading); font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.review-reply-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.review-delete-btn { background: none; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 4px; border-radius: var(--r-sm); transition: color .2s, background .2s; }
.review-delete-btn:hover { color: var(--error); background: var(--error-light); }

/* Sidebar */
.base-sidebar { display: flex; flex-direction: column; gap: var(--sp-lg); }
.sidebar-map-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); position: relative; }
#base-mini-map { height: 220px; }
.sidebar-map-link { position: absolute; bottom: 4px; right: 8px; }
.yandex-terms-sm { font-size: 10px; color: rgba(0,0,0,.45); text-decoration: underline; }

/* Route button */
.route-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; font-size: 15px; font-weight: 600; border-radius: var(--r-lg); text-decoration: none; text-align: center; }

/* Info card */
.info-card { padding: 0; overflow: hidden; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 12px; }
.info-label { font-size: 13px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.info-val { font-size: 14px; font-weight: 600; color: var(--text-primary); text-align: right; }
.info-link { color: var(--primary); text-decoration: none; }
.info-link:hover { text-decoration: underline; }
.info-divider { height: 1px; background: var(--border); margin: 0 16px; }

/* Claim card */
.claim-card { background: var(--primary-light); border: 1px solid rgba(26,86,219,.15); border-radius: var(--r-lg); padding: var(--sp-xl); }
.claim-title { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.claim-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 960px) {
  .base-layout { grid-template-columns: 1fr; }
  .base-sidebar { order: -1; }
  #base-mini-map { height: 200px; }
  .gallery-main { min-height: 220px; max-height: 420px; }
  .gallery-main img { max-height: 420px; }
}
@media (max-width: 600px) {
  .base-header { flex-direction: column; }
  .base-header-right { width: 100%; }
  .base-name { font-size: 22px; }
}
