/* =====================================================================
   KOHWAN — "Places to see": every destination on one page, counted down.
   Laid out after a "best of" travel listing, in the site's own navy, gold
   and warm white. Markup: views/frontend/places.blade.php
   ===================================================================== */
.plc {
  --p-navy: #2e4755;
  --p-ink: #1f3441;
  --p-muted: #5f7380;
  --p-gold: #BD830D;
  --p-line: #E6EBEE;
  --p-sky: #EAF5F8;
  --p-ease: cubic-bezier(.22, .61, .36, 1);
  padding-bottom: clamp(48px, 6vw, 90px);
  color: var(--p-ink);
}

/* ------------------------------------------------------------- the hero */
.plc-hero { position: relative; overflow: hidden; min-height: clamp(220px, 26vw, 340px); display: grid; align-items: end; }
.plc-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 34, 44, .18), rgba(20, 34, 44, .78));
}
.plc-hero__in { position: relative; z-index: 2; padding-block: clamp(26px, 3.4vw, 48px); color: #FFFFFF; }
.plc-hero__eyebrow { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E3BC63; }
.plc-hero__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.plc-hero__sub { margin: 10px 0 0; max-width: 62ch; font-size: clamp(.92rem, 1.1vw, 1.02rem); line-height: 1.6; color: rgba(255, 255, 255, .88); }

/* ---------------------------------------------------------- the filters */
.plc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: clamp(18px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--p-line);
}
.plc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.plc-chips--type { margin-left: auto; }
.plc-chip {
  padding: 9px 16px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: #FFFFFF;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: var(--p-ink);
  cursor: pointer;
  transition: background-color .2s var(--p-ease), color .2s var(--p-ease), border-color .2s var(--p-ease);
}
.plc-chip--sm { padding: 7px 13px; font-size: .78rem; }
.plc-chip:hover { border-color: var(--p-navy); }
.plc-chip.is-on { background: var(--p-navy); border-color: var(--p-navy); color: #FFFFFF; }
.plc-chip:focus-visible { outline: 2px solid var(--p-gold); outline-offset: 2px; }

.plc-intro { padding: clamp(22px, 2.8vw, 36px) 0 clamp(8px, 1vw, 16px); max-width: 78ch; }
.plc-intro h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 800; color: var(--p-navy); }
.plc-intro p { margin: 0 0 10px; font-size: .95rem; line-height: 1.75; color: var(--p-muted); }
.plc-intro b { color: var(--p-ink); }

/* ------------------------------------------------------------ the rows */
.plc-list { display: flex; flex-direction: column; }
.plc-row {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 40px);
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 1px solid var(--p-line);
  scroll-margin-top: 96px;
}
.plc-row[hidden] { display: none; }
/* The first place gets the room the reference gives it. */
.plc-row--lead { grid-template-columns: minmax(0, 1fr); border-top: 0; }
.plc-row--lead .plc-row__media { aspect-ratio: 21 / 9; }

.plc-row__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--p-sky); }
.plc-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--p-ease); }
.plc-row:hover .plc-row__media img { transform: scale(1.04); }
.plc-rank {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 34, 44, .72);
  color: #FFFFFF;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
}

.plc-row__body { min-width: 0; }
.plc-row__no { margin: 0 0 2px; font-size: .8rem; font-weight: 700; color: var(--p-muted); }
.plc-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plc-row__name { margin: 0; margin-right: auto; font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 800; line-height: 1.1; }
.plc-row__name a { color: var(--p-navy); text-decoration: none; }
.plc-row__name a:hover { color: var(--p-gold); }

/* ---- add to my trip ---- */
.plc-add,
.plc-added {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.plc-add { border: 1.5px solid var(--p-navy); background: #FFFFFF; color: var(--p-navy); transition: background-color .2s var(--p-ease), color .2s var(--p-ease); }
.plc-add:hover { background: var(--p-navy); color: #FFFFFF; }
.plc-add svg { width: 15px; height: 15px; }
.plc-add[hidden], .plc-added[hidden] { display: none; }
.plc-added { border: 1.5px solid #2F7D63; background: #ECF6F2; color: #2F7D63; }
.plc-added svg { width: 15px; height: 15px; }
.plc-added button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(47, 125, 99, .16); color: inherit; cursor: pointer; }
.plc-added button svg { width: 11px; height: 11px; }
.plc-added button:hover { background: #2F7D63; color: #FFFFFF; }
@keyframes plc-pop { 50% { transform: scale(1.05); } }
.is-added .plc-added { animation: plc-pop .4s var(--p-ease); }

.plc-row__tag { margin: 6px 0 0; font-size: .92rem; font-style: italic; color: var(--p-gold); }
.plc-row__where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 12px; font-size: .84rem; color: var(--p-muted); }
.plc-row__where svg { width: 14px; height: 14px; }
.plc-row__where a { color: var(--p-muted); text-decoration: underline; text-underline-offset: 2px; }
.plc-row__where a:hover { color: var(--p-navy); }
.plc-row__where i { font-style: normal; opacity: .5; }

.plc-row__text p { margin: 0; font-size: .93rem; line-height: 1.75; color: var(--p-muted); }
.plc-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--p-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.plc-more svg { width: 14px; height: 14px; transition: transform .22s var(--p-ease); }
.plc-more.is-open svg { transform: rotate(180deg); }

/* ---- things to do, trips, story ---- */
.plc-things, .plc-trips { margin-top: 16px; }
.plc-things h4, .plc-trips h4 {
  margin: 0 0 8px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p-ink);
}
.plc-things ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plc-things a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--p-ink);
  text-decoration: none;
  transition: border-color .2s var(--p-ease), background-color .2s var(--p-ease);
}
.plc-things a:hover { border-color: var(--p-navy); background: var(--p-sky); }

.plc-trips ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.plc-trips a { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--p-line); border-radius: 10px; text-decoration: none; transition: border-color .2s var(--p-ease); }
.plc-trips a:hover { border-color: var(--p-navy); }
.plc-trips__img { flex: none; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--p-sky); }
.plc-trips__img img { width: 100%; height: 100%; object-fit: cover; }
.plc-trips__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.plc-trips__txt b { font-size: .82rem; font-weight: 700; color: var(--p-navy); }
.plc-trips__txt small { font-size: .74rem; color: var(--p-muted); }

.plc-story { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; text-decoration: none; }
.plc-story__img { flex: none; width: 56px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--p-sky); }
.plc-story__img img { width: 100%; height: 100%; object-fit: cover; }
.plc-story span { display: flex; flex-direction: column; line-height: 1.3; }
.plc-story small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); }
.plc-story b { font-size: .86rem; color: var(--p-navy); }
.plc-story:hover b { color: var(--p-gold); }

.plc-none { padding: 40px 0; font-size: .95rem; color: var(--p-muted); }
.plc-none[hidden] { display: none; }
.plc-none button { border: 0; background: none; font: inherit; color: var(--p-navy); font-weight: 700; text-decoration: underline; cursor: pointer; }

@media (max-width: 820px) {
  .plc-row { grid-template-columns: minmax(0, 1fr); }
  .plc-chips--type { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .plc-row__media img, .plc-more svg, .is-added .plc-added { transition: none; animation: none; }
}
