:root {
    /* Color Palette - Magenta Theme */
    --primary: #de1f7f;
    --primary-light: #f14d9e;
    --primary-dark: #b11664;
    --accent: #E6003D; /* K Car 스타일의 살짝 붉은 포인트도 고려함 */
    --text-main: #1a1a1a;
    --text-sub: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #eeeeee;
    
    /* Design Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px; /* 더 강조된 곡선 */
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --container-max: 1200px;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    word-break: keep-all;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - 2 Row Layout */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff !important;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-top {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.search-bar {
    flex: 0 1 500px;
    position: relative;
    margin: 0 40px;
}

.search-bar input {
    width: 100%;
    height: 48px;
    padding: 0 50px 0 24px;
    border: 2px solid var(--primary);
    background: #fdfdfd;
    border-radius: 24px;
    font-family: inherit;
    font-size: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.btn-search {
    position: absolute;
    right: 8px;
    top: 6px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border: none;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
}

.auth-links .divider {
    width: 1px;
    height: 12px;
    background: #ddd;
}

.mobile-quick-nav {
    display: none;
}

.mobile-menu-btn {
    display: none;
}

.header-bottom {
    height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

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

.aux-nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
}

/* Hero Section - Contained */
.hero {
    padding-top: 160px; /* header(140) + margin */
    padding-bottom: 40px;
}

.hero-swiper {
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner-slide {
    background-image: var(--pc-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .banner-slide {
        background-image: var(--mo-bg);
    }
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Quick Menu Icons */
.quick-menu {
    padding: 40px 0;
}

.quick-menu-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.quick-item:hover { transform: translateY(-5px); }

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.item-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

/* Vehicle List Section */
.vehicle-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-title { font-size: 28px; font-weight: 800; }
.section-title span { 
    color: var(--primary); 
    background: linear-gradient(90deg, var(--primary), #E6003D, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.vehicle-swiper {
    height: 320px; /* 1개의 가로 행(Row)만 보이도록 높이 조정 */
    padding: 10px 0;
    overflow: hidden;
}

.vehicle-row {
    display: flex;
    gap: 24px;
    height: 100%;
}

.vehicle-card {
    width: 100%; /* Swiper가 slidesPerView에 맞춰 조절함 */
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vehicle-card:hover { transform: translateY(-10px); }

.card-img {
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa; /* 이미지가 작을 때 배경을 채워줌 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 이미지가 잘리지 않고 전체가 다 보이도록 설정 */
    padding: 10px; /* 차량이 가장자리에 너무 붙지 않게 여백 추가 */
    transition: transform 0.5s ease;
}

.vehicle-card:hover .card-img img {
    transform: scale(1.1);
}

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

.card-body { padding: 20px; }
.car-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.car-price { font-size: 22px; font-weight: 800; color: var(--primary); }

/* Footer */
/* Quick Sidebar - Clean White Premium Style */
.quick-sidebar {
    position: fixed;
    right: 25px;
    top: 58%;
    transform: translateY(-50%);
    width: 250px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 51, 102, 0.12);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.sidebar-header {
    background: var(--primary);
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.5px;
}

.sidebar-form {
    padding: 25px 20px;
}

.sidebar-form .input-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sidebar-form input[type="text"], 
.sidebar-form input[type="tel"] {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-main);
    transition: 0.2s;
}

.sidebar-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.05);
}

.method-label {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.method-group {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: #f1f3f5;
    padding: 4px;
    border-radius: 12px;
}

.method-group label {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 10px;
    position: relative;
}

.method-group input[type="radio"] {
    display: none;
}

.method-group label:has(input:checked) {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.1);
}

.method-group label:hover:not(:has(input:checked)) {
    color: var(--primary);
}

.btn-sidebar-submit {
    width: 100%;
    height: 52px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sidebar-submit:hover {
    background: var(--primary-dark);
}

.sidebar-agreement {
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.sidebar-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #495057;
    line-height: 1.4;
}

.sidebar-agreement input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    background: var(--white);
    position: relative;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 1px;
    flex-shrink: 0;
}

.sidebar-agreement input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.sidebar-agreement input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 11px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.sidebar-agreement .view-link {
    color: #adb5bd;
    text-decoration: underline;
    margin-left: 4px;
    font-size: 11px;
}

.sidebar-contact-info {
    background: #f4f7fa;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #e9ecef;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.contact-icon {
    width: 34px;
    height: 34px;
    background: var(--white);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-text p { font-size: 11px; color: var(--text-sub); margin: 0; }
.contact-text strong { font-size: 16px; color: var(--text-main); display: block; }

.sidebar-contact-info .divider {
    height: 1px;
    background: #e9ecef;
    width: 100%;
}

/* Responsive Sidebar - Stick to Bottom */
@media (max-width: 1024px) {
    .quick-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
        border-radius: 0;
        height: 70px;
        background: var(--white);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        border: none;
        border-top: 1px solid var(--border);
        align-items: center;
    }

    .sidebar-header, .sidebar-form { display: none; }

    .sidebar-contact-info {
        width: 100%;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        justify-content: space-around;
    }

    .contact-link { gap: 8px; }
    .contact-text strong { font-size: 14px; }
    .sidebar-contact-info .divider { width: 1px; height: 30px; }

    .quick-sidebar::after {
        content: "간편상담";
        position: absolute;
        bottom: 85px;
        right: 20px;
        background: var(--primary);
        color: var(--white);
        padding: 12px 25px;
        border-radius: 30px;
        font-weight: 700;
        box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
    }
}

.footer {
    background: #111;
    color: rgba(255, 255, 255, 0.5);
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-text { color: var(--white); }

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

/* YouTube Section (Refined Layout) */
.youtube-section {
    padding: 100px 0;
    background: #f8fafc; /* 연한 블루 그레이 톤으로 더 고급스럽게 변경 */
}

.youtube-section .section-header {
    display: block;
    margin-bottom: 50px;
    text-align: left;
}

.youtube-section .section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0, 51, 102, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 51, 102, 0.1);
}

.youtube-section .section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

.youtube-section .section-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 700px;
    line-height: 1.7;
    word-break: keep-all;
}

.youtube-player-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.08);
}

/* Main Player Area */
.player-main {
    position: relative;
    width: 100%;
}

.main-video-card {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 16 / 9;
}

.main-video-card .video-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.main-video-card .play-button {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(230, 0, 61, 0.3);
}

.main-video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    pointer-events: none;
}

.main-video-title { 
    font-size: 26px; 
    font-weight: 800; 
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Playlist Area */
.player-sidebar {
    display: flex;
    flex-direction: column;
}

.playlist-header {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    padding-left: 15px;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
}

.playlist-items {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
    padding-right: 10px;
}

.playlist-items::-webkit-scrollbar { width: 4px; }
.playlist-items::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.playlist-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 8px;
}

.playlist-item:hover { background: #f0f4f8; }
.playlist-item.active { background: #eef2f7; border: 1px solid #e0e6ed; }

.item-thumb {
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
}

.item-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-channel { font-size: 12px; color: var(--text-sub); margin-top: 5px; }

/* Iframe Styling */
.player-main iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Planner Section (Elite Focus) */
.planner-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    z-index: 10;
}

.planner-section .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 60px;
}

.planner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.planner-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.08);
    display: flex;
    flex-direction: column;
}

.planner-photo {
    width: 100%;
    height: 240px; /* 상단 영역을 꽉 채우는 높이 */
    position: relative;
    overflow: hidden;
}

.photo-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: 0.5s;
}

.planner-card:hover .photo-inner {
    transform: scale(1.1);
}

.planner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFC107;
    color: #001a33;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: badge-float 2s ease-in-out infinite;
}

.planner-badge::before {
    content: "";
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23001a33'%3E%3Cpath d='M5 16l-3-8 5 2 5-7 5 7 5-2-3 8z'/%3E%3Cpath d='M3 18h18v2H3z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Shine Effect for badges */
.planner-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: badge-shine 3s infinite;
}

@keyframes badge-shine {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

.planner-info {
    padding: 25px 20px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.planner-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
}

.planner-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

.planner-intro {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 39px;
    text-align: center;
}

.planner-name small {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
    margin-top: 4px;
}

.planner-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8faff;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.stat-item {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-sub);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 51, 102, 0.1);
    margin: 0 15px;
}

.planner-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #f0f4f8;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.active .planner-btn {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.planner-card:hover {
    transform: translateY(-10px);
}

@media (max-width: 1200px) {
    .planner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .planner-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE OPTIMIZATION (Media Queries)
   ============================================================ */

/* Responsive Utilities */
.desktop-only { display: block; }
@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
}

/* Mobile Header & Nav */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

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

@media (max-width: 1024px) {
    .header-top { 
        height: 70px; 
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        background: #fff;
    }
    .logo img { height: 26px !important; }
    .search-bar { 
        flex: 1;
        margin: 0;
    }
    .search-bar input {
        height: 40px;
        padding: 0 40px 0 15px;
        font-size: 13px;
    }
    .btn-search { width: 30px; height: 30px; right: 5px; top: 5px; }
    .auth-links { display: none; }

    .header-bottom { 
        display: flex !important;
        height: 50px;
        background: #fff;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    .header-bottom-container {
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        width: 100%;
        padding: 0 15px;
    }
    .mobile-quick-nav { 
        display: flex; 
        gap: 15px; 
        justify-content: flex-end;
        width: 100%;
    }
    .mobile-quick-nav a {
        font-size: 14px;
        font-weight: 700;
        color: #333;
        text-decoration: none;
    }
    .mobile-menu-btn {
        display: flex !important;
        position: static !important;
        margin-left: auto !important;
    }
    .main-nav { display: none; }
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-content {
    width: 280px;
    height: 100%;
    background: var(--white);
    margin-left: auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-btn {
    font-size: 32px;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-link {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.mobile-nav-link.active {
    color: var(--primary);
}

/* Hot Deal Section */
.hot-deal-section {
    padding: 80px 0;
    background-color: #fff;
}

.hot-deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.deal-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.timer-box {
    text-align: right;
}

.timer-label {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
}

.timer-display {
    font-size: 32px;
    font-weight: 800;
    color: #222;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.hot-deal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.hot-deal-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.hot-deal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hot-deal-card .card-img {
    position: relative;
    height: 200px;
    background: #f8f9fa;
}

.hot-deal-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.discount-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.hot-deal-card .card-info {
    padding: 25px;
}

.car-brand {
    font-size: 13px;
    color: #e74c3c;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.car-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.price-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #fdf2f2;
    border-radius: 12px;
}

.rent-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.price-box .price {
    font-size: 20px;
    font-weight: 800;
    color: #e74c3c;
}

.btn-deal-inquiry {
    width: 100%;
    padding: 14px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-deal-inquiry:hover {
    background: #e74c3c;
}

@media (max-width: 1024px) {
    .hot-deal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hot-deal-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .timer-box { text-align: left; }
    .hot-deal-grid { grid-template-columns: 1fr; }
    .hot-deal-section { padding: 60px 0; }
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.partners-swiper {
    padding: 10px 0 20px;
    height: 200px; /* 두 줄을 위한 고정 높이 확보 */
}

.partner-item {
    background: #fff;
    height: calc((100% - 20px) / 2) !important; /* 두 줄일 때 각 아이템의 높이 계산 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: default;
    box-sizing: border-box;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(0%); /* 흑백 제거 */
    opacity: 1; /* 투명도 제거 */
    transition: all 0.3s ease;
}

.partner-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.partner-item:hover img {
    transform: scale(1.05);
}

/* Global Section Responsive */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .hero { padding-top: 130px; margin: 0 -15px; }
    .hero-swiper { height: auto; aspect-ratio: 1080 / 450; border-radius: 0; }
    
    .section-header { 
        display: block; 
        margin-bottom: 25px; 
    }
    .section-title { 
        font-size: 22px; 
        margin-bottom: 5px;
    }
    .section-subtitle {
        font-size: 14px;
        line-height: 1.4;
        color: #777;
    }
    
    .view-more {
        display: block;
        width: fit-content;
        margin-left: auto; /* 우측 정렬 */
        margin-top: -30px; /* 타이틀과 같은 라인 느낌으로 위로 살짝 올림 */
        padding: 6px 14px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        color: #666;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .view-more::after {
        content: ' >';
        font-size: 10px;
        margin-left: 4px;
    }

    .view-more:active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }
    
    .vehicle-section { padding: 40px 0; }
    .vehicle-row { gap: 15px; }
    
    .youtube-section { padding: 60px 0; }
    .youtube-player-layout {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    .main-video-title { font-size: 18px; }
    .playlist-items { max-height: 350px; }
    
    .planner-section { padding: 60px 0; }
    .planner-grid { grid-template-columns: 1fr; gap: 20px; }
    .planner-card { max-width: 400px; margin: 0 auto; }
}

/* Fix Quick Sidebar Bottom Bar for Mobile */
@media (max-width: 1024px) {
    .quick-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        z-index: 5000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        transform: none;
        border-radius: 20px 20px 0 0;
    }
    
    .sidebar-header, .sidebar-form { display: none; }

    .sidebar-contact-info {
        flex: 1;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        justify-content: flex-start;
        gap: 20px;
    }

    .contact-link { 
        flex-direction: column; 
        gap: 4px; 
        align-items: center;
    }
    .contact-icon { 
        width: 40px; 
        height: 40px; 
        background: #f1f3f5;
        border-radius: 12px;
    }
    .contact-text { display: none; } /* 모바일에서는 아이콘만 표시하거나 아주 작게 */
    
    /* Show Icon Labels for Mobile */
    .link-label {
        display: none;
        font-size: 10px;
        font-weight: 700;
        color: var(--text-sub);
        margin-top: 4px;
    }

    @media (max-width: 1024px) {
        .link-label { display: block; }
    }

    .sidebar-contact-info .divider { display: none; }
    
    /* New Action Button in Bottom Bar */
    .btn-quick-inquiry {
        flex: 1.2;
        height: 48px;
        background: var(--primary);
        color: var(--white);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-weight: 700;
        font-size: 15px;
        box-shadow: 0 6px 15px rgba(222, 31, 127, 0.25);
        cursor: pointer;
        transition: 0.2s;
    }

    .btn-quick-inquiry:active {
        transform: scale(0.95);
        background: var(--primary-dark);
    }
    
    body { padding-bottom: 0; }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    overflow: hidden;
    animation: modal-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 25px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h4 { font-size: 18px; font-weight: 800; color: var(--text-main); }
.modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #999; }

.modal-body { padding: 30px 25px; }
.modal-form .input-group { margin-bottom: 18px; }
.modal-form .input-row { display: flex; gap: 12px; margin-bottom: 18px; }
.modal-form .input-row .input-group { flex: 1; margin-bottom: 0; }
.modal-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text-sub); }
.modal-form input, .modal-form select { 
    width: 100%; height: 48px; padding: 0 15px; border-radius: 10px; 
    border: 1px solid #ddd; font-family: inherit; font-size: 14px;
    background-color: #fff; outline: none; transition: all 0.2s;
}
.modal-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    -webkit-appearance: none;
    appearance: none;
}
.modal-form input:focus, .modal-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(222, 31, 127, 0.1); }

.agreement-box { font-size: 13px; color: #666; margin-bottom: 25px; }
.agreement-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.agreement-box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-submit-modal { 
    width: 100%; height: 54px; background: var(--primary); color: var(--white);
    border: none; border-radius: 12px; font-size: 16px; font-weight: 800; cursor: pointer;
}

.desktop-only-hidden { display: none; }
@media (max-width: 1024px) {
    .desktop-only-hidden { display: flex; }
}

@media (max-width: 480px) {
    .contact-text strong { font-size: 12px; }
    .contact-icon { width: 28px; height: 28px; }
    .quick-sidebar::after { padding: 10px 20px; font-size: 14px; }
}
