/* Layout & Wrapper Styles */
#main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
}

section {
    padding: 0 !important;
}

/* Custom Page & Layout Elements */
.custom-page-title {
    margin-top: 80px;
}

.section-bg-primary {
    margin-top: 0px;
}

/* Card & List Styles */
.listing-card {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.hover-shadow-md {
    transition: box-shadow 0.3s ease;
}

.hover-shadow-md:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Icon & Badge Styles */
.square--30 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.icon-spacing {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.icon-spacing i {
    font-size: 18px;
    margin-right: 5px;
    margin-left: 10px;
}

/* Text & Typography */
.text-muted-2 {
    margin-left: 5px;
    font-size: 18px;
}

.icon-spacing .text-muted-2 {
    margin-left: 5px;
    font-size: 18px;
}

/* Price Display Styles */
.original-price {
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.8;
}

.current-price {
    font-size: 20px;
    font-weight: bold;
    margin-top: -5px;
}

.price-period {
    font-size: 14px;
    opacity: 0.8;
}

/* Search & Filter Styles */
#roomsContainer {
    position: absolute !important;
    z-index: 100 !important;
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-top: none !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    top: 100% !important;
    left: 0 !important;
    box-shadow: 0px 4px 5px rgba(0,0,0,0.2) !important;
}

#searchInput {
    position: relative !important;
}

/* Filter Components */
.filter-switch-block {
    flex: 1;
}

.item-shorting {
    margin-top: 40px;
    flex: 1;
}

.item-shorting-box-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 15px;
}

.filter-form {
    width: 100%;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item {
    flex: 1;
    min-width: 0;
}

/* Form Elements */
.show-all-dropdown select {
    width: 100%;
    height: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.filter-switch-block .d-flex {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.filter-switch-block .d-flex:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-switch-block .text-muted-2 {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-check-input {
    width: 3em;
    height: 1.5em;
    margin-left: 10px;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Footer Styles */
.dark-footer {
    flex-shrink: 0;
    width: 100%;
    background: #303030;
    position: relative;
    z-index: 1;
}

.footer-widget {
    padding-top: 20px;
}

.nav-footer-logo img {
    width: 150px !important;
    height: auto;
}

/* Section & Heading Styles */
.sec-heading {
    text-align: center;
}

.sec-heading h2,
.sec-heading p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Navigation Menu Styles */
.nav-menus-wrapper ul.nav-menu > li > a {
    color: #fff !important; /* Default to white for initial blue background */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

.nav-menus-wrapper ul.nav-menu > li > a:hover {
    color: #ddd !important; /* Slightly lighter shade on hover */
}

.nav-menus-wrapper ul.nav-menu li .dropdown-menu li a {
    color: #fff !important;
}

.nav-menus-wrapper ul.nav-menu li .dropdown-menu li a:hover {
    color: #ddd !important;
}

/* Change to black when navigation bar is scrolled past the initial section */
.navigation.scrolled .nav-menus-wrapper ul.nav-menu > li > a {
    color: #000 !important;
}

.navigation.scrolled .nav-menus-wrapper ul.nav-menu > li > a:hover {
    color: #333 !important;
}

.navigation.scrolled .nav-menus-wrapper ul.nav-menu li .dropdown-menu li a {
    color: #000 !important;
}

.navigation.scrolled .nav-menus-wrapper ul.nav-menu li .dropdown-menu li a:hover {
    color: #333 !important;
}

/* Ensure menu items remain white inside bg-primary section */
.bg-primary .nav-menus-wrapper ul.nav-menu > li > a {
    color: #fff !important;
}

.bg-primary .nav-menus-wrapper ul.nav-menu > li > a:hover {
    color: #ddd !important;
}

.bg-primary .nav-menus-wrapper ul.nav-menu li .dropdown-menu li a {
    color: #fff !important;
}

.bg-primary .nav-menus-wrapper ul.nav-menu li .dropdown-menu li a:hover {
    color: #ddd !important;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .section-bg-primary {
        margin-top: 105px;
    }
}

@media (max-width: 1200px) {
    .filter-switch-block {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #main-wrapper {
        min-height: 100vh;
    }
    
    .content-wrapper {
        padding-bottom: 20px;
    }

    .nav-menus-wrapper {
        background-color: #000;
    }

    .nav-menus-wrapper ul.nav-menu > li > a {
        color: #fff !important;
    }

    .nav-menus-wrapper ul.nav-menu > li {
        border-bottom: 1px solid #333;
    }

    .nav-menus-wrapper ul.nav-menu li .dropdown-menu {
        background-color: #000;
    }

    .nav-menus-wrapper ul.nav-menu li .dropdown-menu li a {
        color: #fff !important;
    }

    .nav-menus-wrapper.nav-menus-wrapper-open {
        background-color: #333;
        color: white;
    }

    .sec-heading {
        width: 100%;
        margin: 0 auto;
    }

    .row {
        justify-content: center;
    }

    .col-lg-7, .col-md-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .filter-container {
        flex-direction: column;
    }

    .filter-item {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .nav-brand .svg-icon img {
        max-width: 100px !important;
        height: auto;
    }
}

@media (max-width: 576px) {
    .sec-heading h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .sec-heading p {
        font-size: 14px;
    }

    .classical-cats-wrap {
        padding: 10px;
    }

    .classical-cats-boxs {
        padding: 20px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-lg-4, .col-md-4, .col-sm-6, .col-6 {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.serit {
    padding: 10px 0px 50px;
}

/* WhatsApp Styles */
.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-icon img {
    animation: pulse 2s infinite;
}

.whatsapp-bubble {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    cursor: pointer;
}

.whatsapp-bubble p {
    margin: 0;
}

/* Property Card Styles */
.property-image {
    position: relative;
    overflow: visible; /* Changed from hidden to allow badge to overflow */
}

.property-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1; /* Below badges */
}

.price-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2; /* Above gradient, below badges */
    color: white;
}

.price-overlay .original-price {
    font-size: 16px;
    text-decoration: line-through;
    opacity: 0.8;
}

.price-overlay .current-price {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.price-overlay .price-period {
    font-size: 14px;
    opacity: 0.8;
}

.badge-red {
    background-color: #ff3b30;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    padding: 4px 8px;
}

.property-card {
    position: relative;
    transition: all 0.3s ease;
}

/* Discount Badge Styles */
.discount-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    right: 10px;
    bottom: -25px; /* Matches your original placement */
    color: #fff;
    font-size: 15px;
    background-color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 100; /* Increased to ensure it’s above status badges */
    border: solid 3px #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateZ(0); /* Forces GPU acceleration */
}

.discount-badge::after {
    content: "%";
    font-size: 12px;
    margin-left: 1px;
}

/* Status Badges */
.status-badge {
    z-index: 3; /* Below discount badge */
}

/* Hover Effect */
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.property-card:hover .discount-badge {
    transform: translateZ(0) scale(1.1); /* Slight scale effect on hover */
    transition: transform 0.3s ease;
}

#filterStatus {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-size: 14px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

#filterStatus.d-none {
    opacity: 0;
}