.nav-item--locations { --c: #4dad5b; }
.atlas-banner { background: #e6f3ed; border-bottom: 1px solid #c7e1d2; padding: 42px 0 34px; }
.atlas-banner .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.atlas-banner h1 { font-size: clamp(32px, 5vw, 48px); }
.atlas-banner p { margin: 12px 0 0; color: #426453; max-width: 680px; }
.atlas-emblem { width: 76px; height: 76px; padding: 18px; background: white; border-radius: 24px; fill: #348351; flex: none; }
.atlas-main { padding-block: 28px 60px; min-height: 65vh; scroll-margin-top: 90px; }
.atlas-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.atlas-search { flex: 1; min-width: 220px; }
.atlas-search input, .atlas-controls select { width: 100%; padding: 13px 16px; border: 1px solid #cbd6d0; border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.atlas-controls select { width: auto; max-width: 100%; }
.atlas-count { color: var(--gray); margin: 0 0 20px; font-size: 14px; }
.atlas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.location-card { min-width: 0; }
.location-card > a, .location-card > article { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 22px; background: white; overflow: hidden; text-decoration: none; box-shadow: 0 6px 18px #14382409; transition: transform .2s ease, box-shadow .2s ease; }
.location-card > a:hover { transform: translateY(-4px); box-shadow: 0 10px 26px #14382418; }
.location-image { aspect-ratio: 16 / 10; background: #deebe4; overflow: hidden; position: relative; display: grid; place-items: center; }
.location-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.location-image.is-loading img { opacity: 0; }
.location-image.is-loading::after { position: absolute; inset: 0; background: linear-gradient(100deg, #fff0 20%, #ffffffb3 50%, #fff0 80%); transform: translateX(-100%); animation: shimmer 1.4s ease-in-out infinite; content: ""; }
.location-card--skel > div { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 22px; background: white; overflow: hidden; }
.location-skel-image { aspect-ratio: 16 / 10; border-radius: 0; }
.location-skel-hero { min-height: 270px; aspect-ratio: auto; }
.location-image svg { width: 80px; height: 80px; fill: #749682; }
.location-image small { position: absolute; bottom: 12px; padding: 4px 9px; border-radius: 6px; background: #ffffffed; color: #456352; font-size: 11px; }
.location-card-body { padding: 20px; }
.location-category { font-size: 12px; font-weight: 800; color: #357a4f; margin: 0 0 6px; }
.location-card h2 { font-size: 21px; }
.location-meta { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; font-size: 13px; color: var(--gray); }
.location-open { color: #2a75bb; font-weight: 800; }
.atlas-empty { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1px dashed #b7c9bf; border-radius: 18px; }
.location-back { display: inline-block; margin-bottom: 22px; color: #2a75bb; font-weight: 700; text-decoration: none; }
.location-hero { display: grid; grid-template-columns: 1.2fr 1fr; background: white; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.location-hero .location-image { height: 100%; min-height: 270px; aspect-ratio: auto; }
.location-hero-copy { padding: clamp(22px, 4vw, 40px); align-self: center; }
.location-hero h2 { font-size: clamp(27px, 4vw, 38px); }
.location-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.location-facts dt { font-size: 12px; color: var(--gray); }
.location-facts dd { margin: 0; font-weight: 800; }
.location-section { margin-top: 24px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: white; min-width: 0; }
.location-section h3 { margin-bottom: 16px; font-size: 23px; }
.location-section h4 { margin: 18px 0 10px; font-size: 17px; }
.location-section p { color: var(--gray); }
.source-note { font-size: 12px; color: var(--gray); margin-bottom: 0; }
.source-note a { text-decoration: underline; }
.location-notice { border-left: 3px solid #4dad5b; padding: 10px 16px; background: #f1f8f3; font-size: 14px; }
.location-table-wrap { overflow: auto; }
.location-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.location-table th { text-align: left; color: var(--gray); background: #f5f8fa; font-size: 12px; }
.location-table td, .location-table th { padding: 12px; border-bottom: 1px solid var(--line); }
.location-table td { vertical-align: middle; }
.location-table td:first-child { min-width: 180px; }
.location-monster { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #205f9f; font-weight: 700; }
.location-icon { display: inline-block; width: 40px; height: 30px; flex: none; background-image: url('./assets/showdown/pokemonicons-sheet.png'); background-repeat: no-repeat; image-rendering: pixelated; }
.location-table .types { justify-content: flex-start; }
.location-detail-note { display: block; font-size: 12px; color: var(--gray); max-width: 350px; }
.trainer-details { border-top: 1px solid var(--line); padding: 16px 0; }
.trainer-details summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.trainer-details summary small { font-weight: 500; color: var(--gray); margin-left: 8px; }
.trainer-details .location-table-wrap { margin-top: 16px; }
.area-method { margin-top: 20px; }
.area-method summary { cursor: pointer; font-weight: 700; padding: 12px 16px; background: #eef6f1; border-radius: 10px; }
.area-method[open] summary { margin-bottom: 12px; }
.location-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.trainer-party { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.trainer-set { min-width: 0; padding: 18px; border: 1px solid #d9e1e7; border-radius: 14px; background: #fafcfe; }
.trainer-set h4 { margin: 0; font-size: 16px; }
.trainer-set .trainer-item { margin: 5px 0 18px; padding-left: 50px; color: #495c70; font-size: 13px; }
.trainer-set-facts { font-size: 13px; margin: 0 0 16px; }
.trainer-set-facts > div { display: grid; grid-template-columns: 60px 1fr; gap: 10px; margin: 5px 0; }
.trainer-set-facts dt { color: var(--gray); }
.trainer-set-facts dd { margin: 0; font-weight: 700; }
.trainer-set .location-table { font-size: 12px; text-align: center; }
.trainer-set .location-table th { text-align: center; }
.trainer-set .location-table td, .trainer-set .location-table th { padding: 6px 3px; min-width: 0; }
.trainer-set .location-table td:first-child { min-width: 0; font-weight: 700; }
.trainer-moves { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.trainer-moves li { padding: 4px 0; font-size: 13px; }
.trainer-moves li::before { content: '–'; margin-right: 10px; color: #5980a0; }
@media (max-width: 1100px) { .trainer-party { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .trainer-party { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .location-card > a { transition: none; } .location-card > a:hover { transform: none; } }
@media (max-width: 900px) { .atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .location-hero { grid-template-columns: 1fr; } .location-hero .location-image { aspect-ratio: 16 / 8; min-height: 0; } }
@media (max-width: 560px) { .atlas-grid { grid-template-columns: 1fr; gap: 18px; } .atlas-emblem { display: none; } .atlas-banner { padding-block: 28px; } .atlas-controls { align-items: stretch; } .atlas-controls select { width: 100%; } .location-hero .location-image { aspect-ratio: 16 / 10; } }
