/* 반응형 스타일 */

/* 태블릿 (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 50vh;
        padding: 3rem 0;
    }
    
    .hero-section h2 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .btn-group .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .vehicle-card .card-img-top {
        height: 180px;
    }
    
    .vehicle-price {
        font-size: 1.3rem;
    }
}

/* 모바일 (최대 768px) */
@media (max-width: 768px) {
    /* 헤더 반응형 */
    header .container .row {
        text-align: center;
    }
    
    header .col-md-6:last-child {
        margin-top: 1rem;
    }
    
    /* 히어로 섹션 반응형 */
    .hero-section {
        min-height: 40vh;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section ul.list-unstyled {
        margin-bottom: 1.5rem;
    }
    
    .hero-section ul.list-unstyled li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* 네비게이션 반응형 */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    /* 섹션 반응형 */
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* 검색창 반응형 */
    #searchInput {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .input-group .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* 차량 카테고리 버튼 반응형 */
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .btn-group .btn {
        flex: 1 1 auto;
        min-width: 100px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin: 0;
    }
    
    /* 차량 카드 반응형 */
    .vehicle-card {
        margin-bottom: 1.5rem;
    }
    
    .vehicle-card .card-img-top {
        height: 150px;
    }
    
    .vehicle-card .card-body {
        padding: 1rem;
    }
    
    .vehicle-card .card-title {
        font-size: 1.1rem;
    }
    
    .vehicle-price {
        font-size: 1.2rem;
    }
    
    .vehicle-features {
        font-size: 0.8rem;
    }
    
    /* 폼 반응형 */
    .form-control {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    /* 푸터 반응형 */
    footer .row {
        text-align: center;
    }
    
    footer .col-md-6:last-child {
        margin-top: 1rem;
        text-align: center !important;
    }
    
    /* 그리드 시스템 반응형 */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-12, .col-md-4, .col-md-6, .col-md-8, .col-lg-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 버튼 크기 조정 */
    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 아이콘 크기 조정 */
    .display-1 {
        font-size: 4rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    /* 토스트 에스크로 버튼 위치 조정 */
    #tossEscrowButton {
        bottom: 10px;
        right: 10px;
    }
}

/* 소형 모바일 (최대 480px) */
@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 1.7rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        min-width: 80px;
    }
    
    .vehicle-card .card-img-top {
        height: 120px;
    }
    
    .vehicle-price {
        font-size: 1.1rem;
    }
    
    .display-1 {
        font-size: 3rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.7rem;
    }
}

/* 가로 모드 모바일 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 1.5rem 0;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* 태블릿 가로 모드 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
    }
    
    .btn-group .btn {
        padding: 0.4rem 1.2rem;
    }
}

/* 큰 화면 (1440px 이상) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h2 {
        font-size: 3.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.4rem;
    }
    
    .vehicle-card .card-img-top {
        height: 220px;
    }
    
    section {
        padding: 6rem 0;
    }
    
    section h2 {
        font-size: 3rem;
    }
}