/* Topbar background color */
#page-topbar {
    background-color: #405189 !important;
    border-bottom-color: #3d4d7f !important;
}

/* Topbar text colors for dark background */
#page-topbar .header-item,
#page-topbar .btn-topbar {
    color: rgba(255, 255, 255, 0.85) !important;
}

#page-topbar .navbar-header .logo-dark {
    display: none !important;
}

#page-topbar .navbar-header .logo-light {
    display: block !important;
}

/* Links container margin */
.ad-card-wide-content .mt-2 {
    margin-top: 1.5rem !important;
}

/* Gallery indicator */
.gallery-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    pointer-events: none;
}

.gallery-indicator i {
    font-size: 14px;
}

/* Image container hover effect */
.image-gallery-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.image-gallery-container:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.image-gallery-container img {
    transition: transform 0.3s ease;
}

.image-gallery-container:hover .gallery-indicator {
    background: rgba(0, 0, 0, 0.85);
    transition: background 0.2s ease;
}

/* Icon buttons for favorites and notes */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon i {
    font-size: 16px;
    line-height: 1;
}

.btn-icon.btn-sm {
    width: 28px;
    height: 28px;
}

.btn-icon.btn-sm i {
    font-size: 14px;
}

/* Source buttons in btn-group */
.btn-group .favorite-source-btn {
    width: auto;
    min-width: 36px;
    padding: 0.25rem 0.5rem;
    height: 31px; /* Match btn-sm height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-group .favorite-source-btn i {
    font-size: 14px; /* Match btn-sm icon size */
}

/* Ensure all buttons in btn-group have same height */
.btn-group .btn {
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price header with icons */
.price-header {
    position: relative;
    z-index: 1;
    margin-top: 8px;
}

.price-header .btn-icon {
    vertical-align: middle;
    position: relative;
    z-index: 2;
}

/* View details button positioning */
.d-flex.gap-2.mb-2 {
    position: relative;
    z-index: 10;
    margin-bottom: 8px !important;
}

.view-details-button {
    position: relative;
    z-index: 11;
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

/*.view-details-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}*/

/* Tooltip styling */
.tooltip {
    font-size: 12px;
}

.tooltip .tooltip-inner {
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    padding: 6px 8px;
}

/* Loading animation for favorite source buttons */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-icon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Carousel indicators */

    .carousel-indicators {
        bottom: -5px !important;
    }

    .carousel-indicators button {
        width: 4px !important;
        height: 4px !important;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.7) !important;
        border: 2px solid white  !important;
        margin: 0 5px;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

    .carousel-indicators .active {
        background-color: white  !important;
        opacity: 1 !important;
    }

/* Carousel arrows */

    .carousel-control-prev,
    .carousel-control-next {
        width: auto;
        background: none;
    }

    .carousel-control-prev i,
    .carousel-control-next i {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 10px;
        border-radius: 50%;
    }

    .carousel-control-prev {
        left: 0px !important;
    }

    .carousel-control-next {
        right: 0px !important;

    }

    /* arrows color */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-repeat: no-repeat !important;
        width: 24px;
        height: 24px;
    }

    .carousel-control-next-icon {
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"%3E%3Cline x1="8" y1="4" x2="16" y2="12" stroke="black" stroke-width="2"/%3E%3Cline x1="8" y1="20" x2="16" y2="12" stroke="black" stroke-width="2"/%3E%3Cline x1="16" y1="12" x2="8" y2="4" stroke="white" stroke-width="1"/%3E%3Cline x1="16" y1="12" x2="8" y2="20" stroke="white" stroke-width="1"/%3E%3C/svg%3E') !important;
    }
    .carousel-control-prev-icon {
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"%3E%3Cline x1="16" y1="4" x2="8" y2="12" stroke="black" stroke-width="2"/%3E%3Cline x1="16" y1="20" x2="8" y2="12" stroke="black" stroke-width="2"/%3E%3Cline x1="8" y1="12" x2="16" y2="4" stroke="white" stroke-width="1"/%3E%3Cline x1="8" y1="12" x2="16" y2="20" stroke="white" stroke-width="1"/%3E%3C/svg%3E') !important;
    }


/* Map popup tags collapse control */

    #map-card-tags h5 {
        font-weight: normal;
    }

    #map-card-tags .card-body {
        padding: 0 !important;
    }

/* Area & price filters errors */

    .errorBorder {
        border: 1px solid #f06548 !important;
    }

    .error-message {
        color: #f06548;
        margin-top: 5px;
        display: none;
        font-size: 13px;
    }

    #no-results-message {
        display: none;
        font-size: 14px;
    }

.bullit {
    margin: 0 8px;
    font-size: 18px;
    line-height: 0.8;
}

.carousel-item.active {
    display: grid;
    justify-content: center;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 270px !important;
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.leaflet-popup-close-button {
    z-index: 2;
}

#card-text {
    padding: 0 22px !important;
}

.carousel-inner {
    /*height: 165px !important;*/
}