﻿body {
}


.position-relative:hover .bi-x-circle-fill {
    transform: scale(1.2);
    transition: transform 0.2s ease-in-out;
}

.border-dashed {
    border: 2px dashed #dee2e6 !important;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 120px;
    border: 2px dashed #ccc;
    padding: 10px;
    background: #fdfdfd;
}




    /* Style for each generated thumbnail */
    .image-preview-container .img-thumbnail {
        width: 100px;
        height: 100px;
        object-fit: cover; /* Prevents image distortion */
        border-radius: 6px;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s;
    }

        /* Subtle hover effect for the thumbnails */
        .image-preview-container .img-thumbnail:hover {
            transform: scale(1.05);
            z-index: 1;
        }

/* Error message styling */
.image-error-msg {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Optional: styling the actual file input to look cleaner */
.multi-image-input {
    border-radius: 6px;
    padding: 10px;
}

/* Position the wrapper so the button can sit in the corner */
.preview-item img {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Style the delete button */
.remove-img {
    border-radius: 50%;
    transform: translate(30%, -30%); /* Moves it slightly outside the image corner */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.preview-item:hover {
    opacity: 0.9;
}

/* Remove default arrows in Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove default arrows in Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Ensure buttons and input look uniform */
.input-group .btn {
    z-index: 0;
}


/* Ensure the grid items have consistent heights */
.product-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

    .product-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }

/* Fix the text overflow for descriptions */
.product-name-list_grid {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Shows max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px; /* Consistent height for the text area */
    line-height: 1.4;
}

.fs-10 {
    font-size: 10px;
}

.fs-12 {
    font-size: 12px;
}

.fs-13 {
    font-size: 13px;
}

.fs-16 {
    font-size: 16px;
}

/* Style for the badge on the image */
.dis-badge {
    border-radius: 4px;
    font-weight: bold;
    opacity: 0.9;
}


/* Custom Yellow-Orange Gradient Button */
.btn-gradient-orange {
    background: linear-gradient(90deg, #FFD200 0%, #F7971E 100%);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .btn-gradient-orange:hover {
        background: linear-gradient(90deg, #F7971E 0%, #FFD200 100%); /* Flips gradient on hover */
        filter: brightness(1.05);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(247, 151, 30, 0.4);
    }

    .btn-gradient-orange:active {
        transform: translateY(0);
    }

/* Helper for the font weight if not already defined */
.fw-500 {
    font-weight: 500;
}

.fs-14 {
    font-size: 14px;
}

/* Styling the active button in the radio group */
.btn-check:checked + .btn-outline-primary {
    background: linear-gradient(90deg, #FFD200 0%, #F7971E 100%);
    border-color: #F7971E;
    color: white;
}

.btn-outline-primary {
    border-color: #dee2e6;
    color: #666;
}

    .btn-outline-primary:hover {
        background-color: #fff9f0;
        color: #F7971E;
        border-color: #F7971E;
    }

#priceContainer {
    transition: all 0.3s ease-in-out;
}

#priceLabel {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Menu Item Styling */
.nav-link {
    color: #444 !important;
    padding: 1rem 1.2rem !important;
    transition: all 0.3s ease;
}

    /* Hover Effect: Text turns orange */
    .nav-link:hover {
        color: #F7971E !important;
    }

/* Dropdown Menu Styling */
.custom-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    margin-top: 0;
}

/* Show Dropdown on Hover */
@media (min-width: 992px) {
    .custom-dropdown:hover .dropdown-menu {
        display: block;
        animation: slideUp 0.3s ease-out;
    }
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header styling inside dropdown */
.dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 15px;
}

.dropdown-item {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
}

    .dropdown-item:hover {
        background-color: #fff9f0;
        color: #F7971E;
    }

/* Branding Color */
.text-orange {
    color: #F7971E;
}

/* Nav Item Spacing */
.nav-link {
    font-weight: 500;
    color: #333 !important;
    font-size: 14px;
    padding: 0.8rem 1rem !important;
    border-radius: 5px;
    transition: all 0.2s ease;
}

/* Hover State */
.custom-hover:hover .nav-link {
    background-color: #fff9f0;
    color: #F7971E !important;
}

/* Dropdown Animation */
@media (min-width: 992px) {
    .custom-hover:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: navFadeIn 0.3s ease-out;
    }
}

@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean Dropdown Style */
.dropdown-menu {
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

/* Off-white to Gray Gradient CTA */
.btn-cta-sell {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
    border: 1px solid #E0E0E0 !important;
    border-radius: 50px !important; /* Pill shape for CTA look */
    color: #333 !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    /* Hover Effect */
    .btn-cta-sell:hover {
        background: linear-gradient(180deg, #F9F9F9 0%, #EEEEEE 100%);
        border-color: #F7971E !important; /* Subtle orange border on hover */
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important;
    }

    /* Active/Click Effect */
    .btn-cta-sell:active {
        transform: translateY(0);
        background: #F0F0F0;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
    }

    /* Ensure the icon pops against the gray background */
    .btn-cta-sell i {
        font-size: 1.1rem;
    }


/* Highlights the card border for sponsored items */
.border-featured {
    border: 2px solid #ffc107 !important;
}

/* Optional: Add a subtle glow to the card */
.property-item-featured .product-box {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2) !important;
    transition: transform 0.3s ease;
}

    .property-item-featured .product-box:hover {
        transform: translateY(-5px);
    }

.btn-step:hover {
   // background-color: #f8f9fa;
    text-decoration: none;
}

.btn-step:focus {
    box-shadow: none;
}
/* Removes the default browser number arrows to prevent double spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* Select2 Custom Styling */ 
.select2-container--default .select2-selection--single {
    height: 45px !important; /* Taller, modern input */
    padding: 8px 12px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important; /* Rounded corners */
    transition: all 0.2s ease;
}

/* Focus State */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important; /* Modern Blue */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Results Dropdown Styling */
.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Individual Result Item */
.select2-results__option {
    padding: 10px 15px !important;
    font-size: 0.95rem;
}

/* Highlighted Item */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3b82f6 !important;
}

/* Fix Select2 height and borders to match the form input */
.select2-container--default .select2-selection--single {
    border: none !important;
    background-color: transparent !important;
    height: 38px !important; /* Adjusted for header height */
    display: flex !important;
    align-items: center !important;
}

/* Hide the arrow if it gets too crowded, or style it */
.select2-selection__arrow {
    top: 5px !important;
}

/* Ensure the text inside is aligned */
.select2-selection__rendered {
    padding-left: 0 !important;
    color: #444 !important;
    font-size: 13px;
}

/* Prevent the container from growing too tall */
.location-container {
    max-width: 500px; /* Optional: limits width */
    flex: 0 0 35%; /* Takes 35% of the search bar width */
    margin-bottom: 0 !important;
}

/* Button styling to ensure it fills the height */
.btn-gradient-orange {
    background: linear-gradient(90deg, #ff8a00, #ff5e00);
    transition: opacity 0.2s;
}

    .btn-gradient-orange:hover {
        opacity: 0.9;
    }


.property-slider-img {
    height: 500px;
    object-fit: cover; /* Crops image to fill area without stretching */
    background-color: #f8f9fa;
}

#propertyCarousel {
    max-width: 900px;
    margin: 0 auto;
}

/* Customizing the indicator dots */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

#mapPicker {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    z-index: 1; /* Ensures it doesn't overlap menus */
}

/* Custom Pale Orange Alert Styles */
.alert-success-message-orange {
    background-color: #FFDAB9 !important; /* PeachPuff */
    border: 1px solid #FFCC99;
    color: #8B4513; /* SaddleBrown for contrast */
}

.alert-failure-message-orange {
    background-color: #FFE5B4 !important; /* Moccasin */
    border: 1px solid #FFB347;
    color: #B22222; /* FireBrick for error visibility */
}

    /* Ensure the close button matches the theme */
    .alert-success-message-orange .btn-close,
    .alert-failure-message-orange .btn-close {
        filter: sepia(1) saturate(5) hue-rotate(-30deg);
    }

/* Maintain a 16:9 or 4:3 aspect ratio for property images */
.product-f-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Standard widescreen look */
    overflow: hidden;
    background-color: #f0f0f0;
}

.pro-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image to fill the space without distortion */
    transition: transform 0.3s ease;
}

/* Hover effect for better UX */
.property-item:hover .pro-img {
    transform: scale(1.05);
}

/* Sticky Sidebar positioning */
@media (min-width: 768px) {
    .sticky-filter {
        position: sticky;
        top: 1rem;
        height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}



/* Adjust 'top' to match your actual Navbar height (usually 56px in Bootstrap) */
:root {
    --nav-height: 56px;
    --sidebar-width: 280px;
}

.sidebar-filter {
    /* This calculates height to fit exactly between nav and bottom of screen */
    height: calc(100vh - var(--nav-height));
    width: var(--sidebar-width);
    position: fixed;
    z-index: 1050;
    top: var(--nav-height);
    left: 0;
    background-color: #f8f9fa;
    overflow-y: auto; /* Scrollbar appears only when content is long */
    padding: 1.5rem;
    border-right: 1px solid #dee2e6;
    transition: all 0.3s ease-in-out;
}

/* Prevent content from hiding behind fixed sidebar */
.content-wrapper-with-sidebar {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s ease-in-out;
    min-height: calc(100vh - var(--nav-height));
}

/* Toggle States */
.sidebar-filter.collapsed {
    left: calc(var(--sidebar-width) * -1);
}

.content-wrapper-with-sidebar.expanded {
    margin-left: 0;
}

/* Fixed Button Position relative to sidebar */
#sidebarToggle {
    position: fixed;
    left: calc(var(--sidebar-width) + 10px);
    top: calc(var(--nav-height) + 10px);
    z-index: 1100;
    transition: all 0.3s ease-in-out;
}

.sidebar-filter.collapsed + #sidebarToggle {
    left: 15px;
}

/* 1. Ensure the main container has a fixed height relative to the viewport */
.filter-sidebar-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px; /* Minimum height to look good */
    max-height: calc(100vh - 40px); /* Keeps it within the screen */
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* 2. This is the magic part: it grows to fill space and scrolls when content exceeds that space */
.filter-scrollable-area {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px; /* Space for the scrollbar */
}

/* 3. Keep the footer pinned and blending with the background */
.filter-footer {
    flex-shrink: 0; /* Prevents the footer from squishing */
    background-color: #f8f9fa;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* Standardizes scrollbar look */
.filter-scrollable-area::-webkit-scrollbar {
    width: 6px;
}

.filter-scrollable-area::-webkit-scrollbar-thumb {
    background-color: #cbd3da;
    border-radius: 10px;
}

/* Display sub-menu on hover */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%; /* Positions it to the right */
        margin-top: -1px;
        display: none; /* Hide by default */
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block; /* Show on hover */
    }

@media (min-width: 992px) {
    .nav-item.dropdown.custom-hover:hover > .dropdown-menu {
        display: block;
    }
}

.navbar-nav .nav-link {
    font-size: 0.9rem; /* Fine-tune size */
    white-space: nowrap;
}

/* Ensure the CTA buttons don't get too bulky */
.btn-cta-sell {
    min-width: max-content;
}

/* This ensures the container stays a consistent size */
.fixed-ad-box {
    height: 250px; /* Set your desired fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevents image spill-over */
}

#adImage {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    /* 'contain' ensures the whole image is visible without cropping */
    /* Change to 'cover' if you want the image to fill the box completely (might crop edges) */
    object-fit: contain;
}


/* Ensures images fill container without stretching */
.img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Change to 'contain' if you prefer seeing the whole image with borders */
    display: block;
}

/* Absolute centering for spinners over ads */
.ad-spinner-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* Fixed heights for containers to prevent layout shift */
.main-slider {
    height: 350px;
    position: relative;
}

.secondary-ad-box {
    height: 200px;
    position: relative;
}

@media (max-width: 768px) {
    .main-slider {
        height: 250px;
    }
}

/* Ensure the Ad image fits perfectly in its fixed box */
.fixed-ad-box {
    width: 100%;
    height: 200px; /* Or your preferred height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
}

#adImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Shows full image without cropping */
}

/* Fix for property list images (assuming they are inside .card-img-top) */
.property-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Best for property photos to fill the space */
}

.sticky-filter {
    position: sticky;
    top: 20px;
    z-index: 100;
}