/*
 * The blog: its front page and posts. Uses the theme's colors (theme-airbnb.css).
 */

:root .page-blog-post,
:root .page-blog {
  --blog-text: min(720px, calc(100% - 2 * var(--nav-padding-x)));
  --blog-wide: min(1100px, calc(100vw - 2 * var(--nav-padding-x)));
}

:root .blog-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-red);
}

/* Full-width photos are 100vw, which includes any scrollbar */
:root .blog-post {
  overflow-x: clip;
}

/* ------------------------------------------------------------------ Post banner */

:root .blog-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(82vh, 820px);
  overflow: hidden;
  background: #111;
  color: #fff;
}

:root .blog-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: blog-hero-in 1.6s ease-out both;
}

@keyframes blog-hero-in {
  from { transform: scale(1.06); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

:root .blog-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.1) 75%);
}

:root .blog-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  padding: 0 var(--nav-padding-x) clamp(40px, 8vh, 80px);
}

:root .blog-hero__crumbs {
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

:root .blog-hero__crumbs a {
  color: #fff;
}

:root .blog-hero__crumbs span {
  margin: 0 4px;
  opacity: 0.6;
}

:root .blog-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.4vw, 66px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

:root .blog-hero__dek {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

:root .blog-hero__meta {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

:root .blog-hero__credit {
  position: absolute;
  right: var(--nav-padding-x);
  bottom: 14px;
  z-index: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

:root .blog-hero__credit a {
  color: inherit;
}

@media (max-width: 767px) {
  :root .blog-hero__credit {
    left: var(--nav-padding-x);
    right: auto;
  }

  :root .blog-hero__content {
    padding-bottom: 48px;
  }
}

/* ------------------------------------------------------------------ Post text */

:root .blog-article {
  width: var(--blog-text);
  margin: 0 auto;
  padding: 8px 0;
  font-size: 18px;
  line-height: 1.7;
  color: #2a2a2a;
}

:root .blog-article p {
  margin: 0 0 1.25em;
}

:root .blog-article a {
  color: var(--theme-text);
  text-decoration: underline;
  text-decoration-color: rgba(227, 28, 95, 0.5);
  text-underline-offset: 3px;
}

:root .blog-article a:hover {
  text-decoration-color: var(--theme-red);
}

:root .blog-lede {
  margin-top: 56px !important;
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.55;
  color: var(--theme-text);
}

:root .blog-section-title {
  margin: 72px 0 18px;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* A numbered spot: big number, name and where, and a heart and link */
:root .blog-spot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 18px;
  margin: 88px 0 24px;
  padding-top: 28px;
  border-top: 1px solid var(--theme-border-light);
}

:root .blog-spot__number {
  font-size: clamp(54px, 6vw, 76px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: var(--theme-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root .blog-spot h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

:root .blog-spot__where {
  margin: 4px 0 0 !important;
  font-size: 14px;
  line-height: 1.4;
  color: var(--theme-text-secondary);
}

:root .blog-spot__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

:root .blog-heart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: #fff;
  color: var(--theme-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

:root .blog-heart:hover {
  border-color: var(--theme-text);
}

:root .blog-heart:active {
  transform: scale(0.95);
}

:root .blog-heart svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

:root .blog-heart.-on {
  border-color: var(--theme-red);
  color: var(--theme-red);
}

:root .blog-heart.-on svg {
  fill: var(--theme-red);
  stroke: var(--theme-red);
  animation: heart-pop 0.35s ease-out;
}

:root .blog-article .blog-spot__link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 767px) {
  :root .blog-spot {
    grid-template-columns: auto 1fr;
    margin-top: 64px;
  }

  :root .blog-spot__actions {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
}

/* Shot notes */
:root .blog-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin: 8px 0 0;
  padding: 18px 22px;
  border-radius: var(--theme-radius);
  background: var(--theme-bg-soft);
  font-size: 15px;
  line-height: 1.45;
}

:root .blog-notes dt {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-text-secondary);
}

:root .blog-notes dd {
  margin: 0;
  color: var(--theme-text);
}

:root .blog-notes small {
  color: var(--theme-text-secondary);
  font-size: 13px;
}

@media (max-width: 600px) {
  :root .blog-notes {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ Photos */

:root .blog-figure {
  margin: 36px 0;
}

:root .blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--theme-radius);
  background: #eee;
}

:root .blog-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--theme-text-secondary);
}

:root .blog-figure__credit {
  font-size: 12px;
}

:root .blog-article .blog-figure__credit a,
:root .blog-article .blog-pair__caption a {
  color: inherit;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}

/* Wider than the text, centered on the page */
:root .blog-figure.-wide,
:root .blog-pair {
  width: var(--blog-wide);
  margin-left: 50%;
  transform: translateX(-50%);
}

:root .blog-figure.-wide figcaption {
  width: var(--blog-text);
  margin-left: auto;
  margin-right: auto;
}

/* The width of the page (panoramas) */
:root .blog-figure.-full {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

:root .blog-figure.-full img {
  border-radius: 0;
  max-height: 70vh;
  object-fit: cover;
}

:root .blog-figure.-full figcaption {
  width: var(--blog-text);
  margin-left: auto;
  margin-right: auto;
}

/* Two photos side by side, the same height */
:root .blog-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
  margin-bottom: 36px;
}

:root .blog-pair .blog-figure {
  margin: 0;
}

:root .blog-pair .blog-figure img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

:root .blog-pair__caption {
  grid-column: 1 / -1;
  width: var(--blog-text);
  margin: 0 auto !important;
  font-size: 13px;
  line-height: 1.45;
  color: var(--theme-text-secondary);
}

@media (max-width: 600px) {
  :root .blog-pair {
    grid-template-columns: 1fr;
  }

  :root .blog-pair__caption {
    width: auto;
  }
}

/* ------------------------------------------------------------------ The map of the spots */

:root .blog-map-section {
  width: var(--blog-wide);
  margin: 48px auto 24px;
}

:root .blog-map {
  position: relative;
  z-index: 0;
}

:root .blog-map__map {
  height: min(62vh, 520px);
  min-height: 320px;
  border-radius: 18px;
  background: #e8ecef;
  overflow: hidden;
}

:root .blog-map__hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--theme-text-secondary);
  text-align: center;
}

:root .blog-map-marker {
  border: none;
  background: none;
}

:root .blog-map-marker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--theme-red);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.15s;
}

:root .blog-map-marker:hover span {
  transform: scale(1.15);
}

:root .blog-map-section .list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

:root .blog-map-section .list-tools__row {
  justify-content: center;
}

/* ------------------------------------------------------------------ After the post */

:root .blog-spots-slider {
  --bg-color: #f7f7f7;
  margin-top: 80px;
  background-color: var(--theme-bg-soft);
}

:root .blog-more {
  width: var(--blog-wide);
  margin: 0 auto;
  padding: 64px 0 80px;
}

:root .blog-more h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}

:root .blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

:root .blog-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #222;
  color: #fff;
}

:root .blog-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .blog-card:hover img {
  transform: scale(1.05);
}

:root .blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 60%);
}

:root .blog-card__text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
}

:root .blog-card__text small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

:root .blog-card__text strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  :root .blog-cards {
    grid-template-columns: 1fr;
  }

  :root .blog-card {
    aspect-ratio: 16 / 9;
  }
}

/* ------------------------------------------------------------------ The blog's front page */

:root .blog-index {
  width: var(--blog-wide);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) 0 80px;
}

:root .blog-index__head {
  max-width: 720px;
  margin-bottom: 36px;
}

:root .blog-index__head h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

:root .blog-index__head p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--theme-text-secondary);
}

:root .blog-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(68vh, 620px);
  overflow: hidden;
  border-radius: 22px;
  background: #222;
  color: #fff;
}

:root .blog-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .blog-feature:hover img {
  transform: scale(1.03);
}

:root .blog-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0) 65%);
}

:root .blog-feature__text {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 32px;
}

:root .blog-feature__text small,
:root .blog-list__item small {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:root .blog-feature__text small {
  opacity: 0.85;
}

:root .blog-feature__text strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

:root .blog-feature__text > span {
  display: block;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.9;
}

:root .blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
  margin-top: 48px;
}

:root .blog-list__item {
  display: block;
  color: var(--theme-text);
}

:root .blog-list__image {
  display: block;
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #eee;
}

:root .blog-list__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .blog-list__item:hover .blog-list__image img {
  transform: scale(1.05);
}

:root .blog-list__item small {
  color: var(--theme-red);
}

:root .blog-list__item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

:root .blog-list__item > span:last-child {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: var(--theme-text-secondary);
}

@media (max-width: 900px) {
  :root .blog-list {
    grid-template-columns: 1fr;
  }

  :root .blog-feature__text {
    padding: 22px;
  }
}
