/* 당근 부동산 스타일 랜딩 페이지 CSS */

:root {
    --primary-color: #ff7e36; /* 당근색 */
    --primary-hover: #e66a20;
    --text-main: #212529;
    --text-muted: #868e96;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
}

/* 폰트 및 기본 리셋 보완 */
.landing-wrap {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: var(--text-main);
}

/* 히어로 섹션 */
.hero-section {
    background-color: #fff3eb;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.hero-section p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 30px;
}
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-right: none;
    font-size: 1rem;
    outline: none;
}
.search-bar button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.search-bar button:hover {
    background-color: var(--primary-hover);
}

/* 직거래 마켓 특징 섹션 */
.features-section {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 60px 20px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}
.feature-item {
    text-align: center;
    max-width: 280px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}
.feature-item:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 45px;
    margin-bottom: 15px;
}
.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.feature-item p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* 퀵 아이콘 메뉴 */
.quick-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    background-color: #fff;
}
.quick-group {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}
.quick-divider {
    width: 80%;
    max-width: 600px;
    height: 2px;
    background-color: var(--border-color);
    margin: 0;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s;
}
.quick-item:hover {
    transform: translateY(-5px);
}
.quick-icon {
    width: 100px;
    height: 100px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.quick-item span {
    font-weight: 700;
    font-size: 1.15rem;
    color: #495057;
}

/* 인기 매물 섹션 */
.popular-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.estate-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.estate-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.card-thumb {
    width: 100%;
    height: 180px;
    background-color: #e9ecef;
    position: relative;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}
.card-content {
    padding: 15px;
}
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}
.card-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--bg-light);
    padding-top: 10px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 1.8rem;
    }
    .features-section {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }
    .feature-item {
        max-width: 100%;
    }
    .quick-menu {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 40px 20px;
    }
    .quick-group {
        width: 100%;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .quick-item {
        flex: 1 1 30%;
    }
    .quick-divider {
        width: 100%;
        height: 2px;
        background-color: var(--border-color);
        margin: 0;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .card-thumb {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .quick-menu {
        padding: 30px 15px;
    }
    .quick-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
    }
    .quick-group:last-child .quick-item:last-child:nth-child(odd) {
        grid-column: span 2;
    }
    .quick-item {
        flex: unset;
    }
    .quick-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    .quick-item span {
        font-size: 0.95rem;
    }
    .hero-section {
        padding: 40px 15px;
    }
    .hero-section h2 {
        font-size: 1.5rem;
    }
    .features-section {
        padding: 30px 15px;
        gap: 20px;
    }
    .section-title {
        font-size: 1.4rem;
    }
}

/* 랜딩 페이지 전용 본문 가로폭 풀사이즈(100%) 확장 */
#container {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    margin: 20px auto !important;
}
#container_wr {
    width: 100% !important;
    max-width: 1200px !important;
}

/* 그누보드 모바일 모드 전용 오버라이드 */
body.mobile_body #container,
.g5_mobile #container {
    padding: 0 !important;
    margin: 0 auto !important;
}
.landing-wrap .features-section .feature-item {
    max-width: 100%;
}

/* 모바일 화면(가로 768px 이하)에서 전체 검색창 가로 크기 줄이기 */
@media (max-width: 768px) {
    .search-bar {
        max-width: 80%; /* 모바일 화면 너비의 80%만 차지하도록 (또는 300px 처럼 고정값도 가능) */
    }
    
    /* 모바일에서는 입력칸 안쪽 여백이나 글자 크기도 살짝 줄이려면 아래처럼 같이 사용하시면 좋습니다 */
    .search-bar input {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}
