

.search-map{width: 100%;height: auto;margin: 150px auto 0;position: relative;}
.property-search__container{position: relative;bottom: 0;}
.objects-box__list{width: 100%;margin: 10px 0;}
.case-box__img{width: calc(100%/2 - 60px);}
.object-map__conntent{margin: 20px auto 0;justify-content: center;}
.case-list__title{font-size: 1.8em;}
.objects-list__text{font-size: 1.5em;}
.objects-list__price{font-size: 1.6em;}
.objects-filter__title{margin: 15px 0;}
.select-wrapper{margin: 0 0 15px 0;}
.object-btn{width: 10px;
  height: 10px;
  pointer-events: none;
  transform: translateY(-50%) rotate(135deg);
  border-right: 1px solid #252525;
  border-bottom: 1px solid #252525;
  margin: 0 0 -3px 0;
}

.object-btn--style{
  transform: translateY(-50%) rotate(-44deg);

}
.pagination-content{gap: 20px;margin: 20px auto;}
.pagination{margin: 20px auto;}

.container {
            display: flex;
            max-width: 1800px;
            margin: 20px auto;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            overflow: hidden;
        }
        
        .sidebar {
            width: 500px;
            padding: 20px;
            background-color: #f9f9f9;
            border-right: 1px solid #e0e0e0;
            max-width: 100%;
             overflow-y: auto; /* 添加垂直卷軸 */
             height: 700px;
             transition: transform 0.3s ease;
             z-index: 99;
             position: relative;
        }
        
        .map-container {
            flex: 1;
        
            position: relative;
        }
        
        #map {
            width: 100%;
            height: 100%;
        }
      
        .search-box {
            margin-bottom: 20px;
        }
        
    
        .district-list {
            margin-bottom: 20px;
        }
        
        .district-list h2 {
            font-size: 18px;
            margin-bottom: 10px;
            color: #34495e;
        }
        
        .district-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .district-item {
            padding: 8px 12px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
            font-size: 14px;
        }
        
        .district-item:hover {
            background-color: #e74c3c;
            color: white;
            border-color: #e74c3c;
        }
        
        .district-item.active {
            background-color: #e74c3c;
            color: white;
            border-color: #e74c3c;
        }
        
        .price-filter {
            margin-bottom: 20px;
        }
        
        .price-filter h2 {
            font-size: 18px;
            margin-bottom: 10px;
            color: #34495e;
        }
        
        .price-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .price-option {
            display: flex;
            align-items: center;
        }
        
        .price-option input {
            margin-right: 8px;
        }
        
        .price-option label {
            font-size: 14px;
            cursor: pointer;
        }
        
        .filter-button {
            width: 100%;
            padding: 12px;
            background-color: #e74c3c;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .filter-button:hover {
            background-color: #c0392b;
        }
        
        .property-count {
            margin-top: 20px;
            font-size: 14px;
            color: #7f8c8d;
            text-align: center;
        }
        
        .map-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 97;
            background: white;
            padding: 5px;
            border-radius: 4px;
            box-shadow: 0 0 5px rgba(0,0,0,0.2);
        }
        
        .map-type-btn {
            padding: 5px 10px;
            margin: 0 2px;
            cursor: pointer;
            border: 1px solid #ddd;
            background: #f5f5f5;
            border-radius: 3px;
        }
        
        .map-type-btn.active {
            background: #e74c3c;
            color: white;
            border-color: #e74c3c;
        }
        
        .property-marker {
            background-color: #e74c3c;
            color: white;
            padding: 5px 8px;
            border-radius: 50%;
            font-size: 12px;
            font-weight: bold;
            border: 2px solid white;
            box-shadow: 0 0 5px rgba(0,0,0,0.3);
            cursor: pointer;
        }
        
        .property-info {
            width: 250px;
            padding: 10px;
        }
        
        .property-info h3 {
            margin-bottom: 5px;
            color: #e74c3c;
        }
        
        .property-info img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            margin-bottom: 10px;
            border-radius: 4px;
        }
        
        .property-price {
            font-weight: bold;
            color: #e74c3c;
            font-size: 18px;
            margin-bottom: 5px;
        }
        
        .property-address {
            color: #7f8c8d;
            font-size: 14px;
            margin-bottom: 5px;
        }
        
        .property-features {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: #34495e;
        }



.mobile-toggle-btn {
    display: none;
    position: fixed;
    top: 12%;
    
    width:35px;
    height:70px;
    z-index: 999;
    cursor: pointer;
    background-color: #eeeeee;
    border-radius: 0 20px 20px 0px;
    box-shadow: 0 4px 5px rgba(37, 65, 178, 0.25);
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
      flex-direction: column;
    justify-content: space-around;
}



.double-arrow-icon {
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
}

.mobile-toggle-btn.active .double-arrow-icon {
    transform: rotate(180deg);
    margin-left: 0;
    margin-right: 10px;
    z-index: 999;
}



/* 點擊外部區域關閉側邊欄的遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.active + .sidebar-overlay {
    display: block;
    opacity: 1;
}




.objects-search{  z-index: 101;}




@media (max-width: 1024px) {
    .mobile-toggle-btn {
        display: flex;
        left: 0px;
        z-index: 1000;
    }
    
    .sidebar {
        position: fixed;
        top:inherit;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        left: 0;
        bottom: 0;
    }
    
    .sidebar.active {
        transform: translateX(0);
        z-index: 99;
    }
    
   
    
    .map-container {
        width: 100%;
        height: 600px;
        
}
  
.property-search__container{padding: 10px ;margin: 5px auto;}
.property-search__filters{gap: 20px;}
.search-map{margin: 80px auto 0}
.toggle-icon{position: relative;}


.toggle-icon::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -15px;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 15px;
  height: 15px;
  pointer-events: none;
  transform: translateY(-50%) rotate(-45deg); /* 預設向右 */
  border-right: 1px solid #2e2e2e;
  border-bottom: 1px solid #2e2e2e;
  transition: transform 0.3s ease;
}

.mobile-toggle-btn.active .toggle-icon::after {
  transform: translateY(-50%) rotate(45deg) scaleX(-1); /* 水平翻轉箭頭 */
   left: -8px;
}

   
    .map-container {
        width: 100%;
    }
.sidebar{width: 100%;}

.objects-search{z-index: 93;}
}