/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #f0f0f0;
    background-color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;
}

.light-bg {
    background-color: #f8fafc;
    color: #1e293b;
}

.dark-bg {
    background-color: #0f172a;
    color: #f0f0f0;
}

/* Apply dark background to appropriate sections */
.quick-links,
.rooms,
.amenities-section,
.location-contact,
.gallery,
footer {
    background-color: #0f172a !important;
    color: #f0f0f0 !important;
}

/* Apply light background to appropriate sections */
.intro,
.booking {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

.book {
    color: #1e293b;
}

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

section {
    padding: 80px 0;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #64748b;
}

.light-bg .section-subtitle {
    color: #64748b;
}

.dark-bg .section-subtitle {
    color: #cbd5e1;
}

/* ===== IBETO HOTELS BRAND COLOR PALETTE ===== */
:root {
    --charcoal: #0f172a;        /* Primary - Deep Charcoal/Navy */
    --charcoal-light: #1e293b;   /* Lighter charcoal for cards */
    --gold: #d4af37;            /* Secondary - Gold */
    --gold-dark: #b8941f;       /* Darker gold for hover */
    --teal: #0d9488;            /* Accent - Teal */
    --mustard: #d97706;         /* Accent - Mustard */
    --sage: #84cc16;            /* Accent - Sage Green */
    --light: #f8fafc;           /* Light background/text */
    --dark: #0f172a;            /* Dark background/text */
    --text-light: #f1f5f9;      /* Light text on dark */
    --text-dark: #1e293b;       /* Dark text on light */
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #ffffff;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
}

.light-bg h2 {
    color: #0f172a;
}

.dark-bg h2 {
    color: #ffffff;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.dark-bg h3 {
    color: #ffffff;
}

.light-bg h3 {
    color: #0f172a;
}

h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.05rem;
}

.light-bg p {
    color: #475569;
}

.dark-bg p {
    color: #e2e8f0;
}

.lead {
    font-size: 1.3rem;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.light-bg .lead {
    color: #334155;
}

.dark-bg .lead {
    color: #e2e8f0;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 2px;
}

.btn-primary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-primary:hover {
    color: var(--dark);
    border-color: var(--gold);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background-color: var(--charcoal-light);
    color: var(--light);
    border: 2px solid var(--charcoal-light);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-color {
    background-color: var(--teal);
    color: var(--light);
    border: 2px solid var(--teal);
}

.btn-color:hover {
    background-color: transparent;
    color: var(--teal);
}

/* Gold accent button */
.btn-gold {
    background-color: var(--gold);
    color: var(--dark);
    border: 2px solid var(--gold);
    font-weight: 600;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 1001;
}

.logo span {
    color: var(--gold);
}

/* REMOVED the problematic nav styling */
.navbar {
    /* No background color here - let the nav-links handle it */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.book-nav {
    background-color: var(--gold);
    color: var(--dark);
    padding: 10px 22px;
    border-radius: 2px;
    margin-left: 30px;
    font-weight: 600;
}

.book-nav:hover {
    background-color: var(--gold-dark);
    color: var(--dark);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ffffff;
    z-index: 1001;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 4.2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.slide-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
}

.slide-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ===== INTRO SECTION ===== */
.intro {
    padding: 100px 0;
    background-color: #f8fafc;
}

.intro-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

/* ===== QUICK LINKS ===== */
.quick-links {
    background-color: var(--charcoal);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.link-card {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.link-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
    color: white;
}

.card-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
    color: #ffffff;
}

.card-overlay p {
    color: var(--gold);
    font-weight: 500;
}

/* ===== ROOMS SECTION ===== */
.rooms {
    background-color: var(--charcoal);
}

.rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.room-card {
    background-color: var(--charcoal-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}

.room-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.room-content {
    padding: 30px;
}

.room-content h3 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.room-content p {
    color: #cbd5e1;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.amenity {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
}

.amenity i {
    margin-right: 8px;
    color: var(--sage);
}

.room-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.room-actions .btn-secondary {
    flex: 1;
}

.room-actions .btn-color {
    flex: 1;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background-color: var(--charcoal);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--gold);
    font-size: 1.4rem;
    text-align: left;
    padding: 10px 0;
}

/* ===== AMENITIES SECTION ===== */
.amenities-section {
    background-color: var(--charcoal);
}

.amenities-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.amenity-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 15px 30px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.amenity-tab:hover {
    color: var(--gold);
}

.amenity-tab.active {
    color: var(--gold);
}

.amenity-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--gold);
}

.amenity-panel {
    display: none;
}

.amenity-panel.active {
    display: block;
}

.amenity-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.amenity-info h3 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.amenity-info p {
    color: #cbd5e1;
}

.amenity-features {
    list-style: none;
    margin-top: 25px;
}

.amenity-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #94a3b8;
}

.amenity-features i {
    color: var(--sage);
    margin-right: 10px;
}

.amenity-img {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gold);
}

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

/* ===== LOCATION & CONTACT ===== */
.location-contact {
    background-color: var(--charcoal);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.map-column {
    height: 450px;
}

.map-container {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
    border: 2px solid var(--gold);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-column {
    padding: 20px;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--gold);
}

.contact-icon {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 5px;
    color: var(--gold);
}

.contact-text p {
    color: #cbd5e1;
}

.contact-text a {
    color: #cbd5e1;
}

.contact-text a:hover {
    color: var(--gold);
}

.contact-form-container {
    background-color: var(--charcoal-light);
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(255, 255, 255, 0.08);
}

.light-bg .form-group input,
.light-bg .form-group textarea,
.light-bg .form-group select {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
}

/* ===== BOOKING SECTION ===== */
.booking {
    background-color: #f8fafc;
}

.booking-widget {
    margin-top: 40px;
}

.booking-placeholder {
    background-color: var(--charcoal-light);
    border-radius: 8px;
    padding: 50px;
    text-align: center;
    color: white;
    border: 2px solid var(--gold);
}

.placeholder-content {
    margin-bottom: 40px;
}

.placeholder-content i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.placeholder-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.placeholder-content p {
    color: #cbd5e1;
}

.placeholder-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.simulated-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-row .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #cbd5e1;
}

/* Update the simulate booking button in the booking section */
#simulate-booking {
    background-color: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

#simulate-booking:hover {
    background-color: transparent;
    color: var(--gold);
}

/* ===== FOOTER ===== */
footer {
    background-color: #0a0a0a;
    padding: 70px 0 30px;
    color: #ffffff;
    border-top: 4px solid var(--gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    display: block;
}

.footer-logo span {
    color: var(--gold);
}

.tagline {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--gold);
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #cbd5e1;
}

.footer-column ul li i {
    margin-right: 10px;
    color: var(--gold);
    width: 20px;
}

.footer-column ul li a {
    color: #cbd5e1;
}

.footer-column ul li a:hover {
    color: var(--gold);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    background-color: var(--gold);
    color: var(--dark);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background-color: var(--gold-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--gold);
}

.footer-bottom a:hover {
    color: var(--gold-dark);
}