@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+HK:wght@700&display=swap');

html {
    scroll-behavior: smooth; /* 平滑滾動至指定 section */
}

body {
    font-family: 'Noto Sans HK', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* To prevent header overlap */
    background-color: #f3f4f6;
    color: #333;
}

/* Header & Navigation Styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

.logo-icon {
    height: 48px; /* Matches estimated header height */
    width: auto; /* Maintains aspect ratio */
    object-fit: contain;
    flex-shrink: 0; /* Prevents shrinking in flex layout */
    display: block; /* Ensures consistent rendering */
}

.logo-text {
    font-family: 'Noto Serif HK', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2563eb;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    color: #dc2626;
    transition: color 0.2s ease;
}

.btn-primary {
    background-color: #2563eb; /* Single blue color */
}

.btn-primary:hover {
    background-color: #1d4ed8; /* Darker blue on hover */
}

/* Hero Section Styles */
.hero {
    position: relative;
    height: 50vh; /* Further reduced height */
    overflow: hidden;
    display: flex; /* Use flexbox to center content */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
}

.hero-bg {
    background-image: url('1_hong_kong_night_panorama_harbour_view_2011.jpg');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(2px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Choice Cards (Featured Section) */
.choice-card {
    position: relative;
    overflow: hidden;
    border-radius: 0; /* Normal square corners */
    transition: transform 0.3s ease;
}

.choice-card:hover {
    transform: scale(1.05);
}

.choice-card img {
    width: 100%;
    height: 300px; /* Taller images */
    object-fit: cover;
    display: block;
}

.choice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
}

.choice-card:hover .choice-overlay {
    opacity: 1;
}

.choice-overlay p {
    color: #e5e7eb;
    font-size: 0.9rem;
    margin: 8px 0;
    max-width: 80%;
}

.container-choices {
    max-width: 1600px; /* Wider container for Popular Experiences */
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
}

/* ==========================================
   demo.html 瀏覽器 Tab & 景點列表 專用樣式
   ========================================== */

/* 瀏覽器分頁 (Browser Tabs) 設計 */
.tab-bar-container {
    display: flex;
    align-items: flex-end;
    border-bottom: 2px solid #e5e7eb;
    background-color: #e5e7eb;
    padding: 8px 16px 0 16px;
    border-radius: 12px 12px 0 0;
    gap: 4px;
    overflow-x: auto;
}

.browser-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #d1d5db;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-bottom: none;
}

.browser-tab:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.browser-tab.active {
    background-color: #ffffff;
    color: #2563eb;
    border-color: #e5e7eb;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.03);
    position: relative;
    margin-bottom: -2px;
    padding-bottom: 12px;
}

/* 內容面板 */
.tab-content-panel {
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 少分類按鈕樣式 */
.subcat-btn {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.subcat-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.subcat-btn.active {
    background-color: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
    font-weight: 600;
}

/* 景點卡片樣式 */
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}