/* ============================================================
   首頁專屬樣式（BEM 命名）
   ============================================================ */

/* ===== Hero Block ===== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0b2a4a 0%, #1a3b5a 50%, #0b2a4a 100%);
    overflow: hidden;
    /* 滿版突破 page-wrap padding */
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    width: auto;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(43, 122, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(191, 161, 95, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero__content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 720px;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 16px;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero__title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero__title span {
    color: #bfa15f;
    position: relative;
}
.hero__title span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(191, 161, 95, 0.2);
    border-radius: 4px;
    z-index: -1;
}
.hero__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.hero .btn--primary {
    background: #bfa15f;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(191, 161, 95, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-decoration: none;
    transition: 0.2s;
}
.hero .btn--primary:hover {
    background: #a68a4c;
    transform: translateY(-2px);
}
.hero .btn--outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.2s;
}
/* ===== Widget Block ===== */
.widget {
    padding: 60px 0;
}
.widget--latest {
    background: #fff;
}
.widget--cta {
    background: linear-gradient(135deg, #0b2a4a, #1a3b5a);
    text-align: center;
    padding: 60px 0;
}
.widget__header {
    text-align: center;
    margin-bottom: 40px;
}
.widget__title {
    /* 視覺樣式由 inline style 控制 */
}
.widget--cta .widget__title {
    /* 視覺樣式由 inline style 控制 */
}
.widget__desc {
    /* 視覺樣式由 inline style 控制 */
}
.widget--cta .widget__desc {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.widget__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.widget__body--latest {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===== Card Block（房源卡片） ===== */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}
.card--latest {
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}
.card--latest:hover {
    border-color: #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.card__thumb {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ccc;
}
.card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card__thumb .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
    color: #fff;
}
.card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #bfa15f;
    margin-bottom: 6px;
}
.card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 8px;
}
.card__desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}
.card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d9534f;
}
.card__price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #666;
}
.card__layout {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    margin-left: 6px;
    margin-right: auto;
}
.card__address {
    font-size: 0.82rem;
    color: #999;
    margin-bottom: 6px;
    padding-left: 14px;
    position: relative;
}
.card__address::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 10px;
    height: 12px;
    background: #bfa15f;
    clip-path: polygon(50% 0%, 100% 40%, 80% 100%, 50% 75%, 20% 100%, 0% 40%);
}
.card__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #bfa15f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}
.card__link:hover {
    color: #a68a4c;
    gap: 8px;
}
.card__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 0.9rem;
}
.card__empty .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
    color: #ddd;
}

/* ===== CTA 區塊共用 btn ===== */
.widget--cta .btn--primary {
    background: #bfa15f;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-decoration: none;
    transition: 0.2s;
}
.widget--cta .btn--primary:hover {
    background: #a68a4c;
    transform: translateY(-2px);
}

/* ===== 手機版 ===== */
@media screen and (max-width: 850px) {
    .hero { min-height: 50vh; }
    .hero__content { padding: 40px 16px; }
    .hero__title { font-size: 1.6rem; }
    .hero__desc { font-size: 0.85rem; }
    .hero .btn--primary { padding: 10px 24px; font-size: 0.8rem; }
    .hero .btn--outline-light { padding: 10px 20px; font-size: 0.78rem; }

    .widget { padding: 40px 0; }
    .widget--cta { padding: 40px 0; }
    .widget__title { font-size: 1.3rem; }
    .widget--cta .widget__title { font-size: 1.2rem; }
    .widget__body { gap: 16px; }

    .card--feature { padding: 24px 16px; }
}