/* Prophub Custom Styles - 모바일 우선 디자인 */

/* 전역 스타일 */
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* 모바일 우선 컨테이너 */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* 모바일 우선 네비게이션 */
.navbar {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 12px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a !important;
}

.navbar-nav .nav-link {
    color: #666 !important;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
    background-color: #f8f9fa;
}

/* 모바일 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    z-index: 1000;
    display: none;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.bottom-nav-item.active {
    color: #667eea;
}

.bottom-nav-item i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* 히어로 섹션 - 모바일 최적화 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 280px;
    padding: 40px 0;
}

.hero-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-section .lead {
    font-size: 1rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* 매물 카드 - 모바일 우선 */
.property-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.property-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .card-img-top {
    transform: scale(1.02);
}

.property-card .card-body {
    padding: 16px;
}

.property-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card .card-text {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 12px;
}

/* 매물 가격 표시 */
.property-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
}

/* 매물 태그 */
.property-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.property-tag {
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.property-tag.primary {
    background: #667eea;
    color: white;
}

/* 매물 액션 버튼 */
.property-actions {
    display: flex;
    gap: 8px;
}

.property-actions .btn {
    flex: 1;
    font-size: 0.875rem;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* 터치 활성화 스타일 */
.property-card.touch-active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* 모바일 최적화 클래스 */
.mobile-optimized {
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

.mobile-optimized .property-card {
    -webkit-tap-highlight-color: transparent;
}

/* 버튼 스타일 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

/* 폼 스타일 */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 배지 스타일 */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* 모바일 우선 반응형 스타일 */
@media (max-width: 768px) {
    /* 모바일에서 하단 네비게이션 표시 */
    .bottom-nav {
        display: flex;
    }
    
    /* 메인 네비게이션 숨기기 */
    .navbar-collapse {
        display: none !important;
    }
    
    /* 히어로 섹션 모바일 최적화 */
    .hero-section {
        min-height: 240px;
        padding: 32px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    /* 매물 카드 모바일 최적화 */
    .property-card {
        margin-bottom: 12px;
    }
    
    .property-card .card-img-top {
        height: 180px;
    }
    
    .property-card .card-body {
        padding: 12px;
    }
    
    .property-card .card-title {
        font-size: 0.9rem;
    }
    
    /* 검색 폼 모바일 최적화 */
    .hero-section .row.g-3 {
        margin: 0 -8px;
    }
    
    .hero-section .row.g-3 > * {
        padding: 0 8px;
        margin-bottom: 12px;
    }
    
    /* 버튼 모바일 최적화 */
    .btn-lg {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    /* 컨테이너 패딩 조정 */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* 섹션 패딩 조정 */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* 매물 그리드 모바일 최적화 */
    .row .col-lg-3 {
        margin-bottom: 16px;
    }
}

/* 태블릿 스타일 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        min-height: 320px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .property-card .card-img-top {
        height: 220px;
    }
}

/* 데스크톱 스타일 */
@media (min-width: 1025px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .property-card .card-img-top {
        height: 240px;
    }
    
    /* 데스크톱에서 하단 네비게이션 숨기기 */
    .bottom-nav {
        display: none;
    }
}

/* 지도 스타일 */
#map {
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 로딩 스피너 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 알림 스타일 */
.alert {
    border-radius: 8px;
    border: none;
}

/* 푸터 */
footer {
    margin-top: auto;
}

/* 유틸리티 클래스 */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 검색 필터 */
.search-filters {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* 매물 상세 페이지 */
.property-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.property-detail .property-image {
    height: 300px;
    object-fit: cover;
}

/* 광고 배지 */
.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* 가격 표시 */
.price-display {
    font-size: 1.25rem;
    font-weight: bold;
    color: #667eea;
}

/* 매물 정보 */
.property-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

/* 문의 폼 */
.inquiry-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* 반응형 그리드 */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        display: none;
    }
}
