.kdb-page,
  .kdb-page * {
    box-sizing: border-box;
  }

  /*
   * 워드프레스 관리자용 페이지 제목은 유지하고,
   * 이 페이지의 공개 화면에서 테마가 자동 출력하는 제목만 숨깁니다.
   */
  body:has(.kdb-page[data-kdaeri-region-page]) header.entry-header,
  body:has(.kdb-page[data-kdaeri-region-page]) .page-header {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:has(.kdb-page[data-kdaeri-region-page]) .wp-block-spacer {
    margin: 0 !important;
    padding: 0 !important;
  }

  body:has(.kdb-page[data-kdaeri-region-page]) .entry-content,
  body:has(.kdb-page[data-kdaeri-region-page]) .wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }

  body:has(.kdb-page[data-kdaeri-region-page]) h1.entry-title,
  body:has(.kdb-page[data-kdaeri-region-page]) .wp-block-post-title,
  .kdb-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .kdb-page {
    --kdb-primary: #1457d9;
    --kdb-primary-dark: #0b3d9b;
    --kdb-accent: #ff6b35;
    --kdb-ink: #172033;
    --kdb-muted: #5f6b7a;
    --kdb-line: #dce3ec;
    --kdb-soft: #f4f7fb;
    --kdb-success: #087a55;
    --kdb-white: #ffffff;
    --kdb-text-caption: 14px;
    --kdb-text-small: 14px;
    --kdb-text-meta: 15px;
    --kdb-text-card: 16px;
    --kdb-text-body: 16px;
    --kdb-text-label: 17px;
    --kdb-text-question: 18px;
    max-width: 1120px;
    margin: 0 auto !important;
    margin-block-start: 0 !important;
    color: var(--kdb-ink);
    font-size: var(--kdb-text-body);
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR",
      "Segoe UI", sans-serif;
    line-height: 1.72;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .kdb-page a {
    color: inherit;
  }

  .kdb-page button,
  .kdb-page input {
    font: inherit;
  }

  .kdb-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 6vw, 64px);
    border-radius: 24px;
    background: radial-gradient(circle at 90% 5%, #174da2 0, transparent 32%), linear-gradient(135deg, #071329, #112c59 62%, #154a9b);
    color: var(--kdb-white);
  }

  .kdb-eyebrow {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    margin: 0 0 12px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
  }

  .kdb-hero-title {
    margin: 0;
    color: var(--kdb-white);
    font-size: clamp(32px, 7vw, 54px);
    line-height: 1.18;
    letter-spacing: -0.04em;
  }

  .kdb-hero-copy {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(16px, 2.5vw, 20px);
  }

  .kdb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  .kdb-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: var(--kdb-text-label);
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }

  .kdb-btn:hover {
    transform: translateY(-1px);
  }

  .kdb-btn-primary {
    background: var(--kdb-accent);
    color: var(--kdb-white) !important;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(61, 21, 8, 0.2);
  }

  .kdb-btn-light {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.13);
    color: var(--kdb-white) !important;
  }

  .kdb-quick-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 25px;
  }

  .kdb-quick-fact {
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
  }

  .kdb-quick-fact strong,
  .kdb-quick-fact span,
  .kdb-result-item span,
  .kdb-result-item strong,
  .kdb-stat span,
  .kdb-stat strong {
    display: block;
  }

  .kdb-quick-fact strong {
    font-size: var(--kdb-text-card);
  }

  .kdb-quick-fact span {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--kdb-text-small);
  }

  .kdb-section {
    padding: clamp(36px, 7vw, 70px) 4px 0;
    scroll-margin-top: 90px;
  }

  .kdb-section-head {
    max-width: 800px;
    margin-bottom: 22px;
  }

  .kdb-section-kicker {
    margin: 0 0 5px;
    color: var(--kdb-primary);
    font-size: var(--kdb-text-meta);
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .kdb-section h2 {
    margin: 0;
    color: var(--kdb-ink);
    font-size: clamp(25px, 4.5vw, 36px);
    line-height: 1.3;
    letter-spacing: -0.035em;
  }

  .kdb-section-head p:last-child {
    margin: 10px 0 0;
    color: var(--kdb-muted);
  }

  .kdb-card,
  .kdb-table-wrap,
  .kdb-faq details {
    border: 1px solid var(--kdb-line);
    background: var(--kdb-white);
  }

  .kdb-card {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
  }

  .kdb-calculator {
    padding: clamp(18px, 4vw, 30px);
  }

  .kdb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 24px;
  }

  .kdb-field {
    position: relative;
    display: grid;
    gap: 10px;
  }

  .kdb-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .kdb-field-full {
    grid-column: 1 / -1;
  }

  .kdb-field label {
    color: #27334a;
    font-size: var(--kdb-text-label);
    font-weight: 600;
    line-height: 1.4;
  }

  .kdb-field .kdb-optional {
    margin-left: 4px;
    color: #788399;
    font-size: var(--kdb-text-meta);
    font-weight: 500;
  }

  .kdb-location-button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid #bfd3f6;
    border-radius: 999px;
    background: #f2f7ff;
    color: var(--kdb-primary-dark);
    cursor: pointer;
    font: inherit;
    font-size: var(--kdb-text-caption);
    font-weight: 700;
    line-height: 1;
  }

  .kdb-location-button:hover {
    border-color: var(--kdb-primary);
    background: #eaf2ff;
  }

  .kdb-location-button:focus-visible {
    outline: 3px solid rgba(20, 87, 217, 0.18);
    outline-offset: 2px;
  }

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

  .kdb-location-button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  .kdb-page .kdb-waypoint-toggle {
    display: inline-flex;
    min-height: 32px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 5px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #46556f;
    cursor: pointer;
    font: inherit;
    font-size: var(--kdb-text-caption);
    font-weight: 700;
    line-height: 1;
  }

  .kdb-page .kdb-waypoint-toggle:hover {
    border-color: var(--kdb-primary);
    background: #f2f7ff;
    color: var(--kdb-primary-dark);
  }

  .kdb-page .kdb-waypoint-toggle[aria-expanded="true"] {
    border-color: #f3b6b0;
    background: #fff5f4;
    color: #b42318;
  }

  .kdb-page .kdb-waypoint-cancel {
    border-color: #f3b6b0;
    background: #fff5f4;
    color: #b42318;
  }

  .kdb-page .kdb-waypoint-toggle[hidden] {
    display: none;
  }

  .kdb-page .kdb-waypoint-toggle:focus-visible {
    outline: 3px solid rgba(20, 87, 217, 0.18);
    outline-offset: 2px;
  }

  .kdb-page .kdb-location-button,
  .kdb-page .kdb-waypoint-toggle {
    width: 100px !important;
    min-width: 100px !important;
    height: 36px !important;
    min-height: 36px !important;
    justify-content: center;
    margin: 0 !important;
    padding: 5px 8px !important;
    box-sizing: border-box;
  }

  .kdb-field[hidden] {
    display: none;
  }

  .kdb-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 44px 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: var(--kdb-white);
    color: var(--kdb-ink);
  }

  .kdb-input-wrap {
    position: relative;
  }

  .kdb-page .kdb-input-wrap input {
    margin: 0 !important;
  }

  .kdb-page .kdb-clear-input {
    position: absolute;
    top: 50% !important;
    right: 9px;
    display: flex;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    box-sizing: border-box;
    color: #64748b;
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    line-height: 1;
    appearance: none;
    transform: translateY(-50%) !important;
  }

  .kdb-page .kdb-clear-input:hover {
    background: #dfe7f1;
    color: #25324a;
  }

  .kdb-page .kdb-clear-input:focus-visible {
    outline: 3px solid rgba(20, 87, 217, 0.18);
    outline-offset: 2px;
  }

  .kdb-page .kdb-clear-input[hidden] {
    display: none;
  }

  .kdb-field input::placeholder {
    color: #94a3b8;
    opacity: 1;
  }

  .kdb-field input:focus {
    border-color: var(--kdb-primary);
    outline: 3px solid rgba(20, 87, 217, 0.13);
  }

  .kdb-field input.is-place-selected {
    border-color: #4f8bdc;
    background: #f8fbff;
  }

  .kdb-place-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 310px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  }

  .kdb-place-results[hidden] {
    display: none;
  }

  .kdb-place-option {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #e5eaf1;
    background: #ffffff;
    color: var(--kdb-ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
  }

  .kdb-place-option:last-child {
    border-bottom: 0;
  }

  .kdb-place-option:hover,
  .kdb-place-option.is-active {
    background: #eef5ff;
  }

  .kdb-place-option strong,
  .kdb-place-option span {
    display: block;
  }

  .kdb-place-option strong {
    font-size: var(--kdb-text-card);
  }

  .kdb-place-option span {
    margin-top: 3px;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-caption);
    line-height: 1.45;
  }

  .kdb-place-message {
    margin: 0;
    padding: 13px 14px;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-caption);
  }

  .kdb-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }

  .kdb-form-note,
  .kdb-price-note {
    margin: 12px 0 0;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-small);
  }

  .kdb-result {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--kdb-line);
  }

  .kdb-result.is-visible {
    display: grid;
  }

  .kdb-result-route {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #cfe0f8;
    border-radius: 12px;
    background: #f7faff;
  }

  .kdb-result-route-label {
    flex: 0 0 auto;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-small);
    font-weight: 400;
    line-height: 1.5;
  }

  .kdb-result-route-path {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--kdb-ink);
    text-align: right;
  }

  .kdb-result-route-path strong {
    margin-top: 3px;
    color: var(--kdb-ink);
    font-size: var(--kdb-text-question);
    overflow-wrap: anywhere;
  }

  .kdb-result-waypoint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .kdb-result-waypoint[hidden] {
    display: none;
  }

  .kdb-result-route-arrow {
    flex: 0 0 auto;
    color: var(--kdb-primary);
    font-size: 20px;
    font-weight: 800;
  }

  .kdb-result-item {
    padding: 14px;
    border-radius: 12px;
    background: var(--kdb-soft);
  }

  .kdb-result-travel {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    border-radius: 12px;
    background: var(--kdb-soft);
  }

  .kdb-result-travel-item {
    min-width: 0;
    padding: 0 14px;
  }

  .kdb-result-travel-item:first-child {
    padding-left: 0;
    border-right: 1px solid #d8e1ed;
  }

  .kdb-result-travel-item:last-child {
    padding-right: 0;
  }

  .kdb-result-travel-item span,
  .kdb-result-travel-item strong {
    display: block;
  }

  .kdb-result-travel-item span {
    color: var(--kdb-muted);
    font-size: var(--kdb-text-small);
    line-height: 1.5;
  }

  .kdb-result-travel-item strong {
    margin-top: 3px;
    font-size: var(--kdb-text-question);
  }

  .kdb-result-item span,
  .kdb-stat span {
    color: var(--kdb-muted);
    font-size: var(--kdb-text-small);
  }

  .kdb-result-item span {
    line-height: 1.5;
  }

  .kdb-result-item strong {
    margin-top: 3px;
    font-size: var(--kdb-text-question);
  }

  .kdb-result-price {
    grid-column: 1 / -1;
    background: #eaf2ff;
  }

  .kdb-service-explainer,
  .kdb-rides-explanation {
    margin: 0;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid #cbdcf5;
    border-left: 5px solid #1f6feb;
    border-radius: 20px;
    background: #eef5ff;
  }

  .kdb-service-explainer {
    margin-top: 24px;
  }

  .kdb-rides-explanation h2 {
    margin: 0 0 16px;
    color: var(--kdb-ink);
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.35;
    letter-spacing: -0.03em;
  }

  .kdb-service-explainer p,
  .kdb-rides-explanation p {
    margin: 0;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-body);
    line-height: 1.8;
  }

  .kdb-service-explainer p + p,
  .kdb-rides-explanation p + p {
    margin-top: 12px;
  }

  .kdb-result-price > strong {
    color: var(--kdb-primary-dark);
    font-size: 22px;
  }

  .kdb-price-range {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #cadcf5;
  }

  .kdb-result-price .kdb-price-range span {
    display: block;
    font-size: var(--kdb-text-caption);
  }

  .kdb-result-price .kdb-price-range strong {
    display: block;
    margin-top: 2px;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-small);
    font-weight: 700;
  }

  .kdb-route-map {
    width: 100%;
    height: 360px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--kdb-line);
    border-radius: 14px;
    background: var(--kdb-soft);
  }

  .kdb-route-map[hidden] {
    display: none;
  }

  .kdb-map-pin {
    position: relative;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.2);
    color: #ffffff;
    font-family: Arial, "Noto Sans KR", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
  }

  .kdb-map-pin::after {
    position: absolute;
    right: 11px;
    bottom: -7px;
    width: 0;
    height: 0;
    border-top: 8px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    content: "";
    filter: drop-shadow(0 2px 1px rgba(15, 23, 42, 0.18));
  }

  .kdb-map-pin-origin {
    background: #2563eb;
    color: #2563eb;
  }

  .kdb-map-pin-waypoint {
    background: #f59e0b;
    color: #f59e0b;
  }

  .kdb-map-pin-destination {
    background: #16a34a;
    color: #16a34a;
  }

  .kdb-map-pin span {
    position: relative;
    z-index: 1;
    color: #ffffff;
  }

  .kdb-status {
    min-height: 24px;
    margin: 10px 0 0;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-meta);
  }

  .kdb-status.is-error {
    padding: 12px 14px;
    border: 1px solid #f3b6b0;
    border-radius: 10px;
    background: #fff5f4;
    color: #b42318;
  }

  .kdb-status.is-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #bfd3f6;
    border-radius: 10px;
    background: #f2f7ff;
    color: var(--kdb-primary-dark);
    font-weight: 700;
  }

  .kdb-status.is-loading::before {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 2px solid #bdd0ee;
    border-top-color: var(--kdb-primary);
    border-radius: 50%;
    content: "";
    animation: kdb-loading-spin 0.8s linear infinite;
  }

  @keyframes kdb-loading-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .kdb-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
  }

  .kdb-stat {
    padding: 17px;
    border: 1px solid var(--kdb-line);
    border-radius: 14px;
    background: var(--kdb-soft);
  }

  .kdb-stat strong {
    margin-top: 4px;
    font-size: 23px;
  }

  .kdb-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
  }

  .kdb-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: var(--kdb-text-card);
    line-height: 1.5;
  }

  .kdb-table th,
  .kdb-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--kdb-line);
    text-align: left;
    vertical-align: middle;
  }

  .kdb-table th {
    background: #edf3fb;
    color: #334155;
    font-size: var(--kdb-text-card);
    font-weight: 600;
    white-space: nowrap;
  }

  .kdb-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .kdb-waypoint-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1266f1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
  }

  .kdb-empty {
    padding: 25px !important;
    color: var(--kdb-muted);
    text-align: center !important;
  }

  .kdb-data-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 2px 0;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-caption);
  }

  .kdb-grid-2,
  .kdb-grid-3 {
    display: grid;
    gap: 14px;
  }

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

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

  .kdb-info-card {
    padding: 20px;
  }

  .kdb-info-card h3 {
    margin: 0 0 8px;
    color: var(--kdb-ink);
    font-size: 19px;
  }

  .kdb-info-card p {
    margin: 0;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-card);
  }

  .kdb-direct-step-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    counter-reset: kdb-direct-step;
    list-style: none !important;
  }

  .kdb-direct-step-list li {
    position: relative;
    min-height: 150px;
    margin: 0;
    padding: 20px 20px 20px 76px;
    counter-increment: kdb-direct-step;
    list-style: none !important;
  }

  .kdb-direct-step-list li::marker {
    content: "";
    font-size: 0;
  }

  .kdb-direct-step-list li::before {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1769e8;
    color: #fff;
    content: counter(kdb-direct-step);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
  }

  .kdb-direct-step-list strong,
  .kdb-direct-step-list span {
    display: block;
  }

  .kdb-direct-step-list strong {
    margin: 1px 0 7px;
    color: var(--kdb-ink);
    font-size: 19px;
  }

  .kdb-direct-step-list span {
    color: var(--kdb-muted);
    font-size: var(--kdb-text-card);
    line-height: 1.7;
  }

  /* Nationwide directory styles: keep a fresh visitor-cache signature. */
  .kdb-nationwide-directory {
    min-width: 0;
  }

  .kdb-region-accordion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .kdb-region-accordion {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--kdb-line);
    border-radius: 16px;
    background: #fff;
  }

  .kdb-region-accordion summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    gap: 10px;
    align-items: center;
    min-height: 76px;
    padding: 18px 20px;
    color: var(--kdb-ink);
    cursor: pointer;
    list-style: none;
  }

  .kdb-region-accordion summary::-webkit-details-marker {
    display: none;
  }

  .kdb-region-accordion summary strong {
    min-width: 0;
    font-size: 19px;
    line-height: 1.35;
  }

  .kdb-region-count {
    color: var(--kdb-muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  .kdb-region-accordion summary::after {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--kdb-primary-dark);
    content: "+";
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
  }

  .kdb-region-accordion[open] summary::after {
    content: "−";
  }

  .kdb-region-accordion-body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--kdb-line);
  }

  .kdb-region-accordion-body p {
    margin: 16px 0;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-card);
    line-height: 1.65;
  }

  .kdb-region-directory-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .kdb-region-directory-link {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 6px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--kdb-primary-dark) !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .kdb-region-directory-link:hover,
  .kdb-region-directory-link:focus-visible {
    background: #dfeaff;
    color: #0d4baa !important;
  }

  .kdb-nationwide-directory .kdb-related-group {
    margin-top: 26px;
  }

  .kdb-related-group + .kdb-related-group {
    margin-top: 22px;
  }

  .kdb-related-group h3 {
    margin: 0 0 11px;
    color: var(--kdb-ink);
    font-size: 18px;
  }

  .kdb-page .kdb-related-link.kdb-card {
    display: flex !important;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    min-height: 66px !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    color: var(--kdb-ink);
    text-decoration: none !important;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .kdb-page .kdb-related-link.kdb-card::after {
    display: block;
    flex: 0 0 auto;
    margin-left: 14px;
    color: var(--kdb-primary-dark);
    content: "→" !important;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
  }

  .kdb-page .kdb-related-link.kdb-card:hover,
  .kdb-page .kdb-related-link.kdb-card:focus-visible {
    border-color: #9db9e5;
    box-shadow: 0 8px 20px rgba(21, 75, 155, 0.1);
    color: var(--kdb-primary-dark);
    transform: translateY(-1px);
  }

  .kdb-page .kdb-related-link.kdb-card strong {
    display: block;
    min-width: 0;
    color: inherit;
    font-size: var(--kdb-text-card);
    line-height: 1.45;
    text-decoration: none !important;
  }

  .kdb-area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
  }

  .kdb-area-tag {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid #d7e3f4;
    border-radius: 999px;
    background: #f7faff;
    color: #264a7c;
    font-size: var(--kdb-text-small);
    font-weight: 700;
  }

  .kdb-route-list,
  .kdb-check-list {
    margin: 0;
    padding: 0;
    list-style: none !important;
  }

  .kdb-route-list {
    display: grid;
    gap: 11px;
  }

  .kdb-route-list li::marker,
  .kdb-check-list li::marker {
    content: "";
    font-size: 0;
  }

  .kdb-route-list li {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(160px, .58fr);
    gap: 12px;
    align-items: center;
    padding: 14px 15px;
    border: 1px solid var(--kdb-line);
    border-radius: 12px;
    background: var(--kdb-white);
  }

  .kdb-route-list li > span,
  .kdb-route-list li > strong {
    min-width: 0;
    justify-self: stretch;
    text-align: left;
  }

  .kdb-route-list strong {
    color: var(--kdb-primary-dark);
    white-space: nowrap;
  }

  .kdb-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  .kdb-check-list li {
    position: relative;
    display: block;
    margin: 0;
    padding-left: 26px;
    list-style: none !important;
  }

  .kdb-check-list li::before {
    position: absolute;
    top: 1px;
    left: 0;
    color: var(--kdb-success);
    content: "✓";
    font-weight: 900;
  }

  .kdb-faq {
    display: grid;
    gap: 10px;
  }

  .kdb-faq details {
    border-radius: 13px;
  }

  .kdb-faq summary {
    padding: 16px 18px;
    cursor: pointer;
    font-size: var(--kdb-text-question);
    font-weight: 600;
    line-height: 1.55;
  }

  .kdb-faq details p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--kdb-muted);
    font-size: var(--kdb-text-body);
    line-height: 1.75;
  }

  .kdb-final-cta {
    margin-top: clamp(42px, 8vw, 80px);
    padding: clamp(25px, 6vw, 48px);
    border-radius: 22px;
    background: #111d36;
    color: var(--kdb-white);
    text-align: center;
  }

  .kdb-final-cta h2 {
    margin: 0;
    color: var(--kdb-white);
    font-size: clamp(25px, 5vw, 38px);
  }

  .kdb-final-cta p {
    margin: 10px auto 0;
    color: #cbd5e1;
    font-size: var(--kdb-text-label);
    line-height: 1.7;
  }

  .kdb-final-cta .kdb-btn {
    min-height: 54px;
    font-size: var(--kdb-text-question);
  }

  .kdb-final-cta .kdb-hero-actions {
    justify-content: center;
  }

  .kdb-disclaimer {
    margin: 18px 0 0;
    color: #64748b;
    font-size: var(--kdb-text-caption);
    text-align: center;
  }

  @media (min-width: 781px) {
    .kdb-rides-table-wrap.kdb-rides-loading {
      min-height: 586px;
    }
  }

  @media (max-width: 780px) {
    body:has(.kdb-page[data-kdaeri-region-page]) .entry-content,
    body:has(.kdb-page[data-kdaeri-region-page]) .wp-block-post-content {
      padding-top: 20px !important;
    }

    .kdb-page {
      letter-spacing: -0.005em;
    }

    .kdb-region-accordion-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .kdb-region-accordion summary {
      min-height: 68px;
      padding: 15px 16px;
    }

    .kdb-region-accordion summary strong {
      font-size: 18px;
    }

    .kdb-region-accordion-body {
      padding: 0 16px 17px;
    }

    .kdb-region-directory-link {
      min-height: 38px;
      padding: 7px 2px;
      font-size: clamp(14px, 3.85vw, 16px);
      letter-spacing: -0.03em;
    }

    #kdb-calculator {
      scroll-margin-top: 42px;
    }

    .kdb-hero {
      padding: 24px 18px;
      border-radius: 20px;
    }

    .kdb-eyebrow {
      margin: 0;
      padding: 7px 12px;
      font-size: 15px;
    }

    .kdb-hero-title {
      margin: 8px 0 0 !important;
      padding: 0 !important;
      font-size: 34px;
      line-height: 1.2;
    }

    .kdb-hero-copy {
      margin-top: 14px;
      font-size: var(--kdb-text-body);
      line-height: 1.62;
    }

    .kdb-hero > .kdb-hero-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
      margin-top: 20px;
    }

    .kdb-hero > .kdb-hero-actions .kdb-btn {
      width: auto;
      min-height: 48px;
      padding: 9px 10px;
      font-size: 18px !important;
    }

    .kdb-hero > .kdb-hero-actions .kdb-btn-primary {
      grid-column: 1 / -1;
    }

    .kdb-quick-facts {
      gap: 8px;
      margin-top: 18px;
    }

    .kdb-quick-fact {
      padding: 12px 13px;
    }

    .kdb-quick-fact span {
      font-size: var(--kdb-text-card);
      line-height: 1.6;
    }

    .kdb-quick-facts,
    .kdb-stats,
    .kdb-grid-3 {
      grid-template-columns: 1fr;
    }

    .kdb-result {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .kdb-result-route {
      grid-column: 1 / -1;
    }

    .kdb-result-route {
      align-items: flex-start;
      flex-direction: column;
      gap: 6px;
      padding: 13px 14px;
    }

    .kdb-result-route-path {
      width: 100%;
      justify-content: flex-start;
      text-align: left;
    }

    .kdb-result-item {
      padding: 13px;
    }

    .kdb-result-travel {
      padding: 13px;
    }

    .kdb-result-travel-item {
      padding: 0 12px;
    }

    .kdb-result-travel-item strong {
      font-size: 19px;
    }

    .kdb-result-item strong {
      font-size: 19px;
    }

    .kdb-result-price > strong {
      font-size: 21px;
    }

    .kdb-form-grid,
    .kdb-grid-2,
    .kdb-check-list {
      grid-template-columns: 1fr;
    }

    .kdb-direct-step-list {
      grid-template-columns: 1fr;
    }

    .kdb-direct-step-list li {
      min-height: 0;
      padding: 18px 18px 18px 66px;
    }

    .kdb-direct-step-list li::before {
      top: 18px;
      left: 18px;
      width: 34px;
      height: 34px;
      font-size: 16px;
    }

    .kdb-route-list li {
      grid-template-columns: 1fr;
      gap: 4px;
    }

    .kdb-route-list strong {
      white-space: normal;
    }

    .kdb-final-cta .kdb-hero-actions .kdb-btn,
    .kdb-form-actions .kdb-btn {
      width: 100%;
    }

    .kdb-form-actions .kdb-btn {
      font-size: 18px !important;
    }

    .kdb-faq summary {
      padding: 18px;
    }

    .kdb-form-actions {
      align-items: stretch;
      flex-direction: column;
    }

    .kdb-route-map {
      height: 280px;
    }

    .kdb-page section[aria-labelledby="kdb-price-title"] .kdb-table {
      width: 540px;
      min-width: 540px;
      table-layout: fixed;
    }

    .kdb-page section[aria-labelledby="kdb-price-title"] .kdb-table th,
    .kdb-page section[aria-labelledby="kdb-price-title"] .kdb-table td {
      padding: 10px 7px;
    }

    .kdb-page section[aria-labelledby="kdb-price-title"] .kdb-table th:nth-child(1),
    .kdb-page section[aria-labelledby="kdb-price-title"] .kdb-table td:nth-child(1) {
      width: 30%;
    }

    .kdb-page section[aria-labelledby="kdb-price-title"] .kdb-table th:nth-child(2),
    .kdb-page section[aria-labelledby="kdb-price-title"] .kdb-table td:nth-child(2) {
      width: 38%;
    }

    .kdb-page section[aria-labelledby="kdb-price-title"] .kdb-table th:nth-child(3),
    .kdb-page section[aria-labelledby="kdb-price-title"] .kdb-table td:nth-child(3) {
      width: 32%;
    }

    /* Match the delivery-history table on mobile: keep the fare visible and
       allow origin/destination addresses to wrap naturally to two lines. */
    #kdb-recent-rides .kdb-table {
      width: 620px;
      min-width: 620px;
      table-layout: fixed;
    }

    #kdb-recent-rides .kdb-table th,
    #kdb-recent-rides .kdb-table td {
      padding: 11px 8px;
      line-height: 1.5;
    }

    #kdb-recent-rides .kdb-table td {
      font-size: 15px;
    }

    #kdb-recent-rides .kdb-table th:first-child,
    #kdb-recent-rides .kdb-table td:first-child {
      padding-left: 0;
    }

    #kdb-recent-rides .kdb-table th:nth-child(1),
    #kdb-recent-rides .kdb-table td:nth-child(1),
    #kdb-recent-rides .kdb-table th:nth-child(2),
    #kdb-recent-rides .kdb-table td:nth-child(2) {
      width: 22%;
      white-space: normal;
      word-break: keep-all;
      overflow-wrap: break-word;
    }

    #kdb-recent-rides .kdb-table th:nth-child(3),
    #kdb-recent-rides .kdb-table td:nth-child(3) {
      width: 20%;
      white-space: nowrap;
    }

    #kdb-recent-rides .kdb-table th:nth-child(4),
    #kdb-recent-rides .kdb-table td:nth-child(4),
    #kdb-recent-rides .kdb-table th:nth-child(5),
    #kdb-recent-rides .kdb-table td:nth-child(5) {
      width: 18%;
      white-space: nowrap;
    }

    /* Keep the fixed mobile call bar clear of the Seoul page footer. */
    .kdb-page[data-region="seoul"] {
      padding-bottom: 96px;
    }

    .kdb-service-explainer,
    .kdb-rides-explanation {
      padding: 22px 20px;
      border-radius: 16px;
    }

    .kdb-service-explainer {
      margin-top: 20px;
    }
  }

/* Keep the fare-calculation CTA at a stable size after deferred CSS loads. */
.kdb-page .kdb-form-actions #kdb-calculate-button.kdb-btn {
  font-size: 18px !important;
}

@media (min-width: 769px) {
  body:has(.kdb-page) .kcb-fixed.kcb-premium {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}

/* Keep all hero CTA labels consistent across the regional pages. */
.kdb-page .kdb-hero > .kdb-hero-actions .kdb-btn {
  font-size: 18px !important;
}

@media (max-width: 780px) {
  .kdb-page[data-region="seoul"] .kdb-hero > .kdb-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kdb-page[data-region="seoul"] .kdb-hero > .kdb-hero-actions .kdb-btn-light {
    min-width: 0;
    padding-inline: 6px;
    font-size: 18px !important;
    white-space: nowrap;
  }
}

.kdb-page .kdb-stats-combined {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.kdb-page .kdb-stat-paired {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.kdb-page .kdb-stat-item {
  min-width: 0;
  padding-right: 16px;
}

.kdb-page .kdb-stat-item + .kdb-stat-item {
  padding-right: 0;
  padding-left: 16px;
  border-left: 1px solid var(--kdb-line);
}

@media (max-width: 780px) {
  .kdb-page .kdb-stats-combined {
    grid-template-columns: 1fr;
  }

  .kdb-page .kdb-stat-item {
    padding-right: 12px;
  }

  .kdb-page .kdb-stat-item + .kdb-stat-item {
    padding-left: 12px;
  }
}
