@import url('./lineage-classic-items.module.css?v=20261021pirate-quest');

.page-lineage-classic .lineage-map-database { --lc-line: #30323a; width: 100%; max-width: none; padding: 24px; box-sizing: border-box; font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif; }
.lineage-map-database * { box-sizing: border-box; }
.lineage-map-db-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.lineage-map-db-heading p { margin: 0 0 6px; color: #ed5a5e; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.lineage-map-db-heading h1 { margin: 0; color: #f0f1f3; font-size: 1.75rem; }
.lineage-map-db-heading > span { color: #979da9; font-size: .875rem; }
.lineage-map-workspace { position: relative; min-width: 0; border: 1px solid #353841; background: #08090b; }
.page-lineage-classic .lineage-map-db-view { margin: 0; border: 0; }
.page-lineage-classic .lineage-map-db-view > header { min-height: 64px; padding: 12px 20px; }
.page-lineage-classic .lineage-map-db-view > header h2 { font-size: 1.125rem; }
.page-lineage-classic .lineage-map-db-view > header small { display: block; margin-top: 5px; font-size: .75rem; letter-spacing: 0; color: #8d95a4; }
.page-lineage-classic .lineage-map-db-view .lineage-hunting-map-stage { height: clamp(580px, calc(100dvh - 290px), 1300px); width: 100%; }
.lineage-map-browser, .lineage-map-monsters { position: absolute; z-index: 5; top: 96px; bottom: 20px; width: 264px; display: flex; flex-direction: column; min-height: 0; background: rgb(17 18 22 / 96%); border: 1px solid #393b43; box-shadow: 0 8px 30px #0005; }
.lineage-map-browser { left: 20px; }
.lineage-map-monsters { right: 20px; width: 280px; }
.lineage-map-browser > label { padding: 16px 16px 10px; font-weight: 700; font-size: .9375rem; color: #eceef2; }
.lineage-map-browser > input { margin: 0 14px 14px; width: calc(100% - 28px); min-width: 0; border: 1px solid #3c3e47; background: #202228; color: #eee; padding: 12px; font: inherit; font-size: .875rem; }
.lineage-map-list, [data-map-monsters] { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lineage-map-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid #292b32; color: #bcc2cc; font-size: .875rem; text-decoration: none; }
.lineage-map-list a:hover { background: #262027; color: #fff; }
.lineage-map-list a.is-selected { background: #441d23; box-shadow: inset 3px 0 #ef565d; color: #fff; }
.lineage-map-list small { color: #9c9fab; font-size: .75rem; }
.lineage-map-monsters > header { display: flex; justify-content: space-between; gap: 16px; padding: 17px 16px; border-bottom: 1px solid #393b43; font-size: .9375rem; }
.lineage-map-monsters > header > span { color: #dda65b; }
.lineage-map-monster { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #2d2f37; text-decoration: none; color: #eceef2; }
.lineage-map-monster:hover { background: #272027; }
.lineage-map-monster img { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; background: #08090b; border: 1px solid #333741; }
.lineage-map-monster strong { display: block; font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.lineage-map-monster small { display: block; margin-top: 4px; font-size: .75rem; color: #9ca4b2; }
.lineage-map-empty { margin: 18px; color: #969eac; font-size: .875rem; line-height: 1.6; }
.lineage-map-workspace:fullscreen { width: 100%; height: 100%; }
.page-lineage-classic .lineage-map-workspace:fullscreen .lineage-hunting-map-stage { height: calc(100dvh - 80px); }
.page-lineage-classic .lineage-map-database button { font-size: .875rem; min-height: 38px; }
.lineage-map-database :focus-visible { outline: 2px solid #f3b85a; outline-offset: 2px; }
.page-lineage-classic .lineage-map-database .lineage-map-poi { min-height: 30px; font-size: 12px; }
.page-lineage-classic .lineage-map-database .lineage-map-poi-close { min-height: 30px; font-size: 22px; }
.lineage-map-browser.has-quest:not(.quest-is-collapsed) > .lineage-map-list { flex: 0 1 120px; min-height: 80px; }
.lineage-map-quest { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid #49515f; }
.lineage-map-quest[hidden], [data-map-quest-body][hidden] { display: none; }
.quest-is-collapsed .lineage-map-quest { flex: 0 0 auto; }
.lineage-map-quest > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; color: #f0d295; font-size: .875rem; }
.lineage-map-quest > header button { flex: 0 0 auto; color: #cbd2dd; background: #20242d; border: 1px solid #49515f; padding: 4px 8px; cursor: pointer; }
[data-map-quest-body] { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 12px 14px; }
.lineage-map-quest-step { padding: 12px 0; border-top: 1px solid #30343c; }
.lineage-map-quest-step h3 { margin: 0 0 7px; color: #edf0f5; font-size: .875rem; line-height: 1.5; }
.page-lineage-classic .lineage-map-quest-step p { margin: 0; color: #b7bfcd; font-size: .8125rem; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.lineage-map-quest-locations { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.page-lineage-classic .lineage-map-quest-locations button { min-height: 34px; max-width: 100%; padding: 5px 8px; color: #d9e5ef; border: 1px solid #42516a; background: #1a2534; font-size: .75rem; line-height: 1.4; cursor: pointer; overflow-wrap: anywhere; }
.lineage-map-quest-locations button:hover, .lineage-map-quest-locations button.is-selected { border-color: #efc96d; color: #ffe7ad; background: #3a3020; }
.page-lineage-classic .lineage-map-quest-locations .lineage-map-quest-all { color: #b5c0cf; background: #1c1e24; }
.page-lineage-classic .lineage-map-quest-note { color: #a7afbd; font-size: .75rem; line-height: 1.65; margin: 10px 0; }
.lineage-map-quest-source { display: inline-block; margin-top: 5px; color: #aab7ca; font-size: .75rem; }
@media (min-width: 2100px) {
    .lineage-map-browser { width: 300px; }
    .lineage-map-monsters { width: 320px; }
}
@media (max-width: 1100px) {
    .page-lineage-classic .lineage-map-database { padding: 16px; }
    .lineage-map-browser { width: 218px; left: 12px; bottom: auto; height: calc(clamp(580px, calc(100dvh - 290px), 1300px) - 32px); }
    .lineage-map-monsters { position: static; width: auto; max-height: 250px; border: 0; border-top: 1px solid #353841; box-shadow: none; }
    [data-map-monsters] { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 680px) {
    .page-lineage-classic .lineage-map-database { padding: 12px; }
    .lineage-map-browser { position: static; width: auto; height: auto; border: 0; border-bottom: 1px solid #353841; box-shadow: none; }
    .lineage-map-browser > label { padding-top: 12px; }
    .lineage-map-browser > input { margin-bottom: 10px; }
    .lineage-map-list { display: flex; max-height: 60px; overflow-x: auto; overflow-y: hidden; }
    .lineage-map-list a { flex: 0 0 auto; padding: 12px; }
    .lineage-map-browser.has-quest:not(.quest-is-collapsed) > .lineage-map-list { flex: 0 0 auto; min-height: 0; }
    .lineage-map-quest { flex: 0 0 auto; max-height: 330px; }
    .page-lineage-classic .lineage-map-db-view > header { display: flex; flex-wrap: wrap; padding: 12px; gap: 10px; }
    .page-lineage-classic .lineage-map-db-view .lineage-hunting-map-controls { display: flex; flex-wrap: wrap; gap: 5px; }
    .page-lineage-classic .lineage-map-db-view .lineage-hunting-map-controls button { flex: 0 1 auto; }
    .page-lineage-classic .lineage-map-db-view .lineage-hunting-map-stage { height: min(60dvh, 520px); min-height: 340px; }
    .lineage-map-monsters { max-height: 310px; }
    [data-map-monsters] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lineage-map-monster { padding: 10px; gap: 8px; }
    .lineage-map-monster img { width: 36px; height: 36px; flex-basis: 36px; }
}
