/* ═══════════════════════════════════════════════════════
   style.css — Bangkok Work Cafes
   모바일 우선(Mobile-First) 설계
   색상 변경은 :root 변수만 수정하면 됩니다.
═══════════════════════════════════════════════════════ */

/* ─── CSS 변수 (색상 테마) ─── */
:root {
  --bg:          #FAFAF8;
  --surface:     #FFFFFF;
  --surface-alt: #F5F2EF;
  --border:      #E8E4DF;
  --text-1:      #2C2C2C;
  --text-2:      #6B6B6B;
  --text-3:      #9A9A9A;
  --brown:       #8B6F5E;
  --brown-light: #F0E9E5;
  --green:       #6B8F71;
  --star:        #D4A853;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
  --r-sm:        8px;
  --r-md:        12px;
  --r-lg:        20px;
}

/* ─── 리셋 & 기본 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
}

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans',
               'Noto Sans Thai', 'Apple SD Gothic Neo', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ─── 헤더 ─── */
.site-header {
  flex-shrink: 0;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  gap: 12px;
}

.site-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.site-subtitle {
  display: none;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 1px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.lang-btn {
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  min-width: 36px;
  min-height: 32px;
}

.lang-btn.active, .lang-btn:hover {
  color: var(--surface);
  background: var(--brown);
  border-color: var(--brown);
}

/* ─── 필터 바 ─── */
.filter-bar {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 90;
}

.filter-inner {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.action-btn {
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid var(--brown);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--brown);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-btn:hover {
  background: var(--brown);
  color: #fff;
}

.action-btn:active {
  transform: scale(0.97);
  background: var(--brown-dark, #5a3e2b);
  color: #fff;
}

.filter-selects {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.filter-select {
  height: 36px;
  padding: 0 24px 0 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  font-size: 12px;
  color: var(--text-1);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-select:focus { border-color: var(--brown); }

/* ─── 모바일 탭 ─── */
.mobile-tabs {
  flex-shrink: 0;
  display: flex;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  gap: 8px;
}

.tab-btn {
  flex: 1;
  height: 36px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: var(--surface);
  background: var(--brown);
  box-shadow: var(--shadow-sm);
}

/* ─── 메인 콘텐츠 ─── */
.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ─── 목록 패널 ─── */
.list-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  width: 100%;
  position: absolute;
  inset: 0;
  z-index: 10;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.list-panel.active { transform: translateX(0); }

.list-count {
  flex-shrink: 0;
  padding: 10px 16px 4px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.cafe-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 20px;
}

/* ─── 카페 카드 ─── */
.cafe-card {
  display: block;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-align: left;
  width: 100%;
}

.cafe-card:hover { border-color: var(--brown); box-shadow: var(--shadow-md); }
.cafe-card:active { transform: scale(0.99); }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}

.card-stars {
  font-size: 13px;
  color: var(--star);
  flex-shrink: 0;
  letter-spacing: 1px;
}

.card-area {
  font-size: 12px;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 8px;
}

.card-review {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: var(--brown-light);
  color: var(--brown);
  white-space: nowrap;
}

/* ─── 지도 패널 ─── */
.map-panel {
  width: 100%;
  position: absolute;
  inset: 0;
  transition: transform 0.25s ease;
}

.map-panel.hidden { transform: translateX(100%); }

#map { width: 100%; height: 100%; }

/* ─── 상태 메시지 ─── */
.status-msg {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

/* ─── 모달 ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-sheet {
  position: relative;
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.modal-overlay.active .modal-sheet { transform: translateY(0); }

.modal-sheet::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 4px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  z-index: 10;
  transition: background 0.15s ease;
}

.modal-close:hover { background: var(--border); }

.modal-body {
  padding: 8px 20px 36px;
}

.modal-cafe-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 6px;
  padding-right: 40px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.modal-area {
  font-size: 13px;
  color: var(--brown);
  font-weight: 600;
}

.modal-stars {
  font-size: 16px;
  color: var(--star);
  letter-spacing: 1px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.review-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.modal-review-text {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.75;
  white-space: pre-wrap;
  margin-bottom: 24px;
}

.modal-review-empty {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.action-btn:active { transform: scale(0.98); }

.btn-maps {
  background: var(--brown);
  color: white;
}

.btn-maps:hover { opacity: 0.9; }

.btn-threads {
  background: var(--surface-alt);
  color: var(--text-1);
  border: 1.5px solid var(--border);
}

.btn-threads:hover { border-color: var(--brown); }

.no-threads-msg {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  padding: 6px 0;
}

/* ─── 데스크탑 레이아웃 (768px 이상) ─── */
@media (min-width: 768px) {

  .site-subtitle { display: block; }
  .site-title { font-size: 18px; }

  .filter-inner {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
  }

  .action-btns { flex: 1; min-width: 200px; max-width: 340px; }
  .action-btn { font-size: 12px; }

  .filter-selects {
    grid-template-columns: auto auto auto;
    gap: 8px;
  }

  .filter-select { min-width: 128px; }

  .mobile-tabs { display: none; }

  .main-content { flex-direction: row; }

  /* 목록 패널: 좌측 고정 */
  .list-panel {
    position: relative;
    width: 360px;
    min-width: 300px;
    flex-shrink: 0;
    transform: none !important;
    border-right: 1px solid var(--border);
    z-index: auto;
  }

  /* 지도 패널: 우측 채움 */
  .map-panel {
    position: relative;
    flex: 1;
    transform: none !important;
  }

  /* 모달: 중앙 팝업 */
  .modal-overlay { align-items: center; }

  .modal-sheet {
    width: 500px;
    max-height: 80vh;
    border-radius: var(--r-lg);
    transform: scale(0.95);
  }

  .modal-overlay.active .modal-sheet { transform: scale(1); }
  .modal-sheet::before { display: none; }

  .cafe-card:hover { transform: translateY(-1px); }
  .cafe-list { padding: 8px 12px 24px; }
}

@media (min-width: 1200px) {
  .list-panel { width: 400px; }
}

/* ─── 카페 정보 그리드 (편안함·넓음·콘센트·와이파이) ─── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
}

.info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
}

.info-value {
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

.val-good {
  color: #3E7A54;
  background: #E8F5EC;
}

.val-mid {
  color: #8B6D3A;
  background: #FAF2E4;
}

.val-bad {
  color: #8A8A8A;
  background: #F0F0EF;
}

/* ─── Disqus 댓글 섹션 ─── */
.disqus-section {
  margin-top: 4px;
}

.disqus-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  margin-bottom: 16px;
}

#disqus_thread {
  min-height: 120px;
}

/* ─── 접근성 ─── */
:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

/* ─── 스크롤바 ─── */
.cafe-list::-webkit-scrollbar,
.modal-sheet::-webkit-scrollbar { width: 4px; }
.cafe-list::-webkit-scrollbar-track,
.modal-sheet::-webkit-scrollbar-track { background: transparent; }
.cafe-list::-webkit-scrollbar-thumb,
.modal-sheet::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ═══════════════════════════════════════
   카페 추천 모달
═══════════════════════════════════════ */
.recommend-sheet {
  max-height: 92vh;
  max-height: 92dvh;
}

.recommend-body {
  padding: 8px 20px 48px;
}

.recommend-header {
  margin-bottom: 24px;
  padding-right: 36px;
}

.recommend-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 6px;
}

.recommend-subtitle {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── 폼 그룹 ─── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(139, 111, 94, 0.12);
}

.form-input.input-error {
  border-color: #C0392B;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-error {
  font-size: 12px;
  color: #C0392B;
  margin-top: 5px;
  min-height: 16px;
}

/* ─── 용도 선택 그리드 ─── */
.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.purpose-option {
  cursor: pointer;
}

.purpose-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.purpose-label {
  display: block;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.purpose-option input[type="radio"]:checked + .purpose-label {
  border-color: var(--brown);
  background: var(--brown-light);
  color: var(--brown);
  font-weight: 700;
}

.purpose-option:hover .purpose-label {
  border-color: var(--brown);
  color: var(--brown);
}

/* ─── 글자 수 카운터 ─── */
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-top: 5px;
}

.char-count {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.char-count.char-warn {
  color: #C0392B;
  font-weight: 600;
}

/* ─── 제출 버튼 ─── */
.recommend-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.recommend-submit-btn:hover {
  background: #7A5E4E;
}

.recommend-submit-btn:active {
  transform: scale(0.98);
}

.recommend-submit-btn:disabled {
  background: var(--text-3);
  cursor: not-allowed;
  transform: none;
}

/* ─── 성공 메시지 ─── */
.recommend-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.success-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 10px;
}

.success-msg {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── 오류 배너 ─── */
.recommend-error-banner {
  margin-top: 12px;
  padding: 12px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: #C0392B;
  text-align: center;
}

/* ─── 데스크탑: 추천 모달 중앙 팝업 ─── */
@media (min-width: 768px) {
  #recommendOverlay {
    align-items: center;
  }

  .recommend-sheet {
    width: 520px;
    max-width: 95vw;
    border-radius: var(--r-lg);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
  }

  #recommendOverlay.active .recommend-sheet {
    transform: scale(1);
  }
}

/* 모바일에서는 기존 modal-sheet 애니메이션(translateY) 그대로 사용 */

/* ═══════════════════════════════════════
   후원/광고 모달
═══════════════════════════════════════ */
.sponsor-sheet {
  max-height: 90vh;
  max-height: 90dvh;
}

.sponsor-body {
  padding: 8px 20px 44px;
}

.sponsor-page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 20px;
  padding-right: 40px;
}

.sponsor-section {
  margin: 4px 0;
}

.sponsor-section-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
}

/* ─── QR 코드 영역 ─── */
.qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  padding: 8px 0;
}

.donation-qr-img {
  width: 110px;
  max-width: 110px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  display: block;
}

.qr-placeholder {
  width: 90px;
  height: 90px;
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  background: var(--surface-alt);
}

/* ─── 광고 이미지 영역 ─── */
.ad-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.ad-note-box {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.ad-media {
  display: block;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
}

.ad-link {
  display: block;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
}

.ad-image {
  width: 100%;
  max-width: 100%;
  border-radius: var(--r-md);
  display: block;
  transition: opacity 0.15s ease;
}

.ad-media:hover .ad-image,
.ad-link:hover .ad-image { opacity: 0.9; }

.ad-placeholder {
  width: 100%;
  min-height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  background: var(--surface-alt);
}

/* ─── 광고 문의 버튼 ─── */
.ad-contact-btn {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  margin-top: 4px;
}

.ad-contact-btn:hover {
  background: var(--brown-light);
  border-color: var(--brown);
}

/* ─── 24시간 보지 않기 ─── */
.sponsor-hide-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  cursor: pointer;
  user-select: none;
}

.sponsor-hide-check {
  width: 16px;
  height: 16px;
  accent-color: var(--brown);
  cursor: pointer;
  flex-shrink: 0;
}

.sponsor-hide-row span {
  font-size: 13px;
  color: var(--text-3);
}

.sponsor-hide-row:hover span {
  color: var(--text-2);
}

/* ─── 광고 문의 팝업 ─── */
.ad-inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ad-inquiry-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.ad-inquiry-popup {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.93);
  transition: transform 0.25s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.ad-inquiry-overlay.active .ad-inquiry-popup {
  transform: scale(1);
}

.inquiry-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 12px;
}

.inquiry-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 12px;
}

.inquiry-email {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 22px;
  word-break: break-all;
}

.inquiry-close-btn {
  width: 100%;
  padding: 13px;
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.inquiry-close-btn:hover { background: #7A5E4E; }
.inquiry-close-btn:active { transform: scale(0.98); }

/* ─── 데스크탑: 후원/광고 모달 중앙 팝업 ─── */
@media (min-width: 768px) {
  #sponsorOverlay {
    align-items: center;
  }

  .sponsor-sheet {
    width: 480px;
    max-width: 95vw;
    border-radius: var(--r-lg);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
  }

  #sponsorOverlay.active .sponsor-sheet {
    transform: scale(1);
  }

  .sponsor-sheet::before { display: none; }
}
