/* Love & Layovers — destination guide template (with css/site.css and css/article.css).
   Pages are generated by scripts/build-guides.cjs from data/guides/<slug>.json. */

.post-hero.guide-hero { min-height: 520px; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.guide-cta .btn { padding: 12px 20px; font-size: .92rem; }

/* At a glance */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 0 !important; }
.glance div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.glance small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.glance b { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.35; color: var(--ink); }
.glance span { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Itinerary days */
.days { display: grid; gap: 16px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.day-head { display: flex; align-items: center; gap: 12px; }
.day-head .n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.day-head h3 { margin: 0 !important; font-size: 1.12rem !important; }
.day-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px dashed var(--line); margin-top: 12px; }
.day-row + .day-row { margin-top: 0; }
.day-row .when { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.day-row .what { font-size: .98rem; line-height: 1.7; }
.day-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; font-size: .9rem; }
.day-foot .cost { font-size: .8rem; font-weight: 700; color: #fff; background: var(--navy); padding: 5px 12px; border-radius: 999px; }
.day-foot p { margin: 0; }
@media (max-width: 560px) { .day-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Food photo */
.guide-figure { margin: 0; }
.guide-figure img { width: 100%; height: auto; border-radius: 16px; display: block; }
.guide-figure figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* Watch block */
.watch-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.watch-box > p:first-child { margin-top: 0; }
.watch-box .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.watch-box .row a { text-decoration: none !important; }
.watch-empty { background: var(--sand); border-radius: 14px; padding: 18px; font-size: .95rem; }

/* Related destinations and posts */
.guide-more { padding-top: 8px; padding-bottom: 72px; }
.guide-more h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 18px; }
.guide-more + .guide-more { padding-top: 0; }
.dest-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dest-card { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dest-card img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.9), rgba(10,22,40,.1) 60%); }
.dest-card .txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.dest-card .flag { width: 28px; height: 21px; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.dest-card h3 { margin-top: 8px; font-size: 1.2rem; color: #fff; }
.dest-card p { margin: 2px 0 0; font-size: .82rem; color: rgba(255,255,255,.82); line-height: 1.35; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.posts .post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.posts .post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.posts .post-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.posts .post-img img { width: 100%; height: 100%; object-fit: cover; }
.posts .post-body { padding: 16px 18px 18px; font-size: 1rem; }
.posts .post-body h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
@media (max-width: 900px) { .dest-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .posts { grid-template-columns: minmax(0, 1fr); } }

.photo-credit { font-size: .78rem; color: var(--muted); padding-bottom: 24px; }
.photo-credit a { text-decoration: underline; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; }
  .action-bar .btn { width: 100%; box-shadow: var(--shadow-lg); }
  body { padding-bottom: 76px; }
}

.watch-box .row .btn, .guide-cta .btn { white-space: normal; text-align: center; }

/* Trip-length tabs (3 / 5 / 7 days) */
.plan-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--sand); border-radius: 999px; margin: 4px 0 18px; }
.plan-tabs button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .92rem; padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.plan-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.plan-tabs button:focus-visible { outline: 3px solid rgba(212,105,29,.4); outline-offset: 2px; }
.day-plan { margin-left: auto; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
