/* ==========================================
   모두의부동산 - 심플 & 클린 디자인
   ========================================== */

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 컬러 */
    --primary-red: #e31e24;
    --dark-gray: #2d2d2d;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border: #e0e0e0;
    
    /* 그림자 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 상단 바 ===== */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-dark);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-red);
}

/* ===== 헤더 ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* 로고 */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
}

/* 네비게이션 */
.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

/* 모바일 메뉴 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: 0.3s;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

/* ===== 히어로 섹션 ===== */
.hero {
    position: relative;
    height: 294px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://b0137502.mycafe24.com/wp-content/uploads/2025/05/%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7-2025-05-06-%EC%98%A4%ED%9B%84-1.14.17.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-phone {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.hero-phone:hover {
    background: #c11a1f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.4);
}

/* ===== 회사 소개 섹션 ===== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

/* 왼쪽 로고 */
.about-logo {
    position: sticky;
    top: 120px;
}

.main-logo {
    text-align: center;
}

.logo-icon-large {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-square-large {
    width: 120px;
    height: 120px;
    border: 12px solid var(--primary-red);
    border-radius: 8px;
}

.company-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
}

/* 오른쪽 컨텐츠 */
.about-content {
    position: relative;
}

.quote-mark {
    font-size: 80px;
    color: #e8e8e8;
    line-height: 0.5;
    margin-bottom: 20px;
}

.quote-mark-end {
    font-size: 80px;
    color: #e8e8e8;
    line-height: 0.5;
    text-align: right;
    margin-top: 10px;
}

.about-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-red);
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-text {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 50px;
}

.about-text p {
    margin-bottom: 20px;
}

/* 가치 버튼 */
.value-buttons {
    display: flex;
    gap: 15px;
}

.value-btn {
    padding: 15px 35px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.value-btn:hover {
    background: #c11a1f;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== 매물 섹션 ===== */
.properties-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
}

/* 필터 */
.property-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* 매물 그리드 */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image i {
    font-size: 60px;
    color: rgba(255,255,255,0.5);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.property-body {
    padding: 25px;
}

.property-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-gray);
    color: var(--primary-red);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.property-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.property-info {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}

.property-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
}

/* 로딩 */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 문의 섹션 ===== */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info .section-title {
    margin-bottom: 40px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-bottom: 4px;
}

.info-text p {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px;
}

/* ===== 푸터 ===== */
.footer {
    background: var(--dark-gray);
    color: #999;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo-image {
    height: 30px;
    width: auto;
    display: block;
}

.footer-logo span {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

.footer-desc {
    font-size: 13px;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 13px;
    margin-bottom: 5px;
}

.copyright {
    margin-top: 10px;
    color: #666;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #c11a1f;
    transform: translateY(-3px);
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-logo {
        position: static;
    }
}

@media (max-width: 968px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        height: 280px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .value-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .hero {
        height: 250px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .hero-phone {
        font-size: 13px;
        padding: 5px 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-section,
    .properties-section,
    .contact-section {
        padding: 60px 0;
    }
}

/* ===================================
   관리 시스템 접속 버튼
   =================================== */
.admin-access-section {
    background: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.admin-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.admin-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #5558e3 0%, #7c3aed 100%);
}

.admin-access-btn i {
    font-size: 1rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.admin-access-section .container {
    text-align: center;
}

/* 모바일 반응형 */
@media (max-width: 640px) {
    .admin-access-section {
        padding: 20px 0;
    }
    
    .admin-access-btn {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}
