/* AI 여행 위자드 스타일 */
.travel-wizard-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

/* 헤더 */
.wizard-header {
    text-align: center;
    padding: 20px;
    background: white;  /* 흰색 배경 */
    color: #666;        /* 설명 텍스트는 회색으로 */
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.wizard-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.wizard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* 진행 단계 표시 */
.wizard-progress {
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #667eea;
    color: white;
}

.progress-step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* 메인 콘텐츠 영역 */
.wizard-content {
    min-height: 500px;
    position: relative;
}

.step-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.step-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 선택 그리드 */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.selection-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.selection-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.selection-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.selection-card:active {
    transform: translateY(-2px);
}

.card-flag {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
    line-height: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    color: #666;
}

/* 로딩 상태 */
.loading-container {
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.loading-spinner {
    display: none;
}
/* 🆕 Lottie 로딩 애니메이션 */
.lottie-loading {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    background: transparent;
}
.loading-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 네비게이션 버튼 */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
}

.nav-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.nav-button:active {
    transform: translateY(0);
}

.nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.prev-button {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* 최종 결과 */
.result-container {
    display: none;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #fff3e0, #fff8e1);
    border: 2px solid #ffcc02;
    border-radius: 20px;
    margin: 20px 0;
}

.final-summary {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.final-summary h3 {
    margin: 0 0 20px 0;
    color: #f57c00;
    font-size: 24px;
}

.final-summary p {
    margin: 0 0 30px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.search-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.3);
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 90, 82, 0.4);
}

/* 에러 메시지 */
.travel-chatbot-error {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #c62828;
    font-weight: 500;
}

/* 다크 테마 */
.travel-wizard-container[data-theme="dark"] {
    background: #1a1a1a;
    color: white;
}

.travel-wizard-container[data-theme="dark"] .step-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

.travel-wizard-container[data-theme="dark"] .selection-card {
    background: #2d2d2d;
    border-color: #444;
    color: white;
}

.travel-wizard-container[data-theme="dark"] .selection-card:hover {
    border-color: #667eea;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .travel-wizard-container {
        margin: 20px;
        padding: 20px;
    }
    
    /* 🆕 모바일용 Lottie 크기 */
    .lottie-loading {
        width: 150px;
        height: 150px;
    }
    
    .wizard-header {
        padding: 20px;
    }
    
    .wizard-header h1 {
        font-size: 24px;
    }
    
    .step-content {
        padding: 30px 20px;
        min-height: 400px;
    }
    
    .step-title {
        font-size: 24px;
    }
    
    .selection-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .selection-card {
        padding: 20px 15px;
    }
    
    .card-flag {
        font-size: 30px;
    }
    
    .progress-steps::before {
        left: 25px;
        right: 25px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .selection-card {
        padding: 15px 10px;
    }
    
    .card-flag {
        font-size: 24px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .step-label {
        font-size: 12px;
    }
}

/* ========== 3/4단계 전용 세로 리스트 스타일 추가 ========== */
.region-city-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.region-city-list .list-item {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.region-city-list .list-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.region-city-list .list-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
    transform: translateX(8px);
}

.region-city-list .item-icon {
    width: 180px;  /* 120px × 1.5 = 180px */
    height: 120px; /* 80px × 1.5 = 120px */
    border-radius: 16px;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 이미지 스타일 */
.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;  /* 🆕 중앙 정렬 추가 */
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.list-item:hover .item-image {
    transform: scale(1.05);
}

/* 이미지 로딩 실패시 폴백 */
.item-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 32px;
    border-radius: 16px;
}

/* 도시용 폴백 색상 */
.city-list .item-image-fallback {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* 개선된 로딩 상태 */
.item-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 80px; /* 최소 높이 보장 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image.loading::before {
    content: '🖼️';
    font-size: 24px;
    opacity: 0.5;
    animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 로딩 완료 시 애니메이션 제거 */
.item-image:not(.loading) {
    animation: none;
    background: none;
}

.item-image:not(.loading)::before {
    display: none;
}

.region-city-list .item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-city-list .item-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.region-city-list .item-description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}

.region-city-list .item-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.region-city-list .list-item:hover .item-arrow {
    background: #667eea;
    color: white;
    transform: translateX(3px);
}

/* 4단계 도시용 다른 색상 */
.city-list .item-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.city-list .list-item:hover .item-arrow {
    background: #4CAF50;
}

/* ========== 모바일에서만 화살표 제거 + 컨테이너 클릭 ========== */
@media (max-width: 768px) {
    /* 모바일에서만 화살표 완전 제거 (공간도 차지 안함) */
    .region-city-list .item-arrow {
        display: none !important;    /* 모바일에서만 완전 제거 */
    }
    
    .region-city-list .list-item {
        display: flex;
        align-items: flex-start;        /* 🔄 stretch로 변경하여 높이 자동 조정 */
        background: white;
        border: 2px solid #e8ecf0;
        border-radius: 16px;
        padding: 12px;
        min-height: 90px;          /* 🔄 최소 높이만 설정 (고정 높이 제거) */
        margin-bottom: 25px;
        overflow: visible;          /* 🆕 overflow 제거하여 텍스트 표시 */
        cursor: pointer;
    }
    
    /* 왼쪽: 이미지 */
    .region-city-list .item-icon {
        width: 250px;
        height: 160px;
        border-radius: 12px;
        margin-right: 15px;
        flex-shrink: 0;
        min-width: 250px;
        background: #f8f9fa;
        overflow: hidden;
        position: relative;
        align-self: flex-start;     /* 🆕 상단 정렬 */
    }
    
    .region-city-list .item-icon .item-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        background: #f8f9fa;
    }
    
    .item-image.fallback::before {
        font-size: 24px;
    }
    
    .item-image.loading::before {
        font-size: 20px;
    }
    
    .item-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        border-radius: 12px;
    }
    
    /* 오른쪽: 텍스트 영역 - 🔥 완전 유연한 레이아웃 */
    .region-city-list .item-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* 🔄 상단 정렬로 변경 */
        padding: 8px 12px;             /* 🔄 상하 패딩만 */
        background: transparent;     /* 🔄 배경 제거 */
        border-radius: 0;           /* 🔄 둥근 모서리 제거 */
        height: auto;               /* 🔥 고정 높이 완전 제거 */
        min-height: auto;           /* 🔥 최소 높이도 제거 */
    }
    
    /* 지역명 - 🔥 유연한 높이 */
    .region-city-list .item-name {
        font-size: 16px;
        font-weight: 700;
        color: #2c3e50;
        margin: 0 0 8px 0;          /* 🔄 아래쪽 마진만 */
        text-align: left;           /* 🔄 왼쪽 정렬 */
        background: transparent;     /* 🔄 배경 제거 */
        padding: 0;                 /* 🔄 패딩 제거 */
        border: none;               /* 🔄 테두리 제거 */
        height: auto;               /* 🔥 고정 높이 완전 제거 */
        display: block;             /* 🔄 flex 대신 block */
        line-height: 1.3;           /* 🆕 줄 높이 설정 */
        word-wrap: break-word;      /* 🆕 긴 단어 줄바꿈 */
        overflow-wrap: break-word;  /* 🆕 단어 줄바꿈 강제 */
    }
    
    /* 설명 텍스트 - 🔥 유연한 높이 */
    .region-city-list .item-description {
        font-size: 12px;
        color: #495057;
        margin: 0;
        text-align: left;           /* 🔄 왼쪽 정렬 */
        line-height: 1.4;
        background: transparent;     /* 🔄 배경 제거 */
        padding: 0;                 /* 🔄 패딩 제거 */
        border-radius: 0;           /* 🔄 둥근 모서리 제거 */
        height: auto;               /* 🔥 고정 높이 완전 제거 */
        display: block;             /* 🔄 flex 대신 block */
        word-wrap: break-word;      /* 🆕 긴 단어 줄바꿈 */
        overflow-wrap: break-word;  /* 🆕 단어 줄바꿈 강제 */
    }
    
    /* 모바일 터치 효과 */
    .region-city-list .list-item:hover {
        border-color: #667eea;
        transform: translateX(5px);
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    }
    
    .region-city-list .list-item:active {
        transform: translateX(3px);
        background: #f0f4ff;
    }
}

/* ========== PC에서는 기존 화살표 유지 ========== */
@media (min-width: 769px) {
    /* 🆕 PC에서 이미지 컨테이너 크기 강제 적용 */
    .region-city-list .item-icon {
        width: 180px !important;
        height: 120px !important;
        border-radius: 16px;
        margin-right: 20px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        flex-shrink: 0;
    }
    
    /* 🆕 PC에서 이미지 스타일 강화 */
    .region-city-list .item-icon .item-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: 16px;
        transition: transform 0.3s ease;
    }
    
    /* PC에서는 화살표 그대로 유지 */
    .region-city-list .item-arrow {
        display: flex !important;    /* PC에서는 화살표 보임 */
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #ecf0f1;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #7f8c8d;
        transition: all 0.3s ease;
    }
    
    /* PC 호버 효과 */
    .region-city-list .list-item:hover .item-arrow {
        background: #667eea;
        color: white;
        transform: translateX(3px);
    }
    
    /* PC에서도 컨테이너 클릭 가능하게 (화살표와 병행) */
    .region-city-list .list-item {
        cursor: pointer;
        display: flex;
        align-items: center;
        background: white;
        border: 2px solid #e8ecf0;
        border-radius: 12px;
        padding: 20px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
}

/* 🆕 추가: Gemini 설명 로딩 상태 */
.item-description.loading-text {
    color: #999;
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 🆕 추가: 설명 업데이트 효과 */
.item-description {
    transition: all 0.3s ease;
}

.item-description:not(.loading-text) {
    color: #495057;
    font-weight: 500;
}

/* 🆕 폴백 이미지 처리 개선 */
.item-image.fallback {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    border-radius: 16px;
    animation: none; /* 로딩 애니메이션 제거 */
}

.city-list .item-image.fallback {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* 폴백 이미지 아이콘 */
.item-image.fallback::before {
    content: '🏛️';
    font-size: 32px;
    animation: none;
    opacity: 1;
}

.city-list .item-image.fallback::before {
    content: '🏙️';
}

/* 🆕 JavaScript와 동기화된 로딩 상태 */
.item-image[data-loading="true"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.item-image[data-loading="false"] {
    animation: none;
    background: none;
}

.item-image[data-loading="false"]::before {
    display: none;
}

/* 로딩 성공 시 페이드인 효과 */
.item-image[data-loaded="true"] {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 로딩 실패 시 폴백 표시 */
.item-image[data-error="true"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: none;
}

.item-image[data-error="true"]::before {
    content: '🏛️';
    font-size: 28px;
    animation: none;
    opacity: 1;
}

.city-list .item-image[data-error="true"] {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.city-list .item-image[data-error="true"]::before {
    content: '🏙️';
}
/* ========== 여행 테마 그리드 (4개) ========== */
.food-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2×2 그리드 */
    gap: 25px;
    margin-top: 30px;
    max-width: 800px; /* 너비 증가 */
    margin-left: auto;
    margin-right: auto;
}
/* 🎨 쇼핑 테마 색상 */
.theme-card[data-theme="shopping"] {
    --theme-color: #9b59b6;
    --theme-dark: #8e44ad;
    --theme-bg: linear-gradient(135deg, #faf0ff, #f3e5f5);
    --theme-light: #f3e5f5;
    --theme-shadow: rgba(155, 89, 182, 0.3);
}

/* 🎨 역사 테마 색상 */
.theme-card[data-theme="history"] {
    --theme-color: #d35400;
    --theme-dark: #c0392b;
    --theme-bg: linear-gradient(135deg, #fdf2e9, #fbeee6);
    --theme-light: #fdf2e9;
    --theme-shadow: rgba(211, 84, 0, 0.3);
}
.theme-card {
    background: white;
    border: 3px solid #e8ecf0;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.theme-card:hover::before {
    left: 100%;
}

.theme-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--theme-color);
    box-shadow: 0 20px 40px var(--theme-shadow);
}

.theme-card.selected {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--theme-color);
    background: var(--theme-bg);
    box-shadow: 0 20px 40px var(--theme-shadow);
}

.theme-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

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

.theme-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.theme-description {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.theme-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.theme-keyword {
    background: var(--theme-light);
    color: var(--theme-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* 🎨 각 테마별 색상 변수 */
.theme-card[data-theme="culture"] {
    --theme-color: #e74c3c;
    --theme-bg: linear-gradient(135deg, #fff5f5, #ffe8e8);
    --theme-light: #ffebee;
    --theme-shadow: rgba(231, 76, 60, 0.3);
}

.theme-card[data-theme="nature"] {
    --theme-color: #27ae60;
    --theme-bg: linear-gradient(135deg, #f0fff4, #e8f5e8);
    --theme-light: #e8f5e8;
    --theme-shadow: rgba(39, 174, 96, 0.3);
}

.theme-card[data-theme="food"] {
    --theme-color: #f39c12;
    --theme-bg: linear-gradient(135deg, #fffbf0, #fff3e0);
    --theme-light: #fff3e0;
    --theme-shadow: rgba(243, 156, 18, 0.3);
}

.theme-card[data-theme="adventure"] {
    --theme-color: #3498db;
    --theme-bg: linear-gradient(135deg, #f0f8ff, #e3f2fd);
    --theme-light: #e3f2fd;
    --theme-shadow: rgba(52, 152, 219, 0.3);
}

.theme-card[data-theme="shopping"] {
    --theme-color: #9b59b6;
    --theme-bg: linear-gradient(135deg, #faf0ff, #f3e5f5);
    --theme-light: #f3e5f5;
    --theme-shadow: rgba(155, 89, 182, 0.3);
}

.theme-card[data-theme="nightlife"] {
    --theme-color: #34495e;
    --theme-bg: linear-gradient(135deg, #f8f9fa, #e9ecef);
    --theme-light: #e9ecef;
    --theme-shadow: rgba(52, 73, 94, 0.3);
}

.theme-card[data-theme="wellness"] {
    --theme-color: #1abc9c;
    --theme-bg: linear-gradient(135deg, #f0fffe, #e0f7fa);
    --theme-light: #e0f7fa;
    --theme-shadow: rgba(26, 188, 156, 0.3);
}

.theme-card[data-theme="family"] {
    --theme-color: #ff6b6b;
    --theme-bg: linear-gradient(135deg, #fff0f0, #ffe0e0);
    --theme-light: #ffe0e0;
    --theme-shadow: rgba(255, 107, 107, 0.3);
}

/* 선택 완료 시 애니메이션 */
.theme-card.selected .theme-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    80% { transform: translateY(-10px); }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .theme-card {
        padding: 20px 15px;
        min-height: 180px;
    }

    .theme-icon {
        font-size: 45px;
        margin-bottom: 15px;
    }

    .theme-title {
        font-size: 18px;
    }

    .theme-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .theme-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 🍽️ 맛집/카페 2테마 전용 추가 스타일 */

/* 개별 키워드 (클릭 가능) */
.food-keyword {
    background: var(--theme-light);
    color: var(--theme-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.food-keyword:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--theme-shadow);
    border-color: var(--theme-color);
}

.food-keyword.clicked {
    background: var(--theme-color);
    color: white;
    transform: scale(1.1);
}

/* Gemini AI 생성 키워드 특별 스타일 */
.food-keyword.gemini {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-dark));
    color: white;
    box-shadow: 0 2px 8px var(--theme-shadow);
    position: relative;
}

.food-keyword.gemini::before {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
}

/* 기본 키워드 스타일 */
.food-keyword.default {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

/* 🎨 맛집 테마 색상 */
.theme-card[data-theme="restaurant"] {
    --theme-color: #e74c3c;
    --theme-dark: #c0392b;
    --theme-bg: linear-gradient(135deg, #fff5f5, #ffe8e8);
    --theme-light: #ffebee;
    --theme-shadow: rgba(231, 76, 60, 0.3);
}

/* 🎨 카페 테마 색상 */
.theme-card[data-theme="cafe"] {
    --theme-color: #8b4513;
    --theme-dark: #654321;
    --theme-bg: linear-gradient(135deg, #fdf6e3, #f5f5dc);
    --theme-light: #f5f5dc;
    --theme-shadow: rgba(139, 69, 19, 0.3);
}

/* ========== 최종 결과 화면 (맛집/카페용) ========== */
.final-food-summary {
    background: linear-gradient(135deg, #fff3e0, #fff8e1);
    border: 3px solid #ffb74d;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.final-food-summary h3 {
    margin: 0 0 20px 0;
    color: #f57c00;
    font-size: 28px;
    font-weight: 700;
}

.search-path {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    border: 2px solid #ffcc02;
}

.search-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.search-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-search-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.3);
}

.main-search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 90, 82, 0.4);
}

.restart-button {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(127, 140, 141, 0.3);
}

.restart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(127, 140, 141, 0.4);
}

/* ========== 모바일 반응형 ========== */
@media (max-width: 768px) {
    /* 모바일에서는 세로로 배치 */
    .food-theme-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    .search-buttons {
        flex-direction: column;
        align-items: center;
    }

    .main-search-button,
    .restart-button {
        width: 100%;
        max-width: 300px;
        padding: 15px;
        font-size: 16px;
    }
}

.agoda-city .item-name {
    display: flex;              /* 🔄 가로 배치로 변경 */
    align-items: center;        /* 🔄 세로 중앙 정렬 */
    gap: 10px;                  /* 🔄 간격 설정 */
    margin-bottom: 8px;
}

.agoda-city .city-name-only {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;            /* 🔥 도시명만 클릭 가능 */
    flex-shrink: 0;             /* 🆕 크기 고정 */
}

.agoda-city .hotel-stats-info {
    font-size: 11px;
    color: #666;
    background: rgba(102, 126, 234, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    display: inline-block;               /* 🔥 텍스트 크기에 맞게 */
    width: fit-content;                  /* 🔥 내용에 맞는 너비 */
}

/* 호텔 통계 아이콘 제거 (깔끔하게) */
.agoda-city .hotel-stats-info::before {
    content: '';
}

/* Gemini 설명은 그대로 아래에 */
.agoda-city .item-description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 6px 0 0 0;
}

/* 모바일에서 호텔 통계 조정 */
@media (max-width: 768px) {
    /* 모바일에서만 agoda 도시 카드를 세로 배치로 변경 */
    .agoda-city.list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .agoda-city .item-icon {
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .agoda-city .item-content {
        order: 2; /* 텍스트 영역을 두 번째로 */
    }
    
    .agoda-city.list-item {
        flex-direction: column;
        text-align: center;
        align-items: center;        /* 🔥 모든 요소를 카드 중앙에 */
        justify-content: center;    /* 🔥 세로 중앙 정렬 */
    }
    
    .agoda-city .item-icon {
        width: 203px;               /* 🔥 고정 너비 */
        margin: 0 auto 15px auto;   /* 🔥 이미지도 완전 중앙 */
    }
    
    .agoda-city .item-content {
        order: 2;
        width: 100%;                /* 🔥 전체 너비 사용 */
        display: flex;
        flex-direction: column;
        align-items: center;        /* 🔥 텍스트들을 중앙 정렬 */
        text-align: center;
    }
    
    /* 각 텍스트 요소들 */
    .agoda-city .city-name-only,
    .agoda-city .item-description,
    .agoda-city .hotel-stats-info {
        margin-left: auto;          /* 🔥 완전 중앙 정렬 */
        margin-right: auto;         /* 🔥 완전 중앙 정렬 */
    }
}

/* ========== 4개 테마 모바일 반응형 ========== */
@media (max-width: 768px) {
    /* 모바일에서는 세로로 배치 */
    .food-theme-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .theme-card {
        padding: 20px;
        min-height: 160px;
    }
    
    .theme-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .theme-title {
        font-size: 20px;
    }
    
    .theme-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .theme-card {
        padding: 15px;
        min-height: 140px;
    }
    
    .theme-icon {
        font-size: 40px;
    }
    
    .theme-title {
        font-size: 18px;
    }
}

.wizard-progress {
    display: none !important;
}