
:root {
  --meister-blue: #0d3fae;
  --meister-blue-dark: #082f83;
  --meister-cyan: #46c4d4;
  --meister-yellow: #f5bf12;
  --text-strong: #17233b;
  --text: #334155;
  --text-muted: #687386;
  --line: #d9dee7;
  --line-dark: #bcc5d2;
  --surface: #ffffff;
  --surface-soft: #f2f5f8;
  --page: #f7f8fa;
  --direct: #14966a;
  --managed: #2c66cb;
  --transfer: #d48312;
  --affiliation: #7650b5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  background:
    linear-gradient(90deg, transparent 0 96%, rgba(70, 196, 212, 0.07) 96% 96.2%, transparent 96.2%),
    var(--page);
  color: var(--text-strong);
}

body::before {
  content: "";
  position: fixed;
  right: -90px;
  top: 185px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: repeating-linear-gradient(
    0deg,
    rgba(70, 196, 212, 0.18) 0 3px,
    transparent 3px 9px
  );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  left: 24px;
  bottom: 54px;
  width: 120px;
  height: 4px;
  background: var(--meister-cyan);
  box-shadow:
    16px -16px 0 rgba(70, 196, 212, 0.32),
    32px -32px 0 rgba(217, 222, 231, 0.8);
  transform: rotate(-45deg);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(70, 196, 212, 0.45);
  outline-offset: 2px;
}

/* 상단 영역 */
.meister-header {
  position: relative;
  z-index: 5;
  min-height: 112px;
  background: var(--meister-blue);
  color: #fff;
  border-bottom: 4px solid var(--meister-cyan);
}

.meister-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 88px;
  height: 4px;
  background: var(--meister-yellow);
}

.header-inner {
  width: min(1500px, calc(100% - 48px));
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-left {
  min-width: 0;
}


.header-left h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 2.3vw, 38px);
  font-weight: 800;
  letter-spacing: -1.3px;
}

.header-left p {
  margin: 7px 0 0;
  color: #e1eaff;
  font-size: 15px;
  letter-spacing: -0.25px;
}

.header-right {
  flex: 0 0 auto;
}

.result-box {
  min-width: 144px;
  padding: 13px 19px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  text-align: right;
}

.result-box > span {
  display: block;
  margin-bottom: 3px;
  color: #d9e5ff;
  font-size: 12px;
  font-weight: 700;
}

.result-number-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
}

.result-box strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.result-box em {
  color: #e6edff;
  font-size: 12px;
  font-style: normal;
}

/* 전체 레이아웃 */
.container {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100% - 48px));
  min-height: calc(100vh - 112px - 62px);
  margin: 0 auto;
  padding: 28px 0 34px;
  display: grid;
  grid-template-columns: 352px minmax(0, 1fr);
  gap: 22px;
}

aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #aeb8c7 transparent;
}

aside::-webkit-scrollbar,
#masterList::-webkit-scrollbar {
  width: 6px;
}

aside::-webkit-scrollbar-thumb,
#masterList::-webkit-scrollbar-thumb {
  background: #b8c1ce;
  border-radius: 10px;
}

/* 좌측 정보 패널 */
.card,
.logo-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.card {
  padding: 18px;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 3px;
  background: var(--meister-cyan);
}

.logo-card {
  min-height: 92px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 3px solid var(--meister-blue);
}

.logo-card-label {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo-card img {
  display: block;
  width: min(258px, 92%);
  height: auto;
  margin-top: 7px;
}

.card h2 {
  margin: 0 0 14px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}

.card-title-row h2 {
  margin: 0;
}

#searchInput {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: #fff;
  color: var(--text-strong);
  font-size: 14px;
}

#searchInput::placeholder {
  color: #929baa;
}

#searchInput:focus {
  border-color: var(--meister-blue);
  box-shadow: inset 0 0 0 1px var(--meister-blue);
  outline: none;
}

.button-area {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 7px;
  margin-top: 8px;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

#searchButton,
#resetButton,
.nearby-button,
.small-reset-button {
  border-radius: 2px;
}

#searchButton {
  min-height: 42px;
  background: var(--meister-blue);
  color: #fff;
}

#searchButton:hover {
  background: var(--meister-blue-dark);
}

#resetButton {
  min-height: 42px;
  background: #e9edf2;
  color: #39465a;
}

#resetButton:hover {
  background: #dde3ea;
}

.nearby-button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid #9ed7de;
  background: #eefafb;
  color: #176d78;
  font-size: 13px;
}

.nearby-button:hover,
.nearby-button.active {
  border-color: var(--meister-cyan);
  background: #dff6f8;
}

.nearby-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.region-select {
  max-width: 112px;
  height: 34px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.small-reset-button {
  height: 34px;
  padding: 0 11px;
  background: #e9edf2;
  color: #3d4a5d;
  font-size: 12px;
}

.small-reset-button.active {
  background: var(--meister-blue);
  color: #fff;
}

/* 직종 탭 */
.legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.job-filter-button {
  min-width: 0;
  min-height: 82px;
  padding: 9px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  color: #4b5565;
  font-size: 11px;
  text-align: center;
}

.job-filter-button:last-child {
  border-right: 0;
}

.job-filter-button:hover {
  background: #e8eef5;
}

.job-filter-button.active {
  position: relative;
  background: #fff;
  color: var(--meister-blue);
  box-shadow: inset 0 3px 0 var(--meister-blue);
}

.legend-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #fff;
  border: 1px solid #d4dae3;
}

.legend-circle.bakery {
  background: #fff2de;
}

.legend-circle.cooking {
  background: #ffe9e9;
}

.legend-circle.car {
  background: #e5efff;
}

/* 관계 범례 */
.category-guide-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.category-guide-title h2 {
  margin: 0;
}

.category-guide-title > span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}

.category-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.category-legend-item {
  min-height: 39px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #3a4659;
  font-size: 12px;
  font-weight: 700;
}

.category-color-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.category-color-dot.direct {
  background: var(--direct);
}

.category-color-dot.managed {
  background: var(--managed);
}

.category-color-dot.transfer {
  background: var(--transfer);
}

.category-color-dot.affiliation {
  background: var(--affiliation);
}

/* 명장 목록 */
#masterList {
  max-height: calc(100vh - 585px);
  min-height: 182px;
  padding-right: 3px;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b8c1ce transparent;
}

.master-item {
  width: 100%;
  min-height: 60px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  text-align: left;
}

.master-item:hover {
  border-color: #a9b6c8;
  background: #f7f9fb;
}

.master-item.selected {
  border-color: var(--meister-blue);
  background: #f2f6ff;
  box-shadow: inset 4px 0 0 var(--meister-blue);
}

.master-name {
  display: block;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-meta {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-list-icon {
  width: 33px;
  height: 33px;
  font-size: 18px;
}

.business-list-icon.category-direct {
  background: #e4f6ef;
  box-shadow: 0 0 0 2px var(--direct);
}

.business-list-icon.category-managed {
  background: #e7effd;
  box-shadow: 0 0 0 2px var(--managed);
}

.business-list-icon.category-transfer {
  background: #fff0dc;
  box-shadow: 0 0 0 2px var(--transfer);
}

.business-list-icon.category-affiliation {
  background: #f0eafd;
  box-shadow: 0 0 0 2px var(--affiliation);
}

.business-list-icon.category-unknown {
  background: #edf0f4;
  box-shadow: 0 0 0 2px #7a8494;
}

.empty-message {
  padding: 20px 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* 지도 패널 */
main {
  min-width: 0;
}

.map-panel {
  height: 100%;
  min-height: 690px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-dark);
}

.map-panel-header {
  min-height: 86px;
  padding: 17px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.map-panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--meister-blue);
  font-size: 11px;
  font-weight: 800;
}

.map-panel-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.map-panel-header p {
  max-width: 450px;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.map-wrapper {
  position: relative;
  flex: 1;
  min-height: 600px;
  overflow: hidden;
  background: #e9edf1;
}

#map {
  position: absolute;
  inset: 0;
}

.map-tap-overlay {
  position: absolute;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 37, 85, 0.46);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.map-wheel-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 950;
  padding: 9px 16px;
  transform: translateX(-50%) translateY(8px);
  border-radius: 2px;
  background: rgba(15, 36, 74, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.map-wheel-hint.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 지도 마커 */
.custom-marker {
  border: 0;
  background: transparent;
}

.marker-pin {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 13px rgba(20, 31, 53, 0.34);
}

.marker-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  z-index: -1;
  width: 15px;
  height: 15px;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.marker-pin .emoji {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.marker-category-direct {
  background: var(--direct);
}

.marker-category-managed {
  background: var(--managed);
}

.marker-category-transfer {
  background: var(--transfer);
}

.marker-category-affiliation {
  background: var(--affiliation);
}

.marker-category-unknown {
  background: #778293;
}

.marker-pin.selected {
  transform: scale(1.16);
  box-shadow:
    0 0 0 4px rgba(245, 191, 18, 0.82),
    0 7px 17px rgba(20, 31, 53, 0.38);
}

.marker-pin.selected .emoji {
  background: #fff5cc;
}

/* Leaflet 도구 */
.locate-control {
  margin-top: 10px !important;
}

.locate-control button {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #aeb8c6;
  border-radius: 2px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.locate-control button:hover {
  background: #eef4fb;
}

.user-location-marker {
  border: 0;
  background: transparent;
}

.user-location-dot {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #4285f4;
  box-shadow:
    0 0 0 4px rgba(66, 133, 244, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.28);
}

.leaflet-control-zoom a {
  color: #21324d;
}

.leaflet-popup-content-wrapper {
  border-radius: 3px;
  box-shadow: 0 8px 28px rgba(18, 34, 58, 0.22);
}

.leaflet-popup-content {
  margin: 16px 17px;
}

/* 팝업 */
.popup-card {
  min-width: 258px;
  color: var(--text-strong);
}

.popup-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.popup-icon {
  flex: 0 0 auto;
}

.popup-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.popup-title {
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.business-category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.business-category-badge.direct {
  border-color: #9ad7c2;
  background: #e4f7f0;
  color: #086446;
}

.business-category-badge.managed {
  border-color: #b4caef;
  background: #e8f0fd;
  color: #184d9f;
}

.business-category-badge.transfer {
  border-color: #e8c78e;
  background: #fff2dc;
  color: #865100;
}

.business-category-badge.affiliation {
  border-color: #cebbed;
  background: #f1ecfb;
  color: #5c3594;
}

.business-category-badge.unknown {
  border-color: #cdd3dc;
  background: #eef1f5;
  color: #475467;
}

.popup-info-grid {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 11px 0 12px;
  padding: 11px 12px;
  border-top: 2px solid var(--meister-blue);
  background: #f3f6f9;
}

.popup-info-label {
  color: #647084;
  font-size: 11px;
  font-weight: 800;
}

.popup-info-value {
  color: #1f2a3c;
  font-size: 12px;
  font-weight: 800;
}

.popup-line {
  margin: 7px 0;
  color: #405066;
  font-size: 12px;
  line-height: 1.5;
}

.popup-line b {
  margin-right: 5px;
  color: #25344b;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.popup-button {
  min-height: 32px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: var(--meister-blue);
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.popup-button:hover {
  background: var(--meister-blue-dark);
}

.popup-button-secondary {
  background: #168c69;
}

.popup-button-secondary:hover {
  background: #0f7357;
}

.popup-button-share {
  background: #6650a4;
  font-family: inherit;
}

.popup-button-share:hover {
  background: #523d8b;
}

/* 푸터 */
.site-footer {
  position: relative;
  z-index: 2;
  min-height: 62px;
  padding: 20px 24px;
  border-top: 1px solid #d7dce4;
  background: #f1f3f5;
  color: #687386;
  font-size: 12px;
  text-align: center;
}

.site-footer-inner p {
  margin: 0;
}

.site-footer a {
  color: var(--meister-blue);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* 이용 안내 */
.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 27, 58, 0.58);
}

.notice-overlay.visible {
  display: flex;
}

.notice-box {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  padding: 27px;
  overflow-y: auto;
  border-top: 5px solid var(--meister-blue);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(10, 20, 35, 0.28);
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.notice-box h2,
.notice-box h3 {
  margin: 0 0 15px;
  color: var(--text-strong);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.35px;
  word-break: keep-all;
}

.notice-box p {
  margin: 10px 0;
  color: #465469;
  font-size: 13px;
  line-height: 1.72;
  letter-spacing: -0.12px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.notice-contact {
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.notice-contact a {
  color: var(--meister-blue);
  text-decoration: none;
}

.notice-footer-row {
  margin-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  cursor: pointer;
}

.notice-close-button {
  min-width: 74px;
  min-height: 36px;
  border-radius: 2px;
  background: var(--meister-blue);
  color: #fff;
  font-size: 12px;
}

.notice-close-button:hover {
  background: var(--meister-blue-dark);
}

/* 모바일 */
@media (max-width: 1050px) {
  .container {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .map-panel-header p {
    max-width: 330px;
  }
}

@media (max-width: 900px) {
  body::before,
  body::after {
    display: none;
  }

  .meister-header {
    min-height: 0;
  }

  .header-inner {
    width: calc(100% - 32px);
    min-height: 0;
    padding: 19px 0;
    align-items: flex-start;
  }

  .header-left h1 {
    font-size: 26px;
  }

  .header-left p {
    font-size: 13px;
  }

  .result-box {
    min-width: 104px;
    padding: 7px 0 7px 15px;
  }

  .result-box strong {
    font-size: 27px;
  }

  .result-box em {
    display: none;
  }

  .container {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 15px 0 25px;
    grid-template-columns: 1fr;
  }

  main {
    order: 1;
  }

  aside {
    order: 2;
    overflow: visible;
  }

  .map-panel {
    min-height: 0;
  }

  .map-panel-header {
    min-height: 0;
    padding: 14px 15px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .map-panel-header h2 {
    font-size: 19px;
  }

  .map-panel-header p {
    max-width: none;
    text-align: left;
  }

  .map-wrapper {
    height: 52vh;
    min-height: 360px;
    flex: none;
  }

  .map-tap-overlay.mobile-active {
    display: flex;
  }

  #masterList {
    max-height: 360px;
  }
}

@media (max-width: 560px) {
  .notice-overlay {
    padding: 10px;
    align-items: center;
  }

  .notice-box {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 22px 20px 20px;
  }

  .notice-box h2,
  .notice-box h3 {
    margin-bottom: 13px;
    font-size: 18px;
  }

  .notice-box p {
    margin: 9px 0;
    font-size: 13px;
    line-height: 1.68;
  }

  .notice-footer-row {
    position: sticky;
    bottom: -20px;
    margin: 16px -20px -20px;
    padding: 14px 20px 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.88), #fff 26%);
  }

  .header-inner {
    gap: 14px;
  }

  .header-left h1 {
    font-size: 22px;
    letter-spacing: -0.8px;
  }

  .header-left p {
    display: none;
  }

  .result-box {
    min-width: 76px;
  }

  .result-box > span {
    font-size: 10px;
  }

  .result-box strong {
    font-size: 24px;
  }

  .container {
    width: calc(100% - 20px);
  }

  .card {
    padding: 15px;
  }

  .legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job-filter-button {
    min-height: 74px;
  }

  .popup-card {
    min-width: 225px;
  }

  .popup-info-grid {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .notice-footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-close-button {
    width: 100%;
  }
}


/* 헤더 서비스 공유 버튼 */
.header-right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.header-share-button {
  min-height: 34px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.header-share-button:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--meister-blue);
}

.header-share-button:active {
  transform: translateY(1px);
}

@media (max-width: 560px) {
  .header-right {
    gap: 7px;
  }

  .header-share-button {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 11px;
  }
}


/* 헤더 마이스터Net 연결 로고 */
.header-brand-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.header-brand-row h1 {
  flex: 0 1 auto;
}

.meister-net-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 3px 5px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.meister-net-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.meister-net-link:active {
  opacity: 0.82;
}

.meister-net-link img {
  display: block;
  width: 118px;
  height: auto;
}

@media (max-width: 900px) {
  .header-brand-row {
    gap: 14px;
  }

  .meister-net-link img {
    width: 102px;
  }
}

@media (max-width: 560px) {
  .header-brand-row {
    gap: 9px;
  }

  .meister-net-link {
    padding: 2px 3px;
  }

  .meister-net-link img {
    width: 82px;
  }
}
