:root {
    --primary: #006D5B;
    /* 深叢林綠 */
    --dark: #1A2F2F;
    --accent: #D4A373;
    /* 沙灘金 */
    --light: #FBFBF9;
    --white: #FFFFFF;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s ease-in-out;
}

/* Fancybox Customization */
body .fancybox__backdrop {
    background: rgba(0, 109, 91, 0.95);
}

body .fancybox__caption {
    font-family: 'Noto Sans TC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #004d3a;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light);
}

body {
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 2;
    overflow-x: hidden;
    width: 100%;
    letter-spacing: 0.05em;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    z-index: 1001;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-cn {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 4px;
    transition: color 0.3s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo-en {
    font-family: 'Dancing Script', cursive;
    font-size: 1rem;
    color: var(--white);
    margin-top: -2px;
    transition: color 0.3s ease;
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
    background-color: #fff;
}

nav.scrolled .logo-cn {
    color: var(--primary);
    text-shadow: none;
}

nav.scrolled .logo-en {
    color: var(--accent);
    text-shadow: none;
}

nav.scrolled .logo img {
    border-color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

nav.scrolled .nav-links a {
    color: var(--dark);
    text-shadow: none;
    font-weight: 500;
}

nav.scrolled .nav-links a:hover {
    color: var(--accent);
}

.nav-links.active {
    display: flex !important;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 185px;
    height: auto;
    max-height: calc(100vh - 20px);
    background-color: rgba(26, 47, 47, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 18px 0 12px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 6px;
}

.nav-links.active li {
    margin: 0;
    width: 100%;
    text-align: left;
}

.nav-links.active a {
    font-size: 0.88rem;
    color: var(--white) !important;
    display: block;
    padding: 3px 0;
    letter-spacing: 1px;
    text-shadow: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 8px;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: background-color 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

nav.scrolled .menu-toggle span {
    background-color: var(--primary);
    box-shadow: none;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15)), url('../photo/public/hengchun-jungle-house-living-room.webp') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--light), transparent);
}

.hero-content {
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 30px;
    letter-spacing: 10px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.2);
}

.btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 109, 91, 0.25);
}

/* --- Section Titles --- */
section {
    padding: 150px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 100px;
    padding: 0 20px;
}

.section-title span {
    display: block;
    font-family: 'Dancing Script', cursive;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    letter-spacing: 5px;
}

.section-title .divider {
    width: 80px;
    height: 2px;
    background-color: var(--accent);
    margin: 0 auto;
}

/* SVG Section Dividers */
.section-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.divider-top {
    top: -1px;
    transform: rotate(180deg);
}

.section-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    fill: var(--light);
}

/* --- About Section --- */
.about-magazine {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
}

.magazine-content {
    padding-right: 50px;
}

.magazine-tag {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

.magazine-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--primary);
}

.magazine-text p {
    margin-bottom: 30px;
    color: #222;
    font-size: 1.1rem;
    text-align: justify;
    font-weight: 400;
}

.magazine-img-wrapper {
    position: relative;
    height: 600px;
}

.magazine-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-hover);
}

.magazine-img-deco {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--accent);
    z-index: -1;
}

/* --- Video Section --- */
.video-block {
    position: relative;
    padding: 80px 0 60px;
    margin-top: 100px;
}

.video-block-bg {
    position: absolute;
    top: 0;
    left: -5%;
    right: -5%;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a2a 100%);
    border-radius: 20px;
    z-index: -1;
    transform: skewY(-2deg);
    overflow: hidden;
}

.video-block-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,223,0,0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%);
}

.video-block .section-title span {
    color: rgba(255,255,255,0.7);
}

.video-block .section-title h2 {
    color: #fff !important;
}

.video-block .section-title .divider {
    background: var(--accent);
}

.video-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: visible;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.video-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), rgba(255,223,0,0.3), var(--accent));
    z-index: -1;
    animation: videoPulseGlow 3s ease-in-out infinite;
}

@keyframes videoPulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.005); }
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* Video badge */
.video-badge {
    position: absolute;
    top: -14px;
    left: 20px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(196,164,75,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-badge i {
    font-size: 0.7rem;
}

/* Video CTA */
.video-cta {
    text-align: center;
    margin-top: 20px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.video-cta i {
    margin-right: 6px;
    animation: ctaBounce 2s ease-in-out infinite;
}

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

/* Video highlights sidebar */
.video-highlights {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.video-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s ease, transform 0.3s ease;
}

.video-highlight-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(5px);
}

.video-highlight-item i {
    color: var(--accent);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.video-highlight-item h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.video-highlight-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

/* Scroll scale-in animation */
.video-scale-in {
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.video-scale-in.visible {
    transform: scale(1);
    opacity: 1;
}

@media (max-width: 992px) {
    .video-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .video-block {
        margin-top: 80px;
        padding: 60px 0 50px;
    }
    .video-block-bg {
        left: -3%;
        right: -3%;
    }
}

@media (max-width: 768px) {
    .video-block {
        margin-top: 60px;
        padding: 50px 0 40px;
    }
    .video-block-bg {
        border-radius: 12px;
        left: -2%;
        right: -2%;
    }
    .video-highlight-item {
        padding: 14px 16px;
    }
}

/* --- Carousel --- */
.carousel-container {
    margin-top: 150px;
    width: 100%;
}

.carousel-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
    min-width: 100%;
    height: 750px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    display: block;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.slide:hover::after {
    background: rgba(0, 0, 0, 0);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    width: 70px;
    height: 70px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
}

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

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* --- Rooms --- */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.room-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.room-card:hover {
    transform: translateY(-20px);
    box-shadow: var(--shadow-hover);
}

.room-img {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}


.room-info {
    padding: 45px;
}

.room-info h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 20px;
}

.room-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.room-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Global Amenities --- */
.global-amenities {
    margin-top: 150px;
    background: var(--white);
    padding: 100px 60px;
    box-shadow: var(--shadow);
    position: relative;
}

.global-amenities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
}

.global-amenities h2 {
    text-align: center;
    margin-bottom: 70px;
    font-size: 2.2rem;
    color: var(--primary);
    letter-spacing: 3px;
    width: 100%;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 50px;
}

.amenity-box {
    text-align: center;
    transition: var(--transition);
}

.amenity-box:hover {
    transform: translateY(-10px);
}

.amenity-box i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
    transition: var(--transition);
}

.amenity-box:hover i {
    color: var(--primary);
}

.amenity-box span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 1px;
}

/* --- Pricing Cards --- */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 35px 45px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
    transition: height 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

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

/* 推薦卡片（旺季） */
.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 109, 91, 0.15);
    z-index: 2;
}

.pricing-card.featured::before {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    height: 6px;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow: 0 30px 70px rgba(0, 109, 91, 0.2);
}

.pricing-card.featured:hover::before {
    height: 10px;
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--primary), #00a67e);
    color: white;
    padding: 6px 45px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(0, 109, 91, 0.3);
}

.pricing-card-season {
    display: inline-block;
    padding: 8px 22px;
    background: rgba(0, 109, 91, 0.06);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 109, 91, 0.1);
}

.pricing-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.pricing-card-period {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.pricing-card-divider {
    width: 50px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 35px;
}

.pricing-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pricing-card-row:last-child {
    border-bottom: none;
}

.pricing-card-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 1px;
}

.pricing-card-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    transition: transform 0.3s ease, color 0.3s ease;
}

.pricing-card:hover .pricing-card-price {
    color: var(--primary);
    transform: scale(1.08);
}

.pricing-card-note {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #bbb;
    letter-spacing: 1px;
}

/* --- Calendar Styles --- */
.calendar-section {
    margin-top: 80px;
}

.calendar-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0, 109, 91, 0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-header h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: 2px;
}

.calendar-nav {
    display: flex;
    gap: 15px;
}

.calendar-btn-nav {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.calendar-btn-nav:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 109, 91, 0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-weekday {
    font-weight: 700;
    color: var(--accent);
    padding: 10px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-align: center;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.calendar-day.booked {
    background-color: #FFF0F0;
    color: #D32F2F;
    text-decoration: line-through;
    opacity: 0.8;
}

.calendar-day.available {
    background-color: #F8F9FA;
    color: #ADB5BD;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.today {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    font-size: 0.9rem;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.legend-booked {
    background-color: #FFF0F0;
    border: 1px solid #FFCDD2;
}

.legend-available {
    background-color: #F8F9FA;
    border: 1px solid #E9ECEF;
}

.line-reserve-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #00B900;
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 1.1rem;
    letter-spacing: 2px;
    box-shadow: 0 10px 20px rgba(0, 185, 0, 0.2);
}

.line-reserve-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 185, 0, 0.3);
    background: #00a000;
}

.line-reserve-btn i {
    font-size: 1.4rem;
}

/* --- Calendar Enhancements --- */



/* Loading Overlay */
.calendar-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 24px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.calendar-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.calendar-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 109, 91, 0.15);
    border-top-color: var(--primary);
    border-right-color: var(--accent);
    border-radius: 50%;
    animation: calSpin 1s linear infinite;
    margin-bottom: 14px;
}

.calendar-loading span {
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: 500;
}

@keyframes calSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Calendar grid container for fade */
.calendar-container {
    position: relative;
}

.calendar-grid {
    transition: opacity 0.3s ease;
}

.calendar-grid.fading {
    opacity: 0;
}

/* Stagger animation for day cells */
@keyframes calDayPop {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(8px);
    }

    60% {
        transform: scale(1.05) translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.calendar-day.cal-anim {
    opacity: 0;
    animation: calDayPop 0.35s ease forwards;
}

/* Today's date pulsing glow */
@keyframes todayPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 109, 91, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 109, 91, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 109, 91, 0);
    }
}

.calendar-day.today-pulse {
    animation: todayPulse 2.5s ease-in-out infinite, calDayPop 0.35s ease forwards !important;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9) !important;
    border: 2px solid var(--primary) !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    position: relative;
    z-index: 2;
}

/* Hover tooltip for available dates */
.calendar-day.available {
    position: relative;
    cursor: pointer;
}

.calendar-day.available:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 109, 91, 0.2);
    background: linear-gradient(135deg, #E8F5E9, #DCFCE7) !important;
    border-color: var(--primary) !important;
    z-index: 3;
}

.calendar-day.available::after {
    content: '可預訂 ✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    letter-spacing: 1px;
    font-weight: 600;
}

.calendar-day.available:hover::after {
    opacity: 1;
}

/* Ripple effect on click */
.cal-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 109, 91, 0.3);
    transform: scale(0);
    animation: calRipple 0.6s ease-out;
    pointer-events: none;
}

@keyframes calRipple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Booked date hover (subtle) */
.calendar-day.booked {
    cursor: not-allowed;
}

.calendar-day.booked:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .calendar-day.available:hover {
        transform: scale(1.08);
    }
}


/* Animations */
.leaf-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.leaf-container {
    z-index: 100;
}



.falling-leaf {
    position: absolute;
    top: -100px;
    color: #004d40;
    opacity: 0.6;
    font-size: 2rem;
    animation: fall linear forwards;
    z-index: 100;
}

@keyframes fall {
    0% {
        top: -100px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        top: 100%;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}



/* ===== About Section Effects ===== */

/* --- 1. Ticker / Marquee --- */
.about-ticker {
    width: 100%;
    background: var(--primary);
    color: #fff;
    overflow: hidden;
    padding: 12px 0;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    margin-bottom: 60px;
}

.about-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 35s linear infinite;
    gap: 0;
    will-change: transform;
}

.about-ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 32px;
    font-size: 0.83rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.ticker-item i {
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .about-ticker {
        position: relative;
        z-index: 10;
        padding: 10px 0;
    }
    .ticker-item {
        font-size: 0.78rem;
        padding: 0 20px;
        letter-spacing: 1px;
    }
}

@media (max-width: 992px) {
    #about {
        padding-top: 60px !important;
    }
    #about > .container {
        margin-top: 30px;
    }
}

/* --- 2. Animated Divider Line --- */
.about-animated-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0;
}

.anim-line {
    flex: 1;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.anim-line.animate {
    transform: scaleX(1);
}

.anim-divider-icon {
    color: var(--accent);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

.anim-divider-icon.animate {
    opacity: 1;
    transform: scale(1);
}

/* --- 3. Floating Leaf Decorations --- */
.about-float-leaf {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    animation: leafFloat 7s ease-in-out infinite;
}

@keyframes leafFloat {
    0%   { transform: translateY(0px) rotate(0deg);   opacity: 0; }
    15%  { opacity: 0.12; }
    50%  { transform: translateY(-25px) rotate(15deg); opacity: 0.15; }
    85%  { opacity: 0.12; }
    100% { transform: translateY(0px) rotate(0deg);   opacity: 0; }
}

@media (max-width: 768px) {
    .about-float-leaf { display: none; }
}

/* --- 4. 3D Tilt on Image --- */
.magazine-img-wrapper {
    perspective: 1000px;
}

.magazine-img-tilt-inner {
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.magazine-img-wrapper:hover .magazine-img-tilt-inner {
    box-shadow: -12px 20px 50px rgba(0,0,0,0.2);
}

/* --- 5. Typewriter Effect --- */
.typewriter-tag {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent);
    max-width: 0;
    animation: typewriterExpand 2.2s steps(12, end) 0.3s forwards, blinkCursor 0.75s step-end infinite 2.6s;
}

@keyframes typewriterExpand {
    to { max-width: 24ch; }
}

@keyframes blinkCursor {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

.paw-print {
    position: absolute;
    color: rgba(93, 64, 55, 0.25);
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 2;
    animation: pawFade 3s forwards;
}

@keyframes pawFade {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}


/* --- Local SEO Block --- */
.local-seo-section {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid #eee;
    width: 100%;
    overflow: hidden;
}

.landmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.landmark-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 10px;
    transition: var(--transition);
}

.landmark-item:hover {
    background: #fff;
    box-shadow: var(--shadow);
}

.landmark-item i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 30px;
    text-align: center;
}

.landmark-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.landmark-info p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.contact-info {
    padding: 60px;
    background: var(--white);
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.info-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary);
    width: 30px;
}

.info-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
    letter-spacing: 1px;
}

.info-item p {
    color: #666;
    font-weight: 300;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 185, 0, 0.4);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(0, 185, 0, 0);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 185, 0, 0);
        transform: scale(1);
    }
}

.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #00B900;
    color: white;
    padding: 12px 30px 12px 12px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 15px;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 1px;
    animation: pulse-glow 2.5s infinite ease-in-out;
    max-width: 100%;
    box-sizing: border-box;
}

.line-btn img {
    height: 45px;
    width: 45px;
    border-radius: 4px;
}

.line-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 185, 0, 0.2);
    animation: none;
}

.map-container {
    height: 100%;
    min-height: 550px;
    box-shadow: var(--shadow-hover);
    filter: grayscale(20%) contrast(1.1);
    width: 100%;
    box-sizing: border-box;
}

.map-container iframe {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 109, 91, 0.15);
}

/* --- FAB & Footer --- */
.fab-container {
    position: fixed;
    bottom: 50px;
    right: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    pointer-events: none;
}

.fab {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    font-size: 1.6rem;
    pointer-events: auto;
    position: relative;
}

.fab:hover {
    transform: translateY(-8px) scale(1.05);
}

.fab.line {
    background-color: #00B900;
}

.fab.fb {
    background-color: #1877F2;
}

.fab.ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 80px 0;
    width: 100%;
}

footer h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.footer-contact {
    margin: 30px 0;
    opacity: 0.9;
    font-size: 1.05rem;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px solid rgba(212, 163, 115, 0.3);
    padding-bottom: 2px;
}

.footer-contact a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.footer-divider {
    opacity: 0.3;
}

footer p {
    opacity: 0.5;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        gap: 12px;
    }
    .footer-divider { display: none; }
    footer h3 { font-size: 1.8rem; }
}

/* Responsive */
@media (max-width: 1200px) {

    .about-magazine,
    .contact-grid {
        gap: 50px;
    }

    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {

    .about-magazine,
    .contact-grid,
    .rules-wrapper {
        grid-template-columns: 1fr;
    }

    .magazine-content {
        padding-right: 0;
        order: 2;
    }

    .magazine-img-wrapper {
        height: 350px;
        order: 1;
        margin-top: 20px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        padding: 25px 40px;
    }

    nav.scrolled {
        padding: 15px 40px;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    section {
        padding: 100px 0;
    }
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .magazine-title {
        font-size: 2.5rem;
    }

    .slide {
        height: 500px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-12px);
    }

    .fab-container {
        bottom: 20px;
        right: 20px;
        gap: 15px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .fab::after {
        display: none !important;
    }

    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 10px;
    }

    .amenity-box i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .amenity-box span {
        font-size: 0.75rem;
        display: block;
        line-height: 1.2;
    }

    .contact-info {
        padding: 40px 25px;
    }

    .magazine-img-wrapper {
        height: 350px;
    }

    .calendar-container {
        padding: 20px;
    }

    .calendar-day {
        font-size: 0.9rem;
    }

    .calendar-weekday {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 20px;
    }

    .pricing-card {
        padding: 40px 25px 35px;
    }

    .pricing-card-price {
        font-size: 1.3rem;
    }
}


/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 50px;
    left: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 109, 91, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 163, 115, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ===== 1. Scroll Progress Bar ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== Weather Widget ===== */
.weather-widget {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-right: 10px;
}

.weather-widget.loaded {
    display: inline-flex;
}

.weather-widget i {
    font-size: 1rem;
    color: var(--accent);
}

.weather-temp {
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
}

nav.scrolled .weather-widget {
    background: rgba(0, 109, 91, 0.08);
    border-color: rgba(0, 109, 91, 0.15);
    color: #555;
    text-shadow: none;
}

nav.scrolled .weather-temp {
    color: var(--primary);
}

nav.scrolled #weatherSuggestion {
    color: #666 !important;
}

@media (max-width: 768px) {
    .weather-widget {
        display: none !important;
    }
}


/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 109, 91, 0.3);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Copy Button ===== */
.copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.copy-link-btn:hover {
    background: var(--primary);
    color: white;
}



/* ===== 3. Stats Counter ===== */
.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Noto Serif TC', serif;
    line-height: 1;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 6px;
    letter-spacing: 1px;
}

/* ===== 4. FAQ Accordion ===== */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
}

.faq-question h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.5;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.3s, background 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 24px;
}

.faq-answer p {
    margin: 0 0 18px;
    color: #555;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px;
}

/* ===== 5. Room Card Hover Overlay ===== */
.room-img {
    position: relative;
    overflow: hidden;
}

.room-img::after {
    content: '點擊查看更多 +';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.room-card:hover .room-img::after {
    opacity: 1;
}

.room-card:hover .room-img>div,
.room-card:hover .room-img {
    transform: scale(1.04);
    transition: transform 0.4s ease;
}

/* ===== Loading Screen Animation ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0A1B18 0%, #153A32 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.loading-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #D4A373;
    border-right-color: rgba(212, 163, 115, 0.4);
    border-radius: 50%;
    animation: loadingSpin 1.5s linear infinite;
}

.loading-ring::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: #f4d03f;
    border-radius: 50%;
    animation: loadingSpin 2s linear infinite reverse;
}

.loading-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    animation: loadingPulse 2s ease-in-out infinite;
}

.loading-text {
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 5px;
    font-weight: 300;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(10px);
    animation: loadingFadeUp 0.8s ease forwards 0.3s;
}

.loading-subtext {
    color: #D4A373;
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-family: 'Cinzel', serif;
    opacity: 0;
    transform: translateY(10px);
    animation: loadingFadeUp 0.8s ease forwards 0.5s;
}

.loading-leaf {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    animation: loadingFloat 3s ease-in-out infinite;
}

@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingPulse {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(212, 163, 115, 0.5));
    }
}

@keyframes loadingFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }

    50% {
        transform: translateY(-20px) rotate(15deg);
        opacity: 0.15;
    }
}

body.is-loading {
    overflow: hidden;
}

/* ===== Carousel Touch Hint ===== */
@media (max-width: 768px) {
    .carousel-wrapper {
        position: relative;
    }

    .carousel-wrapper::after {
        content: '← 滑動瀏覽 →';
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        color: white;
        padding: 6px 18px;
        border-radius: 20px;
        font-size: 0.75rem;
        letter-spacing: 2px;
        opacity: 1;
        transition: opacity 0.5s ease;
        pointer-events: none;
        z-index: 5;
        animation: swipeHintFade 4s ease forwards 2s;
    }

    @keyframes swipeHintFade {
        to {
            opacity: 0;
        }
    }
}

/* --- Travel Guide Section --- */
.guide-section {
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
}

.guide-chapter {
    margin-bottom: 0;
    padding: 80px 0;
}

.guide-chapter .container {
    display: flex;
    align-items: flex-start;
    /* Align image and text at top */
    justify-content: space-between;
    max-width: 1200px;
    gap: 60px;
    margin: 0 auto;
}

.guide-chapter:nth-child(even) .container {
    flex-direction: row-reverse;
}

@media (max-width: 991px) {
    .guide-chapter {
        padding: 60px 0;
    }

    .guide-chapter .container {
        flex-direction: column !important;
        gap: 50px;
    }
}

.bg-white {
    background-color: #FFFFFF;
}

.bg-sand {
    background-color: #FDF6E3;
}

.bg-milk-tea {
    background-color: #F7EFE5;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.explore-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.explore-card:hover {
    transform: translateY(-10px);
}

.explore-card-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 15px 0;
    font-weight: 700;
}

.explore-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.explore-card-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.explore-card-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.explore-card-tip {
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(135, 172, 137, 0.15);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .explore-grid {
        grid-template-columns: 1fr;
    }
}

.float-icon {
    display: inline-block;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.guide-full-img {
    width: 100%;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    max-height: 500px;
}

/* --- Guide Preview Cards --- */
.guide-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.guide-preview-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    display: block;
    color: inherit;
}

.guide-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.guide-preview-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.guide-preview-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.guide-preview-card:hover .guide-preview-img-wrapper img {
    transform: scale(1.08);
}

.guide-preview-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 109, 91, 0.9);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.guide-preview-body {
    padding: 25px;
}

.guide-preview-body h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.guide-preview-body p {
    font-size: 0.98rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.guide-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.guide-preview-card:hover .guide-preview-link {
    gap: 14px;
}

@media (max-width: 768px) {
    .guide-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guide-preview-img-wrapper {
        height: 180px;
    }

    .guide-preview-body {
        padding: 20px;
    }
}


.bg-jungle {
    background-color: #006D5B;
    color: #FFFFFF;
}

.bg-warm-orange {
    background-color: #FFF3E0;
    color: #333333;
}

.bg-jungle h3,
.bg-jungle p,
.bg-jungle li,
.bg-jungle .guide-icon {
    color: #FFFFFF !important;
}

.bg-jungle .guide-text li::before {
    color: #FFFFFF;
}

.bg-midnight {
    background-color: #191970;
    color: #F0F8FF;
    /* AliceBlue / Meteor Silver equivalent */
    position: relative;
    overflow: hidden;
}

.bg-midnight h3,
.bg-midnight p,
.bg-midnight li,
.bg-midnight .guide-icon {
    color: #F0F8FF !important;
    position: relative;
    z-index: 2;
}

.bg-midnight .guide-text li::before {
    color: #F0F8FF;
}

/* Twinkling star animation for the background */
@keyframes twinkle {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.bg-midnight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, white, transparent),
        radial-gradient(1px 1px at 30% 60%, white, transparent),
        radial-gradient(2px 2px at 50% 10%, white, transparent),
        radial-gradient(1px 1px at 70% 80%, white, transparent),
        radial-gradient(2px 2px at 90% 40%, white, transparent);
    background-size: 150px 150px;
    animation: twinkle 4s infinite ease-in-out;
    z-index: 1;
    opacity: 0.6;
}

.bg-midnight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 20% 80%, white, transparent),
        radial-gradient(2px 2px at 40% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, white, transparent),
        radial-gradient(2px 2px at 80% 20%, white, transparent),
        radial-gradient(1px 1px at 95% 90%, white, transparent);
    background-size: 100px 100px;
    animation: twinkle 5s infinite ease-in-out reverse;
    z-index: 1;
    opacity: 0.5;
}

.guide-content {
    width: 45%;
    padding: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .guide-content {
        padding: 0 20px;
    }
}

.guide-chapter-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.3;
}

.guide-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-top: -5px;
}

.guide-text h4 {
    font-size: 1.3rem;
    margin: 25px 0 10px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.guide-text ul {
    list-style: none;
    padding: 0;
}

.guide-text li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.guide-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.guide-img-wrapper {
    width: 53%;
    /* Takes more width to fit the horizontal dogs nicely */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 991px) {

    .guide-img-wrapper,
    .guide-content {
        width: 100%;
        margin: 0;
    }
}

.guide-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.guide-img-wrapper:hover .guide-img {
    transform: scale(1.05);
}

/* --- Custom Carousel/Slider classes --- */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    display: block;
}

.slider-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn-prev {
    left: 10px;
}

.slider-btn-next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .slider-slide img {
        height: 250px;
    }
}
/* --- Premium AEO Tables --- */
.aeo-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 109, 91, 0.08), 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 109, 91, 0.1);
}

.aeo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    text-align: left;
    min-width: 600px;
}

.aeo-table th {
    background: linear-gradient(135deg, var(--primary) 0%, #004d40 100%);
    color: #fff;
    padding: 20px 25px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--accent);
}

.aeo-table th:first-child {
    border-top-left-radius: 12px;
}
.aeo-table th:last-child {
    border-top-right-radius: 12px;
}

.aeo-table td {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #4a4a4a;
    line-height: 1.6;
    transition: background 0.3s ease;
}

.aeo-table tbody tr:nth-child(even) td {
    background-color: rgba(0, 109, 91, 0.015);
}

.aeo-table tbody tr:hover td {
    background-color: #fdfaf6;
    color: var(--primary);
}

.aeo-table tr:last-child td {
    border-bottom: none;
}
.aeo-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.aeo-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.aeo-table td:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* --- AEO FAQ Styling --- */
.aeo-faq-box {
    background: #fff;
    border-left: 4px solid var(--accent);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.aeo-faq-box h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aeo-faq-box h3::before {
    content: "Q:";
    color: var(--accent);
    font-weight: 900;
    font-size: 1.3rem;
}

.aeo-faq-box p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.aeo-faq-box p::before {
    content: "A:";
    color: var(--primary);
    font-weight: 900;
    font-size: 1.2rem;
    padding-top: 2px;
}
.aeo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: block;
}