/* Import new Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;500;600;700&display=swap');

/* ===============================
   Main Styles
   =============================== */
:root {
    /* Define primary and success colors based on Bootstrap defaults for consistency */
    --bs-primary: #0d6efd;
    --bs-success: #198754;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-orange: #e67e22; /* Custom orange color for subheadings */
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.125rem; /* 18px for excellent readability */
    line-height: 1.6;
    scroll-behavior: smooth;
    padding-top: 70px; /* Space for fixed header */
}

/* Headings styles: Restoring original color scheme */
h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--bs-primary); /* H1 color is blue */
}

h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--bs-orange); /* All other headings are dark orange */
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

/* ===============================
   Header & Navigation
   =============================== */
.navbar-brand img {
    height: 50px; /* Larger logo on desktop */
}

.nav-link {
    font-weight: 500;
    color: var(--bs-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
}

/* ===============================
   Hero Section - Background and Highlights
   =============================== */

/* Ensure the hero section text area has the same background as the image area, 
   which is typically handled by setting a matching background on the parent section. 
   Assuming the parent is a light background, we ensure the image area is consistent. */
.hero-section {
    background-color: var(--bs-light); /* Assuming a light/white background for consistency */
}

/* Ensure the hero banner image fills its container nicely */
.hero-banner-img {
    object-fit: cover;
    width: 100%;
    /* Default height for mobile/tablet */
    min-height: 350px; 
    max-height: 500px;
}

/* USP List Styling: Restoring highlight style */
.usp-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.usp-list li {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.8;
    color: var(--bs-dark);
    /* Highlighting for the USP items */
    background-color: #fff3cd; /* Light warning-like background for highlight */
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 8px; /* Space between USP items */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hero Text Animation/Highlighting */
.animated-highlight {
    display: inline-block;
    color: var(--bs-danger); /* Use red for high urgency text */
    font-weight: 700;
    animation: pulse-highlight 2s infinite;
}

@keyframes pulse-highlight {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}


/* ===============================
   Price Section & FOMO Line
   =============================== */
.price-card {
    border: 1px solid var(--bs-light);
    transition: all 0.3s ease;
}

.price-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

.sold-out {
    opacity: 0.6;
}

/* Fomo Line Styling */
.fomo-line-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--bs-warning);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.fomo-line {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* Start off-screen */
    animation: scroll-text 15s linear infinite;
}

.fomo-line span {
    font-weight: 700;
    color: var(--bs-dark);
    text-transform: uppercase;
}

@keyframes scroll-text {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.blinking {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* ===============================
   Amenities Section
   =============================== */
.amenity-img-wrapper {
    aspect-ratio: 1 / 1;
}

.amenity-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.amenity-img-wrapper:hover img {
    transform: scale(1.1);
}

.amenity-img-wrapper .overlay {
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.amenity-img-wrapper:hover .overlay {
    opacity: 1;
}

/* ===============================
   Fixed CTA Buttons
   =============================== */
.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1050;
    pointer-events: all;
}

.fixed-buttons .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.fixed-buttons .btn:hover {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .fixed-buttons {
        flex-direction: row;
        gap: 15px;
        bottom: 30px;
        right: 30px;
    }
}

/* ===============================
   Forms and Validation
   =============================== */
/* intl-tel-input integration styles */
.iti { 
    width: 100%; 
    display: block;
}

/* Ensure form validation feedback appears correctly */
.form-control.is-invalid + .invalid-feedback,
.form-control.is-invalid:invalid + .invalid-feedback,
.was-validated .form-control:invalid + .invalid-feedback {
    display: block !important;
}

/* ===============================
   Responsive Font Sizing & Other Styles
   =============================== */
@media (max-width: 575.98px) {
    body {
        font-size: 1rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    /* Mobile-first: hero form should always be above the image */
    .hero-section .row { flex-direction: column-reverse; } 
    .price-card { margin-bottom: 20px; }
}

/* Mobile Navigation Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        /* Ensure background is white when open to contrast links */
        background-color: white; 
        padding: 10px 0;
        border-radius: 0 0 8px 8px;
    }
}
