.markdown-content p {
    display: inline-block;
    margin: 0;
}

.btn-primary,
.btn-outline-primary {
    color: var(--dark) !important;
}

.object-fit-cover {
    object-fit: cover;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    color: var(--dark) !important;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    color: white !important;
}

.single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 992px) {
    .header-row {
        height: 50vh;
    }
}
.bg-opacity-50,
.header-row li {
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
}
.header-row li:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.header-row li:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.rounded-8 {
  border-radius: 8px;
}
.breadcrumb-item.active {
    color: white !important;
}
.theme-switch-container {
    /* position: absolute;
    top: 1rem;
    right: 1rem; */
    display: flex;
    align-items: center;
    align-self: center;
}

.theme-switch-label {
    margin-right: 10px;
    font-size: 16px;
    color: #000;
    /* Light theme color */
}

body.dark-theme .theme-switch-label {
    color: #e0e0e0;
    /* Dark theme color */
}

input[type="checkbox"] {
    height: 0;
    width: 0;
    visibility: hidden;
}

.slider {
    cursor: pointer;
    height: 20px;
    width: 40px;
    background: #ccc;
    display: inline-block;
    border-radius: 34px;
    position: relative;
}

.slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: 0.3s;
    background: #fff;
}

input:checked+.slider {
    background: #66bb6a;
}

input:checked+.slider::after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}

/* Light theme (default) */
body.light-theme {
    background-color: #fff;
    color: var(--dark);
}

.light-theme .logo-dark,
.light-theme .dark-label {
    display: none;
}

.light-theme .logo-light,
.light-theme .light-label {
    display: block;
}

.dark-theme .logo-dark,
.dark-theme .dark-label {
    display: block;
}

.dark-theme .logo-light,
.dark-theme .light-label {
    display: none;
}

/* body.dark-theme {
    background-color: var(--dark);
    color: #e0e0e0;
} */

/* Additional styling for dark mode elements */
/* .dark-theme .element {
    background-color: #333;
    color: #e0e0e0;
}

.dark-theme .bg-white {
    background-color: var(--dark) !important;
}
.dark-theme .nav-link {
    color: #e0e0e0 !important;
} */
/* Dark theme */
body.dark-theme {
    background-color: #333;
    color: #e0e0e0;
}

/* Additional styling for dark mode elements */
.dark-theme .navbar {
    background-color: rgba(0, 0, 0, 0.5) !important;
}
.navbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
}
.dark-theme .sticky-top .navbar{
    background-color: #121212 !important;
    border-radius: 0px;
}
.light-theme .sticky-top .navbar{
    background-color: #fff !important;
    border-radius: 0px;
}

.navbar{
    border-radius: 8px;
}

.dark-theme .modal-content,
.dark-theme .property-item,
.dark-theme .card {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* .dark-theme .property-item {
    background-color: #333;
    color: #e0e0e0;
} */

.dark-theme .form-control {
    background-color: #555 !important;
    color: #e0e0e0 !important;
}

.dark-theme .btn {
    background-color: #444 !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

.dark-theme .nav-pills .nav-item .btn:hover,
.dark-theme .nav-pills .nav-item .btn.active,
.dark-theme .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--dark) !important;
}

.dark-theme .btn:hover {
    background-color: #555 !important;
    border-color: #555 !important;
}

.dark-theme .btn-primary:hover {
    color: #000 !important;
    background-color: #fed55f !important;
    border-color: #fed356 !important;
}

.dark-theme .cat-item div {
    background-color: #333;
    color: #e0e0e0;
}

.dark-theme .nav-link {
    color: #e0e0e0 !important;
}

.dark-theme .navbar-nav .nav-link:hover,
.dark-theme .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.dark-theme .dropdown-menu {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

.dark-theme .dropdown-item {
    color: #e0e0e0 !important;
}

.dark-theme .dropdown-item:hover {
    background-color: #444 !important;
}

.dark-theme .dropdown-item.active {
    background-color: #555 !important;
}

.dark-theme .dropdown-item.disabled {
    color: #666 !important;
}

.dark-theme .dropdown-divider {
    border-top-color: #444 !important;
}

.dark-theme .dropdown-menu {
    border-color: #444 !important;
}

.dark-theme .bg-transparent {
    background-color: transparent !important;
}

.dark-theme .btn.btn-link {
    background-color: transparent !important;
    border: 0 !important;
}

/* btn btn-outline-light btn-social */
.dark-theme .btn.btn-outline-light {
    background-color: transparent !important;
}

.dark-theme h6,
.dark-theme .h6,
.dark-theme h5,
.dark-theme .h5,
.dark-theme h4,
.dark-theme .h4,
.dark-theme h3,
.dark-theme .h3,
.dark-theme h2,
.dark-theme .h2,
.dark-theme h1,
.dark-theme .h1 {
    color: #e0e0e0;
}

.dark-theme .text-dark {
    color: #e0e0e0 !important;
}

.dark-theme .bg-primary {
    background-color: var(--primary) !important;
    color: var(--dark) !important;
}

.search-container .form-control {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.iframe-container iframe {
    width: 100% !important;
}

/* Add the following styles w-lg-75 w-md-80 rounded-sm-0 */

@media (min-width: 992px) {
    .w-lg-65 {
        width: 65% !important;
    }
    .w-lg-75 {
        width: 75% !important;
    }
}

@media (min-width: 768px) {
    .w-md-80 {
        width: 80% !important;
    }
    .w-md-90 {
        width: 90% !important;
    }
}

@media (min-width: 576px) {
    .w-sm-90 {
        width: 90% !important;
    }
}

@media (max-width: 576px) {
    .rounded-sm-0 {
        border-radius: 0 !important;
    }
}

.custom-radio-switch {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #444;
    /* #e9f7f0, #444444 */
    border-radius: 8px;
    width: 150px;
    padding: 1px;
    cursor: pointer;
    user-select: none;
}

.custom-radio-switch input[type="radio"] {
    display: none;
}

.custom-radio-switch .switch-label {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    color: white;
    transition: color 0.3s ease-in-out;
    z-index: 1;
    width: 60px;
}

.custom-radio-switch .switch-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 42%;
    height: calc(100% - 10px);
    background-color: #e9f7f0a0;
    border-radius: 6px;
    transition: left 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.custom-radio-switch input[type="radio"]:checked ~ .switch-indicator {
    background-color: #e9f7f0a0;
}

.custom-radio-switch input[type="radio"]#sell:checked ~ .switch-indicator {
    left: calc(50% + 5px);
}

.custom-radio-switch input[type="radio"]#rent:checked ~ .switch-indicator {
    left: 5px;
}

.light-theme .custom-radio-switch {
    background-color: white;
    border: 1px solid var(--primary);
}
.light-theme .custom-radio-switch .switch-label {
    color: var(--primary) !important;
}

.light-theme .custom-radio-switch .switch-indicator {
    background-color: #000000;
}

.light-theme .custom-radio-switch input[type="radio"]:checked ~ .switch-indicator {
    background-color: #000000;
}

.dark-theme .search-card {
    background-color: #121212aa !important;
}
.light-theme .search-card {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.active-category {
    box-shadow: 0 0 5px #FECE43, 0 0 10px #FECE43;
    transition: box-shadow 0.3s ease-in-out;
}

.horizontal-list .active {
    background-color: var(--primary) !important;
    color: var(--dark) !important;
}

.horizontal-list .active:hover {
    background-color: var(--primary) !important;
    color: var(--dark) !important;
}

/* Ensure items are displayed in a row and wrap to the next row when needed */
.horizontal-list {
    flex-wrap: wrap;
}

.horizontal-list .btn {
    white-space: nowrap;

    height: 1.8rem;
    text-align: center;
    align-self: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Hide spinners in Webkit-based browsers (Chrome, Safari) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide spinners in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Hide spinners in Edge and Internet Explorer */
input[type="number"]::-ms-expand {
    display: none;
}

