﻿.background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 840px;
    z-index: -2;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}
h5 {
    color: #011722 !important;
}
.layer1-wrapper {
    position: absolute;
    top: 0; /* Will be updated by JS to match section position */
    left: 0;
    width: 100vw;
    height: 0; /* Will be updated by JS to match section height */
    z-index: -1;
    background-image: url('/Images/Layer 1.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}


.hero-text {
    text-align: center;
    padding: 2rem 1rem;
}
.listing-image {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .listing-image:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        z-index: 2;
    }
.image-overlay-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 12px;
}

    .image-overlay-wrapper img {
        display: block;
        width: 100%;
        transition: transform 0.4s ease;
        border-radius: inherit;
    }

    .image-overlay-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0); /* initially transparent */
        transition: background 0.3s ease;
        border-radius: inherit;
        z-index: 1;
    }

    .image-overlay-wrapper:hover img {
        transform: scale(1.03);
    }

    .image-overlay-wrapper:hover::after {
        background: rgba(0, 0, 0, 0.25); /* subtle dark overlay on hover */
        
    }

.hero-title {
    font-family: 'Kollektif', sans-serif;
    font-weight: 700;
    font-size: 7vw; /* responsive size */
    line-height: 1.1;
    letter-spacing: 0;
    margin: 0 auto;
    max-width: 90%;
}

.hero-subtitle {
    font-family: 'Kollektif', sans-serif;
    font-weight: 400;
    font-size: 3vw; /* responsive size */
    line-height: 1.3;
    letter-spacing: 0;
    margin: 1.5rem auto 0;
    max-width: 90%;
}

/* Optional: Fine-tune sizes on larger screens */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 80px;
        max-width: 803px;
    }

    .hero-subtitle {
        font-size: 24px;
        max-width: 788px;
    }
}


/* Main background image */
.background-wrapper-main {
    background-image: url('/Images/Welcome/cover photo (1).png');
    z-index: -2;

}

/* Main background image */
.background-wrapper-main-landlord {
    background-image: linear-gradient(rgba(0, 34, 48, 0.5), rgba(0, 34, 48, 0.5)), url('/Images/Welcome/landlord-main.jpg');
    z-index: -2;
}
body {
    background-color: #FCFBF9;
}
@media (min-width: 1400px) {
    .background-wrapper {
        transform: scale(0.95);
        transform-origin: top center;
        width: 105.26vw; /* = 100 / 0.95 */
        left: -2.63vw; /* = -( (width - 100) / 2 ) */
        background-position: top center;
    }
}

@media (max-width: 760px) {
    .background-wrapper {
        transform: scale(0.8);
        transform-origin: top center;
        width: 126vw; /* 1 / 0.8 = 125% */
        left: -12.5vw; /* Center it */
    }
}

@media (max-width: 480px) {
    .background-wrapper {
        height: 616px !important; /* Maintain specific height for small screens */
        min-height: 616px !important;
    }
}

.navbar-nav .nav-link
{
    color: white;
}
.dropdown-item a {
    color: black;
}
/* ✅ Apply white filter to top-level nav items and icons (including globe) */
#main-navbar .nav-item > .nav-link,
#main-navbar .nav-item > .nav-link > .fa,
#main-navbar .nav-item > .nav-icon,
#main-navbar .nav-icon .global-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* ❌ Exclude dropdown items and their icons from being inverted */
#main-navbar .dropdown-menu .dropdown-item,
#main-navbar .dropdown-menu .dropdown-item i {
    filter: none !important;
}


#main-navbar .toggle-container img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* White for sun/moon SVGs */
}
#main-navbar .navbar-brand img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* White for sun/moon SVGs */
}

.navbar {
    background-color: transparent !important;
    transition: background-color 0.3s ease-in-out;
    z-index: 1001;
}
.dropdown-menu {
    color: #000;

}
    .login-btn {
    background-color: white;
    color: #000000;
}


.login-btn:hover{
    color: #000000;
    background-color: #eee7e7;
}

.hero-content {
    color: white;
    text-align: left;
    padding-top: 108px;
    padding-bottom: 38px;
}
.hero-content-landlord {
    color: white;
    text-align: left;
    padding-top: 55px;
    padding-bottom: 38px;
}
.hero-text {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}
/* Arabic override */

.headline-wrapper {
    position: relative;
    display: inline-block;
}

.unforgettable {
    font-family: 'Kollektif', sans-serif;
    font-size: clamp(28px, 6vw, 60px);
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.stays {
    font-family: 'Buongiorno_Rastellino', cursive;
    font-size: clamp(60px, 15vw, 160px); /* Responsive: min 60px, max 160px */
    position: absolute;
    left: 50%;
    top: -30%;
    transform: translate(-50%, -20%);
    z-index: 2;
    white-space: nowrap;
    pointer-events: none;
}

.tagline {
    font-family: 'Kollektif', sans-serif;
    font-size: clamp(14px, 2.3vw, 27px); /* Responsive font size */
    letter-spacing: 0.5em;
    margin-top: clamp(30px, 12vw, 160px); /* Adjusts space under text */
    text-transform: uppercase;
}

.search-bar {
    background-color: white;
    border-radius: 50px;
    padding: 20px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 100%;
    box-sizing: border-box;
    direction: ltr; /* fallback default */

}

html[dir="rtl"] .search-bar {
    direction: rtl;
}

.search-group {
    display: flex;
    align-items: center;
    flex: 1 1 130px;
    max-width: 160px;
    min-width: 120px;
 
    gap: 10px;
}

.search-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.search-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.search-bar label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue-color);
    white-space: nowrap;
    margin-inline-start: 15px;
}

html[dir="rtl"] .search-bar label {
    margin-inline-start: 0;
    margin-inline-end: 15px;
    text-align: right;
}
.search-bar select,
.search-bar input {
    padding: 9px 1px 10px 12px;
    border: none;
    font-size: 15px;
    background-color: transparent;
    color: #333;
    min-width: 120px;
    outline: none;
    /* NEW FIX FOR OVERFLOW */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


html[dir="rtl"] .search-bar input,
html[dir="rtl"] .search-bar select {
    text-align: right;
    direction: rtl;
}

.search-bar select option,
.search-bar input::placeholder {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.search-bar button {
    background-color: var(--primary-blue-color);
    color: white;
    border: none;
    padding: 0px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    flex-shrink: 0;
    margin: 0;
    align-self: center;
}

    .search-bar button::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-inline-end: 8px;
    }

html[dir="rtl"] .search-bar button::before {
    margin-inline-end: 8px;
}

.separator {
    height: 70px;
    width: 1px;
    background-color: #8CBED1;
    flex-shrink: 0;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0; /* hide visually */
    cursor: pointer; /* still clickable */
    position: relative;
    z-index: 2;
}

@media (min-width: 1200px) {
    .search-bar {
        flex-wrap: nowrap;
        padding: 20px 60px;
    }

    .search-group {
        max-width: 160px;
    }

    .container {
        min-width: 950px;
    }
}

@media (max-width: 1199px) and (min-width: 250px) {
    .search-bar {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: stretch;
        padding: 20px 40px;
        gap: 20px;
    }

    .search-group {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
        min-width: 200px;
        margin: 0;
        align-items: center;
        gap: 10px;
    }

    .search-content {
        flex: 1;
    }

    .search-bar label {
        margin-inline-start: 10px;
    }

    .search-bar select,
    .search-bar input {
        min-width: 0;
        width: 100%;
        padding: 9px 1px 10px 10px;
    }

    .separator {
        display: none;
    }

    .search-bar button {
        width: auto;
        margin: 10px auto 0;
        padding: 0 30px;
        height: 40px;
    }
}



/* Updated Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 300px; /* Fixed width instead of 100% */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overflow: hidden;
    background-color: #F5F2ED;
    border: 1px solid #CBC3B4;
}
.custom-dropdown-color {
    background-color: #F5F2ED;
    border: 1px solid #CBC3B4;
}
.dropdown-open .dropdown-content {
    display: block;
}

.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px; /* Reduced padding */
    border-bottom: 1px solid #eee;
}

    .option-row:last-child {
        border-bottom: none;
    }

.option-label {
    display: flex;
    flex-direction: column;
}

.option-name {
    font-weight: 500;
    font-size: 14px; /* Smaller font */
    margin-bottom: 2px;
    color: #333; /* Ensure visibility */
}

.option-description {
    font-size: 12px; /* Smaller font */
    color: #666;
}

.counter {
    display: flex;
    align-items: center;
}

.counter-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px; /* Smaller buttons */
    height: 28px; /* Smaller buttons */
    border-radius: 50%;
    border: 1px solid #006064;
    background-color: white;
    color: #006064;
    font-size: 16px; /* Smaller font */
    cursor: pointer;
    user-select: none;
}

.counter-value {
    width: 30px; /* Smaller width */
    text-align: center;
    font-size: 14px; /* Smaller font */
    color:#000000;
}

.custom-content{
    position:relative;
}
/* Toggle switch for pets */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .toggle-slider {
    background-color: #006064;
}

    input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }
#optionsDisplay {
    padding: 10px 12px;
    color: #333; /* Make sure text is visible */
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
    display: flex;
    align-items: center;
}
.custom-rounded-card {
    border-top-left-radius: 12px;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}
[dir="rtl"] .custom-rounded-card {
    border-top-left-radius: 100px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}
.custom-review-card {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #54A8BD;
}

.sand-color {
    background-color: #F5F2ED;
}
.reviews-navigation button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    color: #378DAF;
    background-color: transparent;
    transition: all 0.3s ease;
}
    .reviews-navigation button:hover:not(.disabled) {
        background-color: #f8f9fa;
        color: #212529;
        cursor: pointer;
    }

    .reviews-navigation button.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
.faq-section .accordion-item {
    border-radius: 12px;
    overflow: hidden;
 
    background-color: transparent;
}

.faq-section .accordion-button {
    border-radius: 12px;
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.custom-faq-button::after {
    display: none !important;
}

.faq-icon {
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: var(--primary-blue-color);
    order: 1;
    margin-left: auto;
}

.accordion-item.show-bg,
.custom-faq-button:not(.collapsed) {
    background-color: #F5F2ED;
}

[dir="rtl"] .faq-section .accordion-button {
    flex-direction: row-reverse;
}

[dir="rtl"] .faq-icon {
    order: -1;
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .faq-text {
    text-align: right;
}
.popular-listings-section .listing-image {
    height: 100%;
    object-fit: cover;
}
.popular-listings-section .row > div {
    display: flex;
    flex-direction: column;
}
@media (min-width: 992px) {
    .popular-listings-section .col-lg-6 {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.language-switch-text {
    color: white !important;
}
.property-section {
    padding: 20px 0;
}

.property-card {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50px;
}

/* Default (Desktop) */
.property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 50%;
    padding: clamp(15px, 3vw, 30px);
    background: rgba(0, 0, 0, 0.4); /* Slightly lighter for better blur effect */
    color: white;
    border-radius: 50px 50px 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center */
    box-sizing: border-box;
    overflow: hidden;
    /* Blur Effect */
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px); /* For Safari */
}


/* Mobile - Remove absolute to allow full content visibility */
@media (max-width: 768px) {
    .property-card {
        display: flex;
        flex-direction: column;
    }

    .property-overlay {
        position: static; /* No absolute positioning */
        min-height: unset;
        border-radius: 0 0 15px 15px;
        background: rgba(0, 0, 0, 0.6);
    }

    .property-image {
        border-radius: 15px 15px 0 0;
    }
}


    .property-overlay h2 {
        font-size: clamp(1.3rem, 2vw, 2rem);
        font-weight: bold;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .property-overlay p {
        font-size: clamp(0.85rem, 1.2vw, 1rem);
        margin-bottom: 15px;
        line-height: 1.5;
    }

.property-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .property-buttons a {
        display: inline-block;
        padding: clamp(8px, 1.5vw, 12px) clamp(15px, 3vw, 20px);
        border-radius: 8px;
        text-decoration: none;
        font-size: clamp(0.8rem, 1vw, 1rem);
        text-align: center;
    }

.btn-view {
    background: #FBFAF9;
    color: #007D9C;
}

.btn-list {
    background: #007D9C;
    color: white;
    display: inline-flex; /* allows text and icon to align */
    align-items: center; /* vertically center icon with text */
    gap: 8px; /* space between text and icon */
}

.btn-contact {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    display: inline-flex; /* allows text and icon to align */
    align-items: center; /* vertically center icon with text */
    gap: 8px; /* space between text and icon */
   border-radius: 12px;
}

.btn-join {
    background: #ECE9E3;
    color: #595752;
    border: 1px solid #595752;
    display: inline-flex; /* allows text and icon to align */
    align-items: center; /* vertically center icon with text */
    gap: 8px; /* space between text and icon */
    border-radius: 12px;
}
    .btn-join:hover {
        background: #d6d3cd; /* darker shade of #ECE9E3 */
        color: #595752; /* keep text color same */
    }
[dir="rtl"] .btn-icon {
    transform: scaleX(-1);
}

@media (max-width: 480px) {
    .btn-icon {
        width: 14px;
        height: 14px;
    }
}


/* Mobile Optimization */
@media (max-width: 768px) {
    .property-buttons {
        width: 100%;
        justify-content: center;
    }
}
/* Section title */
.why-now-title {
    font-weight: 700;
    font-size: 2rem;
}

/* Subtitle / description */
.why-now-subtitle {
    font-size: 1rem;
    color: #333;
}

/* Card styles */
.why-now-card {
    background-color: #ECE9E3;
    width: 100%;
    max-width: 410px;
    height: 222px;
    padding: 40px 24px;
    border-radius: 12px;
    border-top-right-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Icon inside card */
.card-icon {
    margin-bottom: 16px;
    max-width: 64px;
}

/* Card title */
.card-title {
    font-weight: 500;
    margin-bottom: 8px;
    color: #011722;
}

/* Card text */
.card-text {
    font-size: 0.9rem;
    color: #011722;
}

/* Card hover effect (optional) */
.why-now-card:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .why-now-card {
        height: auto;
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .why-now-card {
        padding: 20px 16px;
    }
}


