/* ============================================================
   Hello-Phil — Directory page styles (업소록)
   ============================================================ */

/* ==== Page Title ==== */
.dir-pagetitle {
  background: linear-gradient(135deg, #00A8F0 0%, #0E84BC 60%, #0D3B66 100%);
  color: #fff;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.dir-pagetitle::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,199,44,0.4), transparent 60%);
}
.dir-pagetitle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, #FFC72C 0 30px, #E0202D 30px 60px);
}
.dpt-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: center;
  position: relative; z-index: 1;
}
.dpt-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em;
  color: #FFC72C; margin-bottom: 12px;
  border: 1px solid rgba(255,199,44,0.5); padding: 4px 10px; border-radius: 4px;
}
.dpt-text h1 {
  font-size: 38px; font-weight: 900; letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 10px;
}
.dpt-text h1 em { font-style: normal; color: #FFC72C; text-shadow: 0 2px 4px rgba(0,0,0,0.25); }
.dpt-text p { font-size: 14.5px; opacity: 0.92; line-height: 1.6; max-width: 680px; }
.dpt-meta {
  display: flex; gap: 22px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2); font-size: 12.5px; flex-wrap: wrap;
}
.dpt-meta strong { color: #FFC72C; font-weight: 900; font-size: 17px; margin-right: 6px; }
.dpt-meta .hot strong { color: #fff; background: #E0202D; padding: 2px 8px; border-radius: 4px; font-size: 11.5px; letter-spacing: 0.05em; }

.dpt-cta {
  display: block; padding: 22px 24px; background: rgba(255,255,255,0.95); color: #0D3B66;
  border-radius: 12px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s;
  border: 3px solid #FFC72C;
}
.dpt-cta:hover { transform: translateY(-3px); }
.dpt-cta strong { display: block; font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.dpt-cta span { display: block; font-size: 12.5px; color: #00A8F0; font-weight: 700; }

/* 글로벌 탑티어 톤 통일 — 박스 테두리 제거 + 부드러운 그림자 (게시판과 동일) */
.dir-page .ui-block {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
}

/* ==== Filter ==== */
.dir-filter-block { padding: 14px 18px; }
.dir-filter-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid #EEF2F6;
}
.dir-filter-row:last-child { border-bottom: none; }
.dir-filter-row.dir-sort-row { gap: 16px; flex-wrap: wrap; }
.dfr-label {
  flex-shrink: 0; min-width: 50px; font-size: 12.5px; font-weight: 800;
  color: #475569; padding-top: 6px; letter-spacing: 0.04em;
}
.dir-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.dir-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  border-radius: 18px; border: 1px solid #CBD5E1; background: #fff;
  color: #1E293B; cursor: pointer; transition: 0.15s;
}
.dir-chip em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #94A3B8; }
.dir-chip:hover { border-color: #00A8F0; color: #00A8F0; }
.dir-chip.active { background: #00A8F0; color: #fff; border-color: #00A8F0; }
.dir-chip.active em { color: rgba(255,255,255,0.8); }
.dir-chip-sub { font-weight: 600; color: #64748B; font-size: 11.5px; padding: 5px 10px; }

.dir-sort { display: flex; gap: 0; border: 1px solid #CBD5E1; border-radius: 6px; overflow: hidden; }
.dir-sort-btn {
  padding: 6px 14px; font-size: 12px; font-weight: 700; color: #475569;
  background: #fff; border-right: 1px solid #E2E8F0; cursor: pointer;
}
.dir-sort-btn:last-child { border-right: none; }
.dir-sort-btn.active { background: #0F172A; color: #fff; }
.dir-sort-btn:hover:not(.active) { background: #F8FAFC; color: #00A8F0; }

.dir-toggle { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.dir-toggle label {
  display: flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 600;
  color: #475569; cursor: pointer;
}

/* ==== Section Head ==== */
.dir-section { padding-bottom: 0; }
.dir-section-head h3 { font-size: 16px; }
.dir-section-meta { font-size: 12px; color: #64748B; }
.dir-section-meta strong { color: #0F172A; }

/* ==== Premium Gold Cards ==== */
.dir-premium-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding: 16px;
}
.dir-premium-card {
  display: flex; gap: 14px; padding: 14px;
  border: 2px solid #FFC72C; border-radius: 12px;
  background: linear-gradient(180deg, #FFFBEB 0%, #fff 60%);
  box-shadow: 0 4px 12px rgba(217,119,6,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dir-premium-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(217,119,6,0.20); }
.dpc-img {
  flex-shrink: 0; width: 130px; height: 130px; border-radius: 10px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.dpc-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.dir-premium-card:hover .dpc-img img { transform: scale(1.06); }
.dpc-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.dpc-badge {
  position: absolute; top: 8px; left: 8px;
  background: #fff; color: #D97706;
  font-size: 9px; font-weight: 900; letter-spacing: 0.1em;
  padding: 3px 7px; border-radius: 3px;
  z-index: 1;
}
.dpc-discount {
  position: absolute; bottom: 8px; right: 8px;
  background: #E0202D; color: #fff;
  font-size: 12px; font-weight: 900;
  padding: 4px 9px; border-radius: 4px;
  z-index: 1; box-shadow: 0 2px 0 #B5121E;
}
.dpc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dpc-row1 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dpc-region { font-size: 11.5px; color: #64748B; font-weight: 600; }
.dpc-body h4 { font-size: 16px; font-weight: 900; color: #0F172A; letter-spacing: -0.015em; }
.dpc-desc {
  font-size: 12.5px; color: #475569; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dpc-stats { display: flex; gap: 12px; font-size: 12px; color: #475569; font-weight: 600; margin-top: 2px; }
.dpc-stats em { font-style: normal; color: #94A3B8; font-weight: 500; }
.dpc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.dpc-tags span {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px;
  background: #F1F5F9; color: #475569; border-radius: 3px;
  border: 1px solid #E2E8F0;
}

/* ==== Native In-feed Ad ==== */
.dir-native-ad {
  position: relative; padding: 14px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFBEB 100%);
  border: 1px dashed #00A8F0;
}
.ad-tag-inline {
  position: absolute; top: 10px; right: 12px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  background: rgba(15,23,42,0.7); color: #fff;
  padding: 2px 7px; border-radius: 3px;
}
.dna-grid { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.dna-img {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, #229ED9, #0E5F8C); color: #fff;
  font-size: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(34,158,217,0.3);
}
.dna-body strong { display: block; font-size: 14px; font-weight: 800; color: #0F172A; margin-bottom: 2px; }
.dna-body p { font-size: 12.5px; color: #475569; }
.dna-cta {
  padding: 10px 18px; background: #00A8F0; color: #fff;
  font-size: 13px; font-weight: 800; border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 0 #0E84BC;
}
.dna-cta:hover { background: #0E84BC; }

/* ==== Directory Table extras ==== */
.directory-table .td-sub {
  font-size: 11.5px; color: #94A3B8; font-weight: 500;
  margin-top: 2px;
}
.directory-table .td-link {
  font-size: 12px; font-weight: 700; color: #00A8F0;
}
.cat-ktv { background: #8B5CF6; }
.cat-tour { background: #06B6D4; }
.cat-legal { background: #A855F7; }
.cat-realestate { background: #EAB308; color: #422006 !important; }
.cat-casino { background: #DC2626; }

.dir-pagination {
  display: flex; gap: 4px; justify-content: center; padding: 18px;
  border-top: 1px solid #E2E8F0;
}
.dir-pagination button {
  padding: 6px 12px; min-width: 34px; font-size: 12.5px; font-weight: 700;
  background: #fff; border: 1px solid #CBD5E1; border-radius: 4px; cursor: pointer;
  color: #1E293B;
}
.dir-pagination button:hover { background: #F8FAFC; }
.dir-pagination button.active { background: #00A8F0; color: #fff; border-color: #00A8F0; }
.dir-pagination span { padding: 6px 4px; color: #94A3B8; }

/* ==== Pricing ==== */
.dir-pricing { padding-bottom: 0; }
.dir-pricing-intro {
  padding: 18px 20px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0;
  font-size: 13.5px; color: #475569; line-height: 1.6;
}
.dir-pricing-intro strong { color: #0F172A; }

.pc-btn {
  display: block; padding: 12px; text-align: center;
  background: #00A8F0; color: #fff; font-weight: 800; font-size: 14px;
  border-radius: 8px; text-decoration: none;
  box-shadow: 0 2px 0 #0E84BC;
  transition: transform 0.15s;
}
.pc-btn:hover { transform: translateY(-1px); }
.pc-btn-gold {
  background: linear-gradient(135deg, #FFC72C, #D97706);
  box-shadow: 0 2px 0 #92400E;
  color: #fff;
}

.pc-foot {
  padding: 20px; background: #F8FAFC; border-top: 1px solid #E2E8F0;
  font-size: 12.5px; color: #475569; line-height: 1.7;
}
.pc-foot a { color: #00A8F0; font-weight: 700; }
.pc-foot a:hover { text-decoration: underline; }

/* ==== Responsive ==== */
@media (max-width: 1080px) {
  .dpt-grid { grid-template-columns: 1fr; }
  .dir-premium-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dpt-text h1 { font-size: 28px; }
  .dpc-img { width: 100px; height: 100px; }
  .dir-premium-card { flex-direction: column; }
  .dir-premium-card .dpc-img { width: 100%; height: 160px; }
  .dir-toggle { margin-left: 0; width: 100%; }
  .directory-table { font-size: 12px; }
  .directory-table .td-sub { display: none; }
}

/* ============================================================
   Directory Visibility Pass - 2026-05-23
   ============================================================ */
.dir-pagetitle {
  background: linear-gradient(135deg, #1598D6 0%, #0E84BC 56%, #0B355C 100%);
}

.dpt-text p,
.dpt-meta {
  color: rgba(255, 255, 255, 0.96);
  opacity: 1;
  font-weight: 650;
}

.dpt-kicker {
  color: #FFE08A;
  border-color: rgba(255, 224, 138, 0.75);
  background: rgba(2, 6, 23, 0.18);
}

.dpt-cta {
  border-color: #FFC72C;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.24);
}

.dpt-cta span {
  color: #0369A1;
}

.dfr-label,
.dir-section-meta,
.dir-chip-sub,
.dir-toggle label,
.dpc-region,
.dpc-desc,
.dpc-stats,
.dpc-stats em,
.dna-body p,
.directory-table .td-sub,
.pc-foot {
  color: #334155 !important;
  font-weight: 650 !important;
}

.dir-filter-row {
  border-bottom-color: #D8E1EC;
}

.dir-chip {
  min-height: 32px;
  padding: 6px 13px;
  font-size: 12.8px;
  color: #0F172A;
  border-color: #AEBBCC;
  background: #FFFFFF;
}

.dir-chip em {
  color: #475569;
  font-size: 11px;
}

.dir-chip:hover {
  background: #F0F9FF;
}

.dir-chip.active {
  color: #FFFFFF;
  background: #00A8F0;
}

.dir-sort {
  border-color: #AEBBCC;
}

.dir-sort-btn {
  font-size: 12.8px;
  color: #334155;
  font-weight: 800;
}

.dir-premium-card,
.dir-native-ad {
  border-color: #AEBBCC;
}

.dpc-body h4,
.dna-body strong {
  color: #07111F;
  letter-spacing: 0;
}

.dpc-desc,
.dna-body p,
.dir-pricing-intro,
.pc-foot {
  font-size: 13.2px;
  line-height: 1.62;
}

.dpc-tags span {
  font-size: 11.2px;
  font-weight: 900;
}

.directory-table {
  font-size: 13.5px;
}

.directory-table th {
  background: #F1F5F9;
  color: #1E293B;
  font-size: 12.7px;
}

.directory-table td {
  color: #0F172A;
  font-weight: 600;
}

.directory-table .td-link {
  color: #0369A1;
  font-size: 12.7px;
  font-weight: 850;
}

.dir-pagination button {
  min-height: 34px;
  color: #1E293B;
  border-color: #AEBBCC;
}

.dir-pagination span {
  color: #475569;
  font-weight: 700;
}

.pc-btn {
  font-weight: 900;
}

@media (max-width: 700px) {
  .dir-chip,
  .dir-sort-btn {
    font-size: 13px;
  }
}

/* ============================================================
   Directory Mobile Experience Pass - 2026-05-23
   ============================================================ */
@media (max-width: 900px) {
  .dir-pagetitle {
    padding: 28px 0 24px;
  }

  .dpt-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .dpt-text h1 {
    font-size: 28px;
    line-height: 1.22;
  }

  .dpt-text p {
    font-size: 14.5px;
  }

  .dpt-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dpt-cta {
    width: 100%;
    border-radius: 10px;
  }

  .dir-filter-block {
    padding: 12px;
  }

  .dir-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  .dfr-label {
    min-width: 0;
    padding-top: 0;
  }

  .dir-tags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .dir-chip {
    width: 100%;
    min-width: 0;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
  }

  .dir-sort {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dir-sort-btn {
    min-height: 40px;
    padding: 8px 6px;
    text-align: center;
  }

  .dir-toggle {
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dir-toggle label {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #D8E1EC;
    border-radius: 10px;
    background: #FFFFFF;
  }

  .dir-premium-grid {
    grid-template-columns: 1fr !important;
    padding: 12px;
    gap: 12px;
  }

  .dir-premium-card {
    flex-direction: column;
    padding: 12px;
    border-radius: 10px;
  }

  .dpc-img,
  .dir-premium-card .dpc-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .dpc-body h4 {
    font-size: 17px;
  }

  .dpc-stats {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .dir-native-ad {
    padding: 16px 14px;
  }

  .dna-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .dna-img {
    width: 48px;
    height: 48px;
  }

  .dna-cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .dir-pagetitle {
    padding: 24px 0 22px;
  }

  .dpt-text h1 {
    font-size: 23px;
  }

  .dpt-meta {
    grid-template-columns: 1fr;
  }

  .dpt-meta strong {
    font-size: 16px;
  }

  .dir-section-head {
    align-items: flex-start;
  }

  .dir-section-head h3 {
    line-height: 1.35;
  }

  .dir-sort {
    grid-template-columns: 1fr;
  }

  .dir-chip {
    width: 100%;
    justify-content: space-between;
  }

  .dir-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dir-pagination button {
    min-width: 38px;
  }
}

/* ============================================================
   Directory — Global top-tier redesign (2026-06-23)
   HTML 실제 구조(.dir-hero/.dir-eyebrow/.dir-hero-card/.dir-filter-row<strong>)에
   맞춘 정렬·레이아웃 + 브랜드 톤(시안블루·라운드·소프트). 이전 .dpt-* 는 미사용.
   ============================================================ */
.dir-page { display: flex; flex-direction: column; gap: 16px; padding: 24px 0 44px; }

/* ── Hero ── */
.dir-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px;
  align-items: center; padding: 30px 30px;
  background: linear-gradient(135deg, #E9F6FE 0%, #F6FBFF 55%, #FFFFFF 100%);
}
.dir-eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: #0E84BC;
}
.dir-hero h1 {
  font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.18;
  color: #0B1220; margin-bottom: 10px;
}
.dir-hero > div > p { font-size: 14.5px; line-height: 1.62; color: #46566B; max-width: 600px; }
.dir-hero-card {
  display: flex; flex-direction: column; gap: 3px; align-self: stretch; justify-content: center;
  padding: 22px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, #00A8F0 0%, #0D3B66 100%); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(0, 72, 144, 0.5);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dir-hero-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -12px rgba(0, 72, 144, 0.6); }
.dir-hero-card .hp-i { width: 28px; height: 28px; margin-bottom: 7px; }
.dir-hero-card strong { font-size: 16px; font-weight: 900; }
.dir-hero-card span { font-size: 12.5px; color: rgba(255, 255, 255, 0.9); }

/* ── Filter labels (HTML uses <strong>) ── */
.dir-filter-row > strong {
  flex-shrink: 0; min-width: 52px; padding-top: 7px;
  font-size: 12.5px; font-weight: 800; color: #475569; letter-spacing: 0.04em;
}

/* ── Polished empty states (sparse box → intentional) ── */
.dir-premium-grid .hp-empty-card {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 168px; padding: 36px 24px; text-align: center;
  background: linear-gradient(180deg, #F7FBFF 0%, #FFFFFF 100%);
  border: 1px dashed #C5DBEC; border-radius: 12px;
  color: #64748B; font-size: 13.5px; font-weight: 600;
}
.dir-premium-grid .hp-empty-card::before {
  content: ""; width: 42px; height: 42px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230E84BC'%3E%3Cpath d='M5 3h14a1 1 0 0 1 1 1v17h-6v-5h-4v5H4V4a1 1 0 0 1 1-1zm3 4v2h2V7H8zm6 0v2h2V7h-2zm-6 5v2h2v-2H8zm6 0v2h2v-2h-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.directory-table .hp-empty-table {
  text-align: center; padding: 52px 24px; font-size: 13.5px; color: #64748B; font-weight: 600;
}

/* ── Table alignment polish ── */
.directory-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.directory-table thead th { text-align: left; padding: 12px 14px; white-space: nowrap; }
.directory-table tbody td { padding: 13px 14px; border-top: 1px solid #EEF2F6; vertical-align: middle; }
.directory-table tbody tr:hover td { background: #F8FBFE; }

@media (max-width: 900px) {
  .dir-hero { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .dir-hero h1 { font-size: 25px; }
  .dir-hero-card { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
  .dir-hero-card .hp-i { margin-bottom: 0; }
}

/* HP-09 터치 타겟 — 섹션 더보기 링크 (2026-07-20) */
@media (max-width: 700px) {
  /* .block-head 가 48px, 링크는 19px 로 세로 중앙 — 위아래 14.5px 씩 남아 43px 이 안에 들어간다 */
  .block-head a.dir-section-meta.td-link { position: relative; }
  .block-head a.dir-section-meta.td-link::after { content: ""; position: absolute; inset: -12px 0; }
}
