:root {
    --primary: #5d6d31;
    /* Olive green */
    --primary-dark: #3e4b1a;
    --accent: #d4a373;
    /* Sandy tan */
    --accent-light: #faedcd;
    --dark: #1a1c14;
    --light: #fefae0;
    --white: #ffffff;
    --gray: #6b705c;
    --spacing: 80px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
    /* Increased for better readability */
    overflow-x: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    /* Prevents long strings from breaking layout */
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing) 0;
}

.bg-light {
    background-color: var(--light);
}

.bg-dark {
    background-color: var(--dark);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center !important;
}

.mb-50 {
    margin-bottom: 50px;
}

.section-subtitle {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 20px;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
}

.contact-info a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
}

.contact-info a[href^="tel:"]:hover {
    text-decoration: underline;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--gray);
}

.italic {
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(93, 109, 49, 0.3);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn.secondary:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    /* Slightly tighter top/bottom */
    transition: var(--transition);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    /* More opaque */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .logo,
#navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    color: var(--white);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-book {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 30px;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content .badge {
    display: inline-block;
    padding: 5px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(34px, 8vw, 72px);
    margin-bottom: 20px;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
        line-height: 1.4;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.6;
    }
}

.hero-content p {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 40px;
    opacity: 0.9;
    padding: 0 10px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}


/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Balance 50/50 for cleaner look */
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.image-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.text-block {
    max-width: 600px;
    /* Prevent text from spanning too wide */
}

.grid-2.rev {
    grid-template-columns: 1fr 1fr;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures images fill space without distortion */
    display: block;
    transition: transform 0.8s ease;
    min-height: 400px;
    /* Ensures a minimum presence */
    max-height: 600px;
    /* Prevents excessive vertical stretching */
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.altitude-tag {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.altitude-tag span {
    font-size: 12px;
    opacity: 0.8;
}

.altitude-tag strong {
    display: block;
    font-size: 24px;
    font-family: 'Playfair Display';
}

.features-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.features-list i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 18px;
    flex-shrink: 0;
    /* Prevents icon from shrinking */
}

.features-list div {
    flex: 1;
}

.features-list strong {
    display: block;
    /* Moves the description to the next line */
    margin-bottom: 4px;
    color: var(--dark);
    font-size: 1.1em;
}

/* Room Cards */
.room-grid {
    display: flex;
    justify-content: center;
}

.room-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    text-align: left;
}

.room-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.room-info {
    padding: 30px;
}

.room-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.room-info .tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 600;
    margin-top: 20px;
}

/* Facilities */
.facility-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.facility-item {
    flex: 1 1 200px;
    max-width: 250px;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1200px) {
    .facility-item {
        flex: 1 1 30%;
        /* 3 per row */
    }
}

@media (max-width: 768px) {
    .facility-item {
        flex: 1 1 45%;
        /* 2 per row */
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .facility-item {
        flex: 1 1 100%;
        /* 1 per row */
    }
}

.facility-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

/* Unused Stack removed */

.exp-item {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.exp-count {
    font-family: 'Playfair Display';
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}

.exp-content h3 {
    margin-bottom: 10px;
}

.exp-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* Reviews */
.review-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.review-card {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stars {
    color: #f1c40f;
    margin-bottom: 20px;
}

.review-card p {
    font-style: italic;
    font-size: 18px;
    margin-bottom: 20px;
}

.author {
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Contact */
.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.line-qr {
    width: 120px;
    height: 120px;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 10px;
    background: white;
}

.social-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.social-links a i {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.social-links a:hover {
    color: var(--primary);
}

.social-links a:hover i {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.map-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid #f0f0f0;
}

.footer-logo {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 992px) {

    .grid-2,
    .image-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    #hero h1 {
        font-size: 54px;
    }

    .image-stack {
        height: 450px;
    }

    .nav-links {
        display: none;
    }

    .additional-services {
        grid-template-columns: 1fr;
    }
}

/* Four Seasons Section */
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.season-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.season-img {
    height: 200px;
    overflow: hidden;
}

.season-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.season-card:hover .season-img img {
    transform: scale(1.1);
}

.season-info {
    padding: 20px;
}

.season-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.season-info p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .room-swiper {
        height: 350px;
    }

    .price-table {
        font-size: 13px;
    }

    .price-table th,
    .price-table td {
        padding: 10px 8px;
    }

    .facility-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
    }

    .facility-item {
        padding: 20px 10px;
    }

    .hero-content {
        padding-top: 80px;
        /* Push content down to avoid overlapping with fixed navbar */
        padding-bottom: 20px;
    }

    .hero-content .badge {
        font-size: 11px;
        padding: 5px 12px;
        white-space: normal;
        /* Allow badge to wrap if necessary */
        max-width: 90%;
        line-height: 1.4;
    }

    .seasons-grid {
        grid-template-columns: 1fr;
    }

    .review-slider {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .review-card {
        padding: 30px 20px;
    }

    .attr-card p strong {
        white-space: nowrap;
    }

    .additional-services {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    /* Revert to Scrollable Table for better At-a-Glance comparison */
    .price-table-container {
        margin: 20px 0;
        overflow-x: auto;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        background: var(--white);
        -webkit-overflow-scrolling: touch;
    }

    .price-table {
        display: table !important;
        /* Force back to table */
        min-width: 650px;
        /* Ensure columns don't crash */
        border-collapse: collapse;
    }

    .price-table thead {
        display: table-header-group !important;
    }

    .price-table tr {
        display: table-row !important;
        background: transparent;
        border-radius: 0;
        margin-bottom: 0;
        padding: 0;
        box-shadow: none;
    }

    .price-table th,
    .price-table td {
        display: table-cell !important;
        padding: 15px 10px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        white-space: normal;
    }

    .price-table th {
        background: var(--primary);
        color: var(--white);
        white-space: nowrap;
    }

    .scroll-hint {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 15px;
        background: var(--accent-light);
        color: var(--primary-dark);
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 12px;
        float: right;
        animation: pulse-hint 2s infinite;
        clear: both;
    }

    .price-section-wrapper {
        margin: 20px 0;
    }

    .price-table-container {
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

    @keyframes pulse-hint {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(93, 109, 49, 0.4);
        }

        70% {
            transform: scale(1.05);
            box-shadow: 0 0 0 10px rgba(93, 109, 49, 0);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(93, 109, 49, 0);
        }
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .logo {
        font-size: 24px;
    }
}

/* Pricing Table Styles for Desktop */
.price-section-wrapper {
    margin: 40px auto;
    width: 100%;
    position: relative;
    text-align: left;
}

.price-table-container {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    background: var(--white);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 650px;
    /* Increased slightly to ensure scrolling trigger */
}

.price-table th {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    font-weight: 600;
}

.price-table td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.price-table td strong {
    font-size: 1.3em;
    color: var(--primary);
}

.img-brighten {
    filter: brightness(1.6) contrast(1.1) saturate(1.2);
    box-shadow: 0 0 30px rgba(255, 244, 180, 0.3);
    /* Add a subtle warm glow */
}

.price-table tr:last-child td {
    border-bottom: none;
}

.special-promo {
    margin-top: 30px;
}

.promo-item {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 16px;
}

.promo-item i {
    margin-right: 10px;
    color: var(--primary);
}

/* Additional Services & Rules */
.additional-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    border-left: 5px solid var(--primary);
    color: var(--dark);
}

.service-card.notice {
    border-left-color: var(--accent);
}

.service-card ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--gray);
    line-height: 1.5;
}

.service-card ul li i {
    color: var(--primary);
    width: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.service-card ul li span {
    display: block;
    font-size: 13px;
    color: var(--accent);
    margin-top: 2px;
}

.service-card h4 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: keep-all;
    /* Prevent title from breaking */
}

/* Attraction Grid */
.attraction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.attr-card {
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 5px solid var(--accent);
    transition: var(--transition);
}

.attr-card:hover {
    transform: translateY(-10px);
}

.attr-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.attr-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.attr-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Swiper Slider */
.room-swiper {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Professional standard for modern displays */
    max-height: 600px;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .room-swiper {
        aspect-ratio: 4 / 3;
        /* Slightly taller on mobile for better visibility */
        height: auto;
    }
}

.room-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.room-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-premium {
    filter: brightness(1.03) saturate(1.05);
    /* Reduced filter to maintain image quality */
    transition: var(--transition);
}

.img-premium:hover {
    filter: sepia(0) brightness(1.05) contrast(1.08) saturate(1.2);
}


.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 18px;
    text-align: left;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* Image Grid 2 (Non-overlapping) */
.image-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.image-grid-2 .image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.image-grid-2 .img-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="bottom"] {
    transform: translateY(40px);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

.revealed {
    opacity: 1;
    transform: translate(0, 0) !important;
}