/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
    /* Colors - Premium Palette */
    --color-bg: #f9f9f7; /* Off-white for warmth */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-accent: #9d8b6c; /* Gold/Beige application */
    --color-dark: #1a1a1a;
    
    /* Fonts */
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Layout */
    --header-height: 80px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.05em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(249, 249, 247, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.8rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.btn-primary {
    background-color: var(--color-dark);
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
}

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

/* Mobile CTA (Default Hidden) */
.mobile-nav-cta {
    display: none;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: var(--color-dark); /* Fallback */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Fallback Gradient */
    background: linear-gradient(45deg, #2b2b2b, #4a4a4a); 
    /* Actual Hero Image */
    background-image: url('assets/hero_akaya.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background-color: #fff;
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
    padding: var(--space-xl) 0;
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Fullscreen Narrative Sections
   ========================================================================== */
.about-content {
    max-width: 100%;
}

.fullscreen-block {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    padding-top: var(--header-height);
    scroll-margin-top: 20px;
}

/* Split Layout (Side-by-Side 50/50) */
.split-layout {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row; /* Default: Image Left, Text Right if in that order */
}

/* Modifier for alternating layout */
.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-item {
    flex: 1; /* Equal width */
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Collage Grid */
.collage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 2px;
}

.collage-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collage-item:hover img {
    transform: scale(1.05); /* Micro-interaction: Zoom on hover */
}

/* Ensure single image falls back gracefully if used elsewhere (rooms uses carousel) */

.split-text {
    background-color: var(--color-bg); /* Use theme bg */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center horizontally */
    text-align: center;  /* Center text */
    padding: 4rem;
}

/* Adjust text container width inside split */
.split-text-inner {
    max-width: 500px; /* Constrain text width for readability */
}

.fs-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--color-text); /* Ensure contrast */
}

.fs-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Center underline */
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

.fs-desc {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 2;
    text-align: justify; /* Or left/center */
    text-align-last: center; /* Center alignment for text block */
}

.room-specs {
    margin-top: 2rem;
    color: var(--color-text-light);
    text-align: left;
    display: inline-block; /* Center the list block */
}

/* Mobile Stacking */
@media (max-width: 768px) {
    .split-layout, .split-layout.reverse {
        flex-direction: column;
    }
    .split-item {
        width: 100%;
        height: 50%; /* Each takes half screen on mobile? Or auto? */
    }
}

/* Updated Carousel to fit overlay-bg */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Ensure Price/Access/Contact keep their own styles or adapt if needed */
.section {
    min-height: 100vh;
}

.carousel-track {
    position: relative;
    height: 100%;
    transition: transform 0.5s var(--ease-out);
    display: flex; /* Establish flex context for positioning if needed, but we'll use absolute/relative for stack */
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

.carousel-slide.current-slide {
    position: relative; /* Make sure the container takes height from this one */
    opacity: 1;
    z-index: 1;
}

/* Nav Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button--left { left: 1rem; }
.carousel-button--right { right: 1rem; }

.carousel-button.is-hidden { display: none; }

.carousel-button .icon {
    width: 20px;
    height: 20px;
}

/* Indicators */
.carousel-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.carousel-indicator {
    border: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.current-slide {
    background: #fff;
    transform: scale(1.2);
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.feature-desc {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 2;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Price
   ========================================================================== */
.price {
    background-color: #fff;
}

.price-card-wrapper {
    display: flex;
    justify-content: center;
}

.price-card {
    background: var(--color-bg);
    padding: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    min-width: 350px;
}

.price-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
}

.price-header h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Refactored Price Section in Contact Block */
.price-info {
    text-align: center;
    width: 100%;
}

.price-subtitle {
    color: var(--color-accent); 
}

.price-title {
    color: #fff;
}

.plan-name {
    font-size: 1.5rem; 
    margin-bottom: 0.5rem;
    color: #fff;
}

.plan-desc {
    opacity: 0.8; 
    margin-bottom: 2rem;
    color: #fff;
}

.price-amount {
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
}

.price-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Column Grid */
    gap: 1rem;
    text-align: left;
    max-width: 400px; /* Limit width */
    margin: 0 auto; /* Center list */
}

.price-features li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-features li::before {
    content: '✓';
    color: var(--color-accent);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* ==========================================================================
   Access
   ========================================================================== */
.access-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: stretch; /* Change to stretch to fill height */
    height: 100%; /* Fill available space */
    padding-bottom: 2rem; /* Add some breathing room at bottom */
}

.access-info p {
    margin-bottom: 1.5rem;
}

.map-container {
    background: #eaeaea;
    height: 100%; /* Fill the grid cell */
    min-height: 400px; /* Minimum height assurance */
    width: 100%;
    /* filter: grayscale(1); Removed for better visibility */
    transition: filter 0.3s;
}

.map-container:hover {
    filter: grayscale(0);
}

/* Ensure container fills height for flex layout */
#access .container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Contact / Line
   ========================================================================== */
.contact {
    position: relative;
    background-color: var(--color-dark);
    color: #fff;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-text {
    margin-bottom: 3rem;
    opacity: 0.8;
}

.btn-line {
    display: inline-block;
    background-color: #06C755; /* LINE Brand Color */
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.btn-line:hover {
    background-color: #05b34c;
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 2rem 0;
    text-align: center;
    background-color: #111;
    color: #666;
    font-size: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for flexibility */
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    height: 100%;
    gap: 4px;
    background: #f0f0f0;
}

.room-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

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

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

.room-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem;
    padding-bottom: 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.room-item:hover span {
    opacity: 1;
}

/* Specific Placements for "Mosaic" feel */
.r-kitchen { grid-column: span 2; grid-row: 1; }
.r-living  { grid-column: span 2; grid-row: 1; }
.r-bath    { grid-column: span 2; grid-row: 1; }
.r-room    { grid-column: span 3; grid-row: 2; }
.r-veranda { grid-column: span 3; grid-row: 2; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .split-text { padding: 2rem; }
}

@media (max-width: 768px) {
    /* Fullscreen adjustment */
    .fullscreen-block {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Stack Split Layout */
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        height: auto; /* Allow growth */
    }

    .split-item {
        width: 100%;
        height: 50vh; /* Image takes half screen height */
        flex: none;
    }

    .split-text {
        height: auto;
        min-height: 50vh;
        padding: 3rem 1.5rem;
    }

    /* Collage / Rooms Grid Mobile */
    .collage-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
     
    .rooms-grid {
        /* On mobile, maybe 2x3 grid? */
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .r-kitchen, .r-living, .r-bath, .r-room, .r-veranda {
        grid-column: span 1;
        grid-row: auto;
        height: 150px; /* Fixed height for thumbnails */
    }
    .r-veranda { grid-column: span 2; } /* Last one full width */

    /* Typography */
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    
    /* Navigation */
    .header-inner { padding: 1rem; }
    .nav-toggle { display: block; z-index: 1001; }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        padding: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-list.active { right: 0; }

    /* Show Mobile CTA */
    .mobile-nav-cta {
        display: inline-block;
        background-color: var(--color-dark);
        color: #fff;
        padding: 0.5rem 1rem;
        border-radius: 2px;
        font-size: 0.8rem;
        margin-right: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .nav {
        display: flex;
        align-items: center;
    }
    
    .access-content { grid-template-columns: 1fr; }
    .map-container { height: 450px; }
}
