﻿.theme-dark {
    color-scheme: dark; /* Enables dark mode for un-styled elements */
}

.clear-float::after {
    content: "";
    display: block;
    clear: both;
}

.main.content {
    padding: 0;
    position: relative;
}

.main.content iframe {
    display: block;
    height: 100%;
    width: 100%;
    border: none;
}

.btn-icon i {
    margin: 0 !important;
}

.btn-sm.btn-icon i {
    margin: 0 !important;
    width: 12px;
}

header .btn-sm.btn-icon {
    padding: 4px 6px;
    line-height: 1.2;
}

header .btn-icon {
    margin-right: 2px;
}

header .wrapper-btn {
    padding: 0.3rem 0;
}

header h1 {
    top: 0;
}

.listing-collection {
    display: flex;
    align-items: center;
}

.theme-dark .body-workspace header.header-content {
    color: #eee;
    background-color: #222;
    border-bottom: 1px solid #000;
}

.actions-pane-show-checked-btn .show-checked-icon {
    display: inline-block;
    vertical-align: middle;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    font-size: 24px;
    line-height: 1;
    height: 1em;
    width: 1em;
}

.actions-pane-show-checked-btn .show-checked-icon.show-checked-all-icon {
    background-image: url('../../rapmlsimages/icon-show-all.svg');
}

.actions-pane-show-checked-btn .show-checked-icon.show-checked-only-icon {
    background-image: url('../../rapmlsimages/icon-checked-only.svg');
}

.theme-dark .actions-pane-show-checked-btn .show-checked-icon.show-checked-all-icon {
    background-image: url('../../rapmlsimages/icon-show-all-dark.svg');
}

.theme-dark .actions-pane-show-checked-btn .show-checked-icon.show-checked-only-icon {
    background-image: url('../../rapmlsimages/icon-checked-only-dark.svg');
}

.ui-sortable-placeholder-RAD {
    display: inline-block;
    position: relative;
    box-sizing: content-box;
    height: 40px;
    background-color: #a4c3e3 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
    overflow: hidden;
    user-select: none;
    transition: transform 250ms;
}

header.header-content {
    color: #333;
    background-color: #CCC;
    border-bottom: 1px solid #adadad;
    width: 100%;
    margin-right: 0;
    padding: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    line-height: normal;
    z-index: 998;
    min-height: 50px;
    box-shadow: none;
}

header.header-content > * {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

header.header-content > *.pull-left:first-of-type {
    margin-left: 0;
}

header.header-content > .actions {
    margin-right: 0;
}

header.header-content > .actions > .btn-print {
    float: right;
    margin-left: 8px;
}

header.header-content > .actions > .selector.with-settings.displays {
    float: right;
    margin-left: 8px;
}

.selected-listing-header {
    font-size: 1.6rem;
    position: relative;
    top: 3px;
    left: 5px;
    float: left;
}

    .selected-listing-header span {
        display: inline-block;
        margin: 0 0.2rem;
        position: relative;
        top: 0.2rem;
    }

.listingNumberValue {
    padding-left: 5px;
    padding-right: 10px;
    font-weight: bold;
}

a.btn .fa-chevron-down {
    margin-right: 0;
    margin-left: 0.8rem;
    font-size: 1rem;
}

.selector.with-settings .settings {
    border-radius: 0 4px 4px 0;
}

    .selector.with-settings .settings i {
        margin-right: 0;
    }

.selector-trigger input[type=checkbox],
.selector-panel input[type=checkbox] {
    margin: 0 0.8rem 0 0;
    position: relative;
    top: 2px;
}

.selector-panel > * {
    vertical-align: middle;
}

.selector-panel {
    display: none;
    position: absolute;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #000;
    overflow: auto;
    z-index: 10;
    min-width: 110px;
}

    .selector-panel ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

.selector.property-type .selector-panel ul {
    width: max-content;
}

.selector-panel li {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
    font-size: 1.2rem;
    cursor: pointer;
}

.selector-panel > span {
    display: block;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
    font-size: 1.2rem;
    background-color: #eee;
    font-weight: bold;
}

.selector-panel li.selected {
    background-color: #d9edf7;
}

.selector-panel li:hover {
    background-color: #ddd;
    color: #000 !important;
    transition: all 0.5s ease;
}

.selector-panel.footer {
    padding: 0.5rem;
    border-radius: 0 0 4px 4px;
    background-color: #eee;
}

.theme-dark .selector-panel.footer {
    padding: 0.5rem;
    color: #eee;
    background-color: #222;
    border-color: #000;
    border-radius: 0 0 4px 4px
}

.selector-panel .footer {
    display: flex;
}

.selector-panel .footer a {
    margin-right: 0.5rem;
}

.selector-panel .footer a:last-of-type {
    margin-right: 0;
}

.sort-handle {
    color: inherit;
    cursor: pointer;
    padding: 0 0.5rem;
}

.sort-handle i.fa {
    margin: 0;
}


table tr.ui-sortable-helper {
    display: table !important;
    background-color: #fff;
}

.theme-dark header.header-content {
    background-color: #3B3B3B;
    color: #eeeeee;
}

.modal-body .control-label {
    margin-right: 1rem;
}

.interstitial-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background-color: #fff;
}

.interstitial-loading > div {
    border: 1px solid #ddd !important;
    background-color: #eee !important;
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    width: 120px;
    margin: 0 auto;
    position: relative;
    top: 50vh
}

.interstitial-loading > div > i {
    margin-right: 0.5rem;
}

.theme-dark a.btn-default,
.theme-dark a.btn-default:active,
.theme-dark a.btn-default:visited,
.theme-dark a.btn-default:focus,
.theme-dark a.btn-default:link,
.theme-dark select,
.theme-dark input[type=text] {
    color: #eee;
    background-color: #222 !important;
    border-color: #000 !important;
}

.theme-dark .form-control {
    color: #eee;
    background-color: #222;
    border-color: #000;
}

.theme-dark .selector-panel {
    background-color: #2d2d30;
    border: #222 1px solid;
}

.theme-dark .selector-panel li {
    border-bottom: 1px solid #222;
    color: #eee;
}

.theme-dark .selector-panel > span {
    display: block;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #222;
    font-size: 1.2rem;
    background-color: #222;
    font-weight: bold;
    color: #eee;
}

.theme-dark .selector-panel li.selected {
    background-color: #5bc0de;
}

.theme-dark .selector-panel li:hover {
    background-color: #222;
    color: #eee !important;
}

.theme-dark .selector-panel .footer {
    background-color: #222;
}

.theme-dark .btn-default {
    color: #eee;
    background: #222;
    border-color: #000;
}

.theme-dark .btn-primary {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.theme-dark .ui-sortable-placeholder {
    border: 1px dotted black;
    background-color: #222 !important;
}

.theme-dark .interstitial-loading {
    background-color: #323639 !important;
    color: #fff !important;
}

.theme-dark .interstitial-loading > div {
    background-color: #222 !important;
    border-color: #111 !important;
    color: white !important;
}

.theme-dark .input-group-addon {
    background: #111;
    color: #eee;
    border-color: #000;
}

.theme-dark .package-selected-items tr:nth-of-type(odd) {
    background-color: #222;
}

.theme-dark .package-selected-items .ui-sortable-helper {
    background-color: #222 !important;
    opacity: .8;
}

.theme-dark .package-selected-items tr td {
    border-color: transparent;
}

@media only screen and (max-width: 1300px) {
    header {
        padding: 0.8rem 1.2rem;
    }

    header .listing-collection {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    header h1 {
        font-size: 1.6rem;
    }

    header h1 .name {
        max-width: 420px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }

    header h1 small {
        display: inline-block;
        font-size: 1.2rem;
        vertical-align: top;
    }

    .btn {
        padding: 3px 8px;
        font-size: 1.2rem;
    }

    .btn.btn-xs {
        padding: 1px 5px;
        font-size: 1.2rem;
    }

    .dropdown-menu {
        font-size: 1.2rem;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

.full-screen-div {
    position: relative;
    display: none;
}

.full-screen-anchor {
    position: absolute;
    top: 5.5rem;
    right: 0.5rem;
    color: #fff;
    margin: 7px;
    padding: 10px;
    border-radius: 3px;
    background: rgba(51, 51, 51, 0.6);
    font-size: 1rem;
}

.full-screen-anchor i {
    text-align: center;
}

.image-wrapper {
    text-align: center;
    padding-top: 40px;
}

.selector.listing-pager {
    float: left;
    display: block;
}

.header-workspace,
.theme-dark .header-workspace {
    box-shadow: none;
    padding: 0.75rem 0 0 0;
}

.header-workspace .header-hud {
    padding: 0 .75rem 0 .75rem;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

.header-workspace .listing-collection {
    flex-grow: 1;
}

.header-workspace .listing-collection
.header-workspace .view-selector {
    display: inline-flex;
}

.header-workspace .now-viewing-container {
    padding: 0 12px 0 12px;
}

.header-workspace .now-viewing-container label {
    margin-bottom: 0;
}

.body-workspace {
    background-color: #f5f5f5;
}

.theme-dark .body-workspace {
    background-color: #343434;
}

.material-symbols-outlined {
    /* CSS used while the while the font "Material Symbols Outlined" loads  */
    font-size: 24px; /* Default font-size in case it's not overriden somewhere else */
    width: 1em; /* Default width to minimize layout shift */
    /*overflow: clip; /* Ensure icons never cause overflow */
}

.workspace .btn.btn-icon .material-symbols-outlined {
    vertical-align: middle;
}

.listing-cards-loading {
    margin: 1px 5px;
    font-weight: 700;
}

.listing-cards-loading, .listing-cards-loading > div {
    display: inline-block;
}

.view-selector.inset-tabs .material-symbols-outlined,
.quick-actions.inset-tabs .material-symbols-outlined {
    overflow: clip;
}

.view-selector.inset-tabs > .inset-tab .dropdown-menu {
    max-height: 450px;
    overflow-y: auto;
}

.view-selector.inset-tabs > .inset-tab .dropdown-menu.view-type-options .display-mismatch {
    display: none;
}

.view-selector.inset-tabs > .inset-tab .dropdown-menu.view-type-options:has(.view-selector-filter) {
    padding: 0px;
    min-width: 20em;
    overflow-x: hidden;
}

div.active > div.btn-default,
div.active > div.btn-default:hover {
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
    box-shadow: inset 1px 1px 4px 1px #4693ab88;
}

.scroll {
    overflow: auto;
}

.theme-dark .dropdown-menu {
    background-color: #333;
}

.theme-dark .dropdown-menu > li > a {
color: #eee;
}

.theme-dark .dropdown-menu > li > a:hover {
    background-color: #222;
}

.dropdown-menu > li > a {
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
}

    .dropdown-menu > li > a.ddlActive {
        background-color: #d9edf7;
    }

.theme-dark .dropdown-menu > li > a.ddlActive {
    background-color: #d9edf7;
    color: #333;
}

.noPaddingLeft {
    padding-left: 0 !important;
}

.noPaddingRight {
    padding-right: 0 !important;
}

.noHorizontalPadding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.count-wrapper {
    display: inline-flex;
    align-items: center;
    height: 24px; /* Keeps the page from jumping when selecting listings since the icon is changing visibility */
}

.quick-actions > .disabled {
    cursor: not-allowed;
    box-shadow: none;
    opacity: .65;
}

.quick-actions > .disabled * {
    pointer-events: none;
}

.btn-group {
    display: inline-flex;
}

.btn-group > .btn-check {
    position: absolute;
    clip: rect(0,0,0,0);
    pointer-events: none;
    /* !important required to make Bootstrap 3 behave like Bootstrap 5 */
    margin: 0 !important;
    padding: 0 !important;
}

.btn-group > .btn:first-of-type {
    /* !important required to make Bootstrap 3 behave like Bootstrap 5 */
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

.btn-group > .btn-check:checked + .btn {
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}

.package-create .modal-body {
    height: 100%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

@media (min-width: 992px) {
    .modal-lg {
        width: 922px;
    }
}

.saveOptionsHelp {
    vertical-align: top;
}

.theme-dark .saveOptionsHelp {
    color: white;
}

.no-map-wrapper,
.noSelectedListings {
    text-align: center;
}

.no-map-wrapper > div,
.noSelectedListings > div {
    padding-top: 15em;
}

.no-map-wrapper .no-map-image,
.noSelectedListings img {
    height: 15rem;
    width: 15rem;
    max-width: 15rem;
    border: 0;
}

.no-map-wrapper > span,
.noSelectedListings > span {
    font-size: 3rem;
}

.section-type-selector.tab-item.disable-section-type {
    cursor: not-allowed;
    background-color: #eee;
}

.theme-dark .section-type-selector.tab-item.disable-section-type {
    background-color: #777;
}


.view-selector-list-item {
    display: flex;
    gap: 2px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1;
    background: inherit;
    border-bottom: 2px solid #ddd;
    padding: 5px;
    list-style: none;
}

.view-selector-list-item .input-group {
    width: 100%; /* Attempt to fill the container */
}

.view-selector-list-item .btn {
    margin: 0;
}

.theme-dark .view-selector-list-item {
    border-color: #000;
}

.checked-only {
    padding-top: 4px;
    font-size: 12px;
}

.theme-dark .checked-only {
    color: #eee;
}

.theme-dark .open-house-list table {
    border: 1px solid white;
    border-radius: 4px;
}

.theme-dark .open-house-list .open-house-date {
    background-color: #222;
    color: #eee;
}

.theme-dark .open-house-list .open-house-info,
.theme-dark .open-house-list .open-house-type {
    background-color: #2d2d30;
    color: #eee;
    border-bottom: 1px solid #222;
}

.checked-only.disabled {
    pointer-events: none;
    color: #6c757d;
}

.grid-zoom-btn {
    margin-bottom: 10px;
}


.print-options {
}

.print-options .dropdown-menu .print-option {
    padding-left: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Print favorites */
.print-options .print-option .icon-print-favorite {
    color: #ADADAD;
    transition: transform .15s ease-in-out;
    font-variation-settings: 'FILL' 1;
    margin: 0 !important;
}

.print-options .print-option.default .icon-print-favorite {
    color: #FFA500;
    cursor: not-allowed;
}

.actions-pane-show-checked-btn.btn-default {
    padding-top: 1px;
    padding-bottom: 1px;
}

.div-sort-options,
.div-sort-options-vertical {
    display: inline-flex;
    gap: 0;
    vertical-align: top;
    --rap-sort-btn-radius: 3px;
}

.div-sort-options {
    flex-direction: row;
}

.div-sort-options-vertical {
    flex-direction: column;
}

    /* Hide refresh button unless .sas-enabled is present */
    .div-sort-options:not(.sas-enabled) .actions-pane-sort-refresh-btn,
    .div-sort-options-vertical:not(.sas-enabled) .actions-pane-sort-refresh-btn {
        display: none !important;
    }

    /* Reset corners for all buttons in .sas-enabled containers */
    .div-sort-options.sas-enabled .btn,
    .div-sort-options-vertical.sas-enabled .btn {
        border-radius: 0;
    }

        /* 
          HORIZONTAL
          Round left corners of first, right corners of last 
        */
        .div-sort-options.sas-enabled .btn:first-of-type {
            border-top-left-radius: var(--rap-sort-btn-radius);
            border-bottom-left-radius: var(--rap-sort-btn-radius);
        }

        .div-sort-options.sas-enabled .btn:last-of-type {
            border-top-right-radius: var(--rap-sort-btn-radius);
            border-bottom-right-radius: var(--rap-sort-btn-radius);
        }

        /* 
          VERTICAL
          Round top corners of first, bottom corners of last 
        */
        .div-sort-options-vertical.sas-enabled .btn:first-of-type {
            border-top-left-radius: var(--rap-sort-btn-radius);
            border-top-right-radius: var(--rap-sort-btn-radius);
        }

        .div-sort-options-vertical.sas-enabled .btn:last-of-type {
            border-bottom-left-radius: var(--rap-sort-btn-radius);
            border-bottom-right-radius: var(--rap-sort-btn-radius);
        }

        /* 
            BOTH
            If there's only one button visible, fully round its corners
        */
        .div-sort-options.sas-enabled .btn:only-of-type,
        .div-sort-options-vertical.sas-enabled .btn:only-of-type {
            border-radius: var(--rap-sort-btn-radius);
        }

    /* Button coloring when .sort-refresh-required is present */
    .div-sort-options.sort-refresh-required .actions-pane-sort-refresh-btn,
    .div-sort-options-vertical.sort-refresh-required .actions-pane-sort-refresh-btn {
        color: #fff !important;
        background-color: #5bc0de;
        border-color: #46b8da;
    }

.btn-refresh-sas span {
    font-size: 20px;
    vertical-align: bottom;
}

.div-zoom-find-options {
    display: inline-block;
}

.neighborhoodReportModal .modal-dialog {
    max-width: 75%;
    width: auto !important;
}

.neighborhoodReportModal .neighborhoodReportIFrame {
    width: 100%;
    height: 100%;
}

.listing-collection h1 .name {
    white-space: nowrap;
}

.modal.share .share-link {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
}

.modal.share .share-link:hover {
    text-decoration: none;
}

    .modal.share .share-link i {
        font-size: 2rem;
    }

.divTeamLogo {
    width: 120px;
    height: 120px;
    padding-top: 2rem;
}

    .divTeamLogo > div {
        border-radius: 130px;
        font-size: 5rem;
        background-color: #2d5b8d;
        color: #fff;
        width: 80px;
        height: 80px;
        margin: 0 auto;
        padding-top: 0.2rem;
        text-align: center;
    }

.team-selector-wrapper .team-selector {
   display: inline-block; 
   width: auto; 
   margin-left: 2rem;
}

.side-bar.listings .card.card-collapsed.reference .card-overlay .card-overlay-floating-fields .floating-field:last-of-type {
    border-top-right-radius: 0px !important;
    position: unset !important;
}

    .side-bar.listings .card.card-collapsed.reference .card-overlay .card-overlay-floating-fields .floating-field:last-of-type .listing-price-display {
        transform: none !important;
        margin-left: -10px;
    }
