/* =================================== */
/* CSS 변수 및 기본 스타일 */
/* =================================== */
:root {
    --primary-color: #4a69bd;
    --primary-light-color: #f0f3ff;
    --text-color: #3f3f5e;
    --text-light-color: #757575;
    --bg-color: #f7f9fc;
    --white-color: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --highlight-color: #fffbe6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    flex-grow: 1;
    padding-top: 2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.error-message {
    padding: 2rem;
    text-align: center;
    font-weight: bold;
    background: #fff;
    border-radius: 8px;
}

/* =================================== */
/* 헤더 (상단 메뉴) 스타일 */
/* =================================== */
.site-header {
    width: 100%;
    padding: 1rem 0;
    background-color: var(--white-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    -webkit-transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    -webkit-transform: translateY(-8px) rotate(-45deg);
}


/* =================================== */
/* 메인 페이지 (index.php) 스타일 */
/* =================================== */

.hero-section {
    background: linear-gradient(135deg, rgba(74, 105, 189, 0.85), rgba(102, 126, 234, 0.9)), url('https://images.unsplash.com/photo-1517524206127-48bbd363f3a7?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    padding: 5rem 1rem;
    border-radius: 12px;
    text-align: center;
    color: var(--white-color);
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.main-search-bar {
    max-width: 600px;
    margin: 0 auto;
}

.main-search-bar form {
    display: flex;
    background: var(--white-color);
    border-radius: 30px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.main-search-bar input[type="text"] {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-color);
}

.main-search-bar button {
    border: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 0 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.main-search-bar button:hover {
    background-color: #3b5bb0;
}

.quick-search-section {
    padding: 3rem 0;
    text-align: center;
}

.quick-search-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.quick-search-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.quick-search-cards .card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.quick-search-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--primary-color);
}

.quick-search-cards .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quick-search-cards h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.quick-search-cards p {
    font-size: 0.95rem;
    color: var(--text-light-color);
    line-height: 1.5;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
    background-color: var(--white-color);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.features-section .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.features-section .feature h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.features-section .feature p {
    font-size: 1rem;
    color: var(--text-light-color);
}

/* =================================== */
/* 상세 페이지 (details.php) 스타일 */
/* =================================== */
.page-header {
    text-align: center;
    padding: 2rem 0;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
}
.page-header h1 { font-size: 2.5rem; color: var(--primary-color); }
.page-header .subtitle { font-size: 1.1rem; color: var(--text-light-color); }

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.btn-action {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.95rem; font-weight: 600;
    color: var(--primary-color); background-color: var(--primary-light-color); border: 1px solid #dbe1f9;
    border-radius: 8px; text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: all 0.2s ease-in-out;
}
.btn-action:hover {
    background-color: var(--primary-color); color: var(--white-color); transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 105, 189, 0.2);
}
.btn-action .icon { margin-right: 0.5rem; font-size: 1.1em; }

.top-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: flex-start; margin-bottom: 1.5rem; }
.map-container, #map, .map-placeholder { height: 350px; min-height: 300px; border-radius: 12px; }
#map { z-index: 1; }
.map-placeholder {
    background-color: var(--primary-light-color); display: flex; align-items: center; justify-content: center;
    color: #888; font-weight: 500;
}

.info-section { margin-bottom: 3rem; padding: 2rem; border: 1px solid var(--border-color); border-radius: 8px; background-color: var(--white-color); }
.info-section-top { padding: 2rem; border: 1px solid var(--border-color); border-radius: 8px; background-color: var(--white-color); margin: 0; }
.info-section-top h2 { padding-top: 0; margin-top: 0; }
.toc { background-color: #f8f9fa; padding: 1.5rem; border-radius: 8px; margin-bottom: 2.5rem; }
.toc h3 { margin-bottom: 1rem; color: var(--primary-color); font-size: 1.2rem; }
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; }
.toc ul li a {
    text-decoration: none; color: var(--text-color); background-color: #e9ecef;
    padding: 0.6rem 1.1rem; border-radius: 20px; font-size: 0.9rem;
    transition: all 0.2s ease-in-out; font-weight: 500;
}
.toc ul li a:hover {
    background-color: var(--primary-color); color: var(--white-color); transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 105, 189, 0.3);
}

.info-section h2 { font-size: 1.5rem; color: #333; margin-bottom: 1.5rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--primary-color); display: inline-block; }
.info-section h4 { font-size: 1.1rem; color: #555; margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; }
.data-item { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid #f2f2f2; font-size: 1rem; }
.info-section > .data-item:last-child, .grid-2 > .data-item:last-of-type, .grid-3 > .data-item:last-of-type { border-bottom: none; }
.data-item .label { font-weight: 600; color: var(--text-light-color); flex-basis: 40%; padding-right: 1rem; }
.data-item .value { flex-basis: 60%; text-align: right; color: var(--text-color); word-break: break-all; }
.status-y { color: #27ae60; font-weight: bold; }
.status-n { color: #c0392b; font-weight: bold; }
.data-item.empty { background-color: #fafafa; }
.data-item .no-data { color: #b0b0b0; font-style: italic; }
.grid-2, .grid-3 { display: grid; gap: 0 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* =================================== */
/* 검색, 지역별, 내주변 페이지 공통 스타일 */
/* =================================== */
.search-page-container, .region-page-container, .nearby-container {
    background: var(--white-color); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color);
}
.search-page-container, .region-page-container {
    display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: flex-start;
}
.search-sidebar, .region-sidebar {
    position: sticky; top: 100px;
    background: var(--white-color); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color);
}
.search-sidebar h3, .region-sidebar h3 {
    font-size: 1.2rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 0.5rem; }
.filter-group input[type="text"], .filter-group select { width: 100%; padding: 0.7rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 8px; }
.filter-group select:disabled { background-color: #f5f5f5; }
.checkbox-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.checkbox-group.full-width { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.checkbox-group label { font-weight: normal; display: flex; align-items: center; cursor: pointer; }
.checkbox-group input { margin-right: 0.5rem; }
.btn-search {
    width: 100%; padding: 0.8rem; font-size: 1.1rem; font-weight: 600;
    color: var(--white-color); background-color: var(--primary-color);
    border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.2s ease;
}
.btn-search:hover { background-color: #3b5bb0; }

.results-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--text-color);
}
.results-header h3 { font-size: 1.5rem; color: var(--text-color); }
.results-header span { font-size: 1rem; color: var(--text-light-color); font-weight: normal; }
.results-header strong { color: var(--primary-color); font-weight: 600; }
.sort-options select { padding: 0.5rem; border-radius: 8px; border: 1px solid var(--border-color); font-size: 0.95rem; }

.results-list { display: flex; flex-direction: column; gap: 1rem; }
.result-card {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; padding: 1.5rem; background: var(--white-color); border: 1px solid var(--border-color);
    border-radius: 12px; transition: all 0.2s ease-in-out;
}
.result-card:hover { border-color: var(--primary-color); box-shadow: 0 4px 15px var(--shadow-color); transform: translateY(-3px); }
.result-card .card-content { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; }
.result-card h4 { font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--primary-color); }
.card-meta { font-size: 0.9rem; color: var(--text-light-color); margin-bottom: 0.5rem; }
.card-address { font-size: 1rem; }
.card-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    flex-shrink: 0; 
    width: 140px;
    align-self: center;  /* 이 줄을 추가 */
}
.btn-card-action { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1rem; font-weight: 600; font-size: 0.9rem; border-radius: 8px; text-decoration: none; white-space: nowrap; border: 1px solid var(--primary-color); cursor: pointer; transition: all 0.2s ease; }
.btn-card-action:hover { background-color: var(--primary-color); color: var(--white-color); }
.btn-card-action.btn-add-compare { background-color: var(--primary-color); color: var(--white-color); }
.btn-card-action.btn-add-compare:hover { background-color: #3b5bb0; }
.btn-card-action.btn-add-compare.added { background-color: #27ae60; border-color: #27ae60; color: var(--white-color); cursor: default; }
.btn-card-action.btn-add-compare.added:hover { transform: none; box-shadow: none; }
.btn-card-action .icon { margin-right: 0.5rem; }

/* btn-card-details 스타일 추가 */
.btn-card-details { 
   display: inline-flex; 
   align-items: center; 
   justify-content: center; 
   padding: 0.6rem 1rem; 
   font-weight: 600; 
   font-size: 0.9rem; 
   border-radius: 8px; 
   text-decoration: none; 
   white-space: nowrap; 
   border: 1px solid var(--primary-color); 
   cursor: pointer; 
   transition: all 0.2s ease; 
}
.btn-card-details:hover { 
   background-color: var(--primary-color); 
   color: var(--white-color); 
}

.no-results {
    background: var(--white-color); padding: 3rem; text-align: center;
    border-radius: 12px; border: 1px solid var(--border-color);
}
.no-results.prompt { min-height: 300px; display: flex; align-items: center; justify-content: center; }
.no-results p { font-size: 1.1rem; color: var(--text-light-color); }

.pagination {
    margin-top: 2.5rem; display: flex; justify-content: center;
    align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.pagination a {
    color: var(--primary-color); padding: 0.5rem 1rem; text-decoration: none;
    border: 1px solid var(--border-color); border-radius: 8px;
    background-color: var(--white-color); transition: all 0.2s ease; font-weight: 500;
}
.pagination a:hover { background-color: var(--primary-light-color); border-color: var(--primary-color); }
.pagination a.active {
    background-color: var(--primary-color); color: var(--white-color);
    border-color: var(--primary-color); font-weight: bold;
}
.pagination span { padding: 0.5rem; color: var(--text-light-color); }

.region-sidebar .filter-group:not(:first-child) { margin-top: 1.5rem; }
.region-sidebar label { font-size: 1.2rem; display: block; margin-bottom: 1rem; }
.region-sidebar select { width: 100%; padding: 0.7rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 8px; }
.region-list { list-style: none; max-height: 60vh; overflow-y: auto; }
.region-list.sigungu-list { border-top: 1px solid var(--border-color); padding-top: 1rem; }
.region-list a { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.8rem; text-decoration: none; color: var(--text-color); border-radius: 8px; font-weight: 500; transition: background-color 0.2s ease; }
.region-list a:hover { background-color: var(--primary-light-color); }
.region-list a.active { background-color: var(--primary-color); color: var(--white-color); font-weight: 600; }
.count-badge { background-color: rgba(0,0,0,0.05); color: var(--text-light-color); font-size: 0.8rem; padding: 0.1rem 0.5rem; border-radius: 10px; }
.region-list a.active .count-badge { background-color: rgba(255,255,255,0.2); color: var(--white-color); }

.compare-container { margin-bottom: 3rem; }
.compare-actions { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.btn-clear-all { padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 500; color: var(--text-light-color); background-color: #f1f3f5; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; transition: all 0.2s ease; }
.btn-clear-all:hover { background-color: #e9ecef; color: var(--text-color); }
.compare-table-wrapper { width: 100%; overflow-x: auto; border: 1px solid var(--border-color); border-radius: 12px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.compare-table th, .compare-table td { padding: 1rem; text-align: center; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.compare-table thead th { background-color: var(--primary-light-color); color: var(--primary-color); font-size: 1.1rem; position: sticky; top: 0; z-index: 10; }
.compare-table thead .header-cell { position: relative; padding-right: 25px; }
.compare-table thead th a { color: var(--primary-color); text-decoration: none; }
.compare-table thead th a:hover { text-decoration: underline; }
.btn-remove-compare { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,0.1); color: #fff; font-size: 16px; line-height: 24px; text-align: center; cursor: pointer; opacity: 0.5; transition: all 0.2s ease; }
.btn-remove-compare:hover { background: var(--primary-color); opacity: 1; }
.compare-table tbody td:first-child, .compare-table tbody tr.group-header td { text-align: left; font-weight: 600; background-color: #f8f9fa; position: sticky; left: 0; width: 160px; }
.compare-table tr.group-header td { background-color: #e9ecef; color: var(--text-color); font-size: 1.1rem; }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: none; }
.compare-table tbody tr.highlight-diff { background-color: var(--highlight-color); }
.compare-table tbody tr.highlight-diff td { font-weight: bold; color: #5c3c00; }
.compare-table tbody tr.highlight-diff td:first-child { color: #333; }

#map-loading-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.9); z-index: 1001; transition: opacity 0.3s ease; }
#map-loading-overlay.hidden { opacity: 0; pointer-events: none; }
#map-loading-overlay p { font-size: 1.1rem; font-weight: 500; color: var(--text-color); }
.spinner { border: 4px solid rgba(0, 0, 0, 0.1); width: 36px; height: 36px; border-radius: 50%; border-left-color: var(--primary-color); animation: spin 1s ease infinite; margin-bottom: 1rem; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.current-location-marker { background: transparent; border: none; font-size: 2rem; line-height: 1; text-align: center; }
.distance-badge { display: inline-block; background-color: var(--primary-light-color); color: var(--primary-color); padding: 0.2rem 0.6rem; font-size: 0.8rem; font-weight: 600; border-radius: 12px; margin-left: 0.5rem; }
.distance-filter { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.distance-filter span { font-weight: 600; margin-right: 0.5rem; }
.distance-filter a { padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 20px; text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--text-color); background-color: var(--white-color); transition: all 0.2s ease; }
.distance-filter a:hover { border-color: var(--primary-color); background-color: var(--primary-light-color); }
.distance-filter a.active { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); font-weight: 600; }

/* 정보 페이지 (guide, privacy 등) 스타일 */
.guide-container, .legal-container {
    background: var(--white-color); padding: 2.5rem; border-radius: 12px;
    border: 1px solid var(--border-color);
}
.guide-section, .legal-section { font-size: 1rem; line-height: 1.8; }
.guide-section h2, .legal-section h3 {
    font-size: 1.3rem; color: var(--text-color); margin-top: 2.5rem;
    margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color);
}
.guide-section:first-child h2, .legal-section:first-child h3 { margin-top: 0; }
.legal-section p { margin-bottom: 1rem; color: var(--text-light-color); }
.legal-section p strong { color: var(--text-color); }
.legal-section ul, .legal-section ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-light-color); }
.legal-section ul li, .legal-section ol li { margin-bottom: 0.5rem; }
.effective-date { font-weight: 500; color: var(--text-light-color); border-left: 4px solid var(--primary-color); padding-left: 1rem; margin-bottom: 2rem !important; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
    width: 100%; background: none; border: none; padding: 1.25rem 0.5rem;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-size: 1.2rem; font-weight: 600; color: var(--text-color); text-align: left;
}
.accordion-header:hover { color: var(--primary-color); }
.accordion-icon { font-size: 1.5rem; color: var(--primary-color); font-weight: 300; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 0.5rem; }
.accordion-content p, .accordion-content ul, .accordion-content ol { margin-bottom: 1rem; padding-bottom: 1rem; color: var(--text-light-color); font-size: 1rem; line-height: 1.8; }
.accordion-content ul, .accordion-content ol { padding-left: 2rem; }
.accordion-item.active .accordion-content { padding-bottom: 1rem; }
.info-box {
    background-color: var(--primary-light-color); border-left: 5px solid var(--primary-color);
    padding: 1.5rem; border-radius: 8px; margin: 1rem 0;
}
.info-box p { margin: 0; color: var(--text-color); }
.info-box p + p { margin-top: 0.75rem; }

/* =================================== */
/* 푸터 (하단 메뉴) 스타일 */
/* =================================== */
.site-footer {
    background-color: #343a40; color: #adb5bd; padding: 3rem 0;
    font-size: 0.9rem; margin-top: 3rem;
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-size: 1.2rem; font-weight: 600; color: var(--white-color); }
.footer-links a { color: #f8f9fa; text-decoration: none; margin: 0 0.75rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-links strong { color: var(--white-color); }
.copyright { text-align: center; border-top: 1px solid #495057; padding-top: 1.5rem; }
.copyright p { margin: 0.5rem 0 0; line-height: 1.5; }

/* =================================== */
/* 반응형 (모바일) 스타일 */
/* =================================== */
@media (max-width: 900px) {
    .container { padding: 0 1.5rem; }
    .main-content.container { padding-top: 1.5rem; }
    .top-content, .search-page-container, .region-page-container { grid-template-columns: 1fr; }
    #map, .map-placeholder { height: 300px; margin-bottom: 1.5rem; }
    .nearby-list { grid-template-columns: 1fr; }
    .search-sidebar, .region-sidebar { position: static; top: auto; margin-bottom: 2rem; }
    .region-list { max-height: 250px; }
}

@media (max-width: 768px) {
    body { padding: 0; }
    .main-content.container { padding-top: 1rem; padding-bottom: 1rem; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0;
        width: 100%; background-color: var(--white-color);
        box-shadow: 0 2px 4px var(--shadow-color);
    }
    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; align-items: center; padding: 1rem 0; gap: 0; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu a { display: block; padding: 1rem 0; width: 100%; }
    .nav-menu a::after { display: none; }
    .hamburger-menu { display: flex; }

    .hero-content h1, .page-header h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .main-search-bar input[type="text"] { font-size: 1rem; padding: 0.6rem 1rem; }
    .main-search-bar button { padding: 0 1.2rem; }
    .quick-search-cards { grid-template-columns: 1fr; }
    .features-section { flex-direction: column; gap: 2rem; }
    .btn-action { flex-grow: 1; padding: 0.7rem 1rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 0; }
    .info-section { padding: 1.5rem 1rem; }
    .data-item { flex-direction: column; align-items: flex-start; text-align: left; }
    .data-item .value { text-align: left; margin-top: 0.2rem; }
    .data-item.empty { border-left: 3px solid var(--border-color); padding-left: 1rem; }
    
    .footer-content { flex-direction: column; text-align: center; }
}