/* File: business-listings.css */

/* ───────────────────────────────────────────────────────────
   Base surface for Basic + Premium business listings
   ─────────────────────────────────────────────────────────── */

.ll-post-surface {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
}

.ll-post-surface.ll-basic {
  border-top: 4px solid #e2e8f0;
}

.ll-post-surface.ll-premium {
  border-top: 4px solid #0f766e;
}

/* Premium badge */

.ll-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ll-badge-premium {
  background: #0f766e;
  color: #ffffff;
}

/* ------------------------------------------------------------
   Shared grid
   ------------------------------------------------------------ */

.ll-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.ll-left-column,
.ll-right-column {
  min-width: 0;
}

/* Header: title + logo + rating */

.ll-left-column h1 {
  font-size: 3.4rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.12;
}

.business-logo {
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
  display: block;
  margin-left: auto;
}

/* Rating badge wrapper (Google rating) */

.ll-rating-badge,
.ll-microsite-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ───────────────────────────────────────────────────────────
   Description
   ─────────────────────────────────────────────────────────── */

.post-description {
  font-size: 1.5rem;
  line-height: 1.75;
}

.post-description p {
  margin-bottom: 1.5rem;
}

/* ───────────────────────────────────────────────────────────
   Quick info
   ─────────────────────────────────────────────────────────── */

.info-section {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.info-section p {
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

.info-section strong {
  font-weight: 700;
}

/* Enlarge ALL text inside the contact block */
.ll-basic-info-block {
  font-size: 1.4rem;
}

/* ───────────────────────────────────────────────────────────
   Map
   ─────────────────────────────────────────────────────────── */

.address-map-container {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.map-address {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  line-height: 1.4;
}

.address-map-container iframe,
.ll-microsite-map-container iframe {
  border-radius: 8px;
  border: 0;
  width: 100%;
}

/* ───────────────────────────────────────────────────────────
   ✅ Basic map layout tweaks (align + spacing)
   These fix:
   - Wide screens: contact + map top edges align
   - Small screens: blocks are closer together vertically
   ─────────────────────────────────────────────────────────── */

.ll-basic-map-wide {
  align-items: start;     /* ✅ lines up top edges on wide screens */
  margin-bottom: 1.25rem; /* ✅ reduce whitespace below this section */
}

/* Keep cards flush (prevents odd vertical offsets) */
.ll-basic-map-wide .info-section,
.ll-basic-map-wide .address-map-container {
  margin: 0;
}

/* ✅ Wide map section on larger screens:
   - Breaks out of the 1100px container width
   - Uses ~80% of viewport width
   - Gives the map most of the space
*/
@media (min-width: 1100px) {
  .ll-basic-map-wide {
    width: 80vw;
    max-width: 1600px;
    margin-left: calc(50% - 40vw);
    margin-right: calc(50% - 40vw);

    grid-template-columns: minmax(300px, 1fr) minmax(0, 3fr);
    align-items: start;
  }
}

/* Keep it sane for medium screens */
@media (min-width: 769px) and (max-width: 1099px) {
  .ll-basic-map-wide {
    grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.9fr);
    align-items: start;
  }
}

/* ✅ Smaller screens: bring the stacked blocks closer together */
@media (max-width: 768px) {
  .ll-basic-map-wide {
    gap: 0.75rem;         /* ✅ blocks closer vertically */
    margin-bottom: 0.75rem;
  }

  .ll-basic-map-wide .address-map-container {
    padding-top: 0.85rem; /* optional: makes map card feel less tall */
  }

  .ll-basic-map-wide .map-address {
    margin-bottom: 0.5rem;
  }
}

/* ───────────────────────────────────────────────────────────
   Admin controls wrapper
   ─────────────────────────────────────────────────────────── */

.ll-admin-controls {
  margin-bottom: 1rem;
}

/* ───────────────────────────────────────────────────────────
   Responsive tweaks (general)
   ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .ll-post-surface {
    padding: 1.5rem 1.25rem;
  }

  .ll-section-grid {
    grid-template-columns: 1fr;
  }

  .business-logo {
    margin: 1rem 0 0;
  }
}
