/* Clean CSS for Rooms, About, Contact Pages */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

:root {
    --primary-gold: #D4AF37;
    --light-gold: #F4E4A6;
    --dark-gold: #B8860B;
    --cream: #FDF6E3;
    --dark-brown: #3E2723;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-brown);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--dark-brown);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--dark-brown);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo {
    position: absolute;
    left: 0;
}

.nav-logo h2 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    margin: 3px 0;
    transition: 0.3s;
}

/* Page Header - NO SPACING ISSUES */
.page-header {
    height: 60vh;
    min-height: 400px;
    background: var(--primary-gold);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 88px;
}

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

.page-header-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    position: relative;
    max-width: 800px;
    padding: 0 2rem;
}

.page-header-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 600;
    line-height: 1.2;
}

.page-header-content p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.4;
}

/* Specific page headers */
.rooms-page .page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/headers/rooms-header.jpg');
}

.about-page .page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/headers/about-header.jpg');
}

.contact-page .page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/headers/contact-header.jpg');
}

/* Main Content Sections - OPTIMAL SPACING */
.main-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 1;
    padding: 40px 0 60px 0;
    margin: 0;
}

.rooms {
    background: rgba(253, 246, 227, 0.8);
}

.contact {
    background: rgba(245, 245, 245, 0.8);
}

/* Content Container - ZERO TOP SPACING */
.content-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin: 0;
    padding: 0;
}

/* Room Cards */
.room-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    transition: all 0.3s ease;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.room-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

/* Room Gallery */
.room-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.room-image.active {
    opacity: 1;
}

.room-card:hover .room-image.active {
    transform: scale(1.1);
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.room-card:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow.prev {
    left: 15px;
}

.gallery-arrow.next {
    right: 15px;
}

/* Image Counter */
.image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-align: center;
    max-width: 500px;
    opacity: 0.8;
}

/* Lightbox Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-next {
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }
    
    .lightbox-counter {
        bottom: 10px;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .lightbox-caption {
        bottom: -30px;
        font-size: 12px;
        padding: 0 20px;
    }
}

/* Clickable cursor for images */
.room-image {
    cursor: pointer;
}

.room-image:hover {
    filter: brightness(1.1);
}

.room-content {
    padding: 2rem;
}

.room-title {
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.room-description {
    color: var(--dark-brown);
    opacity: 0.8;
    line-height: 1.6;
}

/* About Content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.about-text {
    margin: 0;
    padding: 0;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--dark-brown);
    opacity: 0.9;
}

.about-text p:first-child {
    margin-top: 0;
    padding-top: 0;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
}

/* Contact Content */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 0;
    padding: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.contact-item {
    margin: 0;
    padding: 0;
}

.contact-item h4 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--dark-brown);
    line-height: 1.6;
}

.contact-map {
    margin: 0;
    padding: 0;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-map iframe:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-brown);
    padding: 2rem 0;
    margin: 0;
}

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

.footer-logo h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.footer-text p {
    color: var(--white);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Mobile header layout: logo left, menu button right */
    .nav-container { justify-content: space-between; }
    .nav-logo { position: static; }
    .nav-logo h2 { font-size: 1.4rem; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .page-header {
        height: 50vh;
        min-height: 350px;
        margin-top: 70px;
    }
    
    .page-header-content {
        padding: 0 1rem;
    }
    
    .page-header-content h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .page-header-content p {
        font-size: 1rem;
    }

    .main-section {
        padding: 30px 0 50px 0;
    }

    .content-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .page-header {
        height: 45vh;
        min-height: 300px;
        margin-top: 60px;
    }
    
    .page-header-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .page-header-content p {
        font-size: 0.9rem;
    }

    .main-section {
        padding: 20px 0 40px 0;
    }

    .content-container {
        gap: 1.5rem;
    }
}

/* APPENDED: mobile nav/link colors, touch arrows, media sizing */
@media (max-width: 768px) {
    .nav-menu .nav-link { color: var(--dark-brown); }
    .nav-menu .nav-link:hover { color: var(--primary-gold); }
    .gallery-arrow { opacity: 1; }
    .room-image-container { height: 240px; }
    .about-image img { height: 280px; }
}
@media (max-width: 480px) {
    .room-image-container { height: 210px; }
    .about-image img { height: 240px; }
}
