/* =========================================
   1. Variables & Global Settings
   ========================================= */
:root {
    --primary-color: #0F2A32;
    --accent-color: #2EB5A8;       /* keep aligned with accent_color in config.py */
    --accent-hover: #249B90;
    --bg-color: #F3F7F6;
    --card-bg: #ffffff;
    --text-gray: #555;
    --bg-dot-color: #A8D4CE;       /* keep aligned with bg_dot_color in config.py */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6; margin: 0; color: var(--primary-color);
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--bg-dot-color) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* =========================================
   2. Header & Navigation
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    padding: 10px 0 5px 0;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: 80px;
}

.header-left {
    position: absolute;
    left: 10px;
    z-index: 10;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.logo-img:hover { transform: scale(1.05); }

.lang-selector {
    position: absolute;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.lang-btn {
    padding: 5px 12px; font-size: 0.8rem; font-weight: 700;
    border: 1.5px solid #ddd; background: #fff; color: #777;
    border-radius: 20px; cursor: pointer; text-decoration: none;
}
.lang-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Region filter buttons (sido → district) */
.region-filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 5px;
}

.theme-filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.theme-filter-buttons--district {
    padding-top: 0;
    gap: 8px;
}

.theme-filter-buttons.is-hidden,
.theme-filter-buttons[hidden] {
    display: none;
}

.theme-button {
    padding: 8px 18px; font-size: 0.9rem; font-weight: 700;
    border: 1.5px solid #eee; background-color: #fff; color: #555;
    border-radius: 30px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.theme-button--district {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 22px;
    background: #f7fbfa;
}
.theme-button.active {
    background-color: var(--accent-color); color: white; border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(46, 181, 168, 0.28);
}

.count-badge {
    background-color: #eee; color: #666; font-size: 0.75rem;
    padding: 2px 8px; border-radius: 10px; font-weight: 800;
}
.theme-button.active .count-badge { background: rgba(255,255,255,0.3); color: #fff; }

/* =========================================
   3. Custom Map Marker
   ========================================= */
.item-marker {
    width: 45px; height: 45px; border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    overflow: hidden; background-color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}
.item-marker--clinic {
    width: 58px; height: 58px;
    border: 3px solid var(--accent-color);
    box-shadow:
        0 0 0 4px rgba(46, 181, 168, 0.22),
        0 6px 16px rgba(15, 42, 50, 0.28);
    overflow: visible;
    z-index: 2;
}
.item-marker--clinic img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%;
    display: block;
}
.item-marker-ring {
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(46, 181, 168, 0.55);
    pointer-events: none;
}
.item-marker-pulse {
    position: absolute; inset: -10px;
    border-radius: 50%;
    background: rgba(46, 181, 168, 0.28);
    animation: clinic-pulse 2s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}
.item-marker-badge {
    position: absolute;
    right: -4px; bottom: -2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 42, 50, 0.25);
}
@keyframes clinic-pulse {
    0% { transform: scale(0.85); opacity: 0.7; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}
.item-marker:hover {
    transform: scale(1.4) translateY(-5px);
    border-color: var(--accent-color); z-index: 9999 !important;
}
.item-marker img { width: 100%; height: 100%; object-fit: cover; }

/* Dot marker style (image-free variant) */
.marker-dot {
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}
.marker-dot--nearby i,
.marker-dot--nearby .marker-dot-icon { line-height: 1; }
.info-box-action--close {
    cursor: pointer;
    font: inherit;
    background: #f3f7f6 !important;
    color: #4a5c63 !important;
    border-color: #d5e4e1 !important;
}
.info-box-action--close:hover {
    background: #e8f1ef !important;
}

.info-box-content { max-width: 260px; }
.info-box-content--nearby { max-width: 300px; }
.info-box-media {
    width: 100%; height: 110px; border-radius: 10px; overflow: hidden;
    margin-bottom: 10px; background: #eaf6f4;
}
.info-box-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-box-badge {
    display: inline-block; margin-bottom: 6px;
    padding: 2px 8px; border-radius: 999px;
    background: #EAF6F4; color: var(--accent-hover);
    font-size: 0.7rem; font-weight: 800;
}
.info-box-badge--stay { background: #e8f1f4; color: #4A7C8C; }
.info-box-badge--food { background: #f8f1e4; color: #A67C2D; }
.info-box-title { font-weight: bold; font-size: 15px; margin-bottom: 5px; line-height: 1.35; }
.info-box-address { font-size: 12px; color: #666; margin-bottom: 8px; }
.info-box-address i { color: var(--accent-color); margin-right: 4px; }
.info-box-overview { font-size: 12px; color: #444; line-height: 1.5; margin: 0 0 10px; }
.info-box-dl { margin: 0 0 10px; }
.info-box-row {
    display: grid; grid-template-columns: 64px 1fr; gap: 4px 8px;
    padding: 5px 0; border-top: 1px solid #eef4f2;
    font-size: 11.5px;
}
.info-box-row:first-child { border-top: none; padding-top: 0; }
.info-box-row dt { margin: 0; color: #6b7f86; font-weight: 700; }
.info-box-row dd { margin: 0; color: #2a3d44; line-height: 1.4; }
.info-box-tips {
    margin: 0 0 10px; padding: 8px 10px; border-radius: 8px;
    background: #f3f7f6; color: #3d555c; font-size: 11.5px; line-height: 1.45;
}
.info-box-tips i { color: var(--accent-color); margin-right: 4px; }
.info-box-meta { font-size: 12px; color: #555; margin-bottom: 10px; }
.info-box-link {
    display: inline-block; background: var(--accent-color); color: white;
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: bold;
}
.info-box-actions {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
    justify-content: center;
}
.info-box-action {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px; border-radius: 999px;
    border: 1px solid #d5e4e1; background: #fff;
    color: var(--primary-color); font-size: 11px; font-weight: 700;
    text-decoration: none;
}
.info-box-action--primary {
    background: var(--accent-color); color: #fff; border-color: var(--accent-color);
}
.onsen-card--nearby .card-hint {
    margin: 10px 0 0; font-size: 0.82rem; color: #6b7f86;
}
.onsen-card--nearby .detail-cat-chip { margin-bottom: 8px; }
.guide-highlight-section {
    border: 3px solid var(--accent-color);
    padding: 30px 20px; border-radius: 20px; background-color: #fff;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(46, 181, 168, 0.12);
}

.guide-section-title {
    color: var(--accent-color) !important;
    font-size: 1.8rem; margin-bottom: 25px; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-weight: 900;
}

.view-all-container { text-align: center; margin-top: 30px; }
.btn-view-all {
    display: inline-block; padding: 12px 35px;
    background-color: var(--accent-color); color: white !important;
    border-radius: 30px; font-weight: 800; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(46, 181, 168, 0.32);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.header-nav-link {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
}
.header-nav-link:hover { opacity: 0.85; }

.directory-page {
    margin-top: 40px;
}
.directory-lead {
    text-align: center;
    color: #5a6f76;
    margin: -8px auto 22px;
    max-width: 640px;
    line-height: 1.5;
}
.directory-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
}
.directory-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}
.directory-filters {
    margin-bottom: 20px;
}
.directory-filters .theme-button {
    text-decoration: none;
}
.directory-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}
.directory-page-num {
    font-weight: 700;
    color: #4a5c63;
}
.btn-view-all--ghost {
    background: #fff !important;
    color: var(--accent-color) !important;
    border: 1.5px solid var(--accent-color);
}
.btn-view-all--ghost:hover {
    background: #eaf8f5 !important;
}


/* =========================================
   5. Grid & Card
   ========================================= */
.map-section {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: #ddd;
    position: relative;
}
#map { width: 100%; height: 100%; }

.map-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    max-width: 220px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(46, 181, 168, 0.25);
    box-shadow: 0 6px 18px rgba(15, 42, 50, 0.12);
    backdrop-filter: blur(6px);
    pointer-events: none;
}
.map-legend.is-emphasis {
    border-color: rgba(46, 181, 168, 0.55);
    box-shadow: 0 8px 22px rgba(46, 181, 168, 0.22);
}
.map-legend-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 6px;
}
.map-legend-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 5px;
}
.map-legend-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 650;
    color: #2a3d44;
}
.map-legend-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #fff;
}
.map-legend-swatch--clinic {
    background: #fff;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 0 2px rgba(46, 181, 168, 0.25);
}
.map-legend-swatch--stay { background: #4A7C8C; }
.map-legend-swatch--food { background: #D4A24C; }
.map-legend-note {
    margin: 8px 0 0;
    font-size: 0.68rem;
    line-height: 1.35;
    color: #6b7f86;
}

.marker-dot--nearby {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    color: #fff; font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    box-shadow:
        0 0 0 3px rgba(46, 181, 168, 0.35),
        0 3px 10px rgba(15, 42, 50, 0.28);
    opacity: 1;
}
.marker-dot--pick .marker-dot-icon { line-height: 1; }
.marker-dot-brand {
    position: absolute;
    right: -6px;
    bottom: -6px;
    min-width: 18px;
    height: 16px;
    padding: 0 3px;
    border-radius: 6px;
    background: #0f2a32;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.info-box-pick {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 800;
}
.info-box-pick-brand {
    color: var(--accent-color);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.info-box-pick-sep { color: #9aabae; }
.info-box-pick-kind { color: #3d555c; }
.info-box-badge--pick {
    background: linear-gradient(90deg, #e8f8f5, #f3fbf9);
    color: #1a7a70;
    border: 1px solid rgba(46, 181, 168, 0.35);
}
.info-box-curated {
    margin: 0 0 8px;
    font-size: 11.5px;
    line-height: 1.4;
    color: #4a6570;
    background: #f3faf8;
    border-left: 3px solid var(--accent-color);
    padding: 6px 8px;
    border-radius: 0 6px 6px 0;
}
.content-wrapper {
    max-width: 1100px; margin: -40px auto 0;
    padding: 0 20px 60px; position: relative; z-index: 10;
}

.intro-box {
    background: #fff; padding: 25px; border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 40px; text-align: center;
}
.intro-box h2 { font-size: 1.8rem; margin-bottom: 12px; }

.list-title {
    font-size: 1.8rem; font-weight: 900; margin: 40px 0 25px;
    color: var(--primary-color); text-align: center;
}

.onsen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.onsen-card {
    background: var(--card-bg); border-radius: 15px;
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none; color: inherit;
}
.onsen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-thumb {
    width: 100%; height: 200px; object-fit: cover; display: block;
}
.card-content { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; color: var(--primary-color); }
.card-summary { font-size: 0.88rem; color: var(--text-gray); line-height: 1.5; flex: 1; margin: 0 0 12px; }
.card-meta { font-size: 0.8rem; color: #aaa; display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.card-map-focus {
    align-self: flex-start;
    margin-top: 12px;
    padding: 8px 14px;
    border: 1px solid var(--accent-color, #2EB5A8);
    border-radius: 8px;
    background: transparent;
    color: var(--accent-color, #2EB5A8);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.card-map-focus:hover {
    background: color-mix(in srgb, var(--accent-color, #2EB5A8) 12%, transparent);
}

/* =========================================
   7. Detail Page
   ========================================= */
.detail-container { max-width: 800px; margin: 40px auto; padding: 0 20px 60px; }
.detail-header { margin-bottom: 20px; }
.detail-cats {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.detail-cat-chip {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 999px;
    background: #EAF6F4; color: var(--accent-hover);
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em;
}
.detail-title { font-size: 2rem; font-weight: 900; margin: 0 0 12px; line-height: 1.3; }
.detail-lede {
    margin: 0; font-size: 1.05rem; line-height: 1.65; color: #4a5c63;
}
.detail-meta { font-size: 0.9rem; color: #888; }

.detail-actions {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 0 0 20px;
}
.detail-action-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px; border-radius: 12px;
    border: 1.5px solid #d5e4e1; background: #fff;
    color: var(--primary-color); font-weight: 700; font-size: 0.92rem;
    text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.detail-action-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 6px 16px rgba(46, 181, 168, 0.16);
}
.detail-action-btn--primary {
    background: var(--accent-color); color: #fff; border-color: var(--accent-color);
}
.detail-action-btn--primary:hover {
    background: var(--accent-hover); border-color: var(--accent-hover);
    box-shadow: 0 6px 18px rgba(46, 181, 168, 0.28);
}

.detail-info-card {
    margin: 0 0 24px; padding: 20px 22px;
    background: #fff; border: 1px solid #e2eeeb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 42, 50, 0.05);
}
.detail-info-card-title {
    margin: 0 0 14px; font-size: 1rem; font-weight: 800;
    color: var(--primary-color);
}
.detail-info-list { margin: 0; }
.detail-info-row {
    display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px;
    padding: 12px 0; border-top: 1px solid #eef4f2;
}
.detail-info-row:first-of-type { border-top: none; padding-top: 0; }
.detail-info-row dt {
    margin: 0; font-size: 0.85rem; font-weight: 700; color: #6b7f86;
    display: flex; align-items: center; gap: 8px;
}
.detail-info-row dt i { color: var(--accent-color); width: 1rem; text-align: center; }
.detail-info-row dd { margin: 0; font-size: 0.95rem; color: var(--primary-color); line-height: 1.5; word-break: break-word; }
.detail-info-row dd a { color: var(--accent-hover); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.detail-info-row dd.is-empty,
.detail-transit-row dd.is-empty {
    color: #8a9aa1; font-style: italic; font-weight: 500;
}

.detail-img {
    width: 100%; max-height: 450px; object-fit: cover;
    border-radius: 15px; margin-bottom: 24px; display: block;
}
.detail-content { line-height: 1.9; color: #333; }
.detail-content-card {
    background: #fff; border: 1px solid #e2eeeb; border-radius: 16px;
    padding: 28px 28px 12px;
    box-shadow: 0 8px 24px rgba(15, 42, 50, 0.04);
}
.detail-content h2 { font-size: 1.35rem; border-left: 4px solid var(--accent-color); padding-left: 12px; margin-top: 28px; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content h3 { font-size: 1.15rem; margin-top: 24px; }
.detail-content ul { padding-left: 1.2rem; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.detail-content th, .detail-content td { border: 1px solid #eee; padding: 10px 14px; text-align: left; }
.detail-content th { background: #f5f5f5; font-weight: 700; }

.detail-plan {
    display: flex; flex-direction: column; gap: 16px;
    margin: 24px 0 0;
}
.detail-plan-card {
    background: #fff; border: 1px solid #e2eeeb; border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 8px 24px rgba(15, 42, 50, 0.05);
}
.detail-plan-card-head {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 14px;
}
.detail-plan-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: #EAF6F4; color: var(--accent-hover);
    flex-shrink: 0;
}
.detail-plan-card-title {
    margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--primary-color);
}
.detail-plan-intro.is-empty {
    color: #8a9aa1; font-style: italic;
}
.detail-plan-intro + .detail-plan-intro { margin-top: -6px; }
.detail-plan-prompt {
    margin: 0 0 10px; font-size: 0.9rem; font-weight: 700; color: var(--primary-color);
}
.detail-plan-note {
    margin: 14px 0 0; font-size: 0.88rem; line-height: 1.55; color: #6b7f86;
}

.detail-ask-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.detail-ask-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px;
    background: #fff8f0; border: 1px solid #f0e2d0; border-radius: 12px;
}
.detail-ask-icon {
    color: #c47a2c; margin-top: 2px; flex-shrink: 0;
}
.detail-ask-text {
    font-size: 0.95rem; line-height: 1.5; color: var(--primary-color);
}

.detail-checklist {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.detail-checklist-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px;
    background: #f7fbfa; border: 1px solid #e4efec; border-radius: 12px;
}
.detail-checklist-box {
    width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
    border: 2px solid var(--accent-color); border-radius: 5px;
    background: #fff;
}
.detail-checklist-text {
    font-size: 0.95rem; line-height: 1.5; color: var(--primary-color);
}

.detail-transit-list { margin: 0; }
.detail-transit-row {
    display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px;
    padding: 12px 0; border-top: 1px solid #eef4f2;
}
.detail-transit-row:first-of-type { border-top: none; padding-top: 0; }
.detail-transit-row--plain { grid-template-columns: 1fr; }
.detail-transit-row dt {
    margin: 0; font-size: 0.82rem; font-weight: 800; color: var(--accent-hover);
    letter-spacing: 0.01em;
}
.detail-transit-row dd {
    margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--primary-color);
}

.detail-plan-map-btn { margin: 0 0 14px; }

.detail-nearby-grid {
    display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 640px) {
    .detail-nearby-grid { grid-template-columns: repeat(3, 1fr); }
}
.detail-nearby-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px;
    background: linear-gradient(180deg, #f7fbfa 0%, #fff 100%);
    border: 1.5px solid #d5e4e1; border-radius: 14px;
    text-decoration: none; color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.detail-nearby-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(46, 181, 168, 0.16);
}
.detail-nearby-kind {
    display: inline-flex; align-self: flex-start;
    padding: 3px 10px; border-radius: 999px;
    background: #EAF6F4; color: var(--accent-hover);
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
    text-transform: uppercase;
}
.detail-nearby-name {
    font-size: 1rem; font-weight: 800; color: var(--primary-color); line-height: 1.35;
}
.detail-nearby-meta {
    font-size: 0.8rem; font-weight: 600; color: #6b7f86;
}
.detail-nearby-tip {
    font-size: 0.85rem; line-height: 1.45; color: #4a5c63;
    flex: 1;
}
.detail-nearby-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 6px; font-size: 0.85rem; font-weight: 700; color: var(--accent-hover);
}

.booking-box {
    text-align: center; margin: 36px 0; padding: 30px;
    background: #EAF6F4; border-radius: 15px; border: 2px dashed var(--accent-color);
}
.booking-btn {
    display: inline-block; background: var(--accent-color); color: white;
    padding: 15px 30px; font-weight: bold; border-radius: 30px;
    text-decoration: none; margin-top: 10px;
}

.detail-footer-nav { text-align: center; margin-top: 50px; }
.back-btn {
    display: inline-block; background: var(--primary-color); color: white;
    padding: 14px 35px; border-radius: 30px; font-weight: bold;
    transition: all 0.3s;
}
.back-btn:hover { transform: translateY(-3px); opacity: 0.85; }

@media (max-width: 640px) {
    .detail-title { font-size: 1.55rem; }
    .detail-action-btn { flex: 1 1 calc(50% - 10px); min-width: 140px; }
    .detail-action-btn--primary { flex: 1 1 100%; }
    .detail-info-row { grid-template-columns: 1fr; gap: 4px; }
    .detail-content-card { padding: 20px 18px 8px; }
    .detail-plan-card { padding: 18px 16px 14px; }
    .detail-transit-row { grid-template-columns: 1fr; gap: 4px; }
    .detail-nearby-grid { grid-template-columns: 1fr; }
}

/* --- Reactions (like / dislike) --- */
.reaction-panel {
    margin-top: 48px;
    margin-bottom: 8px;
    padding: 28px 32px 32px;
    border-radius: 20px;
    border: 1px solid rgba(46, 181, 168, 0.18);
    background: linear-gradient(180deg, #EAF6F4 0%, #ffffff 100%);
    box-shadow: 0 8px 28px rgba(46, 181, 168, 0.10);
    text-align: center;
}

.reaction-panel-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

.reaction-panel-subtitle {
    margin: 0 0 22px;
    font-size: 0.95rem;
    color: #64748b;
}

.reaction-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
    padding: 14px 32px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.reaction-btn i { font-size: 1.25rem; }

.reaction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.reaction-btn.active-like {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.reaction-btn.active-dislike {
    background: #f43f5e;
    color: #fff;
    border-color: #f43f5e;
}

@media (max-width: 768px) {
    .reaction-panel { margin-top: 36px; padding: 24px 20px 28px; }
    .reaction-panel-title { font-size: 1.15rem; }
    .reaction-btn { min-width: 0; flex: 1 1 120px; max-width: 200px; padding: 12px 20px; }
}

.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 48px 0 12px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #EAF6F4 0%, #ffffff 100%);
    border: 1px solid rgba(46, 181, 168, 0.20);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(46, 181, 168, 0.08);
}

.share-bar-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.share-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-1px);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.share-btn:disabled {
    opacity: 0.85;
    cursor: default;
}

.share-btn-icon {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
}

.share-icon {
    display: block;
    width: 18px;
    height: 18px;
}

.share-btn-x:hover { color: #000; border-color: #cbd5e1; }

.share-btn-linkedin:hover { color: #0a66c2; border-color: #0a66c2; }

.share-bar-hint {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}

@media (max-width: 768px) {
    .share-bar { margin-top: 36px; padding: 16px 18px; }
    .share-btn { min-height: 38px; padding: 0 14px; font-size: 0.85rem; }
}

/* =========================================
   8. Footer
   ========================================= */
footer {
    background: #fff; border-top: 1px solid #eee;
    padding: 50px 20px; text-align: center;
}

.footer-status {
    display: flex; justify-content: center; gap: 15px;
    flex-wrap: wrap; margin-bottom: 30px;
}
.status-badge {
    background: #f5f5f5; padding: 8px 18px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600;
}
.status-badge.highlight { background: var(--accent-color); color: white; }

.footer-content { color: #888; font-size: 0.9rem; }
.footer-links { margin: 10px 0; }
.footer-links a { color: #555; margin: 0 8px; }
.copyright { font-size: 0.8rem; margin-top: 10px; }

/* =========================================
   9. Responsive
   ========================================= */
@media (max-width: 768px) {
    .header-top { height: 65px; }
    .logo-img { height: 52px; max-width: 58vw; object-fit: contain; }
    .detail-title { font-size: 1.5rem; }
    .map-section { height: 45vh; min-height: 280px; }
    .map-legend {
        max-width: min(200px, calc(100% - 70px));
        left: 8px;
        bottom: 8px;
        padding: 8px 10px;
    }
    .map-legend-note { display: none; }
    .onsen-grid { grid-template-columns: 1fr; }
    .content-wrapper { margin-top: -20px; padding: 0 15px 40px; }
    .guide-section-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .logo-img { height: 44px; max-width: 70vw; }
}

/* Family sites strip (KR Campus ↔ KR Care) */
.family-sites-strip {
    background: #0F2A32;
    padding: 36px 16px 40px;
    margin: 28px 0 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.family-sites-inner { max-width: 960px; margin: 0 auto; }
.family-sites-title {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}
.family-sites-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
}
.family-site-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 1px solid #1e4a54;
    border-radius: 12px;
    background-color: #163840;
    padding: 14px 22px;
    min-width: 200px;
    max-width: 280px;
    flex: 1 1 200px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
    text-align: left;
}
.family-site-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.family-site-card-emoji { font-size: 1.35rem; margin-right: 12px; line-height: 1; flex-shrink: 0; }
.family-site-card-text { min-width: 0; text-align: left; }
.family-site-card-name { font-size: 0.95rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.family-site-card-desc { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; line-height: 1.35; }
@media (max-width: 768px) {
    .family-sites-strip { padding: 28px 12px 32px; }
    .family-site-card { flex: 1 1 100%; max-width: none; justify-content: center; }
}
