/* Louvre must-see (/{loc}/tours/louvre/louvre-must-see-artworks/) — redesign.
   Also used by the Versailles must-see page (same template).
   Every rule is scoped under .lms so no other page is affected. */

.lms {
  --lms-gold-text: var(--forest);
  --lms-text-2: var(--slate);
  --lms-muted: var(--stone);
  --lms-line: var(--border);
  --lms-card-line: var(--border);
  --lms-chip-line: var(--border);
  --lms-tile: var(--paper-2);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
}
.lms a { color: var(--forest); }
.lms a:hover { color: var(--ink); }
.lms p { margin: 0; }
.lms-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

.lms-eyebrow { font-size: 13px; letter-spacing: 0.12em; font-weight: 600; color: var(--lms-gold-text); text-transform: uppercase; }
.lms-eyebrow--sm { font-size: 12px; }
.lms-h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 3vw + 22px, 52px); line-height: 1.12; letter-spacing: -0.01em; }
.lms-h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 1vw + 24px, 36px); line-height: 1.2; }
.lms-h2--sm { margin-top: 4px; font-size: clamp(26px, 1vw + 22px, 32px); }

/* Hero */
.lms-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: clamp(32px, 5vw, 56px); padding-bottom: 40px; }
.lms-hero-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lms .lms-back { font-size: 14px; color: var(--lms-muted); text-decoration: none; }
.lms-lead { font-size: 19px; line-height: 29px; color: var(--lms-text-2); max-width: 620px; }
.lms-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--lms-muted); }
.lms-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 0; margin: 8px 0 0; border-top: 1px solid var(--lms-line); border-bottom: 1px solid var(--lms-line); }
.lms-stats div { display: flex; align-items: baseline; gap: 6px; }
.lms-stats dt { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.2; }
.lms-stats dd { margin: 0; font-size: 14px; color: var(--lms-muted); }
.lms-chips { display: flex; gap: 6px; overflow-x: auto; }
.lms .lms-chip { flex: none; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 36px; border-radius: 999px; border: 0; background: var(--glass-light-bg); -webkit-backdrop-filter: var(--glass-light-blur); backdrop-filter: var(--glass-light-blur); box-shadow: var(--glass-light-shadow); color: var(--ink); font-size: 14px; white-space: nowrap; transition: background .25s ease, transform .2s ease; }
.lms .lms-chip:hover { background: var(--glass-light-bg-hover); color: var(--ink); transform: translateY(-1px); }
.lms-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink); }
.lms-dot--denon { background: var(--gold); }
.lms-dot--sully { background: var(--forest); }
/* Versailles areas (same template) */
.lms-dot--palace { background: var(--gold); }
.lms-dot--gardens { background: var(--forest); }

/* Route card */
.lms-route { flex: 1 1 340px; max-width: 420px; background: var(--glass-card-bg); -webkit-backdrop-filter: var(--glass-card-blur); backdrop-filter: var(--glass-card-blur); border: 0; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--glass-card-shadow); box-sizing: border-box; }
.lms-route-media { position: relative; }
.lms-route-media img { width: 100%; height: 240px; object-fit: cover; object-position: center 30%; border-radius: 999px 999px 8px 8px; display: block; }
.lms-route-badge { position: absolute; left: 12px; bottom: 12px; background: var(--glass-photo-bg); -webkit-backdrop-filter: var(--glass-photo-blur); backdrop-filter: var(--glass-photo-blur); color: var(--white); text-shadow: var(--glass-photo-text-shadow); font-size: 12px; line-height: 18px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.lms-route-title { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; }
.lms-route-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.lms-route-list li { display: flex; gap: 10px; align-items: flex-start; }
.lms-route-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--forest); stroke-width: 2; }

.lms .lms-btn { text-decoration: none; background: var(--ink); color: var(--white); box-shadow: var(--cta-ink-shadow); padding: 14px 20px; border-radius: 8px; font-weight: 600; font-size: 16px; min-height: 48px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; }
.lms .lms-btn:hover, .lms-sheet .lms-btn:hover { background: var(--ink); color: var(--white); }
.lms-btn svg { width: 16px; height: 16px; fill: currentColor; }
.lms .lms-btn--pill { display: inline-flex; border-radius: 999px; padding: 0 24px; font-size: 15px; white-space: nowrap; }

/* Wing sections */
.lms-wing { padding-top: 48px; padding-bottom: 16px; scroll-margin-top: 16px; }
.lms-wing-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; }
.lms-wing-head > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 420px; }
.lms-wing-intro { color: var(--lms-text-2); max-width: 680px; }
.lms-wing-meta { font-size: 13px; color: var(--lms-muted); text-align: right; }
.lms-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, calc(50% - 10px)), 1fr)); gap: 28px 20px; }
.lms .lms-art { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.lms-art-media { position: relative; margin-bottom: 7px; }
.lms-art-media img, .lms-art-blank { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; display: block; border-radius: 8px; background: var(--lms-tile); }
.lms-art-ov { position: absolute; inset: 0; border-radius: 8px; background: rgba(31, 31, 31, 0.32); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.lms-art-ov span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(10px) saturate(1.8); backdrop-filter: blur(10px) saturate(1.8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12); color: var(--white); font-size: 13px; font-weight: 600; }
a.lms-art:hover .lms-art-ov, a.lms-art:focus-visible .lms-art-ov { opacity: 1; }
.lms-art-badge { display: none; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 999px; background: var(--glass-photo-bg); -webkit-backdrop-filter: var(--glass-photo-blur); backdrop-filter: var(--glass-photo-blur); align-items: center; justify-content: center; }
.lms-art-badge svg { width: 14px; height: 14px; fill: none; stroke: var(--white); stroke-width: 2; }
@media (hover: none) { .lms-art-ov { display: none; } .lms-art-badge { display: flex; } }
.lms-art-n { position: absolute; top: 10px; left: 10px; background: var(--glass-photo-bg); -webkit-backdrop-filter: var(--glass-photo-blur); backdrop-filter: var(--glass-photo-blur); color: var(--white); text-shadow: var(--glass-photo-text-shadow); font-family: var(--font-body); font-weight: 600; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
/* 사진 없는 자리표시 카드: 배경이 밝아 번호 알약을 진하게 */
.lms-art-n--blank { background: rgba(31, 31, 31, 0.72); }
.lms-art-title { font-family: var(--font-display); font-size: 18px; line-height: 23px; font-weight: 600; }
.lms-art-artist { font-size: 13px; line-height: 19px; color: var(--lms-muted); }
.lms-art-loc { font-size: 13px; line-height: 19px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.lms-art-loc svg { flex: none; width: 12px; height: 12px; fill: none; stroke: var(--lms-gold-text); stroke-width: 2.2; }

/* Before you go / magazine / next museum */
.lms-section { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 16px; }
.lms-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.lms .lms-more { font-weight: 600; text-decoration: none; }
.lms-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.lms .lms-card { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--lms-card-line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.lms .lms-card:hover { border-color: var(--forest); }
.lms-card-tag { font-size: 12px; color: var(--lms-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.lms-card-title { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; }
.lms-card-cta { font-size: 14px; color: var(--forest); margin-top: auto; }
.lms-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.lms .lms-story { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.lms-story img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; display: block; background: var(--lms-tile); }
.lms-story-meta { font-size: 12px; color: var(--lms-muted); letter-spacing: 0.06em; }
.lms-story-title { font-family: var(--font-display); font-size: 19px; line-height: 25px; font-weight: 600; }
.lms-next-h2 { margin-bottom: 24px; }
.lms-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.lms .lms-next-card { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--lms-card-line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.lms-next-card img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
.lms-next-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.lms-next-meta { font-size: 12px; color: var(--lms-muted); }
.lms-next-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }

/* End card */
.lms-end { padding-top: 24px; padding-bottom: 56px; }
.lms-end-inner { border-top: 1px solid var(--forest); border-bottom: 1px solid var(--lms-chip-line); padding: 28px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.lms-end-text { flex: 999 1 380px; display: flex; flex-direction: column; gap: 6px; }
.lms-end-title { font-family: var(--font-display); font-size: clamp(22px, 1vw + 18px, 28px); line-height: 1.25; font-weight: 500; }
.lms-end-sub { font-size: 14px; color: var(--lms-muted); }

/* Mobile bottom sheet (< 640px) */
.lms-sheet { display: none; }
.lms-sheet .lms-btn { text-decoration: none; background: var(--ink); color: var(--white); box-shadow: var(--cta-ink-shadow); min-height: 50px; border-radius: 999px; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) {
  .lms-route, .lms-stats, .lms-end { display: none; }
  .lms-sheet { display: block; position: sticky; bottom: 0; z-index: 10; background: var(--glass-sheet-bg); -webkit-backdrop-filter: var(--glass-sheet-blur); backdrop-filter: var(--glass-sheet-blur); border-radius: 20px 20px 0 0; box-shadow: var(--glass-sheet-shadow); padding: 12px 16px 16px; }
  .lms-wrap { padding-left: 16px; padding-right: 16px; }
  .lms-wing-meta { text-align: left; }
}
