/* 头部整体布局 */
header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 5vw; /* 使用视窗宽度作为单位，随屏幕大小变化自动调整 */
  border-bottom: 2px solid #eee;
  gap: 2px;
}
/* 左侧布局 */
.header-logo img{
  max-width: 200px; /* logo 最大宽度（可根据设计调整） */
  width: 100%; /* 占满父容器宽度，随屏幕缩放 */
  height: auto; /* 保持图片比例，避免拉伸 */
  min-width: 0px; /* logo 最小宽度，防止过小 */
}
/* 右侧布局 */
.header-contact{
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 0; /* 使用视窗宽度作为单位，随屏幕大小变化自动调整 */
}
/* 仅新增翻译相关样式，不影响原有样式 */
.translate-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 15px; /* 与其他导航项保持间距 */
}
.translate-button {
    background: transparent;
    border: none;
    color:inherit; /* 继承导航栏文字颜色 */
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}
.translate-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 5px 0;
    display: none;
}
.translate-dropdown.show {
    display: block;
}
.translate-option {
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.translate-option:hover {
    background-color: #f5f5f5;
}
.translate-option.active {
    background-color: #f0f7ff;
    color: #0066cc;
}
/* 确保导航项垂直对齐 */
.main-nav li {
    display: inline-block; /* 确保翻译按钮与其他项在同一行 */
    vertical-align: middle;
}
.language-selector {
  position: relative; /* 为下拉列表的绝对定位做容器 */

}
.language-list {
  position: absolute;
  top: 100%;
  left: 0;
  display: none; /* 默认隐藏 */
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 0;
  margin: 0;
  list-style: none;
}
.language-list li a {
  display: block;
  padding: 6px 16px;
  color: #333;
  text-decoration: none;
}
.language-list li a:hover {
  background: #f5f5f5;
}
/* 触发显示下拉列表的样式 */
.language-selector.active .language-list {
  display: block;
}

/* 电话图标 + 文字 的容器：横向排列 */
.header-phone{
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding-right: 2vw;
}
.all-phone {
  display: flex;
  flex-direction: row; /* 文字纵向排列（号码在上，邮箱在下） */
  gap: 2px; /* 号码与邮箱的垂直间距 */
  align-items: flex-end;
}
.header-phone img{
  max-width: 30px; /* logo 最大宽度（可根据设计调整） */
  width: 100%; /* 占满父容器宽度，随屏幕缩放 */
  height: auto; /* 保持图片比例，避免拉伸 */
  min-width: 0px; /* logo 最小宽度，防止过小 */
}
.phone-number{
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-weight: bold;
  margin: 1px;
  line-height: 1.2;
}
.email{
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(73, 73, 73);
  margin: 0;
}
/* 导航栏 */
nav{
  background-color: #00adef;
  padding: 1px;
  position: sticky;
  top: 0;
  z-index: 999;
  margin: 0;
}
nav ul{
  display: flex;
  justify-content: space-around;
  list-style-type:none;
  padding: 10px;
  margin-left: 80px;
  margin-right: 80px;
}
nav li{
  display: inline-block;
  text-align: center;
}
nav a{
  color: white;
  text-decoration: none;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0px;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
}
nav a:hover {
  color: #f0f0f0; /*  hover 时稍浅的白色 */
  text-decoration: underline; /* 下划线提示 */
  transform: translateY(-5px); /* 轻微上移效果 */
}
/* 房产区域上面的title */
.featured-properties {
  max-width: 1200px;
  margin: 0 auto;
}
.property {
  text-align: center;
  margin-bottom: 40px;
}
.property h1 {
  margin-top: 70px;
  font-size: 70px;
  color: #333;
  font-family: "Cinzel";
}
.property p {
  font-size: 15px;
  color: #c0c0c0;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
/* 房产名片的信息 */
/* 全宽标题部分 */
.header-section {
    margin-top: 30px; 
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    padding-left: 10px;
}

.property-title {
    font-size: 62px;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-family: Georgia;
}

.property-location {
    color: #666;
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'Times New Roman', Times, serif;
}

.property-price {
    font-size: 32px;
    font-weight: 600;
    color: #2563eb;
}

/* 全宽图片画廊 */
.gallery-section {
    background: white;
    padding: 0 10px;
     /* 移除固定高度限制，让内容自然撑开高度 */
    height: auto; 
    /* 确保内部图片容器不会超出父元素 */
    overflow: hidden
}

.gallery-wrapper {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 400px;
    gap: 5px;
    height: 650px;

}

.main-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;

}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image:hover img {
    transform: scale(1.05);
}

.side-images {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 2px solid #000;
}

.side-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    flex: 1;
}

.side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.side-image:hover img {
    transform: scale(1.05);
}

.view-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 特性卡片 - 极简设计 */
.features-card {
    background: white;
    padding: 10px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.feature-item:first-of-type {
    border-top: 1px solid #e5e7eb;
}

.feature-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 28px;
}

.feature-label {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.feature-value {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 内容区域 */
.content-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
}

/* 描述区域 */
.description-section {
    font-family:'Quicksand', sans-serif;;
}

.section-title {
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.description-text {
    color: #555;
    font-size: 20px;
    white-space: pre-line;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Agent卡片 - 现代设计 */
.agent-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column; 
    padding: 0;
    
}
.agent-header {
    background: #00adef;
    padding: 20px 20px 15px 40px ;
    text-align: left;
    color: white;
    margin: 0; /* 确保没有margin */
    width: 100%; /* 确保宽度100% */
    display: flex;
    align-items: center; /* 垂直居中对齐，可选 */
    gap: 30px;
}

.agent-info {
display: flex;
flex-direction: column; /* 垂直排列子元素 */
}


.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    overflow: hidden;
    background: white;
}

.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-name {
    font-size: 24px;
    font-weight: bold;
    margin: 0 5px 0 0;
}

.agent-title {
    font-size: 14px;
    color: #eff2f6;
}


.agent-body {
    padding: 30px;
    margin: 0; /* 确保没有margin */
width: 100%; /* 确保宽度100% */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-textarea {
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-email {
    background: #00adef;
    color: #ffffff;
}

.btn-email:hover {
    background: #001f49;
}

.btn-call {
    background: white;
    color: #001f49;
    border: 2px solid #e5e7eb;
}

.btn-call:hover {
    border-color: #00adef;
    color: #00adef;
}

/* Open Homes */
.open-homes-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
}

.open-homes-title {
    font-size: 24px;
    font-weight: 600;
    color: #00adef;
    margin-bottom: 25px;
}

.open-home-item {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.open-home-item:last-child {
    border-bottom: none;
}

.open-home-date {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
}

.add-calendar-btn {
    background: none;
    border: none;
    color: #00adef;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-calendar-btn:hover {
    text-decoration: underline;
}

.contact-agent-link {
    background: #00adef;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-agent-link:hover {
    background: #00adef;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 18px;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

.loading {
    text-align: center;
    padding: 100px;
    font-size: 20px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
}
/* 结尾收官 */
/* 页脚样式 */
.footer-section {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 60px 0 30px;
    position: relative;
    margin-top: 80px;
}

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2a86db, #4cc9f0, #2a86db);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 品牌信息 */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-logo img {
    max-height: 60px;
    filter: brightness(1.2);
}

.brand-desc {
    color: #b0b0c5;
    line-height: 1.6;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link.facebook {
    background-color: #3b5998;
}

.social-link.instagram {
    background-color: #e1306c;
}

.social-link.youtube {
    background-color: #ff0000;
}

.social-link.linkedin {
    background-color: #0077b5;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 链接样式 */
.footer-links, .footer-contact, .footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-title, .contact-title, .newsletter-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.link-title::after, .contact-title::after, .newsletter-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #4cc9f0;
}

.link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    color: #b0b0c5;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.link-item:hover {
    color: #4cc9f0;
    padding-left: 5px;
}

/* 联系信息 */
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #b0b0c5;
    font-size: 14px;
}

.contact-item a {
    color: #b0b0c5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #4cc9f0;
}

.contact-icon {
    color: #4cc9f0;
    margin-top: 3px;
    min-width: 20px;
}

/* 订阅区域 */
.newsletter-desc {
    color: #b0b0c5;
    font-size: 14px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.email-input {
    flex: 1;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px 0 0 4px;
    color: white;
    font-size: 14px;
    outline: none;
}

.email-input::placeholder {
    color: #b0b0c5;
}

.submit-btn {
    background-color: #4cc9f0;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2a86db;
}

.privacy-note {
    font-size: 12px;
    color: #8888a0;
    margin-top: 10px;
}

/* 分隔线 */
.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px;
}

/* 页脚底部 */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.copyright {
    color: #8888a0;
    font-size: 13px;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.bottom-link {
    color: #8888a0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.bottom-link:hover {
    color: #4cc9f0;
}