/* 榜單美食網站自定義樣式 */

:root {
    --primary-color: #d4af37;
    --secondary-color: #8b4513;
    --accent-color: #ff6b35;
    --text-dark: #2c3e50;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* 導航列樣式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* 英雄區塊 */
.hero-section {
    background: linear-gradient(135deg, #ff6b35 0%, #d4af37 50%, #f39c12 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 英雄按鈕樣式 - 無陰影版本 */
.hero-button {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-button:hover::before {
    left: 100%;
}

.hero-button:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 無陰影樣式類別 */
.shadow-primary-glow {
    /* 陰影已移除 */
}

.shadow-glow-lg {
    /* 陰影已移除 */
}

.shadow-soft {
    /* 陰影已移除 */
}

.shadow-large {
    /* 陰影已移除 */
}

/* 漸層文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #d4af37 0%, #f39c12 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 新版英雄區塊 */
.hero-section-enhanced {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #d4af37 75%, #f39c12 100%);
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section-enhanced .container {
    position: relative;
    z-index: 2;
}

.hero-section-enhanced h1 {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-section-enhanced .lead {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section-enhanced .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 英雄區插圖 */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hero-icon {
    font-size: 8rem;
    color: rgba(255,255,255,0.2);
    animation: pulse 2s infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.float-1, .float-2, .float-3 {
    position: absolute;
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.float-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.float-2 {
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.float-3 {
    bottom: 30%;
    left: 40%;
    animation-delay: 2s;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* 搜尋結果資訊 */
#search-results-info {
    margin-bottom: 1.5rem;
}

#search-results-info .bg-light {
    border: 1px solid #e9ecef;
    background-color: #f8f9fa !important;
}

#search-results-info .form-select-sm {
    min-width: 80px;
    font-size: 0.875rem;
}

#search-results-info .text-primary {
    color: var(--primary-color) !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    #search-results-info .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    #search-results-info .d-flex > div:first-child {
        text-align: center;
    }
    
    #search-results-info .d-flex > div:last-child {
        justify-content: center;
    }
}

/* 卡片樣式 */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 餐廳卡片 */
.restaurant-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* .restaurant-image 樣式已移除 - 改為列表式佈局 */

.restaurant-info {
    padding: 1.5rem;
}

.restaurant-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.restaurant-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.restaurant-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffd700;
    margin-right: 0.5rem;
}

.rating-score {
    font-weight: bold;
    color: var(--text-dark);
}

.michelin-badge {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* 地圖容器 */
.map-container {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 搜尋區域 */
.search-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

/* 篩選器 */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-checkbox {
    margin-right: 0.5rem;
}

/* 按鈕樣式 */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #f1c40f);
    border: none;
    border-radius: 25px;
    padding: 0.7rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #b8941f, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 25px;
    padding: 0.7rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 載入動畫 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 英雄區塊動畫 */
@keyframes blob {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* 米其林星星閃爍動畫 */
@keyframes michelin-twinkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        filter: brightness(1.2);
    }
}

.michelin-star {
    animation: michelin-twinkle 2s ease-in-out infinite;
}

/* 位置圖標脈動動畫 */
@keyframes location-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.location-pulse {
    animation: location-pulse 2s ease-in-out infinite;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .restaurant-card {
        margin-bottom: 1rem;
    }
}

/* 頁腳 */
footer {
    margin-top: auto;
}

/* 工具提示 */
.tooltip-inner {
    background-color: var(--text-dark);
    border-radius: 8px;
}

/* 表格樣式 */
.table {
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

/* 分頁樣式 */
.pagination .page-link {
    border: none;
    color: var(--primary-color);
    border-radius: 50px;
    margin: 0 0.2rem;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 強制覆蓋 Bootstrap 的 active 頁面樣式 */
.pagination .page-item.active > .page-link,
.pagination .page-item.active > .page-link:hover,
.pagination .page-item.active > .page-link:focus,
.pagination .page-item.active > .page-link:active,
.pagination .page-item.active .page-link,
.pagination .page-item.active .page-link:hover,
.pagination .page-item.active .page-link:focus,
.pagination .page-item.active .page-link:active {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* 餐廳詳細頁面樣式 */
.restaurant-header {
    background: linear-gradient(135deg, #ff6b35 0%, #d4af37 50%, #f39c12 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-item i {
    margin-top: 0.2rem;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-score {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
}

.map-placeholder {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.restaurant-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* 統計卡片動畫 */
.card-body h3 {
    transition: transform 0.3s ease;
}

.card:hover .card-body h3 {
    transform: scale(1.1);
}

/* 新版統計卡片 */
.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: height 0.4s ease;
}

.stats-card:hover::before {
    height: 8px;
}

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

.stats-icon {
    transition: transform 0.4s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.2) rotate(5deg);
}

/* 快速搜尋區塊 */
.quick-search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.quick-search-section:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.quick-search-section .form-select {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-search-section .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* 菜系分類卡片 */
.cuisine-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cuisine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cuisine-card:hover::before {
    opacity: 0.1;
}

.cuisine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.cuisine-icon {
    transition: all 0.4s ease;
}

.cuisine-card:hover .cuisine-icon {
    transform: scale(1.3) rotate(10deg);
}

.cuisine-card h5 {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.cuisine-card:hover h5 {
    color: var(--primary-color);
}

/* 特色推薦卡片 */
.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 107, 53, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

.feature-card h4, .feature-card p {
    position: relative;
    z-index: 2;
}

/* 增強的餐廳卡片 */
.restaurant-card {
    border-radius: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.restaurant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.restaurant-card:hover::before {
    transform: scaleX(1);
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

/* 載入狀態 */
.text-center .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 搜尋建議 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* 列表式餐廳佈局樣式 */
.restaurant-list-item {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 確保評論數和星星不會換行 */
.restaurant-rating .small,
.restaurant-rating .text-muted,
.restaurant-rating .rating-stars {
    white-space: nowrap;
}

.restaurant-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border-left-color: var(--accent-color);
}

.restaurant-list-item .restaurant-name {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.restaurant-list-item .restaurant-name:hover {
    color: var(--primary-color);
}

.restaurant-list-item .restaurant-category {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.restaurant-list-item .restaurant-address {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
}

.restaurant-list-item .restaurant-rating {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

.restaurant-list-item .rating-stars {
    font-size: 1rem;
    color: #ffd700;
    margin-bottom: 0.3rem;
}

.restaurant-list-item .rating-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.restaurant-list-item .btn {
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.restaurant-list-item .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #f1c40f);
    border: none;
}

.restaurant-list-item .btn-outline-secondary {
    border: 1.5px solid #6c757d;
    color: #6c757d;
}

.restaurant-list-item .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* 手機版響應式調整 */
@media (max-width: 768px) {
    .restaurant-list-item .row {
        text-align: center;
    }
    
    .restaurant-list-item .col-md-6,
    .restaurant-list-item .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .restaurant-list-item .restaurant-rating {
        margin-bottom: 1rem;
    }
}

/* 餐廳頁面頭部樣式 */
.restaurants-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #d4af37 100%);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.restaurants-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 53, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

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

.header-badges .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 8px;
    display: inline-block;
}

.header-stats {
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.header-wave svg {
    width: 100%;
    height: 100%;
}

/* 搜尋和篩選區域樣式 */
.search-filter-section {
    position: relative;
    margin-top: -30px;
    z-index: 10;
}

.main-search-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.main-search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.search-input-group {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 20px;
    z-index: 5;
    color: #6c757d;
    font-size: 1.1rem;
}

.search-input {
    border: none;
    padding: 15px 20px 15px 50px;
    font-size: 1.1rem;
    border-radius: 50px;
    background: transparent;
    flex: 1;
}

.search-input:focus {
    box-shadow: none;
    outline: none;
}

.search-btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    margin-left: 10px;
    background: linear-gradient(45deg, var(--primary-color), #f1c40f);
    border: none;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* 快速篩選標籤 */
.quick-filters {
    text-align: center;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-tag {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), #f1c40f);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.filter-tag.active {
    background: linear-gradient(135deg, var(--primary-color), #f1c40f);
    border-color: var(--primary-color);
    color: white;
}

/* 進階篩選區域 */
.advanced-filters-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.filter-toggle button {
    border-radius: 15px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.filter-toggle button[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.filter-content {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.custom-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.custom-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.filter-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.filter-actions .btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 目前篩選狀態 */
.current-filters {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.current-filters .badge {
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 4px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .restaurants-header {
        min-height: 300px;
        text-align: center;
    }
    
    .header-badges {
        margin-top: 1rem;
    }
    
    .header-badges .badge {
        display: block;
        margin-bottom: 8px;
    }
    
    .main-search-card {
        padding: 1.5rem;
        margin: 0 15px;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }
    
    .search-input {
        margin-bottom: 15px;
        border-radius: 15px;
        border: 2px solid #e9ecef;
        padding: 15px;
    }
    
    .search-btn {
        width: 100%;
        margin-left: 0;
        border-radius: 15px;
    }
    
    .filter-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tag {
        width: 100%;
        max-width: 250px;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .advanced-filters-card {
        margin: 0 15px;
    }
}

/* 米其林相關樣式 */
.michelin-restaurant {
    border-left: 4px solid #ffd700 !important;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.michelin-card {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px solid #ffd700;
}

.michelin-badge {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.michelin-stats-row .michelin-stat-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.michelin-stats-row .michelin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.michelin-stats-row .michelin-stat-card:hover::before {
    opacity: 1;
}

.michelin-stats-row .michelin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* 米其林星級顯示 */
.michelin-stars {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.michelin-stars-large {
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    margin: 1rem 0;
}

/* 必比登推介樣式 */
.bib-gourmand-badge {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* 米其林年份徽章 */
.michelin-year-badge {
    background: #6c757d;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* 米其林指南頁面專用樣式 */
.michelin-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #d4af37 75%, #ffd700 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.michelin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.michelin-filter-section {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

/* 米其林餐廳特殊顯示效果 */
.restaurant-card.michelin-restaurant {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px solid #ffd700;
    position: relative;
}

.restaurant-card.michelin-restaurant::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd700"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.7;
}

/* 響應式米其林樣式 */
@media (max-width: 768px) {
    .michelin-stats-row .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .michelin-filter-section {
        margin: 1rem 15px;
        padding: 1.5rem;
    }
    
    .michelin-stars-large {
        font-size: 1.5rem;
    }
}

/* 動畫效果 */
@keyframes michelin-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.michelin-stars.animated {
    animation: michelin-glow 2s ease-in-out infinite;
}

/* 縣市卡片樣式 */
.city-card {
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e9ecef !important;
}

.city-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff !important;
}

.city-card i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.city-hover:hover i {
    transform: scale(1.1);
}

.city-card h6 {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.city-hover:hover h6 {
    color: #007bff;
}

/* 外島縣市特殊樣式 */
.city-card.border-info:hover {
    border-color: #17a2b8 !important;
}

.city-card.border-info:hover h6 {
    color: #17a2b8;
}

.city-card small {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}