// 物件一覧
// sidebar
.post-type-archive-housing{
    header{
        width: 100%;
        position: fixed;
        z-index: 1060;
        .container-width{
            max-width: inherit;
            width: auto;
            @include breakpoint-sm{
                width: 90%;
            }

        }
    }
}
.properties-sidebar{
    position: fixed;
    width: 400px;
    height: 100vh;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 3px 0px 10px rgba(0,0,0,0.1);
    .inner{
        padding: 20px;
    }
    @include breakpoint-sm{
        width: 100%;
        top: inherit;
        box-shadow: 0;
    }
}
.properties-logo{
	.navbar-brand{
		width: 228px;
        padding: 0;
        @include breakpoint-sm{
            width: 150px;
            margin-right: 0;
        }
	}
}

.properties-list{
	overflow-y: scroll;
    overflow-x: hidden;
	height: calc(100vh - 300px);
    @include breakpoint-sm{
	height: calc(100vh - 210px);
    }
    .campaign-address{
        @include breakpoint-sm{
            font-size: 0.75rem;
        }
    }
	.campaign-list-box{
		border-bottom: solid 1px #EEEEEE;
		padding-bottom: 20px;
		margin-bottom: 20px;
	}
	.image{
		img{
			width: 100%;
			height: 153px;
			object-fit: cover;
      font-family: 'object-fit: cover;';
			@include breakpoint-sm{
					height: 100px;
			}
		}
	}
}

.properties-search {
	background: #EEEEEE;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    @include breakpoint-sm{
        background: none;
        position: inherit;
        bottom: inherit;
        left: inherit;
        width: auto;
    }
    .inner{
        @include breakpoint-sm{
            padding: 0;
        }
        
    }
	.search-form{
		display: flex;
		justify-content: space-between;
	}
	.form-control{
		width: 78%;
		height: auto;
		font-size: 0.75rem;
		padding: 12px 10px;
        @include breakpoint-sm{
            border: none;
            background: $gray-light;
		    padding: 10px;
        }
        &::placeholder {
            @include breakpoint-sm{
                color: #B8B8B8;
            }
        }
	}
    .form-group{
        @include breakpoint-sm{
            margin-bottom: 0;
        }
    }
	.p-btn01 {
		width: 20%;
        height: 100%;
		margin: 0;
		color: #fff;
		font-size: 0.75rem;
        font-weight: bold;
		box-shadow: 0px 3px 0px rgba(0,0,0,0.3);
        line-height: 1.5;
        padding: 12px 10px;
        @include breakpoint-sm{
            padding: 10px;
            line-height: inherit;
        }
	}
	.properties-search-area {
		.search-label {
			font-size: 0.75rem;
			font-weight: bold;
            margin-bottom: 5px;
            color: #333;
		}
		.area-block {
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 6px;
		}
		.area-btn {
            display: inline-block;
            width: 70px;
            line-height: 32px;
            height: 32px;
            background: #fff;
            border-radius: 4px;
		    box-shadow: 0px 3px 0px rgba(0,0,0,0.2);
            margin-right: 10px;
		}
		a {
			display: block;
            color: $main-blue;
            font-size: 12px;
            font-weight: bold;
            text-align: center;
			&:hover{
			}
		}
	}
}

.properties-map{
    width: calc(100% - 400px);
    height: 100vh;
    background: #ccc;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    @include breakpoint-sm{
        width: 100%;
        position: inherit;
        top: inherit;
        right: inherit;
    }
	iframe{
		width: 100%;
		height: 100%;
		z-index: 1;
        @include breakpoint-sm{
            height: calc(100vh - 170px);
        }
		.place-card.place-card-large{
			display: none!important;
		}
	}
	.properties-map-shadow{
		box-shadow:0px 120px 120px -120px #000000 inset;
        width: 100%;
        height: 128px;
        position: fixed;
        right: 0;
        z-index: 10;
        @include breakpoint-sm{
            display: none;
        }
	}
}
.properties-header-sp{
    @include breakpoint-sm{
        box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
    }
}

// SP tab
.properties-tab-panel{
    .tab-group{
        display: flex;
        justify-content: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 10;
    }
    .tab{
        flex-grow: 1;
        padding: 15px;
        padding-left: 40px;
        background: #ddd;
        font-size: 0.812rem;
        position: relative;
        &::before{
            content: "";
            position: absolute;
            width: 1em;
            height: 1em;
            margin-left: -1.5em;
            background: no-repeat 50% 50% / 100% auto;
        }
        &.tab-list{
            &::before{
                background-image: url(../img/common/icon-tablist.svg);
            }
            border-right: solid 1px #ddd;
        }
        &.tab-map{
            &::before{
                background-image: url(../img/common/icon-tabmap.svg);
            }
        }
    }
    .panel{
        display:none;
    }
    .tab.is-active{
        color: $black;
        font-weight: bold;
        background: $gray-light;
        transition: all 0.2s ease-out;
    }
    .panel.is-show{
        display: block;
    }
    
}


// 物件詳細
.properties-slide{
    height: 600px;
    @include breakpoint-sm{
        height: 300px;
        margin-bottom: 30px;
    }
    .swiper-slide {
        img{
            max-width: 100%;
            margin: auto;
            height: 100%;
            object-fit: cover;
            object-position: 50% 50%;
          font-family: 'object-fit: cover;'
        }
    }
    .gallery-top {
        height: 80%;
        width: 100%;
        background: $gray-light;
    }
    .gallery-thumbs {
        height: 20%;
        box-sizing: border-box;
        padding-top: 20px;
        .swiper-slide {
            height: 100px;
            opacity: 0.4;
            @include breakpoint-lg{
                height: 60px;
            }
            @include breakpoint-sm{
                height: 40px;
            }
            img{
                height: 100px;
                @include breakpoint-lg{
                    height: 60px;
                }
                @include breakpoint-sm{
                    height: 40px;
                }
            }
            &.swiper-slide-active {
                opacity: 1;
            }
        }
    }
    .swiper-button-next, .swiper-button-prev{
        width: 13px;
        height: 22px;
        background: url(../img/common/icon-arrow04-right.svg) no-repeat 0 0 / 100% auto;
        margin-top: -13px;
    }
    .swiper-button-prev{
        background-image: url(../img/common/icon-arrow04-left.svg);
    }
}
.properties-read{
    text-align: center;
    @include breakpoint-md{
        text-align: left;
    }
}
.properties-introduction {
    line-height: 24px;
}

.btn-all{
	padding: 6px 10px;
}
.modal-propertieslist{
//	font-size: 12px;
	.modal-dialog{
		max-width: 800px;
		width: 95%;
	}
	table{
		th{
			width: 20%;
		}
	}
	@include breakpoint-md{
		table{
			display: block;
			tbody{
				display: block;
				width: 100%;
			}
			tr,
			th{
				display: block;
			}
			th{
				width: auto;
			}
			td{
				width: 49%;
				display: inline-block;
			}
		}
	}
}
.properties-equipment-list {
    display: flex;
    flex-wrap: wrap;
    .equipment-img {
        flex-basis: 23%;
        margin: 1%;
			@include breakpoint-lg{
				flex-basis: 31%;
			}
			@include breakpoint-md{
				flex-basis: 12%;
			}
			@include breakpoint-sm{
				flex-basis: 18%;
			}
    }
    img {
        width: 100%;
    }
}
.properties-status {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
		@include breakpoint-lg{
			display: block;
		}
		@include breakpoint-sm{
			display: flex;
		}
    div{
        flex-basis: 49%;
        background: $gray-light no-repeat left 10px center / 20px auto;
        border-radius: 6px;
        font-size: 0.75rem;
        color: $black;
        padding: 15px;
        padding-left: 40px;
			@include breakpoint-lg{
				margin-bottom: 10px;
                padding: 10px;
                padding-left: 40px;
			}
    }
    .no-smoking {
        background-image: url(../img/common/icon-nosmoking.svg);
    }
    .campaign01 {
        background-image: url(../img/common/icon-campaign-blue.svg);
    }
    .campaign02 {
        background-image: url(../img/common/icon-campaign-orange.svg);
    }
}
.properties-information{
	.p-title03{
		margin-top: 0;
		&.properties-aroundmap-title{
			@include breakpoint-sm{
				margin-top: 40px;
			}
		}
	}
}
.properties-aroundmap{
    width: 100%;
    margin-bottom: 10px;
    height: calc(100% - 150px);
		@include breakpoint-sm{
			height: 300px;
		}
}
.properties-vr{
	width: 100%;
	height: 450px;
	@include breakpoint-sm{
		height: 200px;
	}
}
.properties-comments{
    font-size: 0.812rem;
}

.properties-campaign {
	.campaign-box {
		border: 10px solid;
		border-top: none;
		margin-bottom: 30px;
		&.campaign-box01{
			border-color: #DEEEFF;
			h3{
                background-color: #DEEEFF;
                color: #4F70B6;
				&::after{
					background-color: #4F70B6;
				}
			}
		}
		&.campaign-box02{
			border-color: #FFF5EB;
			h3{
                background-color: #FFF5EB;
                color: #B77E49;
				&::after{
					background-color: #B77E49;
				}
			}
		}
	}
	h3 {
		margin: 0;
		padding: 20px;
		padding-left: 65px;
		font-size: 1.125rem;
		line-height: 1.125rem;
		font-weight: bold;
		position: relative;
        @include breakpoint-md{
		    font-size: 1rem;
		    line-height: 1rem;
            padding: 16px;
            padding-left: 50px;
        }
		&::before{
			content: "";
			position: absolute;
			background: url(../img/common/icon-campaign-white.svg) no-repeat 50% 50% /18px auto;
			width: 18px;
			height: 17px;
			top: 0;
			left: 20px;
			bottom: 0;
			margin: auto;
			z-index: 2;
            @include breakpoint-md{
                width: 14px;
                height: 13px;
                background-size: 14px auto;
                left: 19px;
            }
		}
		&::after{
			content: "";
			position: absolute;
			width: 36px;
			height: 36px;
			border-radius: 36px;
			top: 0;
			left: 10px;
			bottom: 0;
			margin: auto;
			z-index: 1;
            @include breakpoint-md{
                width: 30px;
                height: 30px;
            }
		}
	}
	.inner {
		padding: 20px;
	}
}

.properties-btn {
	margin-top: 50px;
	display: flex;
	justify-content: space-around;
	@include breakpoint-md{
		display: block;
	}
	.p-btn {
		position: relative;
		@include breakpoint-md{
			margin-bottom: 10px;
		}
		&.btn-contact{
			flex-basis: 46%;
			a{
					font-size: 1rem;
					background: $orange;
					border-bottom: solid 5px #ba6125;
				&::before{
					background-image: url(../img/properties/icon-send.svg);
				}
				&:hover{
				background: $red;
				border-bottom-color: #b23228;
				}
			}
		}
		&.btn-confilm{
			flex-basis: 25%;
			a{
				border: solid 3px $main-blue;
				border-bottom: solid 5px $main-blue;
				color: $main-blue;
				font-size: 0.875rem;
				&::before{
					background-image: url(../img/properties/icon-confirm.svg);
					background-size: 30px;
					width: 30px;
					height: 30px;
    			transition: all 0.3s ease-in-out;	
				}
				&:hover{
					background-color: $main-blue;
					color: #fff;
					&::before{
						background-image: url(../img/properties/icon-confirm-white.svg);
					}
				}
			}
		}
		&.btn-mylist{
			flex-basis: 25%;
			a{
				cursor: pointer;
				color: #fff;
				font-size: 0.875rem;
				background: $main-blue;
				border-bottom: solid 5px $blue-dark;
				&::before{
					background-image: url(../img/properties/icon-like.svg);
				}
				&:hover{
					background-color: $blue-dark;
					border-bottom-color: #111c3b;
				}
			}
		}
	}
	a {
		display: block;
		color: #fff;
		font-size: 0.75rem;
		font-weight: bold;
		text-align: center;
		text-decoration: none;
		padding: 30px 0;
		border-radius: 5px;
		@include breakpoint-md{
			padding: 20px 0;
		}
		&::before{
			position: absolute;
			content: "";
			background: no-repeat 0 0 / 25px auto;
			width: 25px;
			height: 25px;
			left: 20px;
			top: 0;
			bottom: 0;
			margin: auto;
		}
		&:hover{
		}
	}
}
.properties-nearbyarea{
	.campaign-list-box {
		box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
		padding: 20px;
		@include breakpoint-md{
			margin-bottom: 30px;
		}
		.image-block{
			.tag-gampaign{
				@include breakpoint-md{
					padding: 2px 5px 2px 28px;
				}
			}
		}
		.campaign-textarea{
			@include breakpoint-md{
				padding-left: 10px!important;
			}
			
		}
	}
}
.properties-detailarea {
    display: flex;
    flex-wrap: wrap;
	@include breakpoint-md{
		text-align: center;
		justify-content: space-between;
	}
    .area {
        margin-right: 10px;
        margin-bottom: 10px;
			@include breakpoint-md{
				flex-basis: 49%;
				margin-right: 0;
			}
    }
    a {
        color: $black;
        text-decoration: underline;
        display: block;
        border: solid 1px #707070;
        border-radius: 100px;
        padding: 10px 30px;	
        @include breakpoint-md{
            padding: 8px 0;
            text-decoration: none;
        }
        &:hover{
            text-decoration: none;
            background: $gray-light;
            border-color: $gray-light;
        }
    }
}