/* ============================================
   RestGuru — Listing Page Layout
   ============================================ */

/* ─── HERO ───────────────────────────────────── */
.listing-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 44px 24px;
}
.listing-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: start;
}
.listing-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.listing-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 900; letter-spacing: -0.02em;
  margin-bottom: 14px; line-height: 1.15;
  color: var(--text);
}
.listing-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.listing-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.875rem; color: var(--text-2); }
.listing-meta-item a { color: var(--accent); }
.listing-rating { display: flex; align-items: center; gap: 10px; }
.rating-number { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.rating-count { font-size: 0.8rem; color: var(--text-3); }

/* ─── CTA BOX ────────────────────────────────── */
.listing-cta-box {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px; min-width: 240px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
}
.cta-primary { width: 100%; justify-content: center; }
.cta-phone {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-md); color: var(--text-2);
  font-size: 0.875rem; font-weight: 500;
  transition: all var(--ease); text-align: center;
}
.cta-phone:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.cta-hours { font-size: 0.78rem; color: var(--text-3); text-align: center; line-height: 1.5; }

/* ─── BODY GRID ──────────────────────────────── */
.listing-body {
  max-width: var(--max-w); margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 36px; align-items: start;
}

/* ─── INFO CARD ──────────────────────────────── */
.info-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px; margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.info-card h2 {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--border);
}

/* ─── ABOUT TEXT ─────────────────────────────── */
.listing-about p {
  font-size: 0.95rem; color: var(--text-2); line-height: 1.85; margin-bottom: 14px;
}
.listing-about p:last-child { margin-bottom: 0; }
.listing-about strong { color: var(--text); }
.listing-about em { color: var(--text-2); }

/* ─── DETAILS TABLE ──────────────────────────── */
.details-table { width: 100%; }
.details-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--border); align-items: start;
}
.details-row:last-child { border-bottom: none; padding-bottom: 0; }
.details-label { font-size: 0.78rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.details-value { font-size: 0.9rem; color: var(--text-2); line-height: 1.5; }
.details-value a { color: var(--accent); }
.details-value a:hover { text-decoration: underline; }
.details-value strong { color: var(--text); }

/* ─── SIDEBAR ────────────────────────────────── */
.listing-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.sidebar-card h3 {
  font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

/* ─── MAP PLACEHOLDER ────────────────────────── */
.map-placeholder {
  background: var(--bg-warm); border: 1.5px solid var(--border);
  border-radius: var(--r-md); height: 160px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 7px; margin-bottom: 12px;
  cursor: pointer; text-decoration: none;
  transition: all var(--ease);
}
.map-placeholder:hover { border-color: var(--accent); background: var(--accent-light); }
.map-icon { font-size: 1.8rem; }
.map-label { font-size: 0.78rem; color: var(--text-3); }
.directions-btn { width: 100%; justify-content: center; }

/* ─── NEARBY LIST ────────────────────────────── */
.nearby-list { display: flex; flex-direction: column; gap: 8px; }
.nearby-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; background: var(--surface-2);
  border: 1.5px solid transparent; border-radius: var(--r-md);
  transition: all var(--ease); text-decoration: none; color: inherit;
}
.nearby-item:hover { background: var(--accent-light); border-color: rgba(181,113,26,0.25); }
.nearby-emoji { font-size: 1.2rem; flex-shrink: 0; }
.nearby-info { flex: 1; min-width: 0; }
.nearby-name { font-size: 0.84rem; font-weight: 600; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby-type { font-size: 0.72rem; color: var(--text-3); }

/* ─── MAP EMBED ──────────────────────────────── */
.map-embed-wrap {
  border-radius: var(--r-md); overflow: hidden;
  border: 1.5px solid var(--border); box-shadow: var(--shadow-xs);
}
.map-embed-wrap iframe { display: block; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .listing-hero-inner { grid-template-columns: 1fr; }
  .listing-cta-box { min-width: auto; }
  .listing-body { grid-template-columns: 1fr; }
  .listing-sidebar { position: static; }
}
@media (max-width: 600px) {
  .listing-hero { padding: 28px 24px; }
  .listing-body { padding: 24px 24px 48px; }
  .details-row { grid-template-columns: 90px 1fr; }
}
