/* ============================================================
   CTC — Places (listing + detail)
   Loaded AFTER styles.css. Mirrors destinations.css in shape but
   uses a blue accent on the listing hero (vs. orange on
   destinations) so the two sections feel related but distinct.
   ============================================================ */

/* ---------- LISTING HERO ---------- */
.place-hero {
  padding: 56px 0 48px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.place-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Inverted accent vs. destinations: blue dominant in top-left,
     orange wash in bottom-right. Keeps the brand palette but signals
     "these aren't regions". */
  background:
    radial-gradient(640px 380px at 0% 0%, rgba(29, 78, 216, 0.10), transparent 70%),
    radial-gradient(640px 380px at 100% 100%, rgba(234, 88, 12, 0.08), transparent 70%);
  pointer-events: none;
}
.place-hero .wrap { position: relative; z-index: 1; }
.place-hero .breadcrumb { margin-bottom: 20px; }

.place-hero-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
.place-hero-text .label { margin-bottom: 16px; }
.place-hero-title {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-top: 6px;
}
.place-hero-title em {
  font-style: normal;
  color: var(--blue);
}
.place-hero-meta {
  font-size: 14px;
  color: var(--mute);
  margin-top: 18px;
}
.place-hero-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.place-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 460px;
  justify-self: end;
}
@media (max-width: 880px) {
  .place-hero { padding: 44px 0 36px; }
  .place-hero-row {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }
  .place-hero-sub {
    max-width: none;
    justify-self: start;
    font-size: 15px;
  }
}

/* ---------- LISTING CARD GRID ---------- */
.place-grid-section { padding: 72px 0 96px; }
.place-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .place-grid-section { padding: 48px 0 64px; }
  .place-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- CARD ---------- */
.place-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-fast);
}
.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(10, 10, 10, 0.25);
  border-color: rgba(29, 78, 216, 0.35);
}
.place-card-img {
  position: relative;
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  overflow: hidden;
  transition: transform var(--t-med);
}
.place-card:hover .place-card-img { transform: scale(1.02); }
.place-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.05) 0%,
    rgba(10, 10, 10, 0.00) 35%,
    rgba(10, 10, 10, 0.45) 100%);
  pointer-events: none;
}

/* Chip — blue accent for places (orange is reserved for destinations).
   `soft` variant communicates "not on a scheduled tour" without screaming. */
.place-card-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px -10px rgba(10, 10, 10, 0.35);
}
.place-card-chip strong {
  color: var(--blue);
  font-weight: 700;
}
.place-card-chip-soft {
  background: rgba(255, 255, 255, 0.86);
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.place-card-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.place-card:hover .place-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.place-card-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Parent-destination eyebrow — small mono caps line tying place → region.
   Rendered only when destination_name is set; otherwise the card collapses
   neatly because of the flex column + gap. */
.place-card-region {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2px;
}
.place-card-region svg { stroke: currentColor; }

.place-card-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.place-card:hover .place-card-name { color: var(--blue-deep); }
.place-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- LISTING EMPTY STATE ---------- */
.place-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-soft);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  color: var(--mute);
}
.place-empty-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--blue);
  border-radius: 50%;
  margin-bottom: 18px;
  border: 1px solid var(--rule);
}
.place-empty h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.place-empty p {
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto;
}

/* ============================================================
   PLACE DETAIL PAGE  (Places:view)
   `pdetail-*` prefix avoids collision with offers detail.css
   (`.detail-*`) and destinations.css (`.ddetail-*`).
   ============================================================ */

/* ---------- HERO ---------- */
.pdetail-hero {
  position: relative;
  min-height: 520px;
  padding: 64px 0 80px;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.pdetail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.30) 0%,
    rgba(10, 10, 10, 0.55) 60%,
    rgba(10, 10, 10, 0.78) 100%);
  pointer-events: none;
}
.pdetail-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.pdetail-breadcrumb {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
}
.pdetail-breadcrumb a { color: rgba(255, 255, 255, 0.72); }
.pdetail-breadcrumb a:hover { color: #ffffff; }
.pdetail-breadcrumb .sep { color: rgba(255, 255, 255, 0.32); }
.pdetail-breadcrumb .current { color: #ffffff; }

/* Blue-tinted eyebrow — matches the listing accent. */
.pdetail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29, 78, 216, 0.18);
  color: #c8d8ff;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pdetail-title {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.pdetail-meta {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
}
.pdetail-meta strong { color: #ffffff; font-weight: 700; }
@media (max-width: 720px) {
  .pdetail-hero { min-height: 380px; padding: 44px 0 56px; }
  .pdetail-title { margin-bottom: 14px; }
  .pdetail-meta { font-size: 14px; }
}

/* ---------- PHOTO GALLERY ---------- */
.pdetail-gallery-section { padding: 56px 0 0; }
.pdetail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pdetail-gallery-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: auto;
  border-radius: var(--radius-lg);
}
.pdetail-gallery-item {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter var(--t-fast), transform var(--t-fast);
}
.pdetail-gallery-item:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pdetail-gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 10, 10, 0.55);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: inherit;
  letter-spacing: 0.01em;
}
@media (max-width: 880px) {
  .pdetail-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 160px);
  }
  .pdetail-gallery-main { grid-column: 1 / 3; grid-row: 1 / 2; }
  .pdetail-gallery-item:nth-child(4),
  .pdetail-gallery-item:nth-child(5) { display: none; }
}

/* ---------- ABOUT / PROSE ---------- */
.pdetail-prose-section { padding: 80px 0 32px; }
.pdetail-prose {
  max-width: 760px;
  margin: 0 auto;
}
.pdetail-prose .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
  display: inline-block;
}
.pdetail-prose-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.pdetail-prose-body h2,
.pdetail-prose-body h3,
.pdetail-prose-body h4 {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.pdetail-prose-body h2 { font-size: 28px; }
.pdetail-prose-body h3 { font-size: 22px; }
.pdetail-prose-body h4 { font-size: 18px; }
.pdetail-prose-body p { margin-bottom: 16px; }
.pdetail-prose-body ul,
.pdetail-prose-body ol { margin: 0 0 18px 22px; }
.pdetail-prose-body li { margin-bottom: 6px; }
.pdetail-prose-body a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pdetail-prose-body a:hover { color: var(--blue); }
.pdetail-prose-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--bg-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-style: italic;
}
.pdetail-prose-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -14px rgba(10, 10, 10, 0.25);
  margin: 16px 0;
}

/* ---------- MAP ---------- */
.pdetail-map-section { padding: 56px 0 32px; }
.pdetail-map {
  position: relative;
  padding-bottom: 50%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  margin-bottom: 14px;
  background: var(--bg-soft);
}
.pdetail-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pdetail-map-coords {
  color: var(--mute);
  font-size: 14px;
}
.pdetail-map-coords strong {
  font-family: var(--mono);
  color: var(--ink);
  font-weight: 500;
}
.pdetail-map-coords a {
  color: var(--blue);
  text-decoration: none;
}
.pdetail-map-coords a:hover { color: var(--blue-deep); }

/* ---------- TOURS STRIP ---------- */
.pdetail-tours-section { padding: 80px 0 96px; }
.pdetail-section-head {
  margin-bottom: 36px;
  max-width: 720px;
}
.pdetail-section-head .label { margin-bottom: 12px; }
.pdetail-section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.pdetail-section-title em {
  font-style: normal;
  /* Tours strip uses orange to call out the action — same pattern as the
     destination detail page. Blue is reserved for the "where" framing
     above. */
  color: var(--orange);
}
.pdetail-section-sub {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mute);
}
.pdetail-tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .pdetail-tours-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pdetail-tours-grid { grid-template-columns: 1fr; gap: 20px; } }

.pdetail-tours-foot {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.pdetail-tours-empty {
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
}
.pdetail-tours-empty .pdetail-section-head { display: none; }
.pdetail-tours-empty-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--blue);
  border: 1px solid var(--rule);
  border-radius: 50%;
  margin-bottom: 22px;
}
.pdetail-tours-empty .pdetail-section-title { margin-bottom: 12px; }
.pdetail-tours-empty .pdetail-section-sub {
  max-width: 520px;
  margin: 0 auto 4px;
}
