:root {
    --primary-color: #0d4a7d; /* Deep Blue from header */
    --secondary-color: #c49a62; /* Gold/Beige specific to the text */
    --text-color: #333333;
    --light-text: #ffffff;
    --bg-color: #f9f9f9;
    --font-heading: 'Cinzel', serif; /* Elegant serif for headings */
    --font-body: 'Lato', sans-serif; /* Clean sans-serif for body */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
header {
    background-color: transparent;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    color: var(--light-text);
    padding: 15px 0;
    transition: all 0.3s ease;
}

header.sticky {
    position: fixed;
    background-color: var(--primary-color); /* Deep Blue */
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

header.sticky .top-bar {
    display: none;
}

header.sticky .logo img {
    height: 60px; /* Smaller logo on scroll */
}

header.sticky .logo-icon {
    font-size: 1.8rem;
}

header.sticky .brand-name {
    font-size: 1.2rem;
}

header.sticky .brand-sub {
    font-size: 0.6rem;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0 50px;
    font-size: 0.8rem;
    gap: 20px;
    opacity: 0.9;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
}

.logo img {
    height: 70px; /* Adjust based on actual logo */
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--light-text);
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 20px;
}

/* Booking Widget */
.booking-widget-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(13, 74, 125, 0.8); /* Semi-transparent blue */
    backdrop-filter: blur(5px);
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-form {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}

.form-group .input-display {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--light-text);
    font-weight: bold;
    display: flex;
    align-items: baseline;
    cursor: pointer;
}

.form-group .input-display span {
    font-size: 1rem;
    margin-left: 5px;
    font-family: var(--font-body);
    font-weight: normal;
}

.check-btn {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--light-text);
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.check-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Booking Input and Select Styles */
.booking-input,
.booking-select {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: var(--light-text);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    padding: 10px 5px;
    cursor: pointer;
    outline: none;
    min-width: 150px;
}

.booking-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.booking-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.booking-select option {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.booking-input:focus,
.booking-select:focus {
    border-bottom-color: var(--secondary-color);
}

/* Utility */
.container {
    padding: 0 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Latest News Section */
.latest-news {
    padding: 80px 0;
    position: relative;
    /* Split background: Top light, Bottom primary blue */
    background: linear-gradient(to bottom, var(--bg-color) 60%, var(--primary-color) 60%);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.news-title-block h2.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 5px;
}

.news-title-block h2.section-title span {
    color: var(--primary-color);
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-body);
}

.explore-btn {
    border: 1px solid #ccc;
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
    transition: all 0.3s;
    background: transparent; 
}

.explore-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.news-grid {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap; /* Responsive wrap */
    position: relative;
    z-index: 2;
}

.news-card {
    background: #fff;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    /* Removed overflow: hidden from here so the badge can be seen */
}

.news-image-clip {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Clips the image zoom */
}

.news-image-clip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image-clip img {
    transform: scale(1.1);
}

.date-badge {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.date-badge span {
    display: block;
    line-height: 1;
    font-family: var(--font-body);
}

.date-badge .day {
    font-size: 0.9rem;
}

.date-badge .month {
    font-size: 1.1rem;
    font-weight: 700;
}

.date-badge .year {
    font-size: 0.7rem;
    opacity: 0.8;
}

.news-content {
    padding: 45px 25px 30px; /* Top padding clears the badge */
    text-align: center;
}

.news-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    text-transform: none; /* Allow MixCase */
}

/* News Card Links */
.news-card-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 300px;
    display: block;
}

.news-card-link:hover .news-card {
    transform: translateY(-5px);
}

.news-content p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .news-grid {
        flex-direction: column;
    }
    .latest-news {
        background: linear-gradient(to bottom, var(--bg-color) 20%, var(--primary-color) 20%);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.main-footer {
    background-color: #05243a; /* Darker deep blue */
    padding: 60px 0 40px;
    position: relative;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 300;
    margin-top: 50px;
}

/* Decorative Triangle at the top center (pointing down) */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-top: 60px solid var(--bg-color); /* Matches section above to create V-shape */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.footer-column {
    flex: 1;
}

.left-links {
    text-align: left;
    padding-top: 25px;
}

.right-links {
    text-align: right;
    padding-top: 25px;
}

.center-content {
    text-align: center;
    flex: 2;
    padding: 0 20px;
}

.footer-column a {
    color: #b0c4de;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.separator {
    margin: 0 10px;
    color: #4a6b82;
}

/* Social Icons */
.social-icons {
    margin-bottom: 25px;
}

.social-icons a {
    margin: 0 12px;
    font-size: 1rem;
    color: #ffffff;
    display: inline-block;
    transition: transform 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Copyright */
.copyright-text {
    font-size: 0.8rem;
    color: #889bb0; /* Muted blue-grey */
    margin-bottom: 30px;
}

/* Footer Logo */
.footer-logo {
    display: inline-block;
    text-align: center;
    color: #ffffff;
}

.sun-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #ffffff;
    animation: rotate-sun 10s linear infinite;
}

@keyframes rotate-sun {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }
    
    .left-links, .right-links {
        text-align: center;
        padding-top: 0;
    }

    .main-footer::before {
        border-top-width: 40px;
        border-left-width: 60px;
        border-right-width: 60px;
    }
    .latest-news {
        background: linear-gradient(to bottom, var(--bg-color) 20%, var(--primary-color) 20%);
    }
}

/* Nearby Section */
.nearby {
    padding: 80px 0;
    background: #fff;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.nearby-card {
    position: relative;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nearby-image {
    width: 100%;
    height: 100%;
}

.nearby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nearby-card:hover .nearby-image img {
    transform: scale(1.1);
}

.nearby-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.nearby-overlay h3 {
    color: white;
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Section Header Shared Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.header-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 400;
}

.header-content h2 span {
    color: var(--secondary-color);
    font-style: italic;
}

.header-content p {
    color: #666;
    font-weight: 300;
    max-width: 600px;
}

.view-all-btn {
    padding: 10px 25px;
    border: 1px solid #ccc;
    text-transform: uppercase;
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.view-all-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Resort Facilities */
.resort-facilities { text-align: center; padding: 50px 0; background-color: #fff; }
.facilities-container { display: flex; height: 500px; width: 100%; overflow: hidden; margin-top: 40px; }
.facility-card { position: relative; flex: 1; background-size: cover; background-position: center; cursor: pointer; transition: flex 0.5s ease-in-out; display: flex; align-items: flex-end; color: white; }
/* Default State: .active card is expanded */
.facility-card.active { flex: 3; }
.facility-card { flex: 1; } /* Ensure default is flex 1 */

/* Hover State: When container is hovered, reset all to 1, then expand hovered to 3 */
.facilities-container:hover .facility-card { flex: 1; }
.facilities-container .facility-card:hover { flex: 3; }

/* Handling Overlay and Content Visibility */
.facility-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 48, 78, 0.8); transition: background-color 0.5s ease; z-index: 1; }

.facility-card.active .facility-overlay,
.facilities-container .facility-card:hover .facility-overlay { 
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%); 
}

.facility-content { position: relative; z-index: 2; padding: 30px; width: 100%; text-align: left; transition: opacity 0.3s ease; }
.facility-title { font-family: var(--font-heading); font-size: 1.5rem; margin: 0; opacity: 0.9; }

.facility-desc { font-size: 0.9rem; margin-top: 5px; opacity: 0; max-height: 0; transition: all 0.5s ease; overflow: hidden; }

.facility-card.active .facility-desc,
.facilities-container .facility-card:hover .facility-desc { 
    opacity: 1; 
    max-height: 100px; 
}

.plus-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2rem; color: white; z-index: 2; opacity: 1; transition: opacity 0.3s ease; }

.facility-card.active .plus-icon,
.facilities-container .facility-card:hover .plus-icon { 
    opacity: 0; 
}
.facility-card.spa { background-image: url('../../images/spa.png'); }
.facility-card.gym { background-image: url('../../images/gym.png'); }
.facility-card.fitness { background-image: url('../../images/fitness.png'); }
.facility-card.salon { background-image: url('../../images/salon.png'); }

/* Logo Styles */
.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-icon {
    font-size: 2.5rem;
    color: #fff; /* White sun icon */
    margin-bottom: 5px;
}

.logo-text {
    text-align: center;
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: block;
    font-weight: 700;
}

.brand-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 5px;
    display: block;
    margin-top: 2px;
    opacity: 0.9;
}

/* Contact Page Styles */

/* Banner Section */
.contact-banner {
    position: relative;
    height: 320px; /* Increased from 250px */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.contact-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 60, 97, 0.85);
    z-index: 1;
}

.contact-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding-top: 120px; /* Account for header - increased spacing */
}

.contact-banner-content .page-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 3px;
    color: #fff !important;
}

.contact-banner-content .page-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    opacity: 0.9;
    color: #fff !important;
}

/* Map Section */
.contact-map-section {
    background-color: #f5f5f5;
    padding: 0;
}

.map-box {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    margin-top: -30px; /* Reduced overlap for more space below subtitle */
    position: relative;
    z-index: 10;
}

.map-box iframe {
    display: block;
    width: 100%;
    height: 350px;
}

/* Contact Info Section */
.contact-info-section {
    background-color: #f5f5f5;
    padding: 60px 0 80px;
}

.contact-info-section .icon-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

/* Keep existing page-header for other pages */
.page-header {
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    background-color: #0e3c61;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 60, 97, 0.7);
}

.page-directory-content {
    position: relative;
    z-index: 2;
}

/* Contact Form Overlay Box */
.contact-form-overlay {
    position: absolute;
    bottom: -50px; /* Overlap the map bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    z-index: 10;
}

.contact-form-box {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-form-box h2 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-form-box p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    font-weight: 300;
}

.contact-info-wrapper {
    padding: 80px 0; /* Reduced top padding */
    background-color: #f4f4f4;
    width: 100%;
}

.icon-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.icon-box {
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.icon-box .icon {
    font-size: 2.5rem;
    color: var(--primary-color); /* Outline style if possible, or color */
    margin-bottom: 20px;
}

.icon-box .icon i {
    /* Simulate outline style for FontAwesome Solid icons */
    -webkit-text-stroke: 2px var(--primary-color);
    color: transparent;
    transition: all 0.3s ease;
}

.icon-box:hover .icon i {
    /* Fill on hover */
    color: var(--primary-color);
    -webkit-text-stroke: 0;
}

/* Fix for Regular icons (like clock) to not look double-stroked if possible, 
   but FA5 'far' are treated as fonts too. 
   Actually, 'far' icons are already outlines. We should just color them. */
.icon-box .icon .far {
    -webkit-text-stroke: 0;
    color: var(--primary-color);
    font-weight: bold; /* Make line thicker */
}

.icon-box h3 {
    font-size: 1.2rem;
    color: #333; /* Dark text for headers */
    margin-bottom: 15px;
    font-family: var(--font-body); /* Looks sans-serif in design */
    font-weight: 400;
}

.icon-box p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .contact-form-overlay {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        margin-top: -50px; /* Pull up slightly */
    }
    
    .contact-info-icons {
        padding-top: 50px;
        flex-direction: column;
    }
}
