/* ----------------------------------------------------
   GLOBAL LAYOUT & HEADER
---------------------------------------------------- */
.site-header {
    isolation: isolate;
}

/* ----------------------------------------------------
   UNIVERSAL HERO SYSTEM — FIXED FOR NEW LAYOUT
---------------------------------------------------- */
.hero {
    width: 100%;
    min-height: 480px;
    background-size: cover;
    background-position: center top;
    border-radius: var(--radius-lg);
    margin-top: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-6) 0;
    box-shadow: var(--shadow-soft);

    /* Prevent horizontal overflow */
    max-width: 100%;
    overflow-x: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 0;
}

/* Clamp hero text inside container width */
.hero-inner {
    position: relative;
    z-index: 2;
    color: #fff !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.65);

    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-inner h1 {
    font-size: 2.8rem;
    margin: 0 0 var(--space-2);
}

.hero-inner p {
    font-size: 1.3rem;
    margin: 0;
}

/* Ensure all hero variants behave consistently */
.villa-hero,
.location-hero,
.page-hero {
    background-position: center;
}

/* Force hero text to stay white everywhere */
.page-hero .hero-inner h1,
.page-hero .hero-inner p,
.location-hero .hero-inner h1,
.location-hero .hero-inner p,
.villa-hero .hero-inner h1,
.villa-hero .hero-inner p {
    color: #ffffff !important;
}

/* ----------------------------------------------------
   HOME CARDS
---------------------------------------------------- */
.home-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.home-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.home-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.home-card p {
    font-size: 15px;
    color: #444;
    margin-bottom: 16px;
}

.home-card .btn-primary {
    background: #0078d4;
    border-radius: 3px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
}

.home-card .btn-primary:hover {
    background: #005fa3;
}

/* ----------------------------------------------------
   FEATURED VILLAS
---------------------------------------------------- */
.featured-villas {
    margin: 60px auto;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
}

.featured-villa-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.featured-villa-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-villa-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.featured-villa-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #e5e5e5;
}

.featured-villa-content {
    padding: 16px;
    flex-grow: 1;
}

.featured-villa-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.featured-villa-content .location {
    color: #555;
    font-size: 14px;
    margin-bottom: 6px;
}

.featured-villa-content .price {
    font-size: 15px;
    font-weight: 600;
    color: #0078d4;
}

.featured-villas-button {
    text-align: center;
    margin-top: 24px;
}

.view-all-btn {
    padding: 10px 20px;
    font-size: 15px;
}

.no-featured-message {
    text-align: center;
    font-size: 16px;
    color: #666;
    padding: 20px 0;
}

/* ----------------------------------------------------
   HOME SEARCH CARD
---------------------------------------------------- */
.home-search-card {
    padding: 24px;
    margin-bottom: 32px;
    box-sizing: border-box;
}

.home-search-card label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: block;
}

.home-search-card input,
.home-search-card select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    font-size: 15px;
    background: #fff;
    color: #333;
    margin-bottom: 12px;
}

.home-search-card button,
.home-search-card .btn-primary {
    background: #0078d4;
    border-radius: 3px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    margin-top: 8px;
    color: #fff;
    border: none;
}

.home-search-card .form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.home-search-card .search-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

/* ----------------------------------------------------
   DATE FIELD + CUSTOM CALENDAR ICON
---------------------------------------------------- */
.date-wrapper {
    position: relative;
}

.date-wrapper input[type="date"] {
    padding-right: 40px;
}

.date-wrapper .calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url('/assets/icons/calendar.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    pointer-events: none;
}

input[type="date"] {
    -moz-appearance: textfield;
}

/* ----------------------------------------------------
   HOME CARDS – RESPONSIVE GRID
---------------------------------------------------- */
.home-cards {
    display: grid;
    gap: 24px;
    margin: 40px auto;
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
    .home-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-cards {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------
   LOCATION GALLERY
---------------------------------------------------- */
.location-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.location-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.location-video iframe {
    width: 100%;
    height: 300px;
    border-radius: 4px;
}

/* ----------------------------------------------------
   TEAM GRID
---------------------------------------------------- */
.team-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 840px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-member img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto 12px;
}

.team-member h3,
.team-member p {
    text-align: center;
}

/* ----------------------------------------------------
   ACTIVITIES — CLEAN, SAFE, ISOLATED
---------------------------------------------------- */
.activity-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.activity-image-block {
    flex: 0 0 40%;
    max-width: 40%;
    margin: 0 16px 12px 0;
}

.activity-image-block img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-image-note {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #666;
}

@media (max-width: 768px) {
    .activity-card {
        flex-direction: column;
    }

    .activity-image-block,
    .activity-content {
        max-width: 100%;
        flex: 0 0 100%;
        margin: 0 0 16px 0;
    }

    .activity-image-note {
        text-align: center;
    }
}

@media (min-width: 900px) {
    .activity-card .activity-image-block img {
        height: 220px;
        object-fit: cover;
    }
}

/* ----------------------------------------------------
   BUTTON FIXES
---------------------------------------------------- */
.btn {
    color: #fff !important;
    font-size: 16px !important;
    text-indent: 0 !important;
    background-image: none !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    color: #333 !important;
    border-color: currentColor !important;
    opacity: 1 !important;
}

.btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* ----------------------------------------------------
   CONTACT FORM BUTTON FIX
---------------------------------------------------- */
.contact-form .btn-primary {
    background: #0077cc !important;
    color: #ffffff !important;
    border: none;
}

.contact-form .btn-primary:hover {
    background: #005fa3 !important;
}

/* ----------------------------------------------------
   GLOBAL SCROLL FIX
---------------------------------------------------- */
body {
    overflow-x: hidden;
}

/* ----------------------------------------------------
   HERO — CLEAN, MODERN, CONTAINER-CLAMPED
---------------------------------------------------- */
.hero {
    width: 100%;
    min-height: 480px;
    background-size: cover;
    background-position: center top;
    border-radius: var(--radius-lg);
    margin-top: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-6) 0;
    box-shadow: var(--shadow-soft);

    /* Prevent horizontal overflow */
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    color: #fff !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.65);

    /* Clamp text inside container */
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
/* ----------------------------------------------------
   FLOATING "LIST YOUR PROPERTY" BANNER — ALWAYS VISIBLE
---------------------------------------------------- */
#forsale-float-banner {
    position: fixed;
    top: 110px; /* safely below navigation */
    right: 20px;
    z-index: 99999;

    background: rgba(0, 119, 204, 0.85); /* translucent blue */
    backdrop-filter: blur(8px);

    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);

    opacity: 0;                 /* start invisible */
    transform: translateY(20px); /* slide up */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#forsale-float-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

#forsale-float-banner .forsale-float-link {
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none !important;
    display: block;
    letter-spacing: 0.4px;
}

#forsale-float-banner:hover {
    background: rgba(0, 95, 163, 0.92);
}

/* Mobile version */
@media (max-width: 600px) {
    #forsale-float-banner {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 14px 20px;
        text-align: center;
        border-radius: 10px;
    }
}
