:root {
    --primary-color: #FF7F50;
    /* 輕快珊瑚橘 */
    --secondary-color: #E0F2F1;
    /* 清爽薄荷綠背景 */
    --accent-blue: #4FB3E8;
    /* 天空藍 */
    --text-dark: #2D3436;
    /* 溫潤米白 */
    --bg-soft: #FDFBF7;
    /* 大地色 */
    --bg-dark-soft: #F4F1ED;

}

.outline {
    outline: red 1px solid;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-dark-soft);
    color: var(--text-dark);
    line-height: 1.7;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
}

.primary-color {
    color: var(--primary-color);
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

/* 客製元件 */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--accent-blue);
    box-shadow: 0 10px 20px rgba(79, 179, 232, 0.3);
    color: white;
}

/* 導覽列 */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    /* backdrop-filter: blur(15px); */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: var(--text-dark) !important;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-toggler:focus,
.btn-close:focus {
    box-shadow: unset;
}



main {
    background: var(--bg-soft);
}

/* 英雄區 - 活潑明亮 */
/* Hero */
.hero {
    height: 55vh;
    /* background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
        url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2073&auto=format&fit=crop') center/cover no-repeat var(--bg-dark-soft); */
    /* background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)),
        url('../images/banner-desktop.jpg') center/cover no-repeat var(--bg-dark-soft); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background: var(--bg-soft);
}

.hero img,
.slideshow_overlay::before {
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

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

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-btn,
.hero-btn:first-child:active {
    border-color: var(--primary-color);
    font-weight: 500;
    border: 2px solid var(--primary-color);
    color: white;
}

.hero-btn:hover {
    background-color: var(--primary-color);
}

.hero-title {
    font-size: 4rem;
    /* color: var(--text-dark); */
    margin-bottom: 20px;
}

.hero-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}

/* 搜尋框 */
.quick-search {
    background: white;
    padding: 30px;
    border-radius: 60px;
    box-shadow: 0 20px 50px rgba(255, 127, 80, 0.15);
    margin-top: -60px;
    position: relative;
    z-index: 100;
}

/* 國家卡片樣式 */
.country-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    height: 300px;
    cursor: pointer;
    margin-bottom: 24px;
}

.country-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

/* 旅遊卡片 */
.tour-card {
    border: none;
    border-radius: 30px;
    overflow: hidden;
    /* transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); */
    background-color: #fff;
}

.card-img-overlay-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--primary-color);
}


/* 特色區塊 - 參考 Figma 背景裝飾 */
.feature-bg {
    background-color: var(--bg-dark-soft);
    /* background-color: color-mix(in srgb, var(--bg-soft) 98%, black 2%); */
    position: relative;
    overflow: hidden;
}

.feature-bg::before {
    content: "EXPLORE";
    position: absolute;
    font-size: 15rem;
    font-family: 'Noto Serif TC';
    color: rgba(166, 139, 106, 0.03);
    top: -50px;
    right: -50px;
    font-weight: 900;
}

footer {
    background-color: #1a1a1a;
    color: #efefef;
    padding: 80px 0 40px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

/* --- 多層級選單 CSS 強化 --- */
@media (min-width: 768px) {
    .hero {
        height: 75vh;
    }

    .hero img,
    .slideshow_overlay::before {
        border-bottom-left-radius: 80px;
        border-bottom-right-radius: 80px;
    }

    .slideshow_overlay::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: black;
        opacity: 0.17;
        z-index: 2;
    }

}


@media (min-width: 992px) {
    .hero {
        height: 85vh;
    }

    .dropdown-menu .dropdown-toggle:after {
        border-top: .3em solid transparent;
        border-right: 0;
        border-bottom: .3em solid transparent;
        border-left: .3em solid;
        float: right;
        margin-top: .5em;
    }

    .dropdown-menu {
        margin: 0;
        border-radius: 12px;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .dropend:hover>.dropdown-menu {
        display: block;
        position: absolute;
        top: 0;
        left: 100%;
        margin-left: 0.1rem;
    }

    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
    }
}