/* UD度假體驗系統 - 度假村風格樣式 */
/* 參照凱渡廣場酒店設計風格 */

/* ========== 度假村色彩系統 ========== */
:root {
    /* 主色調 - 海洋藍 */
    --resort-primary: #1a73e8;
    --resort-primary-light: #4285f4;
    --resort-primary-dark: #1357c7;
    
    /* 輔色調 - 沙灘金 */
    --resort-secondary: #f9ab00;
    --resort-secondary-light: #fbbc04;
    --resort-secondary-dark: #ea8600;
    
    /* 自然色調 */
    --resort-ocean: #0077be;
    --resort-sand: #deb887;
    --resort-sunset: #ff6b35;
    --resort-forest: #228b22;
    
    /* 中性色調 */
    --resort-white: #ffffff;
    --resort-light-gray: #f8f9fa;
    --resort-gray: #6c757d;
    --resort-dark-gray: #495057;
    
    /* 漸變色 */
    --gradient-ocean: linear-gradient(135deg, #0077be 0%, #1a73e8 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6b35 0%, #f9ab00 100%);
    --gradient-nature: linear-gradient(135deg, #228b22 0%, #90ee90 100%);
}

/* ========== 度假村產品卡片樣式 ========== */
.ud-product-card.resort-style {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--resort-white);
    position: relative;
}

.ud-product-card.resort-style:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ud-product-card.resort-style .product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--gradient-ocean);
}

.ud-product-card.resort-style .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 0;
}

.ud-product-card.resort-style:hover .product-image img {
    transform: scale(1.08);
}

/* 產品徽章樣式 */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.product-badge span {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.badge-hot { background: var(--gradient-sunset); color: white; }
.badge-family { background: var(--gradient-nature); color: white; }
.badge-adventure { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: white; }
.badge-nature { background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); color: white; }
.badge-romantic { background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%); color: white; }
.badge-extreme { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); color: white; }
.badge-sport { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; }
.badge-elegant { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); color: white; }
.badge-luxury { background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); color: white; }
.badge-gourmet { background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); color: white; }
.badge-buffet { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); color: white; }
.badge-special { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); color: white; }

/* 評分樣式 */
.product-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-rating i {
    color: #ffd700;
    margin-right: 4px;
}

/* 產品內容區域 */
.ud-product-card.resort-style .product-content {
    padding: 25px;
}

.product-category {
    color: var(--resort-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-category i {
    margin-right: 6px;
    font-size: 1rem;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--resort-dark-gray);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-description {
    color: var(--resort-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 產品特色標籤 */
.product-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.feature-tag {
    background: var(--resort-light-gray);
    color: var(--resort-gray);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    border: 1px solid #e9ecef;
}

.feature-tag i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* 價格樣式 */
.product-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
    color: var(--resort-primary);
}

.price-from {
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 5px;
    color: var(--resort-gray);
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 4px;
}

.price-unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--resort-gray);
}

/* 確保新的價格結構在所有頁面都能正常顯示 */
.price-structure {
    margin: 1rem 0;
}

/* 操作按鈕 */
.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-actions .btn {
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.product-actions .btn-primary {
    background: var(--gradient-ocean);
    border-color: var(--resort-primary);
    color: white;
    flex: 1;
}

.product-actions .btn-primary:hover {
    background: var(--resort-primary-dark);
    border-color: var(--resort-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.favorite-btn {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-color: #e9ecef;
}

.favorite-btn:hover {
    border-color: var(--resort-primary);
    color: var(--resort-primary);
    transform: scale(1.1);
}

/* ========== 章節標題樣式 ========== */
.section-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-subtitle i {
    margin-right: 12px;
}

.section-subtitle small {
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 8px;
    opacity: 0.8;
}

/* ========== 分類篩選器樣式 ========== */
.category-filter {
    background: white;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e9ecef;
    color: var(--resort-gray);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--resort-primary);
    color: var(--resort-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-ocean);
    border-color: var(--resort-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.filter-btn i {
    margin-right: 8px;
}

/* ========== Hero區域樣式 ========== */
.ud-hero-section {
    background: var(--gradient-ocean);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.ud-hero-section::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 1200 600"><path d="M0,400 C300,350 600,450 1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom center;
    background-size: cover;
}

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

.ud-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
}

.ud-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ========== 響應式設計 ========== */
@media (max-width: 1199px) {
    .ud-hero-title {
        font-size: 2.8rem;
    }
    
    .section-subtitle {
        font-size: 1.6rem;
    }
}

@media (max-width: 991px) {
    .ud-hero-title {
        font-size: 2.4rem;
    }
    
    .category-filter {
        padding: 15px;
        border-radius: 25px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {
    .ud-hero-section {
        padding: 100px 0 60px;
    }
    
    .ud-hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .ud-hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
        text-align: center;
        align-items: center;
    }
    
    .category-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .filter-btn i {
        margin-right: 5px;
    }
    
    .ud-product-card.resort-style .product-image {
        height: 200px;
    }
    
    .product-actions {
        flex-direction: row;
        gap: 6px;
        justify-content: space-between;
    }
    
    .product-actions .btn-primary {
        flex: 1;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .favorite-btn {
        width: 45px;
        height: 38px;
        padding: 8px;
        margin-bottom: 0;
    }
    
    .favorite-btn i {
        font-size: 0.9rem;
    }
}

/* 極小螢幕優化 */
@media (max-width: 480px) {
    .product-actions {
        gap: 4px;
    }
    
    .product-actions .btn-primary {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .favorite-btn {
        width: 40px;
        height: 36px;
        padding: 6px;
    }
    
    .favorite-btn i {
        font-size: 0.8rem;
    }
}

/* ========== 動畫效果 ========== */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0);
    }
    70% {
        transform: translate3d(0,-4px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

.animate-bounce {
    animation: bounce 0.6s ease-in-out;
}

/* ========== 載入狀態 ========== */
.product-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* ========== 其他度假村風格元素 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-ocean);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

/* 快速預約區域 */
.quick-booking-section {
    background: var(--resort-light-gray);
}

.quick-booking-form {
    border-radius: 20px;
    border: 1px solid rgba(26, 115, 232, 0.1);
}

.quick-booking-form .form-select,
.quick-booking-form .form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.quick-booking-form .form-select:focus,
.quick-booking-form .form-control:focus {
    border-color: var(--resort-primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

.btn-ud-primary {
    background: var(--gradient-ocean);
    border-color: var(--resort-primary);
    color: white;
    border-radius: 15px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-ud-primary:hover {
    background: var(--resort-primary-dark);
    border-color: var(--resort-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
} 