/* =====================================================
   優美民宿 Yumei's Hostel — styles.css
   Palette: Sage Green, White, Deep Navy text
   ===================================================== */

/* --- Design Tokens --- */
:root {
    --sage:        #b5c4bc;   /* Main section background */
    --sage-dark:   #9aafa7;   /* Alternate section background */
    --sage-mid:    #a8b9b0;
    --white:       #ffffff;
    --off-white:   #f7f7f5;
    --text:        #2c2c2c;
    --text-muted:  #5a5a5a;
    --text-light:  #7a7a7a;
    --nav-text:    #333333;
    --accent:      #4a7c6f;
    --border:      rgba(0, 0, 0, 0.08);
    --radius-sm:   4px;
    --radius-md:   8px;
    --max-w:       1100px;
    --max-w-sm:    740px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--text);
    font-family: 'Noto Sans TC', 'PingFang TC', '微軟正黑體', Tahoma, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3 {
    font-weight: 500;
    line-height: 1.3;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.75;
}

img {
    max-width: 100%;
    display: block;
    height: 100%;
    /*object-fit: cover;*/    
}

ul {
    padding-left: 0;
    list-style: none;
}

ul li {
    padding: 0.35rem 0;
    padding-left: 1.1rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.6;
}

ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Containers --- */
.container {
    width: min(100% - 3rem, var(--max-w));
    margin: 0 auto;
}

.container-narrow {
    max-width: var(--max-w-sm);
}

/* =====================================================
   HEADER / NAV
   透明起始 → 滾動後白底
   ===================================================== */

.header-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.header-nav-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

header {
    padding: 1.2rem 0 0.3rem;
    text-align: center;
    transition: padding 0.35s ease;
}

.header-nav-wrapper.scrolled header {
    padding: 0.8rem 0 0.3rem;
}

/* 初始：白色文字（疊在 Hero 上） */
.header-logo {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #ffffff;
    transition: color 0.35s ease;
}

.header-nav-wrapper.scrolled .header-logo {
    color: var(--nav-text);
}

nav {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    padding: 0.5rem 1rem 1rem;
    transition: padding 0.35s ease;
}

.header-nav-wrapper.scrolled nav {
    padding: 0.4rem 1rem 0.8rem;
}

/* 初始：白色文字 + 半透明 pill 背景 */
nav a {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.42rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    letter-spacing: 0.3px;
    transition: color 0.25s ease, background 0.25s ease;
}

nav a::after {
    display: none;
}

nav a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* 滾動後：深色文字 + 底線 */
.header-nav-wrapper.scrolled nav a {
    color: var(--nav-text);
    background: transparent;
    border-radius: 0;
    padding: 0.3rem 1.1rem;
}

.header-nav-wrapper.scrolled nav a::after {
    display: block;
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1.1rem;
    right: 1.1rem;
    height: 1.5px;
    background: var(--nav-text);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.header-nav-wrapper.scrolled nav a:hover {
    color: var(--accent);
    background: transparent;
}

.header-nav-wrapper.scrolled nav a:hover::after {
    transform: scaleX(1);
    background: var(--accent);
}

.header-nav-wrapper.scrolled nav a.active::after {
    transform: scaleX(1);
}

nav a.active {
    background: rgba(255, 255, 255, 0.32);
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Replace with your own photo */
    background-image: url('./image/backgroundimage.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 42, 50, 0.52);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 0 1.5rem;
    max-width: 820px;
}

.hero-sub {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1rem;
}

.hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 500;
    color: var(--white);
    margin: 0 0 0.5rem;
    letter-spacing: 0.5px;
}

.hero-en {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    margin: 0 0 2.2rem;
}

/* Hollow / outline CTA button */
.btn-outline {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    border: 1.5px solid var(--white);
    color: var(--white);
    background: transparent;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    transition: background 0.25s ease, color 0.25s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--text);
    opacity: 1;
}

/* =====================================================
   SECTION BASE BACKGROUNDS
   ===================================================== */

/* Push content below fixed header */
main > section:first-child {
    /* Hero handles this itself */
}

section {
    /* sections start right below hero */
}

.section-sage {
    background: var(--sage);
    padding: 5rem 1.5rem;
}

.section-sage-dark {
    background: var(--sage-mid);
    padding: 5rem 1.5rem;
}

.section-white {
    background: var(--white);
    padding: 5rem 1.5rem;
}

/* =====================================================
   SECTION TITLES
   ===================================================== */

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 500;
    text-align: center;
    color: var(--text);
    margin: 0 0 0.7rem;
    letter-spacing: 0.3px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.97rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.section-sub-sm {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: -1.5rem auto 2.5rem;
}

.text-body {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: var(--max-w-sm);
    margin: 0 auto;
}

/* =====================================================
   TWO COLUMN — ABOUT
   ===================================================== */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    padding: 0 !important;
}

.two-col-text {
    padding: 4rem 3rem 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.two-col-text h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: var(--text);
    margin: 0 0 1.2rem;
}

.two-col-text p {
    color: var(--text-muted);
    font-size: 0.97rem;
    max-width: 480px;
    margin: 0 0 1.5rem;
}

.wangs-logo-block img {
    max-width: 270px;
    height: auto;
    margin-top: -1rem;
}

.two-col-image {
    overflow: hidden;
}

.two-col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
}

/* =====================================================
   FACILITY GRID
   ===================================================== */

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.facility-card {
    background: transparent;
    text-align: center;
}

.facility-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sage-dark);
    border-radius: var(--radius-sm);
    margin-bottom: 1.1rem;
}

.facility-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.facility-card:hover .facility-img-wrap img {
    transform: scale(1.04);
}

.facility-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.6rem;
}

.facility-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    align-items: flex-start;
}

.testimonial-img {
    width: 140px;
    min-width: 140px;
    height: 100px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--sage);
    flex-shrink: 0;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-body h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.7rem;
}

.testimonial-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* =====================================================
   ROOMS GRID
   ===================================================== */

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.room-card {
    background: transparent;
    text-align: left;
}

.room-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--sage-dark);
    margin-bottom: 1rem;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.room-card:hover .room-img img {
    transform: scale(1.04);
}

.room-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.6rem;
    text-align: center;
}

.room-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* =====================================================
   HOW TO BOOK — STEPS
   ===================================================== */

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.step-item {
    text-align: center;
    max-width: 240px;
    padding: 1.5rem;
}

.step-num {
    width: 52px;
    height: 52px;
    border: 1.5px solid var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text);
    margin: 0 auto 1rem;
    border-radius: var(--radius-sm);
}

.step-item h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.6rem;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.step-divider {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: var(--text);
    opacity: 0.3;
    margin-bottom: 2rem;
    align-self: flex-start;
    margin-top: 3.6rem;
}

/* =====================================================
   CHECK-IN SPLIT SECTION
   ===================================================== */

.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    background: var(--off-white);
}

.split-image {
    overflow: hidden;
    background: var(--sage);
}

.split-image img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.split-text {
    padding: 4rem 4rem 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-text h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 1.5rem;
}

/* =====================================================
   NEWS GRID
   ===================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-item {
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    border: 1px solid rgba(255,255,255,0.7);
}

.news-item h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.7rem;
}

.news-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 0 0.8rem;
}

.news-item time {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =====================================================
   CONTACT
   ===================================================== */

.contact-info {
    max-width: var(--max-w-sm);
    margin: 0 auto;
}

.contact-info p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0.7rem 0;
}

.contact-info strong {
    color: var(--text);
    font-weight: 500;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background: var(--white);
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
}

.social-icon:hover {
    color: var(--accent);
    background: rgba(74,124,111,0.08);
    opacity: 1;
}

.footer-address {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.4rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* =====================================================
   SPACER — push content below fixed header
   ===================================================== */

/* The hero is 100vh and starts at top 0, header is fixed on top of it.
   All other sections after hero need no extra spacer since hero is full-height. */

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .room-grid,
    .facility-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .two-col-text {
        padding: 3rem 1.5rem;
        order: 1;
    }

    .two-col-image {
        order: 0;
    }

    .two-col-image img {
        min-height: 280px;
    }

    .section-split {
        grid-template-columns: 1fr;
    }

    .split-image {
        min-height: 260px;
    }

    .split-text {
        padding: 2.5rem 1.5rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .room-grid,
    .facility-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-divider {
        width: 1px;
        height: 30px;
        max-width: none;
        margin: 0 0 0 0;
        align-self: center;
    }

    nav a {
        font-size: 0.88rem;
        padding: 0.3rem 0.7rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-sage,
    .section-sage-dark,
    .section-white {
        padding: 3.5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        font-size: 0.95rem;
    }

    nav a {
        font-size: 0.82rem;
        padding: 0.25rem 0.55rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .testimonial-card {
        flex-direction: column;
    }

    .testimonial-img {
        width: 100%;
        height: 160px;
    }
}

/* =====================================================
   PARKING HERO VARIANT
   ===================================================== */

.hero-parking {
    background-image: url('./image/停車背景.jpg');
    min-height: 78vh;
}

/* No CTA button on parking hero — just text + sub */
.hero-parking .hero-content .hero-en {
    font-size: 1rem;
    margin-bottom: 0;
}

/* =====================================================
   SECTION SPLIT — REVERSED (image right)
   ===================================================== */

.section-split-reverse {
    grid-template-columns: 1fr 1fr;
}

/* On reverse variant: image left, text right */
.section-split-reverse .split-image {
    order: 0;
}

.section-split-reverse .split-text {
    order: 1;
    background: var(--off-white);
    padding: 4rem 5% 4rem 3.5rem;
}

/* =====================================================
   FAQ LIST
   ===================================================== */

.faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.55rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}

/* =====================================================
   TRANSPORT GRID (parking page)
   ===================================================== */

.transport-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.transport-card {
    text-align: center;
}

.transport-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--sage);
    margin-bottom: 1rem;
    cursor: zoom-in;
}

.transport-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.transport-card:hover .transport-img img {
    transform: scale(1.04);
}

.transport-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.transport-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* =====================================================
   BTN DARK VARIANT (outline, dark border for white bg)
   ===================================================== */

.btn-dark {
    border-color: var(--text);
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.7rem 2.2rem;
    margin-top: 0.5rem;
}

.btn-dark:hover {
    background: var(--text);
    color: var(--white);
    opacity: 1;
}

/* =====================================================
   ACTIVE NAV LINK
   ===================================================== */

nav a.active::after {
    transform: scaleX(1);
}

/* =====================================================
   LIGHTBOX
   ===================================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    animation: lb-fade-in 0.25s ease;
}

.lightbox-stage {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    animation: lb-zoom-in 0.25s ease;
}

.lightbox-stage img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 3;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
    transition: color 0.2s, transform 0.2s;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.15);
}

@keyframes lb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes lb-zoom-in {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Responsive — parking page */
@media (max-width: 768px) {
    .transport-grid {
        grid-template-columns: 1fr;
    }

    .section-split-reverse {
        grid-template-columns: 1fr;
    }

    .section-split-reverse .split-image {
        order: 0;
        min-height: 250px;
    }

    .section-split-reverse .split-text {
        order: 1;
        padding: 2.5rem 1.5rem;
    }
}

/* =====================================================
   ROOMS PAGE — HERO
   ===================================================== */

.hero-rooms {
    background-image: url('./image/客房背景.jpg');
    min-height: 88vh;
}

.room-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.rooms-second-row {
    margin-top: 2rem;
}

/* =====================================================
   GUIDE CARDS (遙控器 / 咖啡機)
   ===================================================== */

.guide-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    max-width: 860px;
    margin: 0 auto;
}

.guide-card {
    border: 1.5px solid rgba(0,0,0,0.18);
    border-radius: var(--radius-sm);
    padding: 2rem 2rem 1.8rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.guide-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.guide-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.btn-guide {
    display: block;
    text-align: center;
    margin-top: 0.8rem;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--text);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.btn-guide:hover {
    background: var(--text);
    color: var(--white);
    opacity: 1;
}

/* =====================================================
   PHOTO GALLERY GRID
   ===================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 2rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--sage-dark);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive — rooms page */
@media (max-width: 768px) {
    .room-grid-2 {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

    .guide-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .hero-rooms {
        min-height: 70vh;
    }
}

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

/* =====================================================
   FOOD PAGE
   ===================================================== */

/* Hero */
.hero-food {
    background-image: url('./image/美食背景.jpg');
    min-height: 88vh;
}

/* Food grid — 3 欄 */
.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 2.5rem;
}

/* Food grid — 2 欄 (夜市區) */
.food-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Food card */
.food-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.food-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sage-dark);
    cursor: zoom-in;
}

.food-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.food-card:hover .food-img img {
    transform: scale(1.05);
}

.food-card-body {
    padding: 1.4rem 1.5rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.food-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.food-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.6rem;
}

.food-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.food-map-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.food-map-link:hover {
    opacity: 0.7;
}

/* Tips grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.tip-card {
    background: rgba(255,255,255,0.45);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.7);
    text-align: center;
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1;
}

.tip-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.6rem;
}

.tip-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Responsive — food page */
@media (max-width: 1024px) {
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .food-grid,
    .food-grid-2 {
        grid-template-columns: 1fr;
    }
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-food {
        min-height: 70vh;
    }
}

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

/* =====================================================
   CONTACT PAGE
   ===================================================== */

.hero-contact {
    background-image: url('./image/聯絡背景.jpg');
    min-height: 60vh;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 1rem 0 2rem;
}

.contact-heading {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.6rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 2rem;
    line-height: 1.7;
}

/* ── 表單 ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

.required {
    color: #c0392b;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.btn-submit {
    align-self: flex-start;
    padding: 0.8rem 2.4rem;
    background: var(--text);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.form-success {
    display: none;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
    background: rgba(74, 124, 111, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.form-success.visible {
    display: block;
}

/* ── 聯絡資訊欄 ── */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.3rem;
    line-height: 1;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.contact-info-item strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

.contact-note {
    font-size: 0.82rem;
    color: var(--text-light);
}

.contact-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.92rem;
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-social {
    margin-top: 2.2rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border);
}

.contact-social-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-social-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.contact-social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(74, 124, 111, 0.05);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-contact {
        min-height: 50vh;
    }
    .btn-submit {
        width: 100%;
        text-align: center;
    }
}
