/**
 * Property Detail Page — Design System Overrides
 *
 * Applies Hummingbird design tokens (--hb-*) to the Houzez parent theme's
 * property detail templates. Loaded only on single-property pages.
 *
 * @see design-system/DESIGN.md → "Property Detail Page" section
 */

/* ── Page background ── */
body.single-property {
    background-color: var(--hb-cream);
}

/* ── Breadcrumb area ── */
.single-property .breadcrumb-wrap {
    font-family: var(--hb-font-body);
    font-size: 13px;
    color: var(--hb-muted);
}

.single-property .breadcrumb-wrap a {
    color: var(--hb-body);
    transition: color 0.3s ease;
}

.single-property .breadcrumb-wrap a:hover {
    color: var(--hb-primary);
}

/* ── Property title (h1) ── */
.single-property .page-title-wrap h1,
.single-property .property-title h1 {
    font-family: var(--hb-font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--hb-heading);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

/* ── Price ── */
.single-property .property-price-wrap .item-price,
.single-property .item-price-wrap .item-price {
    font-family: var(--hb-font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--hb-primary);
}

/* ── Status labels ── */
.single-property .property-labels-wrap .label {
    font-family: var(--hb-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 4px 12px;
}

/* ── Address bar ── */
.single-property .property-address {
    font-family: var(--hb-font-body);
    color: var(--hb-body);
    font-size: 14px;
}

/* ── Overview bar (bedrooms, baths, sqft, year) ── */
.single-property .property-overview-data {
    border: 1px solid var(--hb-border);
    border-radius: 8px;
    padding: 20px 0;
    margin: 24px 0;
    background: var(--hb-card);
}

.single-property .property-overview-data ul {
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.single-property .property-overview-data ul + ul::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: var(--hb-border);
}

.single-property .property-overview-data .hz-meta-label {
    font-family: var(--hb-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--hb-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.single-property .property-overview-data li strong {
    font-family: var(--hb-font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--hb-heading);
}

.single-property .property-overview-data .houzez-icon {
    color: var(--hb-primary);
}

/* ── Main content area ── */
.single-property .property-view {
    font-family: var(--hb-font-body);
    color: var(--hb-body);
}

/* ── Section headings (h2) ── */
.single-property .property-section-wrap h2 {
    font-family: var(--hb-font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--hb-heading);
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(221, 217, 208, 0.6); /* --hb-border at 60% */
}

/* ── Section dividers ── */
.single-property .property-section-wrap {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(221, 217, 208, 0.4);
}

.single-property .property-section-wrap:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ── Description section ── */
.single-property .block-content-wrap {
    font-family: var(--hb-font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--hb-body);
}

/* ── Address section ── */
.single-property .hz-detail-address li {
    font-family: var(--hb-font-body);
    font-size: 14px;
    color: var(--hb-body);
    padding: 8px 0;
    border-bottom: 1px solid rgba(221, 217, 208, 0.3);
}

.single-property .hz-detail-address li:last-child {
    border-bottom: none;
}

.single-property .hz-detail-address li strong,
.single-property .hz-detail-address li .detail-label {
    color: var(--hb-muted);
    font-weight: 500;
    font-size: 13px;
}

/* Google Maps link */
.single-property .open-on-map a {
    font-family: var(--hb-font-body);
    color: var(--hb-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-property .open-on-map a:hover {
    color: var(--hb-plum);
}

/* ── Details section ── */
.single-property .detail-list li {
    font-family: var(--hb-font-body);
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(221, 217, 208, 0.3);
}

.single-property .detail-list li:last-child {
    border-bottom: none;
}

.single-property .detail-list li strong {
    color: var(--hb-muted);
    font-weight: 500;
    font-size: 13px;
}

.single-property .detail-list li span {
    color: var(--hb-heading);
}

.single-property .detail-list .detail-title,
.single-property .detail-list .detail-value {
    color: var(--hb-heading);
}

/* ── Updated date ── */
.single-property .detail-date-updated {
    font-family: var(--hb-font-body);
    font-size: 13px;
    color: var(--hb-muted);
}

/* ── Mortgage Calculator ── */
.single-property .property-mortgage-calculator-wrap {
    background: var(--hb-parchment);
    border-radius: 12px;
    padding: 28px;
    border-bottom: none;
}

.single-property .property-mortgage-calculator-wrap h2 {
    border-bottom: 1px solid rgba(221, 217, 208, 0.8);
}

.single-property .mortgage-calculator-monthly-payment {
    font-family: var(--hb-font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--hb-heading);
}

.single-property .mortgage-calculator-monthly-requency {
    font-family: var(--hb-font-body);
    font-size: 13px;
    color: var(--hb-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.single-property .mortgage-calculator-data .list-lined-item {
    border-bottom: 1px solid rgba(221, 217, 208, 0.4);
    padding: 8px 0;
}

.single-property .mortgage-calculator-data strong {
    font-family: var(--hb-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--hb-body);
}

.single-property .mortgage-calculator-data span:last-child {
    color: var(--hb-heading);
    font-weight: 500;
}

/* Calculator form inputs */
.single-property .property-mortgage-calculator-wrap .form-control {
    font-family: var(--hb-font-body);
    font-size: 14px;
    color: var(--hb-body);
    background: var(--hb-card);
    border: 1px solid var(--hb-border);
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.single-property .property-mortgage-calculator-wrap .form-control:focus {
    border-color: var(--hb-primary);
    box-shadow: 0 0 0 3px rgba(125, 145, 123, 0.15);
    outline: none;
}

.single-property .property-mortgage-calculator-wrap .form-label {
    font-family: var(--hb-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--hb-muted);
}

/* ── Contact / Agent section ── */
.single-property .agent-section-wrap {
    font-family: var(--hb-font-body);
}

.single-property .agent-section-wrap h2,
.single-property .agent-section-wrap h3 {
    font-family: var(--hb-font-display);
    font-weight: 400;
    color: var(--hb-heading);
    letter-spacing: 0.01em;
}

.single-property .agent-section-wrap .agent-name a {
    font-family: var(--hb-font-display);
    color: var(--hb-heading);
    font-size: 18px;
}

.single-property .agent-section-wrap .agent-name a:hover {
    color: var(--hb-primary);
}

/* Contact form inputs */
.single-property .agent-section-wrap .form-control {
    font-family: var(--hb-font-body);
    font-size: 14px;
    color: var(--hb-body);
    border: 1px solid var(--hb-border);
    border-radius: 4px;
    background: var(--hb-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.single-property .agent-section-wrap .form-control:focus {
    border-color: var(--hb-primary);
    box-shadow: 0 0 0 3px rgba(125, 145, 123, 0.15);
    outline: none;
}

/* Submit button */
.single-property .agent-section-wrap .btn-primary,
.single-property .agent-section-wrap button[type="submit"] {
    font-family: var(--hb-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--hb-dark);
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    color: #F5F0EB;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-property .agent-section-wrap .btn-primary:hover,
.single-property .agent-section-wrap button[type="submit"]:hover {
    background: var(--hb-primary);
}

/* ── Navigation bar ── */
.single-property .property-navigation-wrap {
    background: var(--hb-card);
    border-bottom: 1px solid var(--hb-border);
    font-family: var(--hb-font-body);
}

.single-property .property-navigation-wrap a {
    font-size: 13px;
    font-weight: 500;
    color: var(--hb-body);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.single-property .property-navigation-wrap a:hover,
.single-property .property-navigation-wrap a.active {
    color: var(--hb-primary);
}

/* ── Image gallery ── */
.single-property .top-gallery-section img {
    border-radius: 4px;
}

/* Gallery count badge */
.single-property .gallery-count-wrap a {
    font-family: var(--hb-font-body);
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
}

/* ── Features/amenities ── */
.single-property .property-features-wrap .property-features-list li {
    font-family: var(--hb-font-body);
    font-size: 14px;
    color: var(--hb-body);
}

.single-property .property-features-wrap .property-features-list li a {
    color: var(--hb-body);
    transition: color 0.3s ease;
}

.single-property .property-features-wrap .property-features-list li a:hover {
    color: var(--hb-primary);
}

/* ── Sidebar widgets ── */
.single-property .sidebar .widget {
    font-family: var(--hb-font-body);
}

.single-property .sidebar .widget-title {
    font-family: var(--hb-font-display);
    color: var(--hb-heading);
}

/* ── Mobile contact bar ── */
.single-property .mobile-contact-wrap {
    background: var(--hb-card);
    border-top: 1px solid var(--hb-border);
}

.single-property .mobile-contact-wrap .btn-call,
.single-property .mobile-contact-wrap .btn-whatsapp {
    font-family: var(--hb-font-body);
}

/* ── Similar listings section ── */
.single-property .similar-listings-wrap .item-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(74, 73, 68, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-property .similar-listings-wrap .item-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 73, 68, 0.12);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .single-property .page-title-wrap h1,
    .single-property .property-title h1 {
        font-size: 22px;
    }

    .single-property .item-price-wrap .item-price {
        font-size: 20px;
    }

    .single-property .property-section-wrap h2 {
        font-size: 20px;
    }

    .single-property .property-overview-data {
        padding: 16px 0;
    }

    .single-property .property-overview-data li strong {
        font-size: 18px;
    }

    .single-property .property-mortgage-calculator-wrap {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .single-property .mortgage-calculator-monthly-payment {
        font-size: 24px;
    }
}
