body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.container {
    display: flex;
}

.sidebar {
    width: 25%;
    padding: 20px;
    background-color: #fff;
}

.property-list {
    width: 75%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.property-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.property-item img {
    width: 100%;
    height: auto;
}

.property-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.property-item p {
    color: #555;
    margin: 5px 0;
}

button {
    background-color: #333;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.property-detail {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#map {
    margin-top: 20px;
    border: 1px solid #ddd;
}
/* 固定模态框的最大宽度和最大高度 */
.modal-dialog {
    max-width: 800px;   /* 固定宽度 */
    max-height: 600px;  /* 固定高度 */
    width: 100%;        /* 使宽度占满父容器 */
    height: 100%;       /* 使高度占满父容器 */
}

/* 固定图片容器的尺寸 */
.carousel-inner {
    max-width: 100%;
    max-height: 500px;  /* 固定高度为 500px，你可以根据需求调整 */
    overflow: hidden;   /* 防止溢出 */
}

.carousel-item img {
    max-width: 100%; /* 保证图片不超出容器 */
    max-height: 400px; /* 设置最大高度，保证图片显示比例不失真 */
    margin: 0 auto; /* 保证图片在容器中水平居中 */
    object-fit: contain; /* 保证图片按比例缩放 */
}

.thumbnail-container .img-thumbnail {
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
}

.thumbnail-container .col-3 {
    padding: 5px;
}

.custom-card-img {
    width: 100%;               /* 使图片宽度占满父容器 */
    height: 200px;             /* 固定高度 */
    object-fit: contain;       /* 保证图片按照比例缩放，不裁剪 */
    display: block;            /* 使图片为块级元素 */
    margin: 0 auto;            /* 水平居中 */
}
i.fas {
    font-size: 1.3em; /* 调整图标大小 */
    color: #383838;   /* 修改图标颜色 */
}
