/*
 * AACL Website Main Styles
 * Theme: Premium, Trustworthy, Professional (Deep Blue / Gold / White)
 */

.property-page {
    --prop-primary-blue: #0a192f;
    /* Deep Navy */
    --prop-secondary-blue: #172a45;
    /* Lighter Navy for cards/sections */
    --prop-accent-gold: #d4af37;
    /* Metallic Gold */
    --prop-text-light: #e6f1ff;
    /* Off-white for text on dark */
    --prop-text-dark: #333333;
    /* Dark text for light backgrounds */
    --prop-bg-light: #f8f9fa;
    /* Very light grey for contrast sections */
    --prop-white: #ffffff;

    --prop-font-heading: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
    /* Simplified Chinese Serif */
    --prop-font-body: 'Outfit', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    /* Modern, Clean */

    --prop-transition: all 0.3s ease;
    --prop-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --prop-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
    --prop-header-height: 76px;

    font-family: var(--prop-font-body), "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--prop-text-dark);
    background-color: var(--prop-white);
}

.property-page,
.property-page section {
    scroll-margin-top: calc(var(--prop-header-height) + 1px);
}

.property-page h1,
.property-page h2,
.property-page h3,
.property-page h4 {
    font-family: var(--prop-font-heading);
    line-height: inherit;
    margin-bottom: 1rem;
    font-weight: 700;
}

.property-page a {
    text-decoration: none;
    color: inherit;
    transition: var(--prop-transition);
}

.property-page ul {
    list-style: none;
}

.property-page img,
.property-page svg {
    display: inline;
}

.property-page img {
    max-width: 100%;
    height: auto;
}

.property-page .container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 28px;
}

.property-page .text-center {
    text-align: center;
}

.property-page .text-gold {
    color: var(--prop-accent-gold);
}

/* Buttons */
.property-page .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    /* Sharp edges for professional feel */
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: var(--prop-font-body);
    font-size: revert;
    justify-content: normal;
}

.property-page button.btn {
    transition: none;
}

.property-page .btn-primary {
    background-color: var(--prop-accent-gold);
    color: var(--prop-primary-blue);
    border: 1px solid var(--prop-accent-gold);
}

.property-page .btn-primary:hover {
    background-color: transparent;
    color: var(--prop-accent-gold);
}

.property-page .btn-outline {
    background-color: transparent;
    color: var(--prop-white);
    border: 1px solid var(--prop-white);
    margin-left: 1rem;
}

.property-page .btn-outline:hover {
    background-color: var(--prop-white);
    color: var(--prop-primary-blue);
}

.property-page .btn-gold {
    background-color: var(--prop-accent-gold);
    color: var(--prop-primary-blue);
    border: 1px solid var(--prop-accent-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.property-page .btn-gold:hover {
    background-color: #c29d28;
    border-color: #c29d28;
    color: var(--prop-primary-blue);
}

.property-page .btn-gold:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

/* Hero Section */
.property-page .hero-section {
    height: calc(100vh - var(--prop-header-height));
    min-height: calc(600px - var(--prop-header-height));
    max-height: 820px;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.7)), url('/property/images/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--prop-primary-blue);
    display: flex;
    align-items: center;
    color: var(--prop-white);
}

.property-page .hero-content {
    max-width: 800px;
}

.property-page .hero-content h1 {
    font-size: 3.2rem;
    /* Creating more impact */
    line-height: 1.3;
    margin-bottom: 2rem;
}

.property-page .highlight-text {
    color: var(--prop-accent-gold);
}

.property-page .hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--prop-text-light);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 600px;
}

/* Animations */
.property-page .animate-fade-up {
    animation: prop-fade-up 0.45s ease-out both;
}

.property-page .delay-1 {
    animation-delay: 0.08s;
}

.property-page .delay-2 {
    animation-delay: 0.16s;
}

@keyframes prop-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .property-page .animate-fade-up {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Sections */
.property-page .section {
    padding: 6rem 0;
}

.property-page .section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--prop-primary-blue);
}

.property-page .section-title.text-center {
    display: block;
    text-align: center;
}

.property-page .section-desc {
    max-width: 700px;
    margin: 0 auto 4rem;
    color: #666;
    font-size: 1.1rem;
}

.property-page .text-center .section-title::after,
.property-page .section-title.text-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--prop-accent-gold);
    margin: 1rem auto 0;
}

/* Grid Layouts */
.property-page .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    /* Slightly wider cards */
    gap: 2.5rem;
}

/* Cards */
.property-page .card {
    background: var(--prop-white);
    padding: 3rem 2rem;
    border-radius: 4px;
    box-shadow: var(--prop-shadow-sm);
    transition: var(--prop-transition);
    border-top: 4px solid transparent;
}

.property-page .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--prop-shadow-md);
    border-top: 4px solid var(--prop-accent-gold);
}

.property-page .icon-box {
    color: var(--prop-primary-blue);
    margin-bottom: 1.5rem;
}

.property-page .card h3 {
    font-size: 1.4rem;
    color: var(--prop-primary-blue);
    margin-bottom: 1rem;
}

.property-page .card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* Comparison Section */
.property-page .bg-light {
    background-color: var(--prop-bg-light);
}

.property-page .comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    box-shadow: var(--prop-shadow-md);
    border-radius: 8px;
    background: white;
}

.property-page .comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.property-page .comparison-table th,
.property-page .comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* Column Balancer */
.property-page .comparison-table th:nth-child(1),
.property-page .comparison-table td:nth-child(1) {
    width: 15%;
    white-space: nowrap;
}

.property-page .comparison-table th:nth-child(2),
.property-page .comparison-table td:nth-child(2),
.property-page .comparison-table th:nth-child(3),
.property-page .comparison-table td:nth-child(3) {
    width: 42.5%;
}


.property-page .comparison-table th {
    background-color: var(--prop-primary-blue);
    color: white;
    font-size: 1.1rem;
}

.property-page .comparison-table .highlight-col {
    background-color: #fcfbf5;
    /* Very subtle gold tint */
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.property-page .comparison-table th.highlight-col {
    background-color: var(--prop-accent-gold);
    color: var(--prop-primary-blue);
}

.property-page .comparison-table strong {
    display: block;
    font-size: 1.1rem;
    color: var(--prop-primary-blue);
    margin-bottom: 0.5rem;
}

.property-page .comparison-cards-mobile {
    display: none;
    /* Desktop default */
    flex-direction: column;
    gap: 2rem;
}

.property-page .comp-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--prop-shadow-sm);
}

.property-page .comp-card.aacl-card {
    border-left: 5px solid var(--prop-accent-gold);
}

.property-page .comp-card.traditional-card {
    border-left: 5px solid #ccc;
    opacity: 0.8;
}

.property-page .comp-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.property-page .comp-card .icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.property-page .comp-card strong {
    flex-shrink: 0;
    width: 45px;
    /* Fixed width for labels like 团队, 模式 */
    color: var(--prop-primary-blue);
    display: inline-block;
}

/* Lifecycle Tabs */
.property-page .lifecycle-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--prop-shadow-md);
    overflow: hidden;
}

.property-page .lifecycle-tabs {
    display: flex;
    background: #f1f2f5;
}

.property-page .tab-btn {
    flex: 1;
    padding: 1.5rem;
    font-family: revert;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--prop-transition);
    border-bottom: 3px solid transparent;
}

.property-page .tab-btn:hover {
    background: #e9ecef;
    color: var(--prop-primary-blue);
}

.property-page .tab-btn.active {
    background: white;
    color: var(--prop-primary-blue);
    border-bottom: 3px solid var(--prop-accent-gold);
}

.property-page .lifecycle-content {
    padding: 3rem;
    min-height: 300px;
}

.property-page .tab-content {
    display: none;
    animation: prop-fade-in 0.5s;
}

.property-page .tab-content.active {
    display: block;
}

.property-page .content-flex {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.property-page .text-block {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.property-page .text-block h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--prop-primary-blue);
}

.property-page .text-block ul {
    list-style: none;
    display: inline-block;
    /* Allows the list block to be centered */
    text-align: left;
    /* Interior text remains left-aligned */
}

.property-page .text-block li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.property-page .text-block li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold-text);
    font-weight: bold;
}

@keyframes prop-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Section */
.property-page .dark-section {
    background-color: var(--prop-primary-blue);
    color: var(--prop-white);
}

/* .section-title 的深藍色比 .text-gold 後出現，會蓋掉金色，深色區塊的標題因此看不見 */
.property-page .dark-section .section-title.text-gold {
    color: var(--prop-accent-gold);
}

/* QR Code Section */
/* Contact Section Refined */
.property-page .contact-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
    align-items: stretch;
}

.property-page .contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    flex: 1;
    text-align: center;
    backdrop-filter: blur(10px);
}

.property-page .wechat-card {
    max-width: 350px;
}

.property-page .wechat-id {
    margin-top: 1rem;
    font-family: monospace;
    color: var(--prop-accent-gold);
    font-size: 1.1rem;
}

.property-page .form-card {
    text-align: left;
}

.property-page .form-card h3 {
    margin-bottom: 0.5rem;
    color: var(--prop-white);
}

.property-page .form-desc {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.property-page .inquiry-form .form-group {
    margin-bottom: 1.2rem;
}

.property-page .inquiry-form input,
.property-page .inquiry-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: inherit;
    transition: var(--prop-transition);
}

.property-page .inquiry-form input:focus,
.property-page .inquiry-form textarea:focus {
    outline: none;
    border-color: var(--prop-accent-gold);
    background: rgba(0, 0, 0, 0.4);
}

.property-page .btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

.property-page .form-status {
    min-height: 1.5em;
    margin-top: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

.property-page .form-status.is-success {
    color: #9ae6b4;
}

.property-page .form-status.is-error {
    color: #feb2b2;
}

/* Mobile Responsive For Contact */
@media (max-width: 768px) {
    .property-page .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .property-page .contact-card {
        width: 100%;
        max-width: 100%;
    }
}


/* FAB */
.property-page .fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.property-page .fab-container.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.property-page .fab-btn {
    width: 60px;
    height: 60px;
    background-color: transparent;
    /* Removed default green to show PNG */
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
    transition: var(--prop-transition);
    padding: 0;
    overflow: hidden;
    /* Ensure image respects border radius */
}

.property-page .fab-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-page .fab-btn:hover {
    transform: scale(1.1);
}

.property-page .fab-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--prop-transition);
}

.property-page .fab-container:hover .fab-tooltip,
.property-page .fab-container:focus-within .fab-tooltip {
    opacity: 1;
    right: 75px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .property-page {
        --prop-header-height: 68px;
    }

    .property-page .hero-section {
        background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.8)), url('/property/images/hero-bg.jpg') center/cover no-repeat !important;
        height: auto;
        min-height: calc(100vh - var(--prop-header-height));
        max-height: none;
        padding: 4rem 0;
    }

    .property-page .hero-content h1 {
        font-size: 2.2rem;
    }

    .property-page .comparison-table-wrapper {
        display: none;
        /* Hide table on mobile */
    }

    .property-page .comparison-cards-mobile {
        display: flex;
        /* Show cards on mobile */
    }

    .property-page .lifecycle-tabs {
        flex-direction: column;
    }

    .property-page .tab-btn {
        text-align: left;
        padding: 1rem;
        border-bottom: 1px solid #ddd;
    }

    .property-page .tab-btn.active {
        border-left: 4px solid var(--prop-accent-gold);
        border-bottom: 1px solid #ddd;
    }

    .property-page .content-flex {
        flex-direction: column;
    }

    .property-page .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Smaller FAB on Mobile */
    .property-page .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .property-page .fab-btn {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .property-page .fab-icon-img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 520px) {
    .property-page .container {
        padding: 0 20px;
    }
}
