@charset "utf-8";

/*-------------------------------------------------------------------------
MAP
-------------------------------------------------------------------------*/

/* LAYOUT
--------------------------- */
.l-map {
    width: auto;
    padding: 0;
    position: relative;
}
    /* 地図 */
    .map__section {
        position: relative;
        overflow: hidden;
    }
        /* 右側固定 */
        .map__right {
            background-color: #fff;
            display         : flex;
            flex-direction  : column;
            width: 400px;
            height: inherit;
            position: absolute;
            top     : 0;
            right   : 0;
            border-left: 2px solid #CFD8DC;
            box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        }
            .map__header {
                padding: 20px 30px 16px 0;
            }
                .map__btn-condition {
                    padding-inline: 7px;
                    margin-left: 12px;
                }
            .map__body {
                flex: 1;
                min-height: 0;
                overflow-y: auto;
                overflow-x: hidden;
                scrollbar-width: none;/* moz用 */
                background-color: #EDEFF2;
                padding: 12px;
            }
            .map__body::-webkit-scrollbar {
                display: none;
            }
    /* 条件  */
    .map__condition {
        width: 100%;
        height: calc(100% + 50px);
        display: none;
        background-color: #fff;
        overflow-y: auto;
    }

/* 地図
--------------------------- */
.map__section #gmap {
    width: 100%;
    height: inherit;
}

/* 検索
--------------------------- */
.map-input {
    margin-block: 0 16px;
    position: relative;
}
    .map-input input {
        width: 100%;
        box-shadow: var(--box-shadow);
        padding-right: 30px;
    }
    .map-input button {
        width: 35px;
        height: 35px;
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        padding: 10px;
    }
        .map-input svg {
            width: 15px;
            height: 15px;
        }

/* 物件
--------------------------- */
.map-bkn {
    padding: 0 0 20px;
}

/* 一覧 */
.map-bkn__list {
    display: flex;
    flex-direction: column;
}

.map-bkn__link {
    background-color: #fff;
    border: 1px solid #CFD8DC;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 12px;
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
    .map-bkn__img {
        width: 80px;
        height: 69px;
        margin: 0 0 2px;
    }
    .map-bkn__type {
        font-size: 10px;
        color    : var(--light-text-color);
        text-align: center;
    }
    .map-bkn__right {
        overflow: hidden;
        flex: 1;
    }
        .map-bkn__name {
            text-overflow: ellipsis;
            overflow     : hidden;
            white-space  : nowrap;
            font-size: 14px;
            font-weight: bold;
            color: #333;
        }
        .map-bkn__text {
            text-overflow: ellipsis;
            overflow     : hidden;
            white-space  : nowrap;
            font-size: 12px;
        }
            .map-bkn__text svg {
                min-width: 10px;
                width: 10px;
                height: 10px;
            }
        .map-bkn__price {
            font-weight: bold;
        }
    .map-bkn__arw {
        width: 30px;
        display    : flex;
        align-items: center;
        justify-content: flex-end;
    }
        .map-bkn__arw svg {
            width: 10px;
            height: 10px;
        }


/* 下部固定
--------------------------- */
.map-status {
    background-color: rgba(236, 239, 241, .5);
    display        : flex;
    gap            : 10px;
    align-items    : center;
    justify-content: space-between;
    padding: 8px 20px;
}
    .map-status__return {
        display: flex;
        align-items: center;
        font-weight: bold;
        color      : var(--light-text-color);
        line-height: 1;
    }
        .map-status__return svg {
            width: 12px;
            height: 12px;
            fill: var(--light-text-color);
        }
    .map-status__right {
        display    : flex;
        gap        : 10px;
        align-items: center;
    }
        .map-status__num {
            font-weight: bold;
        }
        .map-status__search {
            width: 43vw;
            height: 44px;
            gap: 5px;
        }
            .map-status__search svg {
                width: 15px;
                height: 15px;
                fill: #fff;
            }

/* 物件開閉ボタン
--------------------------- */
.map__bkn-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 15px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 5px;
}

/* 物件を表示する状態（閉じている時）の背景 */
.map__bkn-switch[aria-expanded="false"] {
    background-color: #fff;
    border: 1px solid #CFD8DC;
}
    .map__bkn-switch svg {
        width: 14px;
        height: 14px;
    }
    .map__bkn-switch .mgc_close:before {
        font-size: 16px;
        color: #999;
        font-weight: bold;
    }

/*-------------------------------------------------------------------------
モーダル
-------------------------------------------------------------------------*/

.condition-modal {
    width: 1140px;
    height: 645px;
}
    .condition-modal__inner {
        height: inherit;
        padding: 22px 170px 100px;
        overflow: auto;
        scrollbar-width: none;/* moz用 */
    }
    .condition-modal__inner::-webkit-scrollbar { 
        display: none;
    }
        .condition-modal__return {
            margin: 0 0 13px;
            display    : flex;
            align-items: center;
            font-weight: 400;
        }
            .condition-modal__return svg {
                width: 10px;
                height: 10px;
            }

/* 下部固定上書き
--------------------------- */
.condition-modal .select-fixed {
    width: 100%;
    min-width: auto;
    background-color: #DADEE0;
    position: absolute;
    bottom  : 0;
    left    : 0;
}
.condition-modal .select-fixed__btn--select {
    border: none;
    color: #fff;
}
.condition-modal .select-fixed__btn--select svg {
    fill: #fff;
}

/*-------------------------------------------------------------------------
アイコン 波状効果
-------------------------------------------------------------------------*/
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: #0861c7;
    transform: scale(0);
    animation: ripple-animation 1s ease-out forwards;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/*-------------------------------------------------------------------------
グーグルマップのズームボタンの拡大縮小のボタンの移動
-------------------------------------------------------------------------*/

.gm-bundled-control {
    bottom: 110px !important;
    top: unset !important;
}

/* 学区検索
--------------------------- */
.win-list-right .school_arround_bkn {
    padding: 3px 15px;
    border: 1px solid var(--border-color);
    font-size: 12px;
}
.win-list-right .school_arround_link {
    margin: 10px 0 3px 0;
}
.win-spot-list {
    text-align: center;
    min-height: 180px;
}
.win-list-right li,
.win-list-top h2 {
    font-size: 12px;
}
#favo_map {
    width: 800px;
    height: 400px;
    margin-top: 5px;
}
.favo_map_text {
    margin: 5px 0 20px 0;
}
#favo_map_mobile {
    width: 100%;
    height: 400px;
    margin-top: 5px;
}
.favo_map_mobile_text {
    margin: 5px 0 20px 0;
    padding: 0 20px 8px;
}

/* 棟表示対応のための追加CSS */

/* 棟グループ全体のスタイル */
.map-bkn__building-group {
    background-color: #fff;
    border: 1px solid #CFD8DC;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 棟ヘッダーのスタイル */
.map-bkn__building-header {
    background-color: #fff;
    border-bottom: 1px solid #CFD8DC;
    padding: 12px;
}
    .map-bkn__building-content {
        display: flex;
        gap: 12px;
    }
        .map-bkn__building-left {
            flex-shrink: 0;
        }
            .map-bkn__building-left .map-bkn__img {
                width: 80px;
                height: 69px;
                margin: 0 0 2px;
            }
        .map-bkn__building-right {
            flex: 1;
        }
            .map-bkn__building-type {
                font-size: 10px;
                color: var(--light-text-color);
                margin-bottom: 4px;
            }
            .map-bkn__building-title {
                font-size: 14px;
                font-weight: bold;
                margin-bottom: 4px;
            }
            .map-bkn__building-info {
                font-size: 12px;
                color: var(--light-text-color);
                margin-bottom: 2px;
            }
                .map-bkn__building-info svg {
                    min-width: 10px;
                    width: 10px;
                    height: 10px;
                    margin-right: 4px;
                }

/* 部屋リストのスタイル */
.map-bkn__rooms {
    background-color: #fff;
}

.map-bkn__link--no-image {
    padding: 12px 16px;
    border-bottom: 1px solid #EDEFF2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    background-color: transparent;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
    margin-bottom: 8px;
}
.map-bkn__link--no-image:last-child {
    border-bottom: none;
}
    .map-bkn__room-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }
        .map-bkn__room-price {
            font-weight: bold;
            font-size: 16px;
            color: #333;
        }
        .map-bkn__room-details {
            font-size: 12px;
            color: var(--light-text-color);
            line-height: 1.4;
        }
            .map-bkn__room-floor,
            .map-bkn__room-square,
            .map-bkn__room-age {
                font-size: 12px;
            }
            .map-bkn__room-separator {
                margin: 0 4px;
            }

/* 4件目のぼかしプレビュー */
.map-bkn__room-preview {
    padding: 12px 16px;
    border-bottom: 1px solid #EDEFF2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}
.map-bkn__room-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(2px);
    pointer-events: none;
}
.map-bkn__room-preview .map-bkn__room-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.map-bkn__room-preview .map-bkn__room-price {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}
.map-bkn__room-preview .map-bkn__room-details {
    font-size: 12px;
    color: var(--light-text-color);
    line-height: 1.4;
}

/* すべて見るボタン */
.result-list__all-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.4);
}
.result-list__all-view-overlay a.ui-sub-btn--flat {
    padding: 10px 20px;
    border: 1px solid #CFD8DC;
    border-radius: 4px;
    font-size: 14px;
    color: var(--light-text-color);
    text-decoration: none;
    text-align: center;
}
