/* Custom dropdown menu for property types */
.custom-dropdown {
    padding: 15px;
    width: 600px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}


/* Simple dropdown menu */
.simple-dropdown-menu {
    min-width: 200px;
}

/* Gallery styles */
.gallery-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-thumbs-row {
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.gallery-thumb.selected {
    opacity: 1;
    border: 2px solid #022b1b;
}

/* Payment plan styles */
.payment-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.payment-percent h2 {
    color: #022b1b;
    margin-bottom: 5px;
}

.payment-label {
    color: #666;
    font-size: 14px;
}

/* Amenities styles */
.amenity {
    margin-bottom: 20px;
}

.amenity i {
    font-size: 24px;
    color: #e1b24e;
    margin-bottom: 5px;
}

.amenity-label {
    color: #333;
    font-size: 13px;
}

/* Logo strip animation */
.logo-strip-section {
    overflow: hidden;
    white-space: nowrap;
}

.logo-strip-row {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.logo-item {
    display: inline-block;
    margin-right: 40px;
    vertical-align: middle;
}

.logo-item img {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-dropdown {
        width: 300px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-main-img {
        height: 300px;
    }
    
    .payment-item {
        margin-bottom: 15px;
    }
}




/* Ensure dropdowns work properly */
.dropdown-menu {
    pointer-events: auto;
    margin-top: 0;
    /* Remove gap between toggle and menu */
}

/* Slight animation for smoother appearance */
.dropdown-menu {
    transition: opacity 0.2s, visibility 0.2s;
}

.navbar .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Custom styles for the page */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    background: #f7f8fa;
}

.navbar-brand {
    font-weight: bold;
}

.hero {
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    height: 340px;
    color: #fff;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    text-align: center;
}

.property-card img,
.community-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.feature-icon {
    font-size: 2.2rem;
    color: #3366cc;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.carousel-item img {
    max-height: auto;
    object-fit: cover;
}

.agent-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 6px #0001;
}

.faq-header button {
    font-size: 1.1rem;
}

.testimonial {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px #0001;
    padding: 1.2rem;
}

.footer {
    background: #022b1b;
    color: #e1b24e;
    padding: 2rem 0;
}

.footer a {
    color: #e1b24e;
    text-decoration: none;
}

.badge-award {
    background: #f7c948;
    color: #fff;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0.6rem;
}

.news-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width:768px) {
    .hero {
        height: 220px;
    }

    .hero-content {
        padding-top: 55px;
    }
}

/* Mobile responsive styles (under 992px) */
@media (max-width: 991.98px) {

    /* White navbar toggler icon */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        display: none;
        position: static;
        float: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.2);
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-item {
        color: #e1b24e !important;
        padding: 10px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hide the desktop image dropdowns on mobile */
    .custom-dropdown {
        display: none !important;
    }

    /* Nav items styling */
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Simple list dropdown styling */
    .simple-dropdown .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.2);
    }
}

/* Desktop styles (992px and up) */
@media (min-width: 992px) {

    /* Hide mobile dropdowns */
    .dropdown-menu:not(.custom-dropdown):not(.simple-dropdown-menu) {
        display: none !important;
    }

    /* Desktop hover dropdowns */
    .dropdown-menu.custom-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        border-radius: 0px;
        z-index: 1000;
        width: auto;
        white-space: nowrap;
    }

    /* Simple list dropdown for desktop */
    .dropdown-menu.simple-dropdown-menu {
        display: none;
        background: #fff;
        padding: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        border-radius: 0;
        position: absolute;
        top: 100%;
        z-index: 999;
        min-width: 200px;
    }

    .simple-dropdown-menu .dropdown-item {
        color: #2a2a2a !important;
        padding: 10px 20px !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .simple-dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .navbar-nav .nav-item.dropdown:hover .custom-dropdown,
    .navbar-nav .nav-item.dropdown:hover .simple-dropdown-menu {
        display: block;
    }

    .navbar-nav .nav-item.dropdown:hover .custom-dropdown {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }


    /* Mobile responsive styles */
    @media (max-width: 991.98px) {
        .dropdown-menu.custom-dropdown {
            display: none !important;
        }
    }

    /* Enable hover effects only on desktop */
    .dropdown-toggle.nav-link {
        pointer-events: auto;
    }
}


.villa-row {
    transition: all 0.3s ease;
}

.villa-row:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 767.98px) {
    .villa-row {
        margin-bottom: 1rem !important;
    }
}

.gallery-main-img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.3rem;
}

.gallery-thumb {
    height: 100px;
    object-fit: cover;
    border-radius: 0px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s, outline 0.2s;
    outline: 2px solid transparent;
}

.gallery-thumb.selected,
.gallery-thumb:hover {
    outline: 2px solid #222;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.11);
}

@media (max-width: 768px) {
    .gallery-main-img {
        max-height: 220px;
    }

    .gallery-thumb {
        height: 60px;
    }
}

.gallery-thumbs-row {
    flex-wrap: wrap;
}

.main-img-padding {
    padding-left: 60px;
    padding-right: 60px;
}

@media (max-width: 991.98px) {

    /* Adjusts for Bootstrap's desktop breakpoint */
    .main-img-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.invest-heading {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 1.7rem;
    font-weight: 400;
    margin-bottom: 18px;
}

.invest-intro {
    color: #555;
    font-size: 0.8rem;
    margin-top: 10px;
    margin-bottom: 26px;
}

.invest-number {
    width: 38px;
    height: 38px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.invest-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.invest-desc {
    font-size: 0.7rem;
    color: #757575;
    line-height: 1.6;
}

@media (max-width: 991.98px) {

    .invest-heading,
    .invest-intro {
        text-align: center;
    }

    .invest-cols {
        margin-top: 28px;
    }
}

@media (max-width: 767.98px) {
    .invest-heading {
        font-size: 1.3rem;
    }

    .invest-number {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}


.logo-strip-section {
      background: #eef2f6;
      overflow: hidden;
      padding: 24px 0;
    }
    .logo-strip-row {
      display: flex;
      flex-wrap: nowrap;
      animation: scroll-left 26s linear infinite;
      /* For manual scroll on small screens: */
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .logo-strip-row::-webkit-scrollbar { display: none; }

    .logo-item {
      flex: 0 0 auto;
      margin-right: 46px;
      display: flex;
      align-items: center;
      min-width: 110px;
      max-height: 64px;
    }
    .logo-item img {
      max-height: 60px;
      max-width: 130px;
      object-fit: contain;
      filter: none;
      background: #fff;
      border-radius: 6px;
      box-shadow: 0 1px 6px rgba(0,0,0,0.06);
      padding: 2px 8px;
    }
    .logo-item:last-child { margin-right: 0; }

    /* Auto-scroll animation */
    @keyframes scroll-left {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    /* To make infinite effect, double the logos inside row! */

    @media (max-width: 767.98px) {
      .logo-item {
        margin-right: 28px;
        min-width: 90px;
      }
      .logo-item img {
        max-height: 44px;
        max-width: 80px;
      }
      .logo-strip-row {
        animation-duration: 18s;
      }
    }



    .faq-title {
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
      font-size: 2.7rem;
      text-align: center;
      margin: 32px 0 34px 0;
    }
    .faq-question {
      font-size: 1.12rem;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
      font-weight: 400;
    }
    .faq-accordion .accordion-item {
      border: none;
      border-bottom: 1px solid #e3e3e3;
      border-radius: 0;
    }
    .faq-accordion .accordion-button {
      font-size: 1.05rem;
      background: transparent;
      box-shadow: none;
      color: #111;
      padding-left: 0;
      padding-right: 0;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
      font-weight: 400;
      border-radius: 0;
      transition: background 0.2s;
    }
    .faq-accordion .accordion-button:not(.collapsed) {
      background: transparent;
      color: #000;
    }
    .faq-accordion .accordion-body {
      color: #888;
      font-size: 0.98rem;
      background: transparent;
      padding-left: 2.5rem;
      padding-bottom: 1rem;
      padding-top: 0.4rem;
    }
    .faq-accordion .accordion-button::after {
      font-size: 1.4rem;
      background-image: none;
      content: "\25BC";
      transition: transform 0.2s;
    }
    .faq-accordion .accordion-button:not(.collapsed)::after {
      content: "\2191";
      transform: rotate(0deg);
    }
    /* Remove extra blue border on click */
    .faq-accordion .accordion-button:focus {
      border-color: transparent;
      box-shadow: none;
    }
    @media (max-width: 991.98px) {
      .faq-title { font-size: 2rem; }
    }
    @media (max-width: 767.98px) {
      .faq-title { font-size: 1.3rem; }
      .faq-accordion .accordion-body { padding-left: 1.3rem; }
    }