/**
 * 관광지 공개 페이지 CSS — pub_tours.css 카드뉴스 확장 · 시·도 헤더를 서울 지도 영역(640px) 안쪽 정렬
 * Bootstrap 미사용
 */

/* ── 관광지 상세 (sightseeingspot_view.php) ── */
/* 썸네일 있음 — 그라데이션 없음 · 단색 배경 + 이미지 60% 투명 */
.pub-sightseeing-hero--has-thumb {
    position: relative;
    overflow: hidden;
    background: #0d1b2a;
}

.pub-sightseeing-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.pub-sightseeing-hero--has-thumb .pub-sightseeing-hero-inner {
    position: relative;
    z-index: 1;
}

.pub-sightseeing-hero-inner {
    width: 100%;
}

.pub-sightseeing-hero-top {
    text-align: left;
    margin-bottom: 10px;
}

.pub-sightseeing-hero-center {
    width: 100%;
    text-align: center;
}

.pub-sightseeing-detail-page .pub-sightseeing-hero-center .pub-tours-hero-badge {
    margin-left: auto;
    margin-right: auto;
}

.pub-sightseeing-detail-page .pub-sightseeing-hero-title {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px auto 12px;
}

.pub-sightseeing-detail-inner {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .pub-sightseeing-detail-inner {
        max-width: 100%;
    }
}

.pub-sightseeing-region-grid {
    grid-template-columns: repeat(4, minmax(0, 240px));
}

.pub-sightseeing-region-card .pub-tours-card-title {
    font-size: 1rem;
    line-height: 1.35;
}

.pub-sightseeing-region-thumb {
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.pub-sightseeing-region-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.pub-sightseeing-region-thumb--seoul {
    background: linear-gradient(135deg, #7c3aed 0%, #1a56db 55%, #0d1b2a 100%);
}

.pub-sightseeing-region-thumb--busan,
.pub-sightseeing-region-thumb--incheon,
.pub-sightseeing-region-thumb--default {
    background: linear-gradient(135deg, #0ea5e9 0%, #1a56db 55%, #0d1b2a 100%);
}

.pub-sightseeing-region-thumb--daegu,
.pub-sightseeing-region-thumb--gyeongbuk {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 55%, #0d1b2a 100%);
}

.pub-sightseeing-region-thumb--gwangju,
.pub-sightseeing-region-thumb--jeonnam,
.pub-sightseeing-region-thumb--jeonbuk {
    background: linear-gradient(135deg, #22c55e 0%, #0d9488 55%, #0d1b2a 100%);
}

.pub-sightseeing-region-thumb--daejeon,
.pub-sightseeing-region-thumb--chungbuk,
.pub-sightseeing-region-thumb--chungnam {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 55%, #0d1b2a 100%);
}

.pub-sightseeing-region-thumb--ulsan,
.pub-sightseeing-region-thumb--gyeongnam {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 55%, #0d1b2a 100%);
}

.pub-sightseeing-region-thumb--gyeonggi,
.pub-sightseeing-region-thumb--gangwon {
    background: linear-gradient(135deg, #14b8a6 0%, #0369a1 55%, #0d1b2a 100%);
}

.pub-sightseeing-region-thumb--jeju {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 55%, #0d1b2a 100%);
}

.pub-sightseeing-region-count {
    margin: 0 0 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1a56db;
}

.pub-sightseeing-region-soon {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.pub-sightseeing-back--top {
    width: auto;
    max-width: none;
    margin: 0;
}

/* 시·도 상세 — 타이틀(서울특별시) + 날씨 — 단일 td 중앙 배열 */
.pub-sightseeing-city-title-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 4px;
    border: 3px solid #1a56db;
    border-radius: 10px;
    overflow: hidden;
}

.pub-sightseeing-city-title-cell {
    text-align: center;
    vertical-align: middle;
    padding: 10px 16px;
}

.pub-sightseeing-city-title-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pub-sightseeing-city-title-wx-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #64748b;
}

.pub-sightseeing-city-title-inner .section-title {
    display: inline;
    margin-bottom: 0;
    text-align: center;
}

.pub-sightseeing-city-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1080px;
    margin-bottom: 8px;
}

.pub-sightseeing-city-top .pub-sightseeing-back--top {
    justify-self: start;
    grid-column: 1;
}

.pub-sightseeing-city-top .section-label {
    grid-column: 2;
    margin-bottom: 0;
    text-align: center;
}

.pub-sightseeing-city-head-bar--tabs-only {
    justify-content: flex-end;
}

.pub-sightseeing-city-head {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 12px;
}

.pub-sightseeing-city-head-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pub-sightseeing-city-head-main {
    text-align: center;
}

.pub-sightseeing-today-weather {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    text-decoration: none;
    color: #475569;
    cursor: pointer;
    flex-shrink: 0;
}

.pub-sightseeing-today-weather:hover .pub-sightseeing-today-weather-text {
    color: #1a56db;
}

.pub-sightseeing-today-weather:focus,
.pub-sightseeing-today-weather:active {
    outline: 0;
    border: 0;
}

.pub-sightseeing-today-weather-icon {
    display: block;
    flex-shrink: 0;
}

.pub-sightseeing-today-weather-text {
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.pub-sightseeing-city-head-main .section-title,
.pub-sightseeing-city-head-main .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* 서울 지도형식 — 타이틀과 지도 사이 여백 축소 */
.pub-sightseeing-page--city-map .pub-sightseeing-city-head {
    margin-bottom: 0;
}

.pub-sightseeing-page--city-map .pub-sightseeing-city-title-table {
    margin-bottom: 4px;
}

.pub-sightseeing-page--city-map .pub-sightseeing-city-head-main .section-title,
.pub-sightseeing-city-title-inner .section-title {
    margin-bottom: 0;
}

.pub-sightseeing-page--city-map .pub-sightseeing-city-head-main .section-sub {
    margin-bottom: 0;
}

.pub-sightseeing-page--city-map .pub-sightseeing-view-panel[data-view-panel="map"] {
    margin-top: 0;
}

.pub-sightseeing-page--city-map .seoul-map-wrap {
    margin-top: 0;
    padding-top: 8px;
}

/* 전국 시·도 지도 — 타이틀과 지도 사이 여백 축소 */
.pub-sightseeing-page--regions-map .pub-tours-section > .section-title {
    margin-bottom: 4px;
}

.pub-sightseeing-page--regions-map .pub-tours-section > .section-sub {
    margin-bottom: 0;
}

.pub-sightseeing-page--regions-map .pub-sightseeing-map-section .kr-map-wrap {
    margin-top: 0;
    padding-top: 8px;
}

.pub-sightseeing-view-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    flex-shrink: 0;
}

.pub-sightseeing-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pub-sightseeing-view-tab:hover {
    color: #1a56db;
    background: rgba(255, 255, 255, 0.7);
}

.pub-sightseeing-view-tab.is-active {
    color: #1a56db;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.12);
}

.pub-sightseeing-view-tab-icon {
    font-size: 1rem;
    line-height: 1;
}

.pub-sightseeing-view-panel[hidden] {
    display: none !important;
}

.pub-sightseeing-map-spot-list {
    width: 100%;
    max-width: 920px;
    margin: 20px auto 0;
}

.pub-sightseeing-map-spot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pub-sightseeing-map-spot-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.pub-sightseeing-map-filter-reset {
    display: none;
    padding: 6px 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    color: #1a56db;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.pub-sightseeing-map-filter-reset.is-visible {
    display: inline-block;
}

.pub-sightseeing-map-spot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pub-sightseeing-map-spot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-sightseeing-map-spot-item.has-thumb {
    padding: 8px 10px;
}

.pub-sightseeing-map-spot-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 7px;
    flex-shrink: 0;
    background: #f1f5f9;
}

.pub-sightseeing-map-spot-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.pub-sightseeing-map-spot-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.1);
}

.pub-sightseeing-map-spot-item.is-hidden {
    display: none !important;
}

.pub-sightseeing-map-spot-item.is-page-hidden {
    display: none !important;
}

.pub-sightseeing-map-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pub-sightseeing-map-pagination a,
.pub-sightseeing-map-pagination button,
.pub-sightseeing-map-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 0.84rem;
    text-decoration: none;
    color: #475569;
    background: #fff;
    border: 1.5px solid #dde3f0;
}

.pub-sightseeing-map-pagination button {
    cursor: pointer;
    font-family: inherit;
}

.pub-sightseeing-map-pagination a:hover,
.pub-sightseeing-map-pagination button:hover {
    background: #f1f5f9;
    color: #1a56db;
}

.pub-sightseeing-map-pagination .current {
    background: #1a56db;
    color: #fff;
    border-color: #1a56db;
    font-weight: 700;
    border-radius: 4px;
}

.pub-sightseeing-map-pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pub-sightseeing-map-spot-item strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pub-sightseeing-map-spot-item span {
    font-size: 0.78rem;
    color: #64748b;
}

.seoul-map-wrap {
    max-width: 640px;
    min-height: 0;
}

.seoul-map-svg {
    width: 100%;
    max-width: 640px;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.pub-sightseeing-region-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pub-sightseeing-region-title::before {
    content: '📍';
    font-size: 1rem;
}

.pub-sightseeing-card-thumb {
    align-items: center;
    justify-content: center;
}

.pub-sightseeing-card-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.pub-sightseeing-card-price {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a56db;
}

.pub-sightseeing-empty {
    width: 100%;
    max-width: 1080px;
    text-align: center;
    color: #64748b;
    padding: 48px 16px;
}

.pub-sightseeing-back {
    margin: 0 0 20px;
}

.pub-sightseeing-back a {
    color: #1a56db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.pub-sightseeing-back a:hover {
    text-decoration: underline;
}

.pub-sightseeing-hero {
    text-align: center;
}

.pub-sightseeing-hero-icon {
    font-size: 2.8rem;
    margin-bottom: 8px;
}

.pub-sightseeing-hero-sub {
    margin: 10px 0 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

.pub-sightseeing-detail-grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.pub-sightseeing-detail-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
}

.pub-sightseeing-detail-block h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.pub-sightseeing-detail-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #334155;
}

.pub-sightseeing-price-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pub-sightseeing-price-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
}

.pub-sightseeing-price-list li:last-child {
    border-bottom: none;
}

.pub-sightseeing-price-list small {
    color: #94a3b8;
    font-weight: 500;
}

.pub-sightseeing-info-list {
    margin: 0;
}

.pub-sightseeing-info-list > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.pub-sightseeing-info-list > div:last-child {
    border-bottom: none;
}

.pub-sightseeing-info-list dt {
    margin: 0;
    font-weight: 700;
    color: #64748b;
}

.pub-sightseeing-info-list dd {
    margin: 0;
    color: #334155;
    word-break: break-word;
}

.pub-sightseeing-info-list a {
    color: #1a56db;
}

@media (max-width: 1100px) {
    .pub-sightseeing-region-grid {
        grid-template-columns: repeat(3, minmax(0, 240px));
    }
}

@media (max-width: 820px) {
    .pub-sightseeing-region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pub-sightseeing-region-grid {
        grid-template-columns: 1fr;
    }

    .pub-sightseeing-info-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pub-sightseeing-city-head-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pub-sightseeing-city-top {
        grid-template-columns: 1fr;
        gap: 6px;
        justify-items: center;
        margin-bottom: 10px;
    }

    .pub-sightseeing-city-top .pub-sightseeing-back--top {
        justify-self: center;
        grid-column: 1;
        width: 100%;
        text-align: left;
    }

    .pub-sightseeing-city-top .section-label {
        grid-column: 1;
    }

    .pub-sightseeing-view-tabs {
        width: 100%;
        justify-content: stretch;
    }

    .pub-sightseeing-view-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.78rem;
    }
}

/* 관광지 상세 — 하단 Google Maps */
.pub-sightseeing-detail-map {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.pub-sightseeing-detail-map-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.pub-sightseeing-detail-map-body {
    position: relative;
}

.pub-sightseeing-detail-map-canvas,
.pub-sightseeing-detail-map-frame {
    display: block;
    width: 100%;
    height: 360px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

.pub-sightseeing-detail-map-frame {
    border: 0;
}

.pub-sightseeing-detail-map-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.pub-sightseeing-detail-map-zoom-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: #fff;
    color: #666;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.pub-sightseeing-detail-map-zoom-btn + .pub-sightseeing-detail-map-zoom-btn {
    border-top: 1px solid #e2e8f0;
}

.pub-sightseeing-detail-map-zoom-btn:hover:not(:disabled) {
    background: #f8fafc;
    color: #1d4ed8;
}

.pub-sightseeing-detail-map-zoom-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.pub-sightseeing-detail-map-status {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.pub-sightseeing-detail-map-status.is-error {
    color: #dc2626;
}

.pub-sightseeing-detail-map-link {
    margin: 12px 0 0;
    font-size: 0.88rem;
}

.pub-sightseeing-detail-map-link a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.pub-sightseeing-detail-map-link a:hover {
    text-decoration: underline;
}

/* sightseeingspot_view — 지도 카드 전폭 · 16:9 (첨부 참고 크기) */
.pub-sightseeing-detail-page .pub-sightseeing-detail-map-body {
    margin-left: -28px;
    margin-right: -28px;
    width: calc(100% + 56px);
}

.pub-sightseeing-detail-page .pub-sightseeing-detail-map-canvas,
.pub-sightseeing-detail-page .pub-sightseeing-detail-map-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    border-radius: 12px;
}

.pub-sightseeing-map-info {
    padding: 2px 0;
    line-height: 1.45;
    color: #0f172a;
}

.pub-sightseeing-map-info-thumb {
    display: block;
    width: 100%;
    max-width: 196px;
    height: auto;
    max-height: 98px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0 0 8px;
}

.pub-sightseeing-map-info-title {
    display: block;
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.pub-sightseeing-map-info-address {
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
}

@media (max-width: 768px) {
    .pub-sightseeing-detail-page .pub-sightseeing-detail-map-body {
        margin-left: -14px;
        margin-right: -14px;
        width: calc(100% + 28px);
    }
}

@media (max-width: 640px) {
    .pub-sightseeing-detail-map-canvas,
    .pub-sightseeing-detail-map-frame {
        height: 280px;
    }

    .pub-sightseeing-detail-page .pub-sightseeing-detail-map-canvas,
    .pub-sightseeing-detail-page .pub-sightseeing-detail-map-frame {
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: 240px;
        border-radius: 10px;
    }
}
