/* ===== 기본 톤 ===== */
:root {
  --accent: #1f6f5c;
  --accent-soft: #cfe3de;
  --ink: #1f2523;
  --ink-soft: #5b655f;
  --bg: #f7f7f4;
  --panel-bg: #ffffff;
  --border: #e3e2dc;
  --danger-accent: #e0583b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ===== 헤더 ===== */
.site-header {
  padding: 20px 24px 8px;
  text-align: center;
}
.brand {
  font-size: 1.4rem;
  font-weight: 700;
}
.brand-sub {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ===== 채널 바로가기 배너 ===== */
.channel-banner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: 12px;
  padding: 8px 16px 8px 10px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.channel-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.channel-card-trip { border-left-color: #e8871e; }
.channel-card-trekom { border-left-color: #3b6fd6; }

.channel-card-avatar {
  position: relative;
  flex-shrink: 0;
  display: block;
}
.channel-card-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #ddd;
}
.channel-card-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-card-badge-trip { background: #e8871e; }
.channel-card-badge-trekom { background: #3b6fd6; }

.channel-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.channel-card-name {
  font-size: 0.86rem;
  font-weight: 700;
}
.channel-card-desc {
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== 광고 슬롯 (나중에 실제 광고 코드로 교체) ===== */
.ad-slot {
  margin: 12px auto;
  background: repeating-linear-gradient(45deg, #eeece6, #eeece6 10px, #e6e4dd 10px, #e6e4dd 20px);
  border: 1px dashed #c7c4ba;
  color: #9a978d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.ad-slot-leaderboard {
  max-width: 728px;
  height: 90px;
  width: 92%;
  /* .ad-slot의 margin은 아고다 배너가 활성화되면(그 클래스가 빠지면) 함께
     사라지므로, 가운데 정렬은 여기서도 한 번 더 명시해둡니다. */
  margin: 12px auto;
}
.ad-slot-inline {
  width: 100%;
  height: 70px;
  margin: 0;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ===== 아고다(Agoda) 숙소 예약 제휴 배너 ===== */
.agoda-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eaf3f0, #dcece5);
  border: 1px solid var(--accent-soft);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.agoda-banner:hover {
  border-color: var(--accent);
}
.agoda-banner-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  line-height: 1;
}
.agoda-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.agoda-banner-text strong {
  font-size: 0.95rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agoda-banner-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agoda-banner-cta {
  flex-shrink: 0;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
/* 영상 목록 아래 작은 자리(70px)에서는 부제(제휴 링크 문구 포함)를 감춰서
   좁은 공간에 글자가 겹치지 않게 합니다 — 헤더의 큰 배너에서 항상 표시되므로
   제휴 고지 자체가 사라지는 건 아닙니다. */
.agoda-banner-inline {
  padding: 0 12px;
}
.agoda-banner-inline .agoda-banner-sub {
  display: none;
}
.agoda-banner-inline .agoda-banner-icon {
  font-size: 1.4rem;
}
.agoda-banner-inline .agoda-banner-cta {
  padding: 6px 10px;
  font-size: 0.75rem;
}

/* ===== 클룩(Klook) 어필리에이트 배너 (헤더 전용, 고정 이미지) ===== */
.klook-banner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  /* 배너 이미지(728×90 비율)가 자리보다 낮은 높이로 줄어드는 화면(모바일 등)에서
     위아래에 여백이 생길 수 있어, 그 여백이 이미지 배경색과 자연스럽게 이어지도록
     같은 계열 색을 깔아둡니다. */
  background: #f2602a;
}
.klook-banner img {
  display: block;
  width: 100%;
  height: 100%;
  /* cover로 자르면 좁은 화면에서 양옆의 차 아이콘/버튼이 잘려나가므로, 잘리지
     않고 항상 전체가 보이도록 contain을 사용합니다. */
  object-fit: contain;
  border-radius: 10px;
}

/* ===== 레이아웃 ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  max-width: 1280px;
  margin: 16px auto;
  padding: 0 16px;
  align-items: start;
}

.map-pane {
  position: relative;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
#map {
  height: 640px;
  width: 100%;
  background: #eef1f0;
}
/* 지도/데이터를 불러오는 동안 보여주는 스켈레톤(shimmer) 배경 — 로딩이 끝나면
   부드럽게 사라지도록 opacity 트랜지션으로 처리합니다. */
.map-skeleton {
  position: absolute;
  inset: 0;
  z-index: 400;
  background: linear-gradient(100deg, #e7eae6 30%, #f4f5f2 45%, #e7eae6 60%);
  background-size: 200% 100%;
  animation: map-skeleton-shimmer 1.4s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
.map-skeleton.is-hidden {
  opacity: 0;
  pointer-events: none;
}
@keyframes map-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.map-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 401;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.map-status.is-hidden {
  opacity: 0;
}
.map-status-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: map-status-spin 0.8s linear infinite;
}
.map-status-spinner.is-error {
  animation: none;
  border-top-color: var(--danger-accent);
}
@keyframes map-status-spin {
  to { transform: rotate(360deg); }
}

.back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  min-height: 44px;
}
.back-btn:hover { background: var(--accent-soft); }
.back-btn svg { flex-shrink: 0; color: var(--accent); }
.back-btn:disabled {
  opacity: 0.65;
  cursor: default;
  background: #ffffff;
}

/* 어디서든 클릭 한 번으로 다른 여행지를 무작위로 둘러볼 수 있는 버튼 —
   back-btn과 반대편(오른쪽 위)에 두어 항상 눈에 띄게 했습니다. */
.random-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-height: 44px;
}
.random-btn:hover { background: var(--accent-soft); }
.random-btn svg { flex-shrink: 0; color: var(--accent); }

/* ===== 오른쪽 패널 ===== */
.side-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 640px;
}
.panel-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.video-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.panel-empty {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.video-card {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.video-card:hover { border-color: var(--accent); background: #f2f7f5; }
.video-card img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #ddd;
}
.video-card-info { min-width: 0; }
.video-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-guide {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* 여러 도시를 함께 다루는 비교 영상에서, 어떤 도시들을 비교하는지 보여줍니다. */
.video-compare {
  margin: 3px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.channel-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}
.channel-tag-trip { background: #e8871e; }
.channel-tag-trekom { background: #3b6fd6; }

/* ===== Leaflet 커스텀 ===== */
.country-active { cursor: pointer; }
.country-inactive { cursor: default; }

.city-tooltip {
  font-size: 0.8rem;
  font-weight: 600;
}

/* 채널별 도시 점 (divIcon). 트립콤파니 점(주황)이 바깥쪽 큰 원이고, 여행하는트콤
   점(파랑)은 그보다 작게 정중앙에 겹쳐서 "원 안에 원" 형태로 보이게 배치합니다.
   #map에 설정되는 --marker-zoom-scale 값에 따라 확대할수록 점이 함께 커집니다. */
.city-icon-wrapper {
  background: transparent !important;
  border: none !important;
}
.city-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  transform: scale(var(--marker-zoom-scale, 1));
  transform-origin: center;
}
.city-dot {
  position: absolute;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.city-dot-trip {
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #e8871e;
  z-index: 1;
}
.city-dot-trekom {
  left: 7px;
  top: 7px;
  width: 10px;
  height: 10px;
  background: #3b6fd6;
  z-index: 2;
}
/* 여행하는트콤 영상만 있고 트립콤파니 영상은 없는 도시는 파란 점 혼자 표시되므로
   너무 작지 않게 살짝 키워서 중앙에 오도록 합니다. */
.city-icon:has(.city-dot-trekom:only-child) .city-dot-trekom {
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
}
/* Cities 탭에는 있지만 아직 등록된 영상이 하나도 없는 도시는 흰 점(회색 테두리)으로
   "준비중" 상태를 표시합니다. */
.city-dot-empty {
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-color: #9a978d;
  z-index: 1;
}
.city-icon.is-selected .city-dot-trip { background: #c1272d; }
.city-icon.is-selected .city-dot-trekom { background: #1f3f8f; }
.city-icon.is-selected .city-dot-empty { border-color: #5b655f; }
.city-icon.is-selected { transform: scale(calc(var(--marker-zoom-scale, 1) * 1.15)); }

/* 트콤이 지금 있는 위치를 보여주는 동그란 얼굴 사진 마커. 뒤에 은은하게
   퍼지는 파란 파동(pulse)과 오른쪽 아래 빨간 LIVE 배지로 "지금 실시간"이라는
   느낌을 줍니다. 다른 도시 점들과 달리 확대/축소해도 크기가 바뀌지 않아서
   어느 줌 레벨에서든 눈에 잘 띕니다.

   얼굴 사진 원을 실제 좌표에 정중앙 정렬하지 않고, 좌표 바로 위에 살짝
   띄운 "핀" 모양으로 그립니다(원 아래 작은 꼬리가 정확한 좌표를 가리킴).
   그래야 같은 위치에 이미 있는 도시 영상 점을 가리지 않아서, 트콤이 지금
   있는 도시와 그 도시의 영상 점이 겹쳐도 영상 점을 계속 클릭할 수 있습니다. */
.trekom-live-icon-wrapper {
  background: transparent !important;
  border: none !important;
}
.trekom-live-marker {
  position: relative;
  display: block;
  width: 56px;
  height: 70px;
}
.trekom-live-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(59, 111, 214, 0.35);
  animation: trekom-live-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes trekom-live-pulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.trekom-live-photo {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3b6fd6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  background: #ddd;
  display: block;
}
.trekom-live-badge {
  position: absolute;
  right: -2px;
  top: 38px;
  background: #e0303a;
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 1px 5px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  line-height: 1.3;
}
/* 원 바로 아래, 실제 좌표를 가리키는 작은 꼬리(말풍선 꼬리와 같은 구조). */
.trekom-live-tail {
  position: absolute;
  left: 50%;
  top: 53px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid #3b6fd6;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}
.trekom-live-tooltip {
  font-size: 0.78rem;
  line-height: 1.45;
}

.map-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-legend .legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.map-legend .legend-dot-trip { background: #e8871e; }
.map-legend .legend-dot-trekom { background: #3b6fd6; }
.map-legend .legend-dot-empty {
  background: #ffffff;
  border-color: #9a978d;
}

.map-legend .legend-combo {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.map-legend .legend-combo .legend-dot {
  position: absolute;
  box-sizing: border-box;
}
.map-legend .legend-combo .legend-dot-trip {
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
}
.map-legend .legend-combo .legend-dot-trekom {
  left: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
}

/* ===== 영상 재생 모달 (지도 위에 크게 표시) ===== */
.video-modal {
  position: absolute;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal[hidden] { display: none; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 15, 0.75);
  border: none;
}
.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92%, 720px);
  background: #0b0c0b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.video-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}
.video-modal-close:hover { background: rgba(0, 0, 0, 0.8); }
.video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #14171a;
}
.video-modal-title {
  margin: 0;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.video-modal-yt-link {
  flex-shrink: 0;
  color: #cfd6dc;
  font-size: 0.76rem;
  text-decoration: none;
  white-space: nowrap;
}
.video-modal-yt-link:hover { color: #ffffff; text-decoration: underline; }

/* 모달 하단 "이어서 볼 영상" 추천 — 가로 스크롤 썸네일 스트립. 모달을 닫지
   않고도 클릭 한 번으로 다음 영상으로 바로 넘어갈 수 있게 해서 체류시간을
   늘리는 용도입니다. */
.video-modal-related {
  background: #0b0c0b;
  padding: 4px 14px 14px;
}
.video-modal-related-label {
  margin: 0 0 8px;
  color: #9aa3ab;
  font-size: 0.74rem;
  font-weight: 700;
}
.video-modal-related-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.video-modal-related-item {
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.video-modal-related-item img {
  width: 132px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  background: #222;
  display: block;
}
.video-modal-related-item:hover img { outline: 2px solid var(--accent); }
.video-modal-related-item-title {
  color: #e6e9eb;
  font-size: 0.72rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== 푸터 ===== */
.site-footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  padding: 20px 16px 32px;
}

/* ===== 반응형 (모바일) ===== */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }
  #map {
    height: 56vh;
    min-height: 320px;
  }
  .side-panel {
    max-height: none;
  }
  .ad-slot-leaderboard {
    height: 70px;
  }
  .ad-slot-leaderboard .agoda-banner-sub {
    display: none;
  }
  .channel-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }
  .channel-card {
    max-width: none;
  }

  /* 모바일에서는 지도 영역이 좁아서 모달을 지도 패널 안이 아니라
     화면 전체를 덮는 전체화면 형태로 띄웁니다. */
  .video-modal {
    position: fixed;
  }
  .video-modal-dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .video-modal-player {
    flex: 1;
    aspect-ratio: auto;
  }
  .video-modal-related {
    flex-shrink: 0;
  }
}

/* 아주 좁은 화면에서는 back-btn과 random-btn이 겹치지 않도록 random-btn은
   아이콘만 남기고 글자를 숨깁니다. */
@media (max-width: 420px) {
  .random-btn {
    padding: 10px;
  }
  .random-btn-label {
    display: none;
  }
}

/* ===== 쿠키 동의 배너 ===== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-consent-text {
  margin: 0;
  flex: 1 1 260px;
  min-width: 200px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
}
.cookie-consent-text a {
  color: var(--accent);
  font-weight: 600;
}
.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-consent-btn {
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.cookie-consent-reject {
  background: #ffffff;
  color: var(--ink);
}
.cookie-consent-reject:hover {
  background: #f2f2ef;
}
.cookie-consent-accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.cookie-consent-accept:hover {
  background: #185c4c;
}
.site-footer-links {
  margin-top: 6px;
}
.site-footer-links a {
  color: var(--ink-soft);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-actions {
    justify-content: stretch;
  }
  .cookie-consent-btn {
    flex: 1;
  }
}
