:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --text-color: #333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --dark-bg: #1a252f;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    background-image: var(--page-bg, none);
    background-attachment: fixed;
    background-size: cover;
}

.page-content {
    color: var(--content-text-color, var(--text-color));
    font-size: var(--content-text-size, 16px);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--content-heading-color, var(--primary-color));
    font-family: var(--font-heading);
    font-weight: var(--content-heading-weight, 700);
    line-height: 1.22;
}

.page-content h1 { font-size: var(--content-heading-size, 32px); }
.page-content h2 { font-size: calc(var(--content-heading-size, 32px) * 0.78); }
.page-content h3 { font-size: calc(var(--content-heading-size, 32px) * 0.62); }

.page-content p,
.page-content li,
.page-content span {
    color: var(--content-text-color, var(--text-color));
    font-size: var(--content-text-size, 16px);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 16px;
}

header h1 a {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

header nav ul li a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a.btn-nav {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
}

header nav ul li a.btn-nav:hover {
    background: var(--secondary-color);
    color: var(--white);
}

header nav ul li a.btn-nav::after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    background: var(--primary-color);
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 12px;
    padding: 10px 12px;
    line-height: 1;
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.menu-toggle i {
    color: currentColor;
    opacity: 1;
}

.menu-toggle:hover {
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    background-color: #0f172a;
    height: 80vh;
    min-height: 520px;
    max-height: 780px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 900ms ease;
    transform: scale(1.02);
    will-change: opacity;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay, linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.78)));
    z-index: 2;
}

.hero-content {
    max-width: var(--hero-box-max-width, 800px);
    margin: 0 auto;
    padding: 44px 34px;
    border-radius: var(--hero-box-radius, 18px);
    background: var(--hero-box-bg, rgba(255,255,255,0.08));
    border: var(--hero-box-border-width, 1px) solid var(--hero-box-border, rgba(255,255,255,0.14));
    backdrop-filter: blur(var(--hero-box-blur, 8px));
    -webkit-backdrop-filter: blur(var(--hero-box-blur, 8px));
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    margin: 0 auto 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn:hover {
    background: #d35400;
    transform: translateY(-3px);
}

.btn.btn-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn.btn-whatsapp:hover {
    background: #1ebe57;
}

/* Sections General */
section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Features / Services */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

#features .card {
    border: var(--features-card-border-width, 3px) solid transparent;
    background:
        linear-gradient(var(--features-card-bg, var(--white)), var(--features-card-bg, var(--white))) padding-box,
        linear-gradient(135deg, var(--features-card-border-from, var(--primary-color)), var(--features-card-border-to, var(--secondary-color))) border-box;
}

#features .card:hover {
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.features-heading h2 {
    color: var(--features-heading-color, var(--primary-color));
}

.features-heading p {
    color: var(--features-subheading-color, #666);
}

#features .card i {
    color: var(--features-icon-color, var(--secondary-color));
}

#features .card h3 {
    color: var(--features-title-color, var(--primary-color));
}

#features .card p {
    color: var(--features-text-color, #666);
}

.common-area-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .common-area-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .common-area-grid {
        grid-template-columns: 1fr;
    }
}

.ekke-grid-2,
.ekke-grid-3,
.ekke-grid-4 {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.ekke-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ekke-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ekke-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ekke-grid-2 .card,
.ekke-grid-3 .card,
.ekke-grid-4 .card {
    text-align: left;
}

@media (max-width: 992px) {
    .ekke-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ekke-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ekke-grid-2,
    .ekke-grid-3,
    .ekke-grid-4 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.common-area-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    display: block;
}

.common-area-card:hover {
    transform: none;
}

.common-area-card-img {
    width: 100%;
    height: 250px;
    background: #eee;
    display: block;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.common-area-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.common-area-card-body {
    padding: 20px;
}

.common-area-card-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.common-area-card-body p {
    color: #666;
    margin: 0;
}

.common-area-rich img {
    max-width: 100%;
    height: auto;
    display: block;
}

.common-area-rich iframe,
.common-area-rich video {
    max-width: 100%;
}

.common-area-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

.common-area-modal.open {
    display: flex;
}

.common-area-modal-inner {
    width: min(1000px, 100%);
    max-height: min(92vh, 920px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.common-area-modal-header {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eee;
}

.common-area-modal-title {
    margin: 0;
    font-size: 1.2rem;
}

.common-area-modal-close {
    border: 0;
    background: #f1f1f1;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.common-area-modal-content {
    padding: 18px;
    overflow: auto;
}

.common-area-modal-hero {
    width: 100%;
    height: min(420px, 42vh);
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.common-area-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.common-area-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card .feature-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Rooms Page */
.room-card {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.room-img {
    flex: 1;
    background-color: #ddd;
    min-height: 250px;
    position: relative;
}

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

.room-details {
    flex: 1.5;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-details h2 {
    font-size: 1.8rem;
}

.room-features {
    margin: 15px 0;
    color: #666;
}

.room-features span {
    margin-right: 15px;
    font-size: 0.9rem;
}

.room-features i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.room-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

button[type="submit"] {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

button[type="submit"]:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #ecf0f1;
    padding-top: 60px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background: #151e26;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }

    #branding {
        flex: 1 1 auto;
        min-width: 0;
    }

    #branding h1 {
        min-width: 0;
    }

    #branding h1 a {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        font-size: 1.05rem;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 20px;
    }

    header nav ul.showing {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding: 28px 20px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .room-card {
        flex-direction: column;
    }
    
    .room-img {
        min-height: 200px;
    }
}

@media (max-width: 992px) {
    header .container {
        flex-wrap: wrap;
    }

    #branding {
        flex: 1 1 auto;
        min-width: 0;
    }

    #branding h1 {
        min-width: 0;
    }

    #branding h1 a {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    header nav {
        width: 100%;
        order: 3;
    }

    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 20px;
        gap: 12px;
        background: var(--white);
        padding-bottom: 18px;
        border-top: 1px solid rgba(0,0,0,0.08);
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
        box-shadow: 0 18px 35px rgba(0,0,0,0.12);
    }

    header nav ul.showing {
        display: flex;
    }
}
