@charset "UTF-8";

body.realestate-app.insu-info-dashboard-page .realestate-main {
    margin-top: var(--header-height, 70px) !important;
    padding-top: 0 !important;
}

.lookup-realestate .lookup-masthead-row {
    display: grid;
    grid-template-columns: var(--realestate-masthead-columns, auto minmax(0, 1fr));
    align-items: center;
    padding-bottom: 4px;
}

.lookup-realestate .lookup-masthead-row:has(> .lookup-realestate-form) { display: block; }

.lookup-realestate .lookup-controls { align-items: center; margin: 0; }

.lookup-realestate .lookup-realestate-form {
    display: grid;
    position: relative;
    min-height: 47px;
    grid-template-columns: var(--realestate-form-columns, auto minmax(0, var(--lookup-query-width, 490px)) max-content);
    justify-content: start;
    gap: var(--realestate-form-gap, 6px clamp(12px, 1.5vw, 20px));
}

.lookup-realestate .lookup-realestate-form:has(> .realestate-month-picker-field) {
    grid-template-columns: var(--realestate-month-form-columns, auto minmax(0, var(--lookup-query-width, 490px)) minmax(123px, 152px) max-content);
}

.lookup-realestate :is(.lookup-realestate-form, .lookup-calendar-controls) .lookup-title {
    font-size: var(--realestate-title-size, 23px);
}

.lookup-realestate .lookup-address {
    position: relative;
    grid-column: var(--realestate-address-column, auto);
    grid-row: var(--realestate-address-row, auto);
}

.lookup-realestate .lookup-address .lookup-input { padding-left: 37px; }
.lookup-realestate .lookup-query-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--lookup-muted);
    font-size: 15px;
    pointer-events: none;
}

.lookup-realestate .lookup-controls .form-group { min-width: 0; margin: 0; }
.lookup-realestate .lookup-realestate-form .lookup-primary {
    min-height: var(--realestate-action-height, 46px);
    min-width: 44px;
    padding-inline: var(--realestate-submit-padding, 18px);
}

.lookup-realestate :is(.lookup-address, .lookup-calendar-select) > label,
.lookup-realestate .lookup-controls .realestate-month-picker label,
.lookup-realestate .lookup-date-field > legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

body.realestate-app .realestate-main .lookup-realestate .search-results-area { min-height: 0 !important; }

.lookup-realestate .apt-sale-guide-regions {
    margin-top: 24px;
}

.lookup-realestate .apt-sale-guide-regions > p {
    margin: 0 0 7px;
    color: var(--lookup-ink);
    font-size: 14px;
    font-weight: 650;
}

.lookup-realestate .apt-sale-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.lookup-realestate .apt-sale-guide-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 0 10px;
    appearance: none;
    border: 0;
    border-radius: 8px;
    background: #f1f3f5;
    color: var(--lookup-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}

.lookup-realestate .apt-sale-guide-actions button:hover { background: #e4e8ec; }
.lookup-realestate .apt-sale-guide-actions button:active { background: #d5dce3; }

.lookup-realestate .apt-sale-guide-actions button:focus-visible {
    outline: none;
    background: #263645;
    color: #fff;
}

@media (forced-colors: active) {
    .lookup-realestate .apt-sale-guide-actions button:focus-visible {
        forced-color-adjust: none;
        background: Highlight;
        color: HighlightText;
    }
}

/* 서버가 렌더링한 조회 결과를 모바일의 이전 검색 화면 상태로 숨기지 않는다. */
body.realestate-app .realestate-main .lookup-realestate .lookup-results > .results-header {
    display: flex !important;
    gap: 8px 16px;
    padding: 0 0 10px !important;
    border-bottom: 1px solid var(--lookup-line);
}

.lookup-realestate .results-header .lookup-result-heading { margin: 0; }

body.realestate-app .realestate-main .lookup-realestate .lookup-results > .results-content {
    display: block !important;
    min-width: 0;
    padding: 12px 0 18px !important;
    overflow: visible !important;
}

body.realestate-app .realestate-main .lookup-realestate .lookup-results > .dong-filter {
    display: block !important;
}

.lookup-realestate .results-table-container {
    max-width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.lookup-realestate .results-table-container:focus-visible {
    outline-color: #506781;
    outline-offset: 2px;
}

.lookup-realestate .results-table { margin: 0; }
.lookup-realestate .apt-rent-results-table { min-width: 680px; }

.lookup-realestate .empty-state.lookup-empty {
    padding: 30px 16px;
    color: var(--lookup-muted);
}

.lookup-realestate .empty-state.lookup-empty i {
    color: #5f6c7d;
    font-size: 22px;
}

.lookup-realestate .lookup-controls .realestate-month-picker-trigger,
.lookup-realestate .dong-filter .realestate-month-picker-trigger,
.lookup-realestate .lookup-select-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--lookup-control-line);
    border-radius: 24px;
    background: #fff;
    color: var(--lookup-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.lookup-realestate .lookup-controls .realestate-month-picker-trigger-meta { display: none; }
.lookup-realestate .lookup-realestate-form :is(.realestate-month-picker-field, .realestate-month-picker) {
    position: var(--realestate-picker-position, relative);
}
.lookup-realestate .lookup-realestate-form .realestate-month-picker-trigger {
    min-width: 44px;
    min-height: var(--realestate-action-height, 46px);
    padding-inline: var(--realestate-month-padding, 12px);
    font-size: var(--realestate-month-size, 15px);
}

.lookup-realestate .lookup-realestate-form .lookup-month-full { display: var(--realestate-month-full-display, inline); }
.lookup-realestate .lookup-realestate-form .lookup-month-compact { display: var(--realestate-month-compact-display, none); }

.lookup-realestate :is(.lookup-select-trigger, .realestate-month-picker-trigger):is(:focus-visible, [aria-expanded="true"]),
.lookup-realestate .realestate-month-picker-popover button:focus-visible {
    border-color: var(--lookup-control-line);
    outline: none;
    background: var(--lookup-focus);
    color: var(--lookup-ink);
    box-shadow: none;
}

.lookup-realestate .realestate-month-picker-popover {
    border: 1px solid var(--lookup-line);
    background: #fff;
    color: var(--lookup-ink);
}

.lookup-realestate .lookup-controls .realestate-month-picker-popover {
    top: var(--realestate-picker-top, calc(100% + 8px));
    right: 0;
    left: auto;
    width: var(--realestate-picker-width, min(320px, calc(100vw - 28px)));
    max-width: var(--realestate-picker-max-width, none);
    max-height: var(--realestate-picker-max-height, none);
    overflow-y: var(--realestate-picker-overflow, visible);
    overscroll-behavior-y: contain;
}

.lookup-realestate .realestate-month-picker-popover button.is-selected {
    background: #ffec9a;
    color: var(--lookup-ink);
}

.lookup-realestate .realestate-month-picker-popover button.is-selected:focus-visible {
    background: #29251b;
    color: #fff;
}

.lookup-realestate .lookup-select {
    position: relative;
    min-width: 0;
    width: 100%;
}

.lookup-realestate .lookup-select-trigger {
    justify-content: space-between;
    white-space: normal;
}

.lookup-realestate .lookup-select-trigger::after {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin: -3px 2px 0 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.lookup-realestate :is(select[data-lookup-select], .lookup-select-options)[hidden] { display: none !important; }

.lookup-realestate .lookup-select-options {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: min(170px, 100%);
    max-height: 224px;
    max-height: min(224px, 44dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5px;
    border: 1px solid var(--lookup-control-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(33 31 26 / 12%);
}

.lookup-realestate .lookup-select-options [role="option"] {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 9px;
    border-radius: 7px;
    color: var(--lookup-ink);
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

.lookup-realestate .lookup-select-options [aria-selected="true"] { background: #fff1bd; font-weight: 700; }
.lookup-realestate .lookup-select-options .is-active { background: #29251b; color: #fff; }
.lookup-realestate .lookup-select-options [aria-disabled="true"] { color: #6b7280; cursor: not-allowed; }

.lookup-realestate select[data-lookup-select]:not([hidden]) { appearance: auto; -webkit-appearance: auto; }
.lookup-realestate .dong-select-wrapper:has(.lookup-select) { min-width: 98px; }

body.realestate-building-register-page .lookup-realestate .content-area .lookup-card {
    border-color: var(--lookup-line);
    border-radius: 15px;
}

body.realestate-building-register-page .lookup-realestate .unit-input-wrapper .unit-input {
    min-height: 44px;
    border-color: var(--lookup-control-line);
    color: var(--lookup-ink);
    font-size: 16px;
}

.lookup-realestate .unit-input:focus { outline: none; background: #fffdf5; box-shadow: none; }
.lookup-realestate .tab-navigation :is(.unit-search-btn, .floor-info-btn) { min-height: 44px; }
.lookup-realestate .tab-navigation :is(.unit-search-btn, .floor-info-btn):focus-visible {
    outline: none;
    background: var(--lookup-focus);
    color: var(--lookup-ink);
}

.lookup-realestate .lookup-calendar-controls {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: var(--realestate-calendar-columns, auto repeat(2, minmax(0, 160px)) max-content max-content);
    justify-content: start;
    min-height: 47px;
    gap: 6px 8px;
}

.lookup-realestate .lookup-date-field {
    grid-area: var(--realestate-calendar-date-area, auto);
    margin: 0;
    padding: 0;
    border: 0;
}
.lookup-realestate .lookup-date-options { display: flex; gap: 4px; }
.lookup-realestate .lookup-date-options label { position: relative; margin: 0; }

.lookup-realestate .lookup-date-options input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.lookup-realestate .lookup-date-options span,
.lookup-realestate .lookup-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--realestate-calendar-action-height, 46px);
    padding: 6px 10px;
    border: 1px solid var(--lookup-control-line);
    border-radius: 24px;
    background: #fff;
    color: var(--lookup-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.lookup-realestate .lookup-date-options input:checked + span { background: #ffeb92; }
.lookup-realestate .lookup-date-options input:focus-visible + span,
.lookup-realestate .lookup-reset:focus-visible {
    outline: none;
    background: #29251b;
    color: #fff;
}

.lookup-realestate .lookup-reset {
    grid-area: var(--realestate-calendar-reset-area, auto);
    justify-self: end;
    cursor: pointer;
}

.lookup-realestate .lookup-calendar-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 14px;
    margin: 12px 0 10px;
}

.lookup-realestate .lookup-calendar-header h2 { margin: 0; }
.lookup-realestate .lookup-calendar-activity {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.lookup-realestate .lookup-calendar-stats { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; }
.lookup-realestate .lookup-calendar-stats div { display: flex; gap: 3px; font-size: 13px; white-space: nowrap; }
.lookup-realestate .lookup-calendar-stats dt { color: var(--lookup-muted); font-weight: 500; }
.lookup-realestate .lookup-calendar-stats dd { margin: 0; color: var(--lookup-ink); font-weight: 700; }
.lookup-realestate .lookup-calendar-activity .btn-manual-sync {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    min-height: 44px;
    padding: 0 10px;
    color: var(--lookup-ink);
    font-weight: 650;
    white-space: nowrap;
}

.lookup-realestate .lookup-calendar-activity .btn-manual-sync:focus-visible {
    outline: none;
    background: #241f15;
    color: #fff;
}

.lookup-realestate .calendar-main .calendar-content { padding: 12px; }

body.realestate-lh-calendar-page #detailModal { transition-property: opacity; }
body.realestate-lh-calendar-page #detailModal .modal-close-btn {
    transition-property: background-color, border-color, color;
}

@supports (height: 100dvh) {
    .lookup-realestate { --realestate-picker-viewport-height: 100dvh; }
}

@media (max-width: 768px) {
    html:not([data-is-tablet-mode="desktop"]) .lookup-realestate .apt-sale-guide-regions {
        margin-top: 16px;
    }

    html:not([data-is-tablet-mode="desktop"]) .lookup-realestate {
        --realestate-masthead-columns: minmax(0, 1fr);
        --realestate-calendar-columns: auto repeat(2, minmax(0, 1fr));
        --realestate-calendar-date-area: 2 / 1 / auto / 3;
        --realestate-calendar-reset-area: 2 / 3;
        --realestate-calendar-action-height: 44px;
        --realestate-form-columns: minmax(0, 1fr) max-content;
        --realestate-month-form-columns: minmax(0, 1fr) max-content max-content;
        --realestate-form-gap: 6px;
        --realestate-address-column: 1 / -1;
        --realestate-address-row: 2;
        --realestate-title-size: clamp(18px, 5.45vw, 21px);
        --realestate-action-height: 44px;
        --realestate-submit-padding: 9px;
        --realestate-month-padding: 8px;
        --realestate-month-size: 13px;
        --realestate-month-full-display: none;
        --realestate-month-compact-display: inline;
        --realestate-picker-position: static;
        --realestate-picker-top: 50px;
        --realestate-picker-width: min(320px, 100%);
        --realestate-picker-max-width: 100%;
        --realestate-picker-max-height: min(350px, calc(var(--realestate-picker-viewport-height, 100vh) - var(--header-height, 70px) - 68px - env(safe-area-inset-bottom, 0px)));
        --realestate-picker-overflow: auto;
    }
    html:not([data-is-tablet-mode="desktop"]) .lookup-realestate .lookup-realestate-form .realestate-month-picker-month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    html:not([data-is-tablet-mode="desktop"]) .lookup-realestate .calendar-main .calendar-content { padding: 8px; }
}

html[data-is-tablet-mode="mobile"] .lookup-realestate .apt-sale-guide-regions {
    margin-top: 16px;
}

html[data-is-tablet-mode="mobile"] .lookup-realestate {
    --realestate-masthead-columns: minmax(0, 1fr);
    --realestate-calendar-columns: auto repeat(2, minmax(0, 1fr));
    --realestate-calendar-date-area: 2 / 1 / auto / 3;
    --realestate-calendar-reset-area: 2 / 3;
    --realestate-calendar-action-height: 44px;
    --realestate-form-columns: minmax(0, 1fr) max-content;
    --realestate-month-form-columns: minmax(0, 1fr) max-content max-content;
    --realestate-form-gap: 6px;
    --realestate-address-column: 1 / -1;
    --realestate-address-row: 2;
    --realestate-title-size: clamp(18px, 5.45vw, 21px);
    --realestate-action-height: 44px;
    --realestate-submit-padding: 9px;
    --realestate-month-padding: 8px;
    --realestate-month-size: 13px;
    --realestate-month-full-display: none;
    --realestate-month-compact-display: inline;
    --realestate-picker-position: static;
    --realestate-picker-top: 50px;
    --realestate-picker-width: min(320px, 100%);
    --realestate-picker-max-width: 100%;
    --realestate-picker-max-height: min(350px, calc(var(--realestate-picker-viewport-height, 100vh) - var(--header-height, 70px) - 68px - env(safe-area-inset-bottom, 0px)));
    --realestate-picker-overflow: auto;
}
html[data-is-tablet-mode="mobile"] .lookup-realestate .lookup-realestate-form .realestate-month-picker-month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-is-tablet-mode="mobile"] .lookup-realestate .rent-type-buttons .rent-type-btn { min-height: 44px; }

@media (max-width: 1024px) {
    html:not([data-is-tablet-mode="desktop"]) .lookup-realestate .rent-type-buttons .rent-type-btn {
        min-height: 44px;
    }

    html:not([data-is-tablet-mode="desktop"]) .lookup-realestate .calendar-main #calendar :is(.fc-prev-button, .fc-next-button, .fc-today-button) {
        min-width: 44px !important;
        min-height: 44px !important;
    }

    html:not([data-is-tablet-mode="desktop"]) .lookup-realestate .calendar-main #calendar .fc-header-toolbar {
        flex-wrap: wrap !important;
    }

    html:not([data-is-tablet-mode="desktop"]) .lookup-realestate .calendar-main #calendar .fc-toolbar-chunk:nth-child(2) {
        flex-basis: 104px;
    }

    html:not([data-is-tablet-mode="desktop"]) .lookup-realestate .calendar-main #calendar .fc-toolbar-chunk:empty {
        display: none !important;
    }
}
