/* =========================================================
   Olive & Ember — Additional components
   Places index filter, detail hero, comment thread, pagination.
   ========================================================= */

/* ---------- Page hero (thin) ---------- */
.oe-page-hero {
  padding: var(--oe-space-8) 0 var(--oe-space-6);
  background: var(--oe-warm-white);
  border-bottom: 1px solid var(--oe-border);
}
.oe-page-hero__eyebrow { color: var(--oe-gold-dark); }
.oe-page-hero h1 {
  font-size: var(--oe-fs-display);
  font-weight: 400;
  margin: 0.5rem 0 1rem;
}
.oe-page-hero h1 em { color: var(--oe-terracotta); font-style: italic; }
.oe-page-hero p { color: var(--oe-muted); max-width: 680px; }

/* ---------- Places index: sidebar + grid ---------- */
.oe-listing {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--oe-space-7);
  padding: var(--oe-space-7) 0;
}
@media (max-width: 980px) {
  .oe-listing { grid-template-columns: 1fr; }
  .oe-filter { position: static !important; }
}

.oe-filter {
  position: sticky;
  top: calc(var(--oe-header-height) + 1rem);
  align-self: start;
  background: var(--oe-warm-white);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-r-lg);
  padding: var(--oe-space-5);
}
.oe-filter h4 {
  font-family: var(--oe-font-sans);
  font-size: var(--oe-fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 var(--oe-space-3);
  color: var(--oe-muted);
  font-weight: 500;
}
.oe-filter + .oe-filter { margin-top: var(--oe-space-5); }
.oe-filter__group { margin-bottom: var(--oe-space-5); }
.oe-filter__group:last-child { margin-bottom: 0; }
.oe-filter select.oe-form-control { padding: 0.7rem 1rem; }
.oe-filter__radio-list { display: grid; gap: 0.5rem; }
.oe-filter__radio-list label { font-size: var(--oe-fs-sm); color: var(--oe-graphite); cursor: pointer; }

.oe-listing__main { min-width: 0; }
.oe-listing__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--oe-space-5);
  flex-wrap: wrap;
  gap: var(--oe-space-3);
}
.oe-listing__count { color: var(--oe-muted); font-size: var(--oe-fs-sm); }
.oe-listing__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--oe-fs-sm);
  color: var(--oe-muted);
}
.oe-listing__sort select {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--oe-border);
  background: var(--oe-warm-white);
  border-radius: 999px;
  font-family: var(--oe-font-sans);
  font-size: var(--oe-fs-sm);
}

/* ---------- Empty state ---------- */
.oe-empty {
  padding: var(--oe-space-7);
  text-align: center;
  border: 1px dashed var(--oe-border);
  border-radius: var(--oe-r-lg);
  background: var(--oe-warm-white);
  color: var(--oe-muted);
}
.oe-empty h3 { color: var(--oe-charcoal); font-weight: 400; }

/* ---------- Pagination ---------- */
.oe-pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: var(--oe-space-7) 0 var(--oe-space-3);
}
.oe-pagination a, .oe-pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--oe-border);
  background: var(--oe-warm-white);
  color: var(--oe-charcoal);
  font-size: var(--oe-fs-sm);
  transition: all var(--oe-t);
}
.oe-pagination a:hover {
  border-color: var(--oe-charcoal);
  background: var(--oe-charcoal);
  color: var(--oe-warm-white);
}
.oe-pagination .is-current {
  border-color: var(--oe-charcoal);
  background: var(--oe-charcoal);
  color: var(--oe-warm-white);
}
.oe-pagination .is-disabled {
  color: var(--oe-muted-soft);
  cursor: not-allowed;
}

/* ---------- Place detail ---------- */
.oe-detail-cover {
  position: relative;
  height: clamp(320px, 55vh, 560px);
  overflow: hidden;
}
.oe-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oe-detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31,27,22,0) 40%, rgba(31,27,22,0.55));
}

.oe-detail-header {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding: var(--oe-space-7) 0 0;
}
.oe-detail-header__card {
  background: var(--oe-warm-white);
  border-radius: var(--oe-r-lg);
  padding: var(--oe-space-7);
  box-shadow: var(--oe-shadow-lg);
}
.oe-detail-header h1 {
  font-size: var(--oe-fs-display);
  font-weight: 400;
  margin: 0.5rem 0 0.75rem;
}
.oe-detail-header h1 em { color: var(--oe-terracotta); font-style: italic; }
.oe-detail-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--oe-space-3) var(--oe-space-5);
  color: var(--oe-muted);
  font-size: var(--oe-fs-sm);
  align-items: center;
}
.oe-detail-header__meta .oe-rating { color: var(--oe-gold-dark); font-size: var(--oe-fs-body); }

.oe-detail-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--oe-space-7);
  padding: var(--oe-space-7) 0 var(--oe-space-8);
}
@media (max-width: 900px) {
  .oe-detail-body { grid-template-columns: 1fr; }
}

.oe-detail-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--oe-graphite);
}
.oe-detail-content h2, .oe-detail-content h3 { margin-top: var(--oe-space-6); }
.oe-detail-content img { border-radius: var(--oe-r-md); margin: var(--oe-space-4) 0; }
.oe-detail-content blockquote {
  border-left: 2px solid var(--oe-gold);
  padding-left: var(--oe-space-4);
  font-family: var(--oe-font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--oe-charcoal);
  margin: var(--oe-space-5) 0;
}

.oe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--oe-space-3);
  margin: var(--oe-space-6) 0;
}
.oe-gallery img {
  aspect-ratio: 4/3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--oe-r-md);
  cursor: pointer;
  transition: transform var(--oe-t);
}
.oe-gallery img:hover { transform: scale(1.02); }

.oe-side-card {
  background: var(--oe-warm-white);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-r-lg);
  padding: var(--oe-space-6);
  position: sticky;
  top: calc(var(--oe-header-height) + 1rem);
}
.oe-side-card h4 {
  font-family: var(--oe-font-sans);
  font-size: var(--oe-fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oe-muted);
  font-weight: 500;
}
.oe-side-card__addr {
  font-size: var(--oe-fs-sm);
  color: var(--oe-graphite);
  line-height: 1.6;
  margin-bottom: var(--oe-space-4);
}
.oe-side-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--oe-space-5);
}

/* ---------- Favorite button ---------- */
.oe-fav-btn {
  border: 1px solid var(--oe-border);
  background: var(--oe-warm-white);
  color: var(--oe-charcoal);
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-family: var(--oe-font-sans);
  font-size: var(--oe-fs-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--oe-t);
}
.oe-fav-btn:hover { border-color: var(--oe-terracotta); color: var(--oe-terracotta); }
.oe-fav-btn.is-active { background: var(--oe-terracotta); color: var(--oe-warm-white); border-color: var(--oe-terracotta); }
.oe-fav-btn::before { content: "♡"; font-size: 1.1em; }
.oe-fav-btn.is-active::before { content: "♥"; }

/* ---------- Rating widget ---------- */
.oe-rating-widget { margin: var(--oe-space-5) 0; }
.oe-stars {
  display: inline-flex;
  gap: 0.2rem;
  direction: rtl;
  font-size: 1.6rem;
  color: var(--oe-border);
  cursor: pointer;
}
.oe-stars input { display: none; }
.oe-stars label { transition: color var(--oe-t-fast); }
.oe-stars label::before { content: "★"; }
.oe-stars label:hover,
.oe-stars label:hover ~ label,
.oe-stars input:checked ~ label { color: var(--oe-gold); }
.oe-stars.readonly { cursor: default; pointer-events: none; }

/* ---------- Comments ---------- */
.oe-comments { margin-top: var(--oe-space-7); }
.oe-comments h3 {
  font-size: var(--oe-fs-h2);
  font-weight: 400;
}
.oe-comment-form {
  background: var(--oe-warm-white);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-r-lg);
  padding: var(--oe-space-5);
  margin-bottom: var(--oe-space-6);
}
.oe-comment {
  padding: var(--oe-space-5) 0;
  border-bottom: 1px solid var(--oe-border-soft);
  display: flex;
  gap: var(--oe-space-4);
}
.oe-comment__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--oe-border-soft);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--oe-font-serif);
  color: var(--oe-muted);
  font-size: 1.2rem;
}
.oe-comment__avatar img { width:100%; height:100%; object-fit: cover; }
.oe-comment__body { flex: 1; min-width: 0; }
.oe-comment__head {
  display: flex;
  align-items: center;
  gap: var(--oe-space-3);
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}
.oe-comment__name { font-weight: 500; color: var(--oe-charcoal); }
.oe-comment__date { color: var(--oe-muted); font-size: var(--oe-fs-xs); letter-spacing: 0.05em; }
.oe-comment__content { color: var(--oe-graphite); margin: 0; }
.oe-comment__actions {
  margin-top: 0.5rem;
  font-size: var(--oe-fs-xs);
}
.oe-comment__actions button, .oe-comment__actions a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--oe-muted);
  cursor: pointer;
  letter-spacing: 0.05em;
}
.oe-comment__actions button:hover, .oe-comment__actions a:hover { color: var(--oe-terracotta); }
.oe-comment__replies { margin-left: var(--oe-space-6); margin-top: var(--oe-space-3); border-left: 2px solid var(--oe-border-soft); padding-left: var(--oe-space-4); }

/* ---------- Featured post (magazine) ---------- */
.oe-feature-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--oe-space-7);
  align-items: center;
  padding: var(--oe-space-7);
  background: var(--oe-warm-white);
  border-radius: var(--oe-r-lg);
  border: 1px solid var(--oe-border-soft);
  margin-bottom: var(--oe-space-7);
}
@media (max-width: 900px) { .oe-feature-post { grid-template-columns: 1fr; } }
.oe-feature-post__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--oe-r-md);
}
.oe-feature-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--oe-t-slow); }
.oe-feature-post:hover img { transform: scale(1.03); }
.oe-feature-post h2 {
  font-size: var(--oe-fs-h1);
  font-weight: 400;
  margin: 0.5rem 0 1rem;
}
.oe-feature-post h2 em { color: var(--oe-terracotta); font-style: italic; }

/* ---------- Article (blog detail) ---------- */
.oe-article {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--oe-space-7) 0;
}
.oe-article__header { text-align: center; margin-bottom: var(--oe-space-6); }
.oe-article__header h1 {
  font-size: var(--oe-fs-hero);
  font-weight: 400;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}
.oe-article__header h1 em { color: var(--oe-terracotta); font-style: italic; }
.oe-article__meta {
  color: var(--oe-muted);
  font-size: var(--oe-fs-sm);
  display: flex;
  justify-content: center;
  gap: var(--oe-space-3) var(--oe-space-5);
  flex-wrap: wrap;
}
.oe-article__cover {
  aspect-ratio: 16/9;
  border-radius: var(--oe-r-lg);
  overflow: hidden;
  margin: var(--oe-space-6) 0;
}
.oe-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.oe-article__body {
  font-family: var(--oe-font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--oe-graphite);
}
.oe-article__body p { margin-bottom: var(--oe-space-5); }
.oe-article__body h2 {
  font-family: var(--oe-font-serif);
  font-size: 1.75rem;
  margin-top: var(--oe-space-7);
  color: var(--oe-charcoal);
}
.oe-article__body blockquote {
  border-left: 2px solid var(--oe-gold);
  padding-left: var(--oe-space-5);
  font-style: italic;
  color: var(--oe-charcoal);
  margin: var(--oe-space-6) 0;
}
.oe-article__body img {
  width: 100%;
  border-radius: var(--oe-r-md);
  margin: var(--oe-space-5) 0;
}
.oe-article__tags {
  margin-top: var(--oe-space-6);
  padding-top: var(--oe-space-5);
  border-top: 1px solid var(--oe-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.oe-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--oe-warm-white);
  border: 1px solid var(--oe-border);
  border-radius: 999px;
  font-size: var(--oe-fs-xs);
  color: var(--oe-muted);
  letter-spacing: 0.05em;
}

/* ---------- Breadcrumb ---------- */
.oe-breadcrumb {
  font-size: var(--oe-fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oe-muted);
  margin-bottom: var(--oe-space-3);
}
.oe-breadcrumb a { color: var(--oe-muted); }
.oe-breadcrumb a:hover { color: var(--oe-charcoal); }
.oe-breadcrumb span { margin: 0 0.5rem; color: var(--oe-muted-soft); }
