/*
Theme Name: Guest House
Author: Antigravity
Description: A simple responsive guest house theme with English/Korean support.
Version: 1.0
*/

:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #d4a373;
    --bg-color: #fdfdfd;
    --text-color: #333;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --spacing-unit: 16px;
    --swiper-theme-color: #d4a373;
    --swiper-navigation-color: #d4a373;
    --swiper-pagination-color: #d4a373;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Language Toggle Logic */
/* Default state (e.g., if JS fails) can be both or one. We'll start with English as default via JS */

body.lang-en .lang-ko {
    display: none !important;
}

body.lang-ko .lang-en {
    display: none !important;
}

.lang-ko {
    font-family: 'Noto Sans KR', sans-serif;
    /* Clean, modern Korean font */
    word-break: keep-all;
    /* Prevent awkward word splitting */
}

/* Base Layout Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header */
header {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    /* Make it stick */
    top: 0;
    z-index: 1000;
    /* Above everything */
    background: #fff;
    /* Solid background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /* font-size: 1.5rem; Removed text size */
    /* font-weight: bold; Removed text weight */
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 100px;
    /* Increased from 80px */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-toggle {
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    background: #f5f5f5;
    border-color: #bbb;
}


/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
}

/* Hero */
.hero {
    text-align: center;
    /* padding: 100px 0; Removed padding to use flex centering */
    background-color: #f4f4f4;
    background-size: cover;
    background-position: center;
    margin-bottom: 150px;
    /* Increased to 150px */
    padding-bottom: 50px;
    /* Extra padding inside just in case */
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;

    /* Scroll Effect Init */
    height: 100vh;
    width: 100%;
    /* Scroll Effect Init */
    height: 100vh;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 150px;
    /* Ensure this is applied */

    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: height 0.1s linear; REMOVED */
    overflow: hidden;
    border-radius: 0;
}

/* Optional overlay to make text more readable */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    padding: 60px 40px;
    /* More vertical breathing room */
    background: rgba(255, 255, 255, 0.08);
    /* More subtle, cleaner glass */
    backdrop-filter: blur(12px);
    /* Stronger blur */
    border-radius: 2px;
    /* Sharper corners for modern look, or soft? Let's go 20px for soft */
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* Softer, deeper shadow */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Fainter border */
    position: relative;
    z-index: 2;
    max-width: 900px;
    /* Wider */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-height: 160px;
    /* Increased from 120px */
    width: auto;
    margin-bottom: 30px;
    mix-blend-mode: screen;
    /* Force black to transparent */
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    /* Majestic size */
    margin-bottom: 25px;
    font-weight: 400;
    /* Lighter weight is more elegant */
    font-style: italic;
    /* Classic touch */
    letter-spacing: -0.5px;
    /* Tighter for large text */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* Animation Init */
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.hero p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    /* Light */
    line-height: 1.8;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

    /* Animation Init */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

/* Removed stray lines */

/* Animation Keyframes */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    text-align: center;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #d4a373;
    /* Accent color */
    margin: 15px auto 0;
}

.intro-text {
    max-width: 1200px;
    /* Increased from 900px to match wider layout */
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    background: #fff;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Soft premium shadow */
    position: relative;
    z-index: 10;
}

.intro-text b {
    font-family: 'Georgia', serif;
    /* Premium serif for slogan */
    font-size: 1.6rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 25px;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.intro-text p {
    color: #555;
    line-height: 1.9;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Zig-Zag Rooms Layout */
.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
    /* Increased gap */
    padding: 40px 0;
}

/* Widen just the Rooms section container for immersive experience */
/* Widen just the Rooms section container for immersive experience */
#rooms .container,
#intro .container,
#location .container {
    max-width: 1400px;
    width: 95%;
}

.room-item {
    display: flex;
    align-items: stretch;
    /* Stretch to match height */
    gap: 80px;
    /* Increased gap to balance the wider layout */
}

/* Reverse alternating items */
.room-item:nth-child(even) {
    flex-direction: row-reverse;
}

.room-image {
    flex: 1.4;
    /* images slightly smaller to give text room */
    min-width: 0;
}

.room-swiper {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    /* Square ratio to maximize vertical visibility */
    object-fit: cover;
    border-radius: 12px;
    /* Softer corners */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Deeper shadow */
}

/* ... swiper button styles unchanged ... */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #fff;
    transform: scale(1.1);
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

.room-info {
    flex: 1;
    text-align: left;
    padding: 40px;
    background: #fff;
    /* Card feel */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Very subtle styling frame */
    border: 1px solid #f0f0f0;

    /* Vertically center content */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-info h3 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: #222;
}

/* Elegant underline */
.room-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.room-info p {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
}

/* Activity List Styling */
.activity-list ul {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.activity-list li {
    position: relative;
    padding-left: 25px;
    color: #555;
    font-size: 1.05rem;
}

.activity-list li::before {
    content: '✔';
    /* Checkmark icon */
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    /* Gold/Accent color */
    font-size: 0.9em;
    font-weight: bold;
}

/* For Korean text alignment if inline-block logic was used previously, reset it */
.activity-list .lang-ko ul {
    display: grid !important;
    text-align: left;
}

@media (max-width: 900px) {

    .room-item,
    .room-item:nth-child(even) {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: stretch;
    }

    .room-image {
        width: 100%;
        flex: auto;
        margin-bottom: 0;
    }

    .room-info {
        padding: 30px 20px;
        text-align: center;
        box-shadow: none;
        /* Flatter on mobile */
        border: none;
        background: transparent;
    }

    .room-info h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .room-image img,
    .room-swiper {
        height: 400px;
        /* Slightly smaller on mobile */
    }

    .activity-list li {
        text-align: left;
        /* Keep lists readable */
        display: inline-block;
        /* Or keep block? Block is safer */
        display: block;
        padding-left: 25px;
    }

    .activity-list ul {
        display: inline-block;
        text-align: left;
        max-width: 100%;
    }
}


.contact-info {
    text-align: center;
}

/* Location Section Layout */
.location-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
    /* Match heights */
}

.contact-details {
    flex: 1;
    text-align: left;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.map-wrapper {
    flex: 1.5;
    min-height: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

.contact-block {
    margin-bottom: 30px;
}

.contact-block h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: block;
    color: #333;
    font-weight: 700;
}

.branch-list li {
    margin-bottom: 18px;
    line-height: 1.6;
    color: #555;
    font-size: 1.05rem;
}

.branch-list strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
}

/* Mobile Responsive Location */
@media (max-width: 768px) {

    .location-layout {
        flex-direction: column;
        /* Stack vertically on mobile */
        gap: 30px;
    }

    .map-wrapper {
        height: 400px;
        /* Force explicit height */
        min-height: 400px;
        flex: none;
        width: 100%;
    }

    .contact-details {
        padding: 25px;
    }
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }

    /* Mobile Toggle Button */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Helper Backdrop */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Nav Drawer (Sidebar) */
    nav {
        position: fixed;
        top: 0;
        right: -320px;
        /* Hide off-screen */
        width: 300px;
        /* Fixed sidebar width */
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        /* Left align items */
        padding-left: 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav.mobile-active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: left;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    nav.mobile-active ul li {
        opacity: 1;
        transform: translateX(0);
        /* Staggered animation */
    }

    nav.mobile-active ul li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav.mobile-active ul li:nth-child(2) {
        transition-delay: 0.2s;
    }

    nav.mobile-active ul li:nth-child(3) {
        transition-delay: 0.3s;
    }

    nav.mobile-active ul li:nth-child(4) {
        transition-delay: 0.4s;
    }

    nav ul li a {
        font-size: 1.5rem;
        font-weight: 600;
        color: #333;
        display: block;
        padding-bottom: 5px;
        border-bottom: 2px solid transparent;
        transition: border-color 0.3s ease, color 0.3s ease;
    }

    nav ul li a:hover {
        color: #d4a373;
        border-color: #d4a373;
    }

    /* Style the language toggle in mobile */
    .lang-toggle-wrapper {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        width: 80%;
        /* Divider length */
    }

    .lang-toggle {
        display: inline-block;
        font-size: 0.9rem;
        padding: 8px 16px;
        border: 1px solid #333;
        border-radius: 20px;
    }


}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        /* Drastically smaller for mobile */
        letter-spacing: 0;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-logo {
        max-height: 100px;
        /* Smaller logo on mobile */
        margin-bottom: 20px;
    }

    .hero .container {
        padding: 40px 20px;
        /* Less padding */
    }
}