:root {
    --color-dark-blue: #0F172A;
    --color-bright-blue: #3B82F6;
    --color-hover-blue: #2563EB;
    --color-white: #FFFFFF;
    --color-gray-bg: #F8FAFC;
    --color-gray-border: #E2E8F0;
    --color-text-main: #1E293B;
    --color-text-sub: #64748B;
    --font-main: 'Noto Sans KR', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Header & Navigation --- */
header {
    width: 100%;
    border-bottom: 1px solid var(--color-gray-border);
}

.hero-section {
    height: 300px;
    background-color: var(--color-dark-blue);
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sub-title {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-nav {
    background-color: var(--color-dark-blue);
    width: 100%;
}

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

.nav-menu {
    display: flex;
    justify-content: center;
}

.nav-menu li {
    flex: 1;
    text-align: center;
    max-width: 200px;
}

.nav-menu li a {
    display: block;
    padding: 1rem;
    font-weight: 500;
    color: #94A3B8;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--color-bright-blue);
}

/* --- Search Section (Danawa Style) --- */
.search-section {
    background-color: var(--color-gray-bg);
    padding: 2rem 0;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 1.5rem;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-border);
}

.search-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-toggle-search {
    background: none;
    border: none;
    color: var(--color-text-sub);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 5-Column Grid */
.search-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Hidden by default */
    height: 0;
    opacity: 0;
    border: none;
    margin: 0;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.search-columns.active {
    height: 300px;
    opacity: 1;
    border: 1px solid var(--color-gray-border);
}

.search-col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-gray-border);
    position: relative;
    background: #fff;
}

.search-col:last-child {
    border-right: none;
}

.col-header {
    background-color: #F1F5F9;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border-bottom: 1px solid var(--color-gray-border);
    color: var(--color-text-main);
}

.col-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Scrollbar Styling */
.col-list::-webkit-scrollbar {
    width: 6px;
}

.col-list::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 3px;
}

.col-list::-webkit-scrollbar-track {
    background-color: transparent;
}

/* List Items */
.list-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 0.9rem;
    border-bottom: 1px solid #F8FAFC;
}

.list-item:hover {
    background-color: #F8FAFC;
}

.list-item.selected {
    background-color: #EFF6FF;
    /* Start Blue Light */
    color: var(--color-bright-blue);
    font-weight: 600;
}

.list-item input[type="checkbox"] {
    margin-right: 0.6rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--color-bright-blue);
}

.list-item span {
    flex: 1;
    user-select: none;
}

/* Empty State / Loading */
.col-empty {
    padding: 1rem;
    text-align: center;
    color: #94A3B8;
    font-size: 0.85rem;
}

.search-footer {
    display: none;
    /* Hidden by default */
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-border);
}

.search-footer.active {
    display: flex;
}

.btn-reset,
.btn-submit {
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-reset {
    background: var(--color-white);
    border: 1px solid var(--color-gray-border);
    color: var(--color-text-sub);
}

.btn-submit {
    background: var(--color-bright-blue);
    color: var(--color-white);
}

.btn-submit:hover {
    background: var(--color-hover-blue);
}


/* --- Content Components --- */
.container {
    max-width: 1200px;
    /* Consistent max-width */
    margin: 3rem auto;
    padding: 0 1rem;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    border-bottom: 2px solid var(--color-dark-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Contact / Location styling */
.info-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gray-border);
}

/* Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* --- Recommended / Grid --- */
/* Reuse from original style.css essentially */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.car-card {
    background: white;
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 180px;
    background: #E2E8F0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-bright-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-info {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-spec {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    margin-bottom: 1rem;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
    .search-columns {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        max-height: 500px;
        overflow-y: auto;
    }

    .search-col {
        height: 200px;
        border-bottom: 1px solid var(--color-gray-border);
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .grid-container {
        grid-template-columns: 1fr;
    }

    .nav-menu li a {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
}