/* =========================================================
   Blog single
   assets/css/aoo/pages/single-post-rail.css
   ========================================================= */


/* =========================================================
   Hero
   ========================================================= */

:is(.single-post, .page-template-page-rail, .rail-single) .blog-hero {
  overflow: hidden;
  aspect-ratio: 16 / 6;
  max-height: 460px;
  margin: 0 auto 18px;
  padding: 0 18px;
  box-sizing: border-box;
}

:is(.single-post, .page-template-page-rail, .rail-single) .blog-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: var(--aoo-radius-xl, 24px);
}

/* Hero overlays uitschakelen */
:is(.single-post, .page-template-page-rail, .rail-single) .blog-hero::before,
:is(.single-post, .page-template-page-rail, .rail-single) .blog-hero::after,
.blog-hero .hotel-hero__overlay,
.blog-hero .aoo-homecard__overlay {
  content: none !important;
  display: none !important;
}


/* =========================================================
   Header / titel
   — .blog-header en .blog-title zitten in .hotel-shell
     (kind van <article>), niet in .hotel-rail-sticky
   ========================================================= */

.hotel-shell .blog-header {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 18px;
}

.hotel-shell .blog-title,
.hotel-shell .hotel-title,
.single-post .hotel-title,
.page-template-page-rail .hotel-title {
  max-width: 1120px;
  margin: 0;
  line-height: 1.12;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--aoo-text, #222);
}


/* =========================================================
   Snel overzicht box
   — .hotel-info-box zit in .hotel-rail-sticky
   ========================================================= */

.hotel-rail-sticky .blog-info-box,
.hotel-rail-sticky .hotel-info-box {
  background: var(--aoo-accent-beige-bg, #fff9f3);
  border: 1px solid var(--aoo-border, #e5e7eb);
  border-radius: var(--aoo-radius-xl, 24px);
  padding: 1.5rem;
  box-shadow: var(--aoo-shadow-sm, 0 4px 12px rgba(0, 0, 0, .08));
  margin: 1.5rem 0 2rem;
}

.hotel-rail-sticky .blog-info-box > *:first-child,
.hotel-rail-sticky .hotel-info-box > *:first-child {
  margin-top: 0;
}

.hotel-rail-sticky .blog-info-box > *:last-child,
.hotel-rail-sticky .hotel-info-box > *:last-child {
  margin-bottom: 0;
}

.hotel-rail-sticky .blog-info-title {
  margin: 0 0 1rem;
  font-size: var(--aoo-font-size-lg, 1.125rem);
  font-weight: 800;
}


/* =========================================================
   Rechter contentbox
   ========================================================= */

:is(.single-post, .page-template-page-rail) .hotel-content.blog-content {
  background: var(--aoo-accent-beige-bg, #fff9f3);
  border: 1px solid var(--aoo-border, #e5e7eb);
  border-radius: var(--aoo-radius-xl, 24px);
  padding: 1.75rem 2rem;
  box-shadow: var(--aoo-shadow-sm, 0 4px 12px rgba(0, 0, 0, .08));
  margin: 0 0 2rem;
}

:is(.single-post, .page-template-page-rail) .hotel-content.blog-content > *:first-child {
  margin-top: 0;
}

:is(.single-post, .page-template-page-rail) .hotel-content.blog-content > *:last-child {
  margin-bottom: 0;
}


/* =========================================================
   Meta pills / tags
   — zitten in .hotel-rail-sticky
   ========================================================= */

.hotel-rail-sticky .blog-meta-pills,
.hotel-rail-sticky .blog-tags,
.hotel-rail-sticky .blog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hotel-rail-sticky .blog-meta-pills {
  margin: 0 0 1rem;
}

.hotel-rail-sticky .blog-tags,
.hotel-rail-sticky .blog-pills {
  margin-top: 1rem;
}

.hotel-rail-sticky .blog-meta-pill,
.hotel-rail-sticky .blog-tag-pill,
.hotel-rail-sticky .blog-pills .hotel-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--aoo-border, #e5e7eb);
  background: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.hotel-rail-sticky .blog-tag-pill:hover {
  background: #fff;
}

.hotel-rail-sticky .blog-tag-pill:focus-visible {
  outline: 2px solid var(--aoo-border, #e5e7eb);
  outline-offset: 2px;
}


/* =========================================================
   Meta rows
   ========================================================= */

.hotel-rail-sticky .blog-meta-rows {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.hotel-rail-sticky .blog-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.hotel-rail-sticky .blog-meta-label {
  opacity: .7;
}

.hotel-rail-sticky .blog-meta-value {
  opacity: .95;
  text-align: right;
  white-space: nowrap;
}


/* =========================================================
   Mobiel
   ========================================================= */

@media (max-width: 680px) {

  :is(.single-post, .page-template-page-rail, .rail-single) .blog-hero {
    aspect-ratio: 4 / 3;
    min-height: 240px;
    max-height: none;
    padding: 0 12px;
  }

  :is(.single-post, .page-template-page-rail, .rail-single) .blog-hero img {
    object-position: 55% 30%;
  }

  .hotel-shell .blog-header {
    margin-bottom: 1.25rem;
    padding: 0 12px;
  }

  .hotel-shell .blog-title,
  .hotel-shell .hotel-title,
  .single-post .hotel-title,
  .page-template-page-rail .hotel-title {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  :is(.single-post, .page-template-page-rail) .hotel-content.blog-content,
  .hotel-rail-sticky .blog-info-box,
  .hotel-rail-sticky .hotel-info-box {
    padding: 1.25rem;
    border-radius: 18px;
  }

}