@charset "UTF-8";

/* ===== 전역 스타일 초기화 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #212529;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 타이포그래피 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0060F7;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 컨테이너 ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== 헤더 스타일 ===== */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.head_container {
	max-width: 1200px !important;
	margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    width: 50px;
}

.logo svg {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: none;
    gap: 1.0417rem;
}

.nav-link {
    font-weight: 500;
    color: #495057;
    transition: color 0.3s ease;
	letter-spacing: -0.32px;
	font-size: 16px;
}

.nav-link:hover {
    color: #80A2D7;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 테마 토글 스위치 */
.theme-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.switch-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9ecef;
    border-radius: 14px;
    transition: background-color 0.3s ease;
    border: 1px solid #dee2e6;
}

.switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-sun, .icon-moon {
    color: #495057;
}

/* 다크모드일 때 스위치 스타일 */
[data-theme="dark"] .switch-track {
    background-color: #0060F7;
    border-color: #80a2d7;
}

[data-theme="dark"] .switch-thumb {
    transform: translateX(24px);
    background-color: #212529;
}

[data-theme="dark"] .icon-sun,
[data-theme="dark"] .icon-moon {
    color: #e9ecef;
}

.btn-search {
    padding: 0.5rem;
    color: #495057;
}

.btn-download {
    display: none;
    padding: 8px 15px ;
    background: #fff;
    border-radius: 50px;
    font-weight: 400;
	color: #0060F7;
	letter-spacing: -0.32px;
	border: 1px solid #0060F7;
    transition: background 0.3s ease;
	font-size: 14px;
	line-height: 1;
}

.btn-download:hover {
    background: #E9F1FF;
	color:#0060F7;
}

.btn-menu {
    padding: 0.5rem;
    color: #495057;
}

/* ===== 히어로 섹션 ===== */
.hero {
    padding: 3rem 0;
    background: #EEF5FF;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== 검색 바 ===== */
.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-right: 1px solid #e9ecef;
    flex-shrink: 0;
}

.search-location svg {
    color: #0060F7;
}

.search-location span {
    font-weight: 500;
    color: #495057;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
	background: #fff;
}

.search-btn {
    padding: 0.5rem;
    background: #80a2d7;
    border-radius: 50%;
    margin-right: 0.25rem;
    transition: background 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #0060F7;
}

.search-btn svg {
    color: white;
    display: block;
    width: 20px;
    height: 20px;
}

/* ===== 인기 검색어 ===== */
.popular-keywords {
    text-align: center;
}

.keywords-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-right: 1rem;
}

.keywords-list {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.keyword {
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #495057;
    transition: background 0.3s ease;
}

.keyword:hover {
	color:#0060f7;
}

/* ===== 인기 매물 섹션 ===== */
.popular-items {
    padding: 4rem 0;
    background: #ffffff;
}

.section-title {
	position:relative;
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 3rem;
    color: #212529;
}



/* ===== 서비스 섹션 ===== */
.services {
    padding: 4rem 0;
    background: #f8f9fa;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.service-card p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* ===== 푸터 ===== */
.footer {
    background: #212529;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: #adb5bd;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #adb5bd;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid #495057;
    text-align: center;
}

.footer-bottom p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}




/* 헤더 위치 선택 버튼 스타일 */
.search-location-header {
    display: flex;
    align-items: center;
    gap: 0px;
    cursor: pointer;
    padding: 8px 15px;
    background: #F3F3F3;
    border-radius: 50px;
}
.search-location-header .location-country-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding-right: 9px;
    position: relative;
	line-height: 1;
}
.search-location-header .location-country-text:after{
	content:'';
	position: absolute;
	top:50%;
	transform:translateY(-50%);
	right:0;
	width: 1px;
	height: 13px;
	background: #0060F7;
}
.search-location-header .location-text {
    font-size: 14px;
    font-weight: 500;
    color: #0060F7;
	padding-left: 9px;
	line-height: 1;
}
.btn-menu-pc {
    display: none;
    padding: 0.5rem;
    color: #495057;
 }
/* ===== 반응형 디자인 ===== */

/* 태블릿 (768px 이상) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .logo svg {
        height: 40px;
    }

    .nav-menu {
        display: flex;
    }

    .btn-download {
        display: block;
    }

    .btn-menu-pc {
        display: block;
    }

    .btn-menu {
        display: none;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .search-bar {
        padding: 0.75rem;
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 데스크톱 (1024px 이상) */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .service-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        flex-wrap: nowrap;
    }
}

/* 헤더 반응형 */
@media (max-width:1008px){
	.nav-menu{gap:0px;}
}
@media (max-width:850px){
	.nav-actions{gap:0px;}
	.nav-link{padding:10px;}
}
/* 모바일 (최대 767px) */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    body {
        background-color: #ffffff;
    }

    .hero {
        background: #EEF5FF;
    }

    .search-location {
        padding: 0.5rem;
    }

    .search-location span {
        font-size: 0.875rem;
    }

    .search-input {
        padding: 0.5rem;
        font-size: 0.875rem;
		width: 100%;
    }

    .keywords-list {
        gap: 0.5rem;
    }

    .keyword {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* 챗봇 창 모바일 중앙 배치 */
    #chat-window {
        position: fixed !important;
        bottom: 50% !important;
        right: 50% !important;
        transform: translate(50%, 50%) !important;
        width: 90% !important;
        max-width: 380px !important;
        height: 80vh !important;
        max-height: 550px !important;
    }

    /* 위치 선택 모달 중앙 배치 */
    #locationModal .modal-dialog {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh !important;
        margin: 0 !important;
    }

    #locationModal .modal-content {
        width: 90% !important;
        max-width: 380px !important;
        margin: 0 auto !important;
    }
	.logo {
		width: 40px;
	}
}

/* 초소형 모바일 (최대 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-bar {
        border-radius: 12px;
    }
    .search-location {
        padding: 0.4rem;
        gap: 0.1rem;
    }

    .search-input {
        padding: 0.4rem;
        font-size: 0.72rem;
		width: 100%;
    }

	.search-btn {
		padding: 0.4rem;
		width: 25px; 
		height: 25px;
	}

    .search-location span {
        font-size: 0.72rem;
    }
}
/* 프린트 스타일 */
@media print {
    .header,
    .footer,
    .btn-download,
    .btn-menu,
    .btn-search {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }
}

/* 접근성 향상 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 다크모드 지원 - 클래스 기반 */
[data-theme="dark"] {
    /* 기본 배경과 텍스트 색상 */
    background-color: #1a1a1a;
    color: #e9ecef;
}

[data-theme="dark"] body {
    background-color: #1a1a1a;
    color: #e9ecef;
}

[data-theme="dark"] .header {
    background: #212529;
    border-bottom-color: #495057;
}

[data-theme="dark"] .nav-link,
[data-theme="dark"] .btn-search,
[data-theme="dark"] .btn-menu {
    color: #adb5bd;
}

[data-theme="dark"] .hero {
    background: #1a1a1a;
    border-bottom: 1px solid #495057;
}

[data-theme="dark"] .hero-title {
    color: #e9ecef;
}

[data-theme="dark"] .hero-subtitle {
    color: #adb5bd;
}

[data-theme="dark"] .search-bar {
    background: #2c3e50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .search-input {
    background: transparent;
    color: #e9ecef;
}

[data-theme="dark"] .search-input::placeholder {
    color: #6c757d;
}

[data-theme="dark"] .search-location {
    border-right-color: #495057;
    color: #e9ecef;
}

[data-theme="dark"] .search-location span {
    color: #e9ecef;
}

[data-theme="dark"] .keyword {
    background: #495057;
    color: #e9ecef;
}

[data-theme="dark"] .keyword:hover {
    background: #6c757d;
}

[data-theme="dark"] .keywords-label {
    color: #adb5bd;
}

[data-theme="dark"] .popular-items {
    background: #1a1a1a;
}

[data-theme="dark"] .item-card {
    background: #2c3e50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .item-title {
    color: #e9ecef;
}

[data-theme="dark"] .item-location {
    color: #adb5bd;
}

[data-theme="dark"] .item-image {
    background: #495057;
}

[data-theme="dark"] .services {
    background: #212529;
}

[data-theme="dark"] .service-card {
    background: #2c3e50;
}

[data-theme="dark"] .service-card h3 {
    color: #e9ecef;
}

[data-theme="dark"] .service-card p {
    color: #adb5bd;
}

[data-theme="dark"] .section-title {
    color: #e9ecef;
}

[data-theme="dark"] .item-price {
    color: #fff;
}

[data-theme="dark"] .footer {
    background: #0d0d0d;
    border-top: 1px solid #495057;
}

[data-theme="dark"] .search-location-header {
    background: #ffffff;
}
[data-theme="dark"] .search-location-header .location-country-text {
    color: #333;
}
[data-theme="dark"] .search-location-header .location-text {
    color: #0060F7;
}