/* Base and Reusable Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7fafc; /* Lighter gray for better contrast */
    padding-top: 0; /* Initial padding top */
    transition: padding-top 0.3s ease; /* Smooth transition for padding */
}

/* Reusable Component Styles */
.nav-link {
    color: #4A5568;
    transition: color 0.3s;
    font-weight: 500;
}
.nav-link:hover {
    color: #D1A143;
}
.cta-button-sm {
    background-color: #D1A143;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    font-weight: 600;
}
.cta-button-sm:hover {
    background-color: #B88B32;
}
.cta-button {
    background-color: #D1A143;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.cta-button:hover {
    background-color: #B88B32;
    transform: scale(1.05);
}
.cta-button-inline {
    display: inline-block;
    background-color: #1A1A1A;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.cta-button-inline:hover {
    background-color: #D1A143;
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.cta-button-inline:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #D1A143;
}

/* NEW: Section Title Wrapper */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

/* NEW: Main Section Heading Style */
.section-heading {
    font-size: 2.25rem; /* 36px */
    font-weight: 900;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, #1a202c, #4a5568);
    letter-spacing: -0.025em;
    position: relative;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .section-heading {
        font-size: 3rem; /* 48px */
    }
}

/* NEW: Decorative Background Element for Heading */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #D1A143; /* brand-gold */
    border-radius: 2px;
}

.section-subheading {
    color: #718096;
    margin-top: 1.5rem; /* Increased margin for better spacing */
    font-size: 1.125rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-0.5rem);
}
.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 4px solid #D1A143;
}

.social-link {
    color: #a0aec0;
    font-size: 1.5rem;
}
.social-link:hover {
    color: white;
}

.payment-table-container {
    overflow-x: auto;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hero Section Styling */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/herosectionbackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Custom Animation for Hero Title */
.animate-fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
}
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 'SOLD OUT' & 'BOOK NOW' HOVER STYLES */
.sold-unit, .available-unit {
    position: relative;
    transition: transform 0.2s ease-out;
}
.sold-unit { cursor: not-allowed; }
.available-unit { cursor: pointer; }

.available-unit:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 10;
}

.sold-unit::after, .available-unit::after {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 15; /* Higher than hover effect */
}
.sold-unit::after {
    content: 'Sold Out';
    background-color: rgba(192, 57, 43, 0.9);
}
.available-unit::after {
    content: 'Book Now';
    background-color: rgba(209, 161, 67, 0.9);
}
.sold-unit:hover::after, .available-unit:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive Table for Mobile */
@media (max-width: 768px) {
    .payment-table-container thead {
        display: none;
    }
    .payment-table-container tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
     .payment-table-container tr:last-child {
        margin-bottom: 0;
    }
    .payment-table-container td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e2e8f0;
    }
     .payment-table-container tr td:last-child {
        border-bottom: 0;
    }
    .payment-table-container td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        margin-right: 1rem;
        color: #2d3748;
    }
    
    #announcement-bar-container {
        display: none !important;
    }
}


/* Back to Top & WhatsApp Buttons */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #D1A143;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
}
.back-to-top-btn:hover {
    background-color: #B88B32;
}
.back-to-top-btn.show {
    opacity: 1;
    transform: scale(1);
}
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.whatsapp-btn {
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}
.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.whatsapp-btn i {
    font-size: 1.75rem;
}


/* Announcement Bar Styles */
.announcement-bar .announcement-text-default {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    transform: scale(1);
}
.announcement-bar .announcement-text-hover {
    position: absolute;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: scale(0.9);
}
.announcement-bar:hover .announcement-text-default {
    opacity: 0;
    transform: scale(0.9);
}
.announcement-bar:hover .announcement-text-hover {
    opacity: 1;
    transform: scale(1);
}

/* Custom styles for intl-tel-input */
.iti {
    width: 100%;
}
.form-input {
     width: 100%;
    padding: 0.75rem 1rem;
    color: #4a5568;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: #D1A143;
    box-shadow: 0 0 0 2px rgba(209, 161, 67, 0.4);
}
.iti--allow-dropdown input, .iti--allow-dropdown input[type=tel] {
    padding-left: 56px !important;
}

