:root {
    --wf-blue: #071a33;
    --wf-blue-2: #0d2b52;
    --wf-gold: #c9a24a;
    --wf-gold-2: #f2d785;
    --wf-red: #8f1d21;
    --wf-ink: #101828;
    --wf-muted: #667085;
    --wf-line: #e8edf4;
    --wf-bg: #f6f8fb;
    --wf-white: #ffffff;
    --wf-shadow: 0 18px 45px rgba(7, 26, 51, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    color: var(--wf-ink);
    background: var(--wf-bg);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
}

.btn-primary {
    background: var(--wf-blue);
    border-color: var(--wf-blue);
}

.btn-primary:hover {
    background: var(--wf-blue-2);
    border-color: var(--wf-blue-2);
}

.btn-gold {
    background: linear-gradient(135deg, var(--wf-gold), var(--wf-gold-2));
    border: 0;
    color: var(--wf-blue);
}

.btn-gold:hover {
    color: var(--wf-blue);
    filter: brightness(1.04);
}

.btn-outline-gold {
    border-color: var(--wf-gold);
    color: var(--wf-gold);
}

.btn-outline-gold:hover {
    background: var(--wf-gold);
    color: var(--wf-blue);
}

.top-strip {
    background: var(--wf-blue);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    padding: 0.55rem 0;
}

.top-strip a {
    color: rgba(255, 255, 255, 0.9);
}

.main-nav {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(7, 26, 51, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    max-width: 460px;
    white-space: normal;
}

.navbar-brand strong {
    color: var(--wf-blue);
    display: block;
    font-size: 1.08rem;
    line-height: 1.2;
}

.navbar-brand small {
    color: var(--wf-muted);
    display: block;
    font-size: 0.76rem;
}

.brand-mark {
    align-items: center;
    background: var(--wf-blue);
    border: 2px solid var(--wf-gold);
    color: var(--wf-gold-2);
    display: inline-flex;
    font-weight: 900;
    height: 48px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 48px;
}

.nav-link {
    color: var(--wf-blue);
    font-weight: 700;
}

.nav-link--gold {
    color: var(--wf-gold);
}

.hero {
    background: var(--wf-blue);
    position: relative;
}

.hero-swiper {
    height: 720px;
}

.hero-slide {
    overflow: hidden;
    position: relative;
}

.hero-slide img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    width: 100%;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(7, 26, 51, 0.88), rgba(7, 26, 51, 0.32), rgba(143, 29, 33, 0.25));
    inset: 0;
    position: absolute;
}

.hero-content {
    color: var(--wf-white);
    left: 50%;
    position: absolute;
    top: 42%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    color: var(--wf-gold-2);
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 6vw, 5.4rem);
    font-weight: 900;
    line-height: 1.08;
    max-width: 760px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 680px;
}

.hero-search-wrap {
    bottom: -76px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-search {
    background: var(--wf-white);
    border-top: 5px solid var(--wf-gold);
    box-shadow: var(--wf-shadow);
    padding: 1.5rem;
}

.hero-search .nav-pills {
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.hero-search .nav-link {
    background: #eef2f7;
    border-radius: 6px;
}

.hero-search .nav-link.active {
    background: var(--wf-blue);
}

.service-band {
    padding: 8.5rem 0 4rem;
}

.service-card,
.property-card,
.news-card,
.agent-profile,
.detail-card,
.tool-panel,
.result-panel,
.info-panel,
.luxury-form,
.contact-panel,
.admin-panel {
    background: var(--wf-white);
    border: 1px solid var(--wf-line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(7, 26, 51, 0.06);
}

.service-card {
    height: 100%;
    padding: 1.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    box-shadow: var(--wf-shadow);
    transform: translateY(-6px);
}

.service-card i {
    color: var(--wf-gold);
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.service-card h2 {
    color: var(--wf-blue);
    font-size: 1.2rem;
    font-weight: 900;
}

.service-card p {
    color: var(--wf-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

.section-block {
    padding: 5rem 0;
}

.section-block--ink {
    background: linear-gradient(135deg, var(--wf-gold), var(--wf-gold-2));
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-heading span {
    color: var(--wf-gold);
    display: block;
    font-weight: 800;
    text-transform: uppercase;
}

.section-heading h2 {
    color: var(--wf-blue);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin: 0;
}

.section-heading a {
    color: var(--wf-gold);
    font-weight: 800;
}

.section-heading--light h2 {
    color: var(--wf-blue);
}

.section-block--ink .section-heading a {
    color: var(--wf-blue);
}

.property-swiper {
    padding: 0.5rem 0 3.5rem;
}

.property-card {
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
    box-shadow: var(--wf-shadow);
    transform: translateY(-8px);
}

.property-card__image {
    display: block;
    height: 245px;
    overflow: hidden;
    position: relative;
}

.property-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    width: 100%;
}

.property-card:hover .property-card__image img {
    transform: scale(1.08);
}

.property-card__badge {
    background: rgba(7, 26, 51, 0.88);
    bottom: 12px;
    color: var(--wf-gold-2);
    font-weight: 800;
    left: 12px;
    padding: 0.42rem 0.7rem;
    position: absolute;
}

.property-card__body {
    padding: 1.25rem;
}

.property-card__meta {
    color: var(--wf-muted);
    display: flex;
    font-size: 0.85rem;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.property-card h3 {
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.45;
    min-height: 3.4rem;
}

.property-card__facts {
    color: var(--wf-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.property-card__facts i {
    color: var(--wf-gold);
}

.property-card__price {
    color: var(--wf-red);
    font-size: 1.5rem;
    font-weight: 900;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--wf-gold);
}

.about-strip,
.about-page-section,
.calculator-section,
.form-section,
.contact-section,
.article-section {
    padding: 5rem 0;
}

.about-strip {
    background: var(--wf-white);
}

.about-strip__image,
.article-cover {
    border: 8px solid var(--wf-white);
    box-shadow: var(--wf-shadow);
    height: 520px;
    object-fit: cover;
    width: 100%;
}

.about-strip h2,
.about-page-section h2 {
    color: var(--wf-blue);
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    font-weight: 900;
    line-height: 1.18;
}

.about-strip p,
.about-page-section p {
    color: var(--wf-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-actions,
.contact-cta__buttons,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.transaction-preview {
    background: #eef2f7;
}

.luxury-table {
    background: var(--wf-white);
    border-radius: 8px;
    box-shadow: var(--wf-shadow);
    overflow: hidden;
}

.luxury-table thead,
.admin-table thead {
    background: var(--wf-blue);
    color: var(--wf-white);
}

.luxury-table th,
.luxury-table td,
.admin-table th,
.admin-table td {
    padding: 1rem;
    vertical-align: middle;
}

.contact-cta {
    padding: 4rem 0;
}

.contact-cta__inner {
    align-items: center;
    background: linear-gradient(135deg, var(--wf-red), var(--wf-blue));
    color: var(--wf-white);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 2.2rem;
}

.contact-cta__inner span {
    color: var(--wf-gold-2);
    font-weight: 800;
}

.contact-cta__inner h2 {
    font-weight: 900;
    margin: 0.25rem 0;
}

.site-footer {
    background: #061427;
    color: rgba(255, 255, 255, 0.78);
    padding: 4rem 0 1.4rem;
}

.footer-brand {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.footer-brand h2 {
    color: var(--wf-white);
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0;
}

.footer-brand p {
    margin: 0.2rem 0;
}

.footer-note {
    line-height: 1.8;
    margin-top: 1.2rem;
}

.site-footer h3 {
    color: var(--wf-gold-2);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin-bottom: 0.65rem;
}

.qr-box {
    align-items: center;
    background: var(--wf-white);
    color: var(--wf-blue);
    display: flex;
    height: 120px;
    justify-content: center;
    width: 120px;
}

.qr-box img {
    height: 108px;
    width: 108px;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.social-links a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--wf-white);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.2rem;
}

.page-hero {
    background: linear-gradient(135deg, rgba(7, 26, 51, 0.96), rgba(143, 29, 33, 0.78)), url("https://images.unsplash.com/photo-1600607688960-e095ff83135c?auto=format&fit=crop&w=1800&q=80");
    background-position: center;
    background-size: cover;
    color: var(--wf-white);
}

.compact-hero {
    padding: 5rem 0;
}

.compact-hero h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    font-weight: 900;
}

.compact-hero p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
}

.listing-section {
    padding: 4rem 0;
}

.filter-panel {
    background: var(--wf-white);
    border-left: 5px solid var(--wf-gold);
    box-shadow: var(--wf-shadow);
    margin-bottom: 2rem;
    padding: 1.4rem;
}

.listing-summary {
    color: var(--wf-muted);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.empty-state {
    background: var(--wf-white);
    border: 1px dashed var(--wf-gold);
    margin-top: 2rem;
    padding: 3rem;
    text-align: center;
}

.empty-state i {
    color: var(--wf-gold);
    font-size: 2.5rem;
}

.pagination-wrap {
    margin-top: 2.5rem;
}

.page-link {
    color: var(--wf-blue);
}

.page-item.active .page-link {
    background: var(--wf-blue);
    border-color: var(--wf-blue);
}

.detail-hero {
    background: var(--wf-blue);
    color: var(--wf-white);
    padding: 4rem 0;
}

.detail-breadcrumb {
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.property-ref {
    color: var(--wf-gold-2);
    font-weight: 900;
}

.detail-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
}

.detail-price {
    color: var(--wf-gold-2);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
}

.detail-psf {
    color: rgba(255, 255, 255, 0.75);
}

.detail-section {
    padding: 4rem 0;
}

.detail-gallery {
    border-radius: 8px;
    box-shadow: var(--wf-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.detail-gallery img {
    height: 520px;
    object-fit: cover;
    width: 100%;
}

.detail-card {
    margin-bottom: 1.5rem;
    padding: 1.6rem;
}

.detail-card h2 {
    color: var(--wf-blue);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
}

.detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
}

.detail-grid div {
    background: #f8fafc;
    border-left: 3px solid var(--wf-gold);
    padding: 1rem;
}

.detail-grid span {
    color: var(--wf-muted);
    display: block;
    font-size: 0.88rem;
}

.detail-grid strong {
    color: var(--wf-blue);
    display: block;
    margin-top: 0.3rem;
}

.rich-content {
    color: #344054;
    line-height: 1.9;
}

.map-frame {
    border: 0;
    height: 420px;
    width: 100%;
}

.agent-card {
    background: var(--wf-white);
    border-top: 5px solid var(--wf-gold);
    box-shadow: var(--wf-shadow);
    padding: 1.5rem;
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

.agent-card img {
    height: 140px;
    object-fit: cover;
    width: 140px;
}

.agent-card h2 {
    color: var(--wf-blue);
    font-weight: 900;
    margin-top: 1rem;
}

.agent-card .btn {
    margin-bottom: 0.7rem;
}

.share-row {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.share-row span {
    color: var(--wf-muted);
    font-size: 0.85rem;
}

.share-btn {
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1rem;
    height: 44px;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s;
    width: 44px;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-fb {
    background: #1877f2;
    color: #fff;
}

.share-wa {
    background: #25d366;
    color: #fff;
}

.value-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1.5rem;
}

.value-grid div {
    border: 1px solid var(--wf-line);
    border-top: 4px solid var(--wf-gold);
    padding: 1rem;
}

.value-grid strong,
.value-grid span {
    display: block;
}

.value-grid span {
    color: var(--wf-muted);
    margin-top: 0.35rem;
}

.agent-profile {
    height: 100%;
    padding: 1.5rem;
    text-align: center;
}

.agent-profile img {
    height: 210px;
    object-fit: cover;
    width: 100%;
}

.agent-profile h3 {
    color: var(--wf-blue);
    font-weight: 900;
    margin-top: 1rem;
}

.agent-profile span {
    color: var(--wf-muted);
    display: block;
    margin-bottom: 1rem;
}

.tool-panel,
.result-panel,
.info-panel,
.luxury-form,
.contact-panel {
    padding: 1.8rem;
}

.result-panel {
    background: var(--wf-blue);
    color: var(--wf-white);
}

.result-panel > span {
    color: var(--wf-gold-2);
    font-weight: 900;
}

.result-panel h2 {
    font-size: 3rem;
    font-weight: 900;
    margin: 1rem 0;
}

.result-list {
    display: grid;
    gap: 1rem;
}

.result-list div {
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.info-panel h2,
.contact-panel h2 {
    color: var(--wf-blue);
    font-weight: 900;
}

.info-panel li {
    margin-bottom: 0.8rem;
}

.contact-panel ul {
    list-style: none;
    margin: 1.2rem 0;
    padding: 0;
}

.contact-panel li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.contact-panel i {
    color: var(--wf-gold);
    margin-top: 0.25rem;
}

.map-panel {
    border: 8px solid var(--wf-white);
    box-shadow: var(--wf-shadow);
    margin-top: 3rem;
}

.news-card {
    height: 100%;
    overflow: hidden;
}

.news-card img {
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.news-card div {
    padding: 1.25rem;
}

.news-card time,
.article-hero time {
    color: var(--wf-gold);
    font-weight: 900;
}

.news-card h2 {
    color: var(--wf-blue);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.45;
}

.news-card p {
    color: var(--wf-muted);
}

.article-hero {
    background: var(--wf-blue);
    color: var(--wf-white);
    padding: 5rem 0;
}

.article-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-top: 1rem;
}

.back-link {
    color: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.article-content {
    background: var(--wf-white);
    box-shadow: var(--wf-shadow);
    margin: -4rem auto 0;
    max-width: 920px;
    padding: 2rem;
    position: relative;
}

.login-body {
    align-items: center;
    background: linear-gradient(135deg, var(--wf-blue), var(--wf-red));
    display: flex;
    min-height: 100vh;
    padding: 1rem;
}

.login-card {
    background: var(--wf-white);
    border-top: 5px solid var(--wf-gold);
    box-shadow: var(--wf-shadow);
    margin: auto;
    max-width: 460px;
    padding: 2rem;
    width: 100%;
}

.login-logo {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.login-logo span {
    align-items: center;
    background: var(--wf-blue);
    color: var(--wf-gold-2);
    display: inline-flex;
    font-weight: 900;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.login-logo h1 {
    color: var(--wf-blue);
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0;
}

.login-logo p,
.login-hint {
    color: var(--wf-muted);
    margin: 0.35rem 0 0;
}

.admin-body {
    background: #eef2f7;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--wf-blue);
    color: var(--wf-white);
    flex: 0 0 270px;
    padding: 1.2rem;
}

.admin-brand {
    align-items: center;
    color: var(--wf-white);
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.admin-brand span {
    align-items: center;
    background: var(--wf-gold);
    color: var(--wf-blue);
    display: inline-flex;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.admin-nav {
    display: grid;
    gap: 0.3rem;
}

.admin-nav a {
    align-items: center;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--wf-white);
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    align-items: center;
    background: var(--wf-white);
    border-bottom: 1px solid var(--wf-line);
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 1.6rem;
}

.admin-topbar small {
    color: var(--wf-gold);
    font-weight: 900;
}

.admin-topbar h1 {
    color: var(--wf-blue);
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
}

.admin-user {
    align-items: center;
    color: var(--wf-muted);
    display: flex;
    gap: 0.5rem;
}

.admin-content {
    padding: 1.6rem;
}

.stat-card {
    align-items: center;
    background: var(--wf-white);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(7, 26, 51, 0.06);
    display: flex;
    justify-content: space-between;
    padding: 1.4rem;
}

.stat-card span {
    color: var(--wf-muted);
    display: block;
}

.stat-card strong {
    color: var(--wf-blue);
    display: block;
    font-size: 2rem;
    font-weight: 900;
}

.stat-card i {
    font-size: 2rem;
}

.stat-card--blue i {
    color: #2f80ed;
}

.stat-card--gold i {
    color: var(--wf-gold);
}

.stat-card--green i {
    color: #12b76a;
}

.stat-card--red i {
    color: #d92d20;
}

.admin-panel {
    padding: 1.25rem;
}

.admin-panel__head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-panel__head h2,
.admin-form h3 {
    color: var(--wf-blue);
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
}

.quick-actions {
    display: grid;
    gap: 0.75rem;
}

.quick-actions a {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--wf-line);
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem;
}

.quick-actions i {
    color: var(--wf-gold);
}

.admin-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-table small {
    color: var(--wf-muted);
    display: block;
    margin-top: 0.2rem;
}

.admin-thumb {
    display: block;
    height: 96px;
    margin-top: 0.6rem;
    object-fit: cover;
    width: 130px;
}

.admin-thumb.wide {
    height: 120px;
    width: 220px;
}

.admin-thumb.tiny {
    height: 54px;
    margin-top: 0;
    width: 92px;
}

.admin-avatar {
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.admin-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.admin-gallery-preview img {
    height: 64px;
    object-fit: cover;
    width: 84px;
}

.admin-form hr {
    border-color: var(--wf-line);
    margin: 1.5rem 0;
    opacity: 1;
}

.form-sticky-save {
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--wf-line);
    bottom: 0;
    margin: 2rem -1.25rem -1.25rem;
    padding: 1rem 1.25rem;
    position: sticky;
    text-align: right;
}

.note-editor.note-frame {
    border-color: var(--wf-line);
}

@media (max-width: 1199.98px) {
    .hero-swiper {
        height: 660px;
    }

    .hero-search-wrap {
        bottom: -120px;
    }

    .service-band {
        padding-top: 11rem;
    }
}

@media (max-width: 991.98px) {
    .hero-content {
        top: 38%;
    }

    .hero-search-wrap {
        bottom: auto;
        margin-top: -90px;
        position: relative;
        transform: none;
        left: auto;
    }

    .service-band {
        padding-top: 4rem;
    }

    .detail-grid,
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .top-strip {
        display: none;
    }

    .navbar-brand strong {
        font-size: 0.95rem;
    }

    .navbar-brand small {
        font-size: 0.68rem;
    }

    .brand-mark {
        height: 42px;
        min-width: 42px;
    }

    .hero-swiper {
        height: 560px;
    }

    .hero-content h1 {
        font-size: 2.35rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-strip__image,
    .article-cover,
    .detail-gallery img {
        height: 340px;
    }

    .detail-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .listing-summary,
    .footer-bottom {
        flex-direction: column;
    }

    .admin-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.8rem;
    }
}
/* ===== 導覽列下拉選單（物業分類） ===== */
.main-nav .dropdown-menu {
    border: 0;
    border-top: 3px solid var(--wf-gold);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--wf-shadow);
    margin-top: 0.4rem;
    padding: 0.4rem 0;
}

.main-nav .dropdown-item {
    color: var(--wf-blue);
    font-weight: 700;
    padding: 0.55rem 1.4rem;
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
    background: var(--wf-bg);
    color: var(--wf-red);
}

.main-nav .nav-link.dropdown-toggle::after {
    vertical-align: middle;
}

/* ===== 物業估價頁 ===== */
.valuation-section {
    padding: 4rem 0 5rem;
}

.valuation-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.valuation-banks__head {
    margin-bottom: 1.6rem;
}

.valuation-banks__head h2 {
    font-weight: 900;
    margin: 0.4rem 0 0.6rem;
}

.valuation-banks__head p {
    color: var(--wf-muted);
    margin: 0;
}

.bank-card {
    align-items: center;
    background: var(--wf-white);
    border: 1px solid var(--wf-line);
    border-left: 5px solid var(--wf-gold);
    border-radius: 8px;
    box-shadow: var(--wf-shadow);
    display: flex;
    gap: 1rem;
    height: 100%;
    padding: 1.1rem 1.2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bank-card:hover {
    border-left-color: var(--wf-red);
    box-shadow: 0 22px 55px rgba(7, 26, 51, 0.2);
    transform: translateY(-4px);
}

.bank-card__mark {
    align-items: center;
    background: var(--wf-blue);
    border: 2px solid var(--wf-gold);
    border-radius: 8px;
    color: var(--wf-gold-2);
    display: inline-flex;
    flex-shrink: 0;
    font-weight: 900;
    height: 54px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 54px;
    padding: 0 0.4rem;
}

.bank-card__body {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.bank-card__body strong {
    color: var(--wf-blue);
    font-size: 1.05rem;
}

.bank-card__body small {
    color: var(--wf-muted);
}

.bank-card__logo {
    align-items: center;
    background: var(--wf-white);
    border: 1px solid var(--wf-line);
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 128px;
    height: 64px;
    justify-content: center;
    overflow: hidden;
    padding: 0.35rem 0.5rem;
}

.bank-card__logo img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.bank-card__logo span {
    color: var(--wf-blue);
    font-weight: 900;
}

.bank-card > i {
    color: var(--wf-gold);
    margin-left: auto;
}

.valuation-note {
    color: var(--wf-muted);
    font-size: 0.9rem;
    margin: 1.4rem 0 0;
}

/* ===== 按揭計算機新版 ===== */
.mortgage-calculator {
    display: grid;
    gap: 1.25rem;
}

.mortgage-tool,
.mortgage-result,
.mortgage-detail-grid,
.mortgage-tips,
.stamp-duty-panel {
    border-radius: 8px;
}

.mortgage-tool__head {
    margin-bottom: 1.5rem;
}

.mortgage-tool__head h2 {
    color: var(--wf-blue);
    font-size: 1.7rem;
    font-weight: 900;
    margin: 0;
}

.mortgage-field {
    margin-bottom: 1.2rem;
}

.mortgage-field .form-label,
.mortgage-tool .form-label {
    color: var(--wf-blue);
    font-weight: 800;
}

.mortgage-input-group {
    align-items: center;
    background: var(--wf-white);
    border: 1px solid var(--wf-line);
    border-radius: 8px;
    display: flex;
    min-height: 56px;
    overflow: hidden;
}

.mortgage-input-group span {
    color: var(--wf-muted);
    flex: 0 0 auto;
    font-weight: 800;
    padding: 0 0.9rem;
    white-space: nowrap;
}

.mortgage-input-group .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
}

.mortgage-range {
    accent-color: var(--wf-blue);
    margin-top: 0.75rem;
}

.mortgage-range::-webkit-slider-thumb {
    background: var(--wf-blue);
}

.mortgage-range::-moz-range-thumb {
    background: var(--wf-blue);
}

.mortgage-linked-fields {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.2rem;
    padding: 1rem;
}

.mortgage-linked-fields .mortgage-field {
    margin-bottom: 0;
}

.mortgage-linked-fields .mortgage-field--wide {
    grid-column: 1 / -1;
}

.second-mortgage-toggle {
    align-items: center;
    border-top: 1px solid var(--wf-line);
    display: flex;
    gap: 0.65rem;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
}

.second-mortgage-toggle label {
    color: var(--wf-blue);
    font-weight: 800;
}

.second-mortgage-fields {
    background: #f8fafc;
    border: 1px solid var(--wf-line);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
}

.second-mortgage-fields[hidden] {
    display: none !important;
}

.mortgage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.mortgage-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: center;
    min-height: 44px;
}

.mortgage-result {
    position: sticky;
    top: 96px;
}

.mortgage-result__top {
    display: flex;
    justify-content: flex-end;
}

.mortgage-share {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--wf-gold-2);
    display: inline-flex;
    font-weight: 800;
    gap: 0.45rem;
    padding: 0;
}

.mortgage-donut {
    align-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    margin: 0.6rem auto 1.4rem;
    max-width: 260px;
    position: relative;
    width: 100%;
}

.mortgage-donut::after {
    background: var(--wf-blue);
    border-radius: 50%;
    content: "";
    height: 62%;
    position: absolute;
    width: 62%;
}

.mortgage-donut div {
    position: relative;
    text-align: center;
    z-index: 1;
}

.mortgage-donut strong {
    display: block;
    font-size: clamp(1.65rem, 4vw, 2.2rem);
    font-weight: 900;
}

.mortgage-donut span {
    color: rgba(255, 255, 255, 0.82);
    display: block;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.mortgage-result-list {
    gap: 0.65rem;
}

.mortgage-result-list div {
    align-items: center;
    border-radius: 8px;
    gap: 0.75rem;
}

.mortgage-result-list span,
.mortgage-income span,
.mortgage-income small {
    color: rgba(255, 255, 255, 0.84);
}

.mortgage-dot {
    border-radius: 50%;
    display: inline-block;
    height: 11px;
    margin-right: 0.45rem;
    width: 11px;
}

.mortgage-dot--down {
    background: #ff3b30;
}

.mortgage-dot--loan {
    background: #2fb56f;
}

.mortgage-dot--interest {
    background: #ff9f1c;
}

.mortgage-income {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.mortgage-income strong {
    color: var(--wf-white);
    font-size: 1.25rem;
}

.mortgage-collapse {
    margin-top: 1.25rem;
}

.mortgage-detail-grid,
.mortgage-tips,
.stamp-duty-panel {
    background: var(--wf-white);
    border: 1px solid var(--wf-line);
    box-shadow: var(--wf-shadow);
}

.mortgage-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1.2rem;
}

.mortgage-detail-grid div {
    background: #f8fafc;
    border-left: 4px solid var(--wf-gold);
    padding: 1rem;
}

.mortgage-detail-grid span {
    color: var(--wf-muted);
    display: block;
    font-size: 0.9rem;
}

.mortgage-detail-grid strong {
    color: var(--wf-blue);
    display: block;
    font-size: 1.1rem;
    margin-top: 0.35rem;
}

.mortgage-tips {
    padding: 1.4rem;
}

.mortgage-tips h2 {
    color: var(--wf-blue);
    font-size: 1.35rem;
    font-weight: 900;
}

.mortgage-tips li {
    color: #344054;
    margin-bottom: 0.65rem;
}

.stamp-duty-panel {
    align-items: center;
    border-left: 5px solid var(--wf-gold);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 1.4rem;
}

.stamp-duty-panel h2 {
    color: var(--wf-blue);
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.stamp-duty-panel p {
    color: var(--wf-muted);
    margin: 0;
}

.stamp-duty-panel strong {
    color: var(--wf-blue);
    flex: 0 0 auto;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
}

.mortgage-disclaimer {
    color: var(--wf-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 1.25rem 0 0;
}

@media (max-width: 991.98px) {
    .mortgage-result {
        position: static;
    }

    .mortgage-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .bank-card {
        align-items: flex-start;
    }

    .bank-card__logo {
        flex-basis: 104px;
        height: 58px;
    }

    .mortgage-linked-fields,
    .mortgage-detail-grid {
        grid-template-columns: 1fr;
    }

    .mortgage-actions .btn {
        flex: 1 1 100%;
    }

    .stamp-duty-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===== 選盤類別佔位頁 ===== */
.category-placeholder {
    padding: 4rem 0 5rem;
}

.placeholder-panel {
    background: var(--wf-white);
    border-radius: 14px;
    box-shadow: var(--wf-shadow);
    margin: 0 auto;
    max-width: 720px;
    padding: 3rem 2.4rem;
    text-align: center;
}

.placeholder-icon {
    align-items: center;
    background: linear-gradient(135deg, var(--wf-gold), var(--wf-gold-2));
    border-radius: 50%;
    color: var(--wf-blue);
    display: inline-flex;
    font-size: 1.8rem;
    height: 84px;
    justify-content: center;
    margin-bottom: 1.4rem;
    width: 84px;
}

.placeholder-panel h2 {
    font-weight: 900;
    margin-bottom: 1rem;
}

.placeholder-panel p {
    color: var(--wf-muted);
    margin: 0 auto 1.8rem;
    max-width: 560px;
}

.placeholder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}
