:root {
    --bg-color: #ffffff;
    --text-color: #494949;
    --text-color-secondary: #666;
    --text-color-tertiary: #999;
    --primary-color: #3579ff;
    --primary-color-text: #ffffff;
    --surface-color: #ffffff;
    --surface-color-secondary: #f0f0f0;
    --border-color: #eee;
    --box-shadow-color: rgba(0,0,0,0.1);
    --popup-overlay-bg: rgba(0, 0, 0, 0.7);
    --popup-header-bg: #0078FF;
    --popup-header-text: #ffffff;
    --highlight-color: #FF6B00;
    --input-bg: #ffffff;
    --input-text: #333;
    --input-border: #eee;
    --card-bg: #ffffff;
}

/* 다크 모드 변수 */
[data-theme="dark"] {
    --bg-color: #0d1629;
    --text-color: #eeeeee;
    --text-color-secondary: #cccccc;
    --text-color-tertiary: #aaaaaa;
    --surface-color: #0d1629;
    --surface-color-secondary: #2a3246;
    --border-color: #2a3246;
    --box-shadow-color: rgba(0,0,0,0.3);
    --input-bg: #1a2236;
    --input-text: #eeeeee;
    --input-border: #2a3246;
    --card-bg: #1a2236;
}

/* 기본 스타일 */
/* 차 흔들림 애니메이션 */
@keyframes carShake {
    0% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-3px) rotate(-5deg); }
    50% { transform: translateX(3px) rotate(5deg); }
    75% { transform: translateX(-2px) rotate(-3deg); }
    100% { transform: translateX(0) rotate(0); }
}

/* 건물 펄스 애니메이션 */
@keyframes buildingPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 액티비티 스윙 애니메이션 */
@keyframes headShake {
    0% { transform: translateX(0); }
    13% { transform: translateX(-6px) rotateY(-9deg); }
    26% { transform: translateX(5px) rotateY(7deg); }
    50% { transform: translateX(0); }
    100% { transform: translateX(0); }
}

/* 레스토랑 헤드쉐이크 애니메이션 */
@keyframes swing {
    0% { transform: rotate(0); }
    20% { transform: rotate(7deg); }
    50% { transform: rotate(-7deg); }
    80% { transform: rotate(3deg); }
    100% { transform: rotate(0); }
}

/* 쿠폰 러버밴드 애니메이션 */
@keyframes rubberBand {
    0% { transform: scale(1); }
    30% { transform: scale(1.25, 0.75); }
    40% { transform: scale(0.75, 1.25); }
    50% { transform: scale(1.15, 0.85); }
    65% { transform: scale(0.95, 1.05); }
    75% { transform: scale(1.05, 0.95); }
    100% { transform: scale(1); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* Pretendard 폰트 weight 설정 */
.font-thin, .thin {
    font-weight: 100;
}
.font-extralight, .extralight {
    font-weight: 200;
}
.font-light, .light {
    font-weight: 300;
}
.font-regular, .regular {
    font-weight: 400;
}
.font-medium, .medium {
    font-weight: 500;
}
.font-semibold, .semibold {
    font-weight: 600;
}
.font-bold, .bold {
    font-weight: 700;
}
.font-extrabold, .extrabold {
    font-weight: 800;
}
.font-black, .black {
    font-weight: 900;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--primary-color-text);
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* 레이어 팝업 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--popup-overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    max-width: 90%;
    width: 500px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: popupFadeIn 0.3s ease;
    margin: 20px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.popup-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.popup-content h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mobile-style .popup-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: white;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.popup-text-content {
    padding: 20px;
    padding-top: 100px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-style h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mobile-style h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 5px 0;
    line-height: 1.2;
}

.popup-subtitle {
    font-size: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px !important;
}

.wheat-icon {
    margin: 0 5px;
}

.price-section {
    margin: 20px 0;
}

.original-price {
    text-decoration: line-through;
    color: #ddd;
    font-size: 16px;
    margin: 0;
}

.discount-price {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
    margin: 5px 0;
}

.resort-name {
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 30px;
}

.mobile-style .popup-button {
    width: 80%;
    margin: 0 auto 20px;
    padding: 15px;
    background-color: #FFD700;
    color: #333;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-style .popup-button:hover {
    background-color: #F0C800;
}

.mobile-style .popup-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: var(--surface-color);
}

.mobile-style .popup-footer button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
}

.mobile-style .popup-footer button:hover {
    text-decoration: underline;
}

@keyframes popup-animation {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-header {
    background-color: var(--popup-header-bg);
    color: var(--popup-header-text);
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
}

.popup-content {
    padding: 20px;
}

.popup-content h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.highlight {
    color: var(--highlight-color);
    font-weight: bold;
    font-size: 24px;
}

.popup-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    display: block;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.discount-badge span {
    font-size: 12px;
    color: #333;
}

.discount-badge strong {
    font-size: 24px;
    color: #FF6B00;
}

.popup-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #FF6B00;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.popup-button:hover {
    background-color: #E55A00;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.popup-footer button {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
}

.popup-footer button:hover {
    text-decoration: underline;
}

.btn:hover {
    background-color: #2968e8;
}

/* 헤더 스타일 */
.desktop-header {
    width: 100%;
    z-index: 1000;
    position: relative;
}

/* header-container는 더 이상 사용되지 않으므로 관련 스타일을 제거합니다. */
.desktop-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    max-width: 620px;
    margin: 0 auto;
}

.logo {
    flex-shrink: 0; /* 로고가 줄어들지 않도록 설정 */
}

.logo a {
    display: block;
    text-decoration: none;
}

.desktop-header .logo-img {
    height: 55px;
}

.logo a:hover {
    color: #2968e8;
}

/* 검색창 스타일 */
.search-container {
    flex-grow: 1; /* 검색창이 남은 공간을 모두 차지하도록 설정 */
    margin: 0 20px; /* 로고와 사용자 액션 사이의 좌우 여백 */
    max-width: 620px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background-color: #eeeeee;
    transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] .search-input {
    background-color: #2a3246;
    color: #eeeeee;
}

.search-input:focus {
    border-color: #3579ff;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
}

.search-button:hover {
    color: #3579ff;
}

/* 유저 액션 스타일 */
.user-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* 사용자 액션 영역이 줄어들지 않도록 설정 */
}

.auth-links {
    display: flex;
    align-items: center;
}

.auth-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
    padding: 2px 4px;
}

.auth-link:hover {
    color: var(--primary-color);
}

.auth-divider {
    margin: 0 5px;
    color: var(--text-color-secondary);
    font-size: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
}

.profile-link {
    display: block;
}

.profile-img, .mobile-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

/* 카테고리 네비게이션 스타일 */
.category-nav {
    width: 100%;
}

.category-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.category-nav li {
    margin: 0 25px;
    position: relative;
}

.category-nav li a {
    display: block;
    text-align: center;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.emoji-icon {
    font-size: 30px;
    display: block;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
    position: relative;
}

.category-text {
    font-weight: 600;
    transition: color 0.3s;
}

/* 기본 확대 애니메이션 제거 */
/* 각 이모지별 애니메이션 적용 */

/* 렌트카 이모지에 흔들림 애니메이션 적용 */
.category-nav li:nth-child(1) a:hover .emoji-icon {
    animation: carShake 0.5s ease-in-out;
}

/* 숙소 이모지에 펄스 애니메이션 적용 */
.category-nav li:nth-child(2) a:hover .emoji-icon {
    animation: buildingPulse 0.8s ease-in-out;
}

/* 액티비티 이모지에 스윙 애니메이션 적용 - 속도 천천히 */
.category-nav li:nth-child(3) a:hover .emoji-icon {
    animation: headShake 1.5s ease-in-out;
}

/* 레스토랑 이모지에 헤드쉐이크 애니메이션 적용 - 속도 천천히 */
.category-nav li:nth-child(4) a:hover .emoji-icon {
    animation: swing 1.5s ease-in-out;
}

/* 쿠폰 이모지에 러버밴드 애니메이션 적용 */
.category-nav li:nth-child(5) a:hover .emoji-icon {
    animation: rubberBand 0.8s ease-in-out;
}

.category-nav a:hover .category-text {
    color: var(--primary-color);
}

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

.new-badge .emoji-icon {
    position: relative;
}

.new-badge .emoji-icon::after {
    content: 'NEW';
    position: absolute;
    top: -5px;
    right: -15px;
    background-color: #ff5a5f;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
    animation: float 2s ease-in-out infinite;
}

/* 섹션 공통 스타일 */
section {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 카드 스타일 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--box-shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    border: 1px solid var(--border-color);
    width: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text-color);
}

.card-content p {
    color: var(--text-color-secondary);
}



/* 렌트카 가이드 섹션 스타일 */
.rentcar-guide-section {
    padding: 60px 20px;
    text-align: center;
}

.rentcar-guide-container {
    max-width: 800px;
    margin: 0 auto;
}

.rentcar-bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.bubble-item {
    cursor: pointer;
    position: relative;
}

.bubble-content {
    background-color: var(--surface-color-secondary);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    color: var(--text-color);
    transition: all 0.3s ease, background-color 0.3s, color 0.3s;
}

.bubble-item:hover .bubble-content {
    background-color: var(--primary-color);
    color: var(--primary-color-text);
    transform: translateY(-3px);
}

.bubble-item.selected .bubble-content {
    background-color: var(--primary-color);
    color: var(--primary-color-text);
    font-weight: 600;
}

.rentcar-answer-container {
    margin-top: 30px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    display: none;
}

.rentcar-answer {
    display: none;
}

.rentcar-answer.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rentcar-answer h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.rentcar-answer p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--text-color-secondary);
}

/* 공지사항 섹션 스타일 */
.notice-section {
    padding: 60px 20px;
}

.notice-container {
    max-width: 620px;
    margin: 0 auto;
}

.hashtag-filter {
    text-align: center;
    margin: 10px;
}

.hashtag-btn {
    background-color: var(--surface-color-secondary);
    color: var(--text-color-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 15px;
    margin: 0 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.hashtag-btn.active,
.hashtag-btn:hover {
    background-color: var(--primary-color);
    color: var(--primary-color-text);
    border-color: var(--primary-color);
}

.notice-list {
    border-top: 2px solid var(--border-color);
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

/* 미디어 쿼리는 파일 하단으로 이동했습니다 */

.notice-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 10px;
}

.notice-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.notice-content {
    flex-grow: 1;
    align-self: flex-start;
    min-width: 0; 
    overflow: hidden; 
}

.notice-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
    text-decoration: none;
}

.notice-category {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 15px;
    margin-right: 10px;
    color: #fff;
    display: inline-block;
    white-space: nowrap;
}

.notice-category.notice { background-color: #4a90e2; }
.notice-category.news { background-color: #04bb47; }
.notice-category.event { background-color: #fe8700; }
.notice-category.coupon { background-color: #f8411c; }
.notice-category.tip { background-color: #bd10e0; }

.notice-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.notice-date {
    color: var(--text-color-tertiary);
    font-size: 14px;
    margin-left: auto;
    flex-shrink: 0;
    align-self: flex-start;
}

.notice-more {
    text-align: center;
    margin: 10px;
}

.more-link {
    font-weight: 600;
    color: var(--text-color-secondary);
}

@media (max-width: 768px) {
    .notice-thumbnail {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }

    .notice-more {
        text-align: center;
        margin: 10px 10px 30px 10px ;
    }
}



/* 모바일 반응형 스타일에서 렌트카 가이드 섹션 패딩 조정 */
@media (max-width: 768px) {
    .rentcar-guide-section {
        padding: 20px 0;
    }
}

/* 모바일 반응형 스타일 */
.mobile-header, .mobile-category-section {
    display: none;
}

.section-title {
    text-align: center;
    padding: 20px;
    font-size: 1.8rem;
    color: var(--text-color);
    letter-spacing: -1px;
}

/* 그라디언트 텍스트 효과 */
.gradient-text {
    background: linear-gradient(to right, #06cda2ea, #6A5ACD, #FF5A5F, #FF8A65);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

@media (max-width: 768px) {
    .desktop-header,
    .category-nav,
    .main-banner {
        display: none;
    }

    .mobile-header, .mobile-category-section {
        display: block;
    }
    
    .mobile-header {
        display: flex;
        flex-direction: column;
        padding: 20px;
        background-color: var(--surface-color);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    /* 모바일 헤더 스타일 */
    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .mobile-header-left {
        display: flex;
        align-items: center;
    }
    
    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 20px;
        color: var(--text-color);
        cursor: pointer;
    }

    .mobile-logo {
        text-align: left;
    }

    .mobile-logo-img {
        height: 40px;
        width: auto;
    }

    .mobile-user-actions {
        display: flex;
        align-items: center;
    }

    .mobile-auth-links {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-auth-link {
        text-decoration: none;
        color: var(--text-color);
        font-size: 14px;
        font-weight: 600;
    }

    .mobile-user-profile {
        display: flex;
        align-items: center;
    }

    .mobile-profile-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--text-color);
    }

    .mobile-profile-img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-header .search-container {
        margin: 0px; /* 로고와 사용자 액션 사이의 좌우 여백 */
    }

    .mobile-header .search-button {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-color-secondary);
        font-size: 16px;
        cursor: pointer;
    }

    .mobile-category-container {
        position: relative;
        -webkit-overflow-scrolling: touch;
        max-width: 620px;
        margin: 0 auto;
    }

    .scroll-indicator {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 100%;
        background: linear-gradient(to left, var(--bg-color) 50%, transparent);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 5px;
        color: var(--primary-color);
        font-size: 1.2rem;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .scroll-indicator.visible {
        opacity: 1;
    }

    @keyframes bounce-right {
        0%, 100% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(5px);
        }
    }

    .scroll-indicator.visible i {
        animation: bounce-right 2s infinite;
    }

    .mobile-category-nav ul {
        display: flex;
        justify-content: space-between; /* 메뉴 항목 분산 정렬 */
        align-items: center;
        list-style: none;
        padding: 0 10px;
        margin: 0;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
    }

    /* 스크롤 가능할 때 왼쪽 정렬로 변경 */
    .mobile-category-nav ul.is-scrollable {
        justify-content: flex-start;
    }

    .mobile-category-nav ul::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .mobile-category-nav li {
        flex: 0 0 auto; /* 아이템 크기 고정 */
        margin: 0 7px;
        text-align: center;
    }

    .mobile-category-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 5px;
        text-decoration: none;
        color: var(--text-color);
        position: relative;
    }

    .mobile-category-nav .emoji-icon {
        margin-bottom: 5px;
        transition: transform 0.3s ease;
        position: relative;
    }

    .mobile-category-nav .category-text {
        font-weight: 600;
        transition: color 0.3s;
    }

    /* 모바일 카테고리 이모지 애니메이션 적용 */
    /* 기본 확대 애니메이션 제거 */

    /* 렌트카 이모지에 흔들림 애니메이션 적용 */
    .mobile-category-nav li:nth-child(1) a:hover .emoji-icon {
        animation: carShake 0.5s ease-in-out;
    }

    /* 숙소 이모지에 펄스 애니메이션 적용 */
    .mobile-category-nav li:nth-child(2) a:hover .emoji-icon {
        animation: buildingPulse 0.8s ease-in-out;
    }

    /* 액티비티 이모지에 스윙 애니메이션 적용 - 속도 천천히 */
    .mobile-category-nav li:nth-child(3) a:hover .emoji-icon {
        animation: headShake 1.5s ease-in-out;
    }

    /* 레스토랑 이모지에 헤드쉐이크 애니메이션 적용 - 속도 천천히 */
    .mobile-category-nav li:nth-child(4) a:hover .emoji-icon {
        animation: swing 1.5s ease-in-out;
    }

    /* 쿠폰 이모지에 러버밴드 애니메이션 적용 */
    .mobile-category-nav li:nth-child(5) a:hover .emoji-icon {
        animation: rubberBand 0.8s ease-in-out;
    }

    .mobile-category-nav a:hover .category-text {
        color: var(--primary-color);
    }

    .mobile-category-nav .new-badge .emoji-icon {
        position: relative;
    }

    .mobile-category-nav .new-badge .emoji-icon::after {
        content: 'NEW';
        position: absolute;
        top: -5px;
        right: -15px;
        background-color: #ff5a5f;
        color: white;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 10px;
        font-weight: bold;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 2;
        animation: float 2s ease-in-out infinite;
    }


}

/* Breadcrumb Section */
.breadcrumb-section {
    padding: 30px 0 15px 0 !important;
}

.breadcrumb-wrapper {
    display: inline-block;
    border-radius: 20px;
    padding: 8px 20px;
    background-color: var(--border-color);
    position: relative;
    z-index: 2;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-color-secondary);
}

.breadcrumb-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-horizontal);
    text-align: center;
    position: relative;
}

.breadcrumb-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

/* Dark Mode Breadcrumb */
[data-theme='dark'] .breadcrumb-wrapper {
    background-color: var(--border-color);
}

[data-theme='dark'] .breadcrumb,
[data-theme='dark'] .breadcrumb a {
    color: var(--text-color-secondary);
}

[data-theme='dark'] .breadcrumb-container::before {
    background-color: var(--border-color);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

.breadcrumb a {
    color: var(--text-color-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 1rem;
}

.breadcrumb-separator {
    margin: 0 10px;
    font-size: 10px !important;
    opacity: 0.5;
}

/* Rentcar Detail Page New Layout */
.detail-page-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px;
}

.detail-page-container .detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.detail-page-container .detail-subtitle {
    font-size: 1rem;
    color: var(--text-color-secondary);
    margin-bottom: 25px;
}

/* Photo Gallery Grid */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 195px 195px;
    gap: 8px;
    margin-bottom: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item.main-image-container {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.gallery-item .image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-item .image-wrapper.empty {
    background-color: var(--bg-secondary);
    border: 1px dashed var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item .image-wrapper:hover img {
    transform: scale(1.05);
}

/* Main Content Layout */
.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.detail-main-content .detail-section {
    padding: 20px 0;
}

.detail-main-content .detail-section:first-child {
    padding-top: 0;
}

.detail-main-content .detail-section:last-child {
    border-bottom: none;
}

.detail-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.spec-list, .includes-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.spec-list li, .includes-list li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.spec-list i, .includes-list i {
    margin-right: 7px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

/* Booking Panel */
.booking-panel-container {
    position: sticky;
    top: 100px;
}

.booking-panel {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.booking-panel .detail-price-per-day {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.booking-panel .detail-price-per-day .price {
    font-size: 1.5rem;
    font-weight: 600;
}

.booking-panel .booking-form .date-picker {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.booking-panel .booking-form .date-input {
    padding: 10px 12px;
}

.booking-panel .booking-form .date-input:first-child {
    border-bottom: 1px solid #ccc;
}

.booking-panel .booking-form label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.booking-panel .booking-form input[type="date"] {
    border: none;
    width: 100%;
    font-size: 0.9rem;
    background-color: transparent;
    color: var(--text-color-primary);
}

.booking-panel .btn-book {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

/* Responsive Design for Detail Page */
@media (max-width: 992px) {
    .detail-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .booking-panel-container {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .photo-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item.main-image-container {
        grid-row: auto;
        grid-column: auto;
        height: 300px;
    }

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

    .gallery-item.main-image-container {
        grid-column: 1 / -1;
    }
}

/* 푸터 섹션 */
.footer-section {
    background-color: #333333; /* 진한 그레이 */
    color: #f0f0f0; /* 밝은 텍스트 색상 */
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    gap: 30px;
}

/* Footer left has been replaced by footer-logo */

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.mobile-logo-img {
    max-width: 150px;
    height: auto;
}

.footer-powered {
    display: flex;
    align-items: center;
}

.footer-powered-logo {
    max-width: 100px;
    height: auto;
}

.footer-links {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.footer-links a {
    color: #ffffff; /* 밝은 링크 색상 */
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a:not(:last-child):after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 12px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-contact {
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc; /* 약간 어두운 텍스트 색상 */
    text-align: center;
}

.footer-contact p {
    margin: 0;
    padding: 3px 0;
}

.footer-bottom {
    width: 100%;
    background-color: #222222; /* 더 어두운 바닥 부분 */
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
}

.footer-bottom p {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-bottom p:hover {
    opacity: 1;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 다크모드 토글 버튼 스타일 */
.theme-toggle {
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.theme-toggle:hover {
    background-color: var(--surface-color-secondary);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(30deg);
}

/* 불꽃 아이콘 애니메이션 */
.fire-icon {
    color: #ffc800;
    animation: burning 1s 1 alternate;
    text-shadow: 0 0 8px rgb(255, 230, 45);
}

@keyframes burning {
    0% {
        color: #ffd500;
        text-shadow: 0 0 5px rgba(255, 107, 0, 0.7);
    }
    25% {
        color: #ff9500;
        text-shadow: 0 0 7px rgba(255, 149, 0, 0.8);
    }
    50% {
        color: #ffcc00;
        text-shadow: 0 0 10px rgba(255, 204, 0, 0.9), 0 0 20px rgba(255, 204, 0, 0.5);
    }
    75% {
        color: #ff9500;
        text-shadow: 0 0 7px rgba(255, 149, 0, 0.8);
    }
    100% {
        color: #ffd500;
        text-shadow: 0 0 5px rgba(255, 251, 0, 0.924), 0 0 15px rgba(229, 255, 0, 0.5);
    }
}

/* 다크모드에서 달 아이콘 노란색으로 변경 */
[data-theme="dark"] .fa-moon {
    color: #FFD700;
}

/* 다크모드에서 불꽃 아이콘 애니메이션 변경 */
[data-theme="dark"] .fire-icon {
    color: #3498db;
    animation: burning-blue 1s 1 alternate;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.7);
}

@keyframes burning-blue {
    0% {
        color: #3498db;
        text-shadow: 0 0 5px rgba(52, 152, 219, 0.7);
    }
    25% {
        color: #2980b9;
        text-shadow: 0 0 7px rgba(41, 128, 185, 0.8);
    }
    50% {
        color: #00bfff;
        text-shadow: 0 0 10px rgba(0, 191, 255, 0.9), 0 0 20px rgba(0, 191, 255, 0.5);
    }
    75% {
        color: #2980b9;
        text-shadow: 0 0 7px rgba(41, 128, 185, 0.8);
    }
    100% {
        color: #1e90ff;
        text-shadow: 0 0 5px rgba(30, 144, 255, 0.7), 0 0 15px rgba(30, 144, 255, 0.5);
    }
}

/* 모바일 스타일 - 중복 미디어 쿼리 통합 */
@media (max-width: 768px) {
    /* 공통 섹션 스타일 */
    section {
        padding: 30px 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* 반응형 섹션 스타일 - 미디어 쿼리 통합 및 정리 */
.responsive-section {
    padding:30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .responsive-section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .responsive-section {
        padding: 20px;
    }
}

.rental-car-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* 반응형 렌트카 섹션 - 미디어 쿼리 통합 */
@media (max-width: 1200px) {
    .rental-car-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .rental-car-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rental-car-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .car-card {
        aspect-ratio: 1 / 1.2;
    }
    
    .car-title {
        font-size: 1rem;
    }
    
    .car-desc {
        font-size: 0.75rem;
    }
    
    .car-price {
        font-size: 1.8rem;
    }
}


.car-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.car-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(53, 54, 60, 0.47) 20%, rgba(255, 255, 255, 0.059) 60%);
    display: flex;
    flex-direction: column;
    /* justify-content: flex-end; */
    padding: 20px;
    color: #fff;
}

.car-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.car-desc {
    font-size: 0.8rem;
    margin: 5px 0 10px;
    color: #e0e0e0;
    line-height: 1.4;
}

.car-price {
    font-size: 2.2rem;
    color: #ffffff;
    margin-top: auto; /* 상단 여백을 자동으로 채워 아래로 밀어냄 */
    text-align: right; /* 텍스트를 오른쪽으로 정렬 */
}