/* --- Global Styles & Design System --- */
:root {
    --bg-cream: #f9f6f0;
    --station-brown: #a69480;
    --station-dark-brown: #4a3f35;
    --window-white: #ffffff;
    --text-dark: #2b2520;
    --text-muted: #665d55;
    --accent-gold: #c5a880;
    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--window-white); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 15px; }

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 65ch;
}

/* --- Components & Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--station-dark-brown);
    color: var(--window-white);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: transform 0.3s var(--transition-smooth), background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-alt {
    background-color: transparent;
    border: 1px solid var(--window-white);
}
.btn-alt:hover {
    background-color: var(--window-white);
    color: var(--text-dark);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2, .grid-2.inverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .grid-2.inverse .room-img-wrapper {
        order: 0;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--window-white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(43,37,32,0.4), rgba(43,37,32,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 15px;
}

.hero p {
    color: #e5dfd8;
    margin: 20px auto 35px;
}

/* --- Overview --- */
.overview { background: #f2ede4; }
.reveal-img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

/* --- Interactive Floor Plan --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title p { margin: 0 auto; }

.floorplan-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--window-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(74,63,53,0.05);
    border: 1px solid rgba(166,148,128,0.2);
}

.interactive-svg {
    width: 100%;
    height: auto;
}

.map-bg {
    fill: #fcfbfa;
    stroke: #e4ded5;
    stroke-width: 2;
}

.map-room {
    cursor: pointer;
}

.map-room rect {
    fill: var(--bg-cream);
    stroke: var(--station-brown);
    stroke-width: 1.5;
    transition: fill 0.3s var(--transition-smooth), stroke 0.3s var(--transition-smooth);
}

.map-room text {
    font-size: 14px;
    fill: var(--text-dark);
    font-weight: 500;
    pointer-events: none; /* Let clicks pass to the rect */
    transition: fill 0.3s ease;
}

/* Natural-feeling micro-interaction states */
.map-room:hover rect {
    fill: var(--station-brown);
    stroke: var(--station-dark-brown);
}

.map-room:hover text {
    fill: var(--window-white);
}

.map-room:active rect {
    transform: scale(0.99);
    transform-origin: center;
}


/* Styling updates for the Blueprint image map */
.map-room polygon {
    fill: var(--station-brown);
    fill-opacity: 0.12; /* Keeps the blueprint lines underneath clearly visible */
    stroke: var(--station-dark-brown);
    stroke-width: 2;
    stroke-dasharray: 4 4; /* Gives a sophisticated architectural blueprint vibe */
    transition: fill-opacity 0.3s var(--transition-smooth), fill 0.3s var(--transition-smooth);
}

/* Hover effects for the blueprint rooms */
.map-room:hover polygon {
    fill: var(--accent-gold);
    fill-opacity: 0.35; /* Rooms light up elegantly when highlighted */
    stroke-dasharray: none;
}

/* Stylized interactive text labels embedded inside the SVG map */
.svg-room-label {
    font-size: 14px;
    font-weight: 600;
    fill: var(--station-dark-brown);
    text-shadow: 0px 1px 2px rgba(255,255,255,0.8);
    pointer-events: none; /* Mouse actions slip through text down to click the polygon */
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* --- Room Details Section --- */
.room-details {
    background-color: var(--window-white);
}

.room-card {
    padding: 60px 0;
    border-bottom: 1px solid #f2ede4;
    scroll-margin-top: 40px; /* Gives padding when jumping down from floorplan */
}

.room-card:last-child { border-bottom: none; }

.grid-2.inverse .room-img-wrapper {
    order: 2;
}

.room-img-wrapper img {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 8/5;
}

.room-tag {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* JavaScript Highlight Flash effect */
@keyframes highlightFlash {
    0% { background-color: transparent; }
    30% { background-color: rgba(197, 168, 128, 0.2); }
    100% { background-color: transparent; }
}

.highlight-active {
    animation: highlightFlash 1.5s var(--transition-smooth);
}

/* --- Footer --- */
.footer {
    background-color: var(--text-dark);
    color: var(--window-white);
    text-align: center;
}
.footer p { color: #b1a79e; margin: 15px auto 30px; }
.copyright { font-size: 0.8rem; opacity: 0.5; margin-top: 50px !important; }