/* ============================================
   도입 현황 - 갤러리 / 상세 / 관리자 스타일
   (밥이요 디자인 시스템과 통일)
   ============================================ */

.intro-body {
    background: #f8fafc;
}

/* 활성 메뉴 표시는 /public/css/header.css 의 .nav a.is-active 로 통합 */

/* ---------- Hero ---------- */
.intro-main { padding-top: 0; }

.intro-hero {
    position: relative;
    padding: 140px 0 80px;
    color: #fff;
    overflow: hidden;
}
.intro-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 500px at 10% 0%, rgba(96,165,250,.4), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(245,158,11,.25), transparent 60%),
        linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
    z-index: 0;
}
.intro-hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .6;
}
.intro-hero .container { position: relative; z-index: 1; }

.intro-hero-inner {
    max-width: 920px;
}
.intro-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.intro-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.intro-hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    opacity: 0.92;
    max-width: 680px;
}
.intro-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 40px;
    max-width: 720px;
}
.intro-stat {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 22px;
}
.intro-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.intro-stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.78);
    margin-top: 2px;
}

/* ---------- Section heads ---------- */
.intro-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.intro-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-top: 8px;
}
.intro-section-head p {
    color: var(--text-light);
    margin-top: 6px;
}
.intro-section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Map ---------- */
.intro-map-section {
    padding: 60px 0 30px;
    background: #f8fafc;
}
.intro-detail-map-section {
    padding: 0 0 30px;
    background: #f8fafc;
}
.intro-map-wrapper {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 50px -20px rgba(15,23,42,0.18);
    border: 1px solid rgba(15,23,42,0.06);
}
#intro-map {
    width: 100%;
    height: 480px;
}
.intro-detail #intro-map { height: 380px; }
@media (max-width: 768px) {
    #intro-map { height: 360px; }
    .intro-detail #intro-map { height: 280px; }
}
.intro-map-empty,
.intro-map-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--text-light);
    background: #f8fafc;
    padding: 24px;
}
.intro-map-fallback strong { color: var(--text); }

/* Cluster pulse animation */
@keyframes introClusterPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* InfoWindow */
.intro-iw {
    width: 240px;
    padding: 4px 0;
    font-family: 'Noto Sans KR', sans-serif;
}
.intro-iw .iw-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    background-color: #e2e8f0;
}
.intro-iw .iw-body { padding: 12px 14px; }
.intro-iw .iw-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.4;
}
.intro-iw .iw-addr {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.intro-iw .iw-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.intro-iw .iw-link {
    display: inline-block;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.intro-iw .iw-link:hover { text-decoration: underline; }

/* ---------- Gallery ---------- */
.intro-list-section {
    padding: 60px 0 100px;
    background: #f8fafc;
}
.intro-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.intro-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 22px -10px rgba(15,23,42,0.12);
    border: 1px solid rgba(15,23,42,0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.intro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -16px rgba(37,99,235,0.25);
    border-color: rgba(37,99,235,0.2);
}
.intro-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.intro-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    overflow: hidden;
}
.intro-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-card:hover .intro-card-thumb img { transform: scale(1.06); }
.intro-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    background: url('/public/images/no-image.png')no-repeat center/cover;
}
.intro-card-marker {
    position: absolute;
    top: 14px; left: 14px;
    width: 32px; height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.intro-card-body { padding: 22px 24px 24px; }
.intro-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.intro-card-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 14px;
}
.intro-card-address svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary);
}
.intro-card-address span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.intro-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.intro-card-date {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 500;
}
.intro-card-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ---------- Empty state ---------- */
.intro-empty {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
}
.intro-empty-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: #eff6ff;
    color: var(--primary);
}
.intro-empty h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.intro-empty p { color: var(--text-light); }

/* ---------- Detail ---------- */
.intro-detail-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}
.intro-detail-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 100% 0%, rgba(96,165,250,0.4), transparent 60%);
    pointer-events: none;
}
.intro-detail-hero .container { position: relative; }
.intro-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.intro-back-link:hover { color: #fff; }
.intro-detail-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 22px;
}

/* 상세 헤로 — 썸네일 있을 때 좌우 분할 */
.intro-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.intro-detail-grid.has-thumb {
    grid-template-columns: 1fr 380px;
}
.intro-detail-info { min-width: 0; }
.intro-detail-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.1);
}
.intro-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 900px) {
    .intro-detail-grid.has-thumb { grid-template-columns: 1fr; gap: 28px; }
    .intro-detail-thumb { max-width: 520px; margin: 0 auto; }
}
.intro-detail-meta {
    display: flex; flex-wrap: wrap; gap: 20px;
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
}
.intro-detail-meta-item {
    display: inline-flex; align-items: center; gap: 6px;
}
.intro-address-detail {
    margin-left: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
}

.intro-admin-quick {
    display: inline-flex; gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.intro-admin-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-light);
    font-size: 0.82rem;
    background: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}
.intro-admin-link:hover { color: var(--primary); border-color: var(--primary); }
.intro-inline-form { display: inline; }

.intro-detail-body { padding: 60px 0 100px; background: #fff; }
.intro-detail-content {
    max-width: 880px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #1e293b;
}
.intro-detail-content h1,
.intro-detail-content h2,
.intro-detail-content h3,
.intro-detail-content h4 {
    margin: 1.6em 0 0.6em;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.intro-detail-content h2 { font-size: 1.5rem; }
.intro-detail-content h3 { font-size: 1.25rem; }
.intro-detail-content p { margin: 0.8em 0; }
.intro-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.4em 0;
    box-shadow: 0 8px 24px -12px rgba(15,23,42,0.2);
}
.intro-detail-content a { color: var(--primary); text-decoration: underline; }
.intro-detail-content blockquote {
    border-left: 4px solid var(--primary);
    background: #eff6ff;
    padding: 16px 20px;
    margin: 1.4em 0;
    border-radius: 0 12px 12px 0;
    color: #1e293b;
}
.intro-detail-content ul,
.intro-detail-content ol { padding-left: 1.6em; margin: 0.8em 0; }
.intro-detail-content li { margin: 0.3em 0; list-style: revert; }
.intro-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
}
.intro-detail-content th,
.intro-detail-content td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.intro-detail-content th { background: #f8fafc; font-weight: 700; }

.intro-detail-actions {
    text-align: center;
    margin-top: 60px;
}

/* ---------- Buttons local ---------- */
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-danger {
    color: #dc2626;
    border-color: #fca5a5;
}
.btn-danger:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.btn-white {
    background: #fff;
    color: var(--primary);
}

/* ============================================
   Admin
   ============================================ */

/* 관리자 영역에서는 hover 시 튀어나오는 transform 모션 제거 */
.admin-shell :hover,
.admin-login-shell :hover { transform: none !important; }

.admin-shell {
    background: #f1f5f9;
    min-height: 100vh;
    padding: 100px 24px 60px;
}
.admin-card {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px -25px rgba(15,23,42,0.18);
    border: 1px solid rgba(15,23,42,0.05);
    overflow: hidden;
}
.admin-card-head {
    padding: 32px 40px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.admin-card-head h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.admin-card-head p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2px;
}
.admin-card-body { padding: 32px 40px 40px; }

@media (max-width: 640px) {
    .admin-card-head, .admin-card-body { padding-left: 22px; padding-right: 22px; }
}

.admin-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 40px;
    background: #fafbfc;
}
.admin-tabs a {
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1px;
}
.admin-tabs a.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 로그인 박스 */
.admin-login-shell {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    padding: 24px;
}
.admin-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px;
    padding: 44px 36px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}
.admin-login-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.admin-login-card .admin-login-sub {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.92rem;
}
.admin-login-card .form-group:not(:last-child) { margin-bottom: 16px; }
.admin-login-card button { width: 100%; }
.admin-login-back {
    display: block;
    text-align: center;
    color: var(--text-light);
    margin-top: 18px;
    font-size: 0.9rem;
}

/* Form */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.92rem;
}
.form-group .form-help {
    font-size: 0.82rem;
    color: var(--text-light);
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
textarea.form-control { min-height: 130px; resize: vertical; }

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .form-grid-2 { grid-template-columns: 1fr; gap: 12px; }
}

.address-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.thumb-uploader {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.thumb-preview {
    width: 160px; height: 110px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
}
.thumb-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.thumb-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
}

.form-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #f1f5f9;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    margin-bottom: 22px;
    line-height: 1.5;
}
.alert-error {
    background: #fee2e2; color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-success {
    background: #dcfce7; color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-info {
    background: #eff6ff; color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Admin map preview */
.admin-map-preview {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    margin-top: 8px;
}

/* Admin posts table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.admin-table th, .admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.admin-table tr:hover td { background: #fafbfc; }
.admin-table .row-thumb {
    width: 64px; height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
}
.admin-table .row-actions {
    display: inline-flex; gap: 6px;
}

.empty-row {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-light);
}

/* Header logged in */
.admin-userline {
    display: inline-flex; gap: 8px; align-items: center;
    color: var(--text-light);
    font-size: 0.88rem;
}

/* TinyMCE container nudge */
.tox-tinymce { border-radius: 10px !important; border-color: #e2e8f0 !important; }
