/* Shared Buy page: sticky filter bar + map|list split */

.zillow-search-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-align: left;
}
.zillow-search-input {
    width: 100%;
    height: 3.25rem;
    padding: 0 5.5rem 0 1rem;
    border: 2px solid #d1d5db;
    background: #fff;
    color: #111827 !important;
    font-size: 1rem;
    outline: none;
    position: relative;
    z-index: 1;
}
.zillow-search-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.zillow-search-btn {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    height: 2.55rem;
    min-width: 2.55rem;
    padding: 0 0.9rem;
    background: #D4AF37;
    color: #111827;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    z-index: 5;
    pointer-events: auto;
    border: 0;
    cursor: pointer;
}
.zillow-search-btn:hover { background: #c4a030; }
.zillow-filter-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
}
.zillow-filter-bar::-webkit-scrollbar { display: none; }
.zillow-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 2.25rem;
    padding: 0 0.85rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.zillow-chip:hover,
.zillow-chip.is-open {
    border-color: #111827;
    background: #f9fafb;
}
.zillow-chip.is-active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.12);
    color: #111827;
}
.zillow-chip .material-symbols-outlined {
    font-size: 1.1rem;
    line-height: 1;
}
.zillow-panel {
    display: none;
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    background: #fafafa;
}
.zillow-panel.is-open { display: block; }
.zillow-panel label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}
.zillow-panel input[type="number"],
.zillow-panel select {
    width: 100%;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827 !important;
    padding: 0 0.75rem;
}
.zillow-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.85rem;
}
.zillow-panel-actions button {
    height: 2.35rem;
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}
.zillow-done-btn {
    background: #D4AF37;
    color: #111827;
}
.zillow-done-btn:hover { background: #c4a030; }
.zillow-reset-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
}

.buy-split-main { min-height: 100vh; }
.buy-filter-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.buy-filter-bar .zillow-search-wrap {
    box-shadow: none;
    border: 0;
    background: transparent;
}
.buy-filter-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.buy-filter-row::-webkit-scrollbar { display: none; }
.buy-filter-row .buy-search-field {
    flex: 0 0 15rem;
    width: 15rem;
    max-width: 15rem;
    min-width: 15rem;
    position: relative;
    z-index: 40;
}
.buy-filter-bar .buy-search-control {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 2.5rem;
    border: 2px solid #d1d5db;
    background: #fff;
}
.buy-filter-bar .buy-search-control:focus-within {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.buy-filter-bar .zillow-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 0.65rem;
    font-size: 0.875rem;
    background: transparent;
}
.buy-filter-bar .zillow-search-btn {
    position: static;
    transform: none;
    flex: 0 0 2.4rem;
    width: 2.4rem;
    min-width: 2.4rem;
    height: auto;
    padding: 0;
    font-size: 0;
    gap: 0;
    align-self: stretch;
}
.buy-filter-bar .zillow-filter-bar {
    flex: 0 0 auto;
    margin-top: 0;
    gap: 0.4rem;
    max-width: none;
    overflow-x: auto;
}
.buy-filter-bar .zillow-chip {
    height: 2.5rem;
    padding: 0 0.7rem;
    font-size: 0.8125rem;
}
@media (max-width: 767px) {
    .buy-filter-row .buy-search-field {
        flex: 0 0 12.5rem;
        width: 12.5rem;
        max-width: 12.5rem;
        min-width: 12.5rem;
    }
}
.buy-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: calc(100vh - 5.5rem);
    min-height: 520px;
    background: #f9fafb;
    overflow: hidden;
}
.buy-map-pane {
    position: relative;
    flex: 1.45 1 0;
    min-width: 0;
    height: 100%;
    min-height: 0;
    background: #e5e7eb;
    overflow: hidden;
}
.buy-map-pane #map {
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 1;
}
.buy-list-pane {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    max-width: 42%;
    min-width: 300px;
    min-height: 0;
    height: 100%;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    overflow: hidden;
}
.buy-list-header {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.buy-list-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.buy-list-header .buy-list-count {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}
.buy-list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.buy-list-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}
.buy-list-scroll .buy-side-extra {
    margin-top: 0.75rem;
}
.buy-list-scroll .buy-side-extra .container,
.buy-list-scroll .buy-side-extra .mx-auto {
    max-width: 100% !important;
    width: 100%;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
.buy-side-trends {
    margin: 0.5rem 0 1rem;
    padding: 1rem 0.85rem 1.1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.buy-side-trends__title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
}
.buy-side-trends__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.buy-side-trends__stat {
    text-align: center;
    padding: 0.7rem 0.4rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}
.buy-side-trends__value {
    font-size: 1rem;
    font-weight: 800;
    color: #D4AF37;
    line-height: 1.2;
    word-break: break-word;
}
.buy-side-trends__label {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
}
.plsg-seo-buy-guide {
    margin: 0 0 1rem;
    padding: 1rem 0.85rem 1.05rem;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.plsg-seo-buy-guide__header { margin-bottom: 0.65rem; }
.plsg-seo-buy-guide__title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.plsg-seo-buy-guide__subtitle {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}
.plsg-seo-buy-guide__intro {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #4b5563;
}
.plsg-seo-buy-guide__acc { border-top: 1px solid #e5e7eb; }
.plsg-seo-buy-guide__item { border-bottom: 1px solid #e5e7eb; }
.plsg-seo-buy-guide__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    user-select: none;
}
.plsg-seo-buy-guide__summary::-webkit-details-marker { display: none; }
.plsg-seo-buy-guide__item[open] > .plsg-seo-buy-guide__summary { color: #D4AF37; }
.plsg-seo-buy-guide__chevron {
    font-size: 1.15rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.plsg-seo-buy-guide__item[open] .plsg-seo-buy-guide__chevron {
    transform: rotate(180deg);
    color: #D4AF37;
}
.plsg-seo-buy-guide__panel {
    padding: 0 0 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #4b5563;
}
.plsg-seo-buy-guide__panel p { margin: 0 0 0.55rem; }
.plsg-seo-buy-guide__panel a {
    color: #D4AF37;
    font-weight: 600;
    text-decoration: none;
}
.plsg-seo-buy-guide__panel a:hover { text-decoration: underline; }
.plsg-seo-buy-guide__links {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.3rem;
}
.plsg-seo-buy-guide__links a {
    display: block;
    padding: 0.4rem 0.55rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    color: #D4AF37;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}
.plsg-seo-buy-guide__links a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.35);
    text-decoration: none;
}
.buy-list-scroll .buy-side-footer {
    margin-top: 1.5rem;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer {
    margin: 0;
    padding: 1rem 0.85rem 1.15rem !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer > .container,
.buy-list-scroll .buy-side-footer #plsg-site-footer .max-w-6xl {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Stack brand + link sections in the narrow pane (ignore viewport lg:grid) */
.buy-list-scroll .buy-side-footer #plsg-site-footer .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .footer-acc-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .footer-acc {
    display: block !important;
    border: 0 !important;
    border-top: 1px solid rgba(75, 85, 99, 0.85) !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .footer-acc:last-of-type {
    border-bottom: 1px solid rgba(75, 85, 99, 0.85) !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .footer-acc > summary {
    pointer-events: auto !important;
    cursor: pointer !important;
    padding: 0.65rem 0 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    justify-content: space-between !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .footer-acc[open] > summary {
    color: #D4AF37 !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .footer-acc-chevron {
    display: inline-flex !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .footer-acc-panel {
    padding: 0 0 0.7rem !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .footer-acc-panel ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .footer-acc-panel li {
    margin: 0 !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer [role="list"] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.45rem !important;
    margin-top: 0.75rem !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer [role="list"] a {
    width: 2.15rem !important;
    height: 2.15rem !important;
}
.buy-list-scroll .buy-side-footer #plsg-site-footer .border-t {
    margin-top: 0.85rem !important;
    padding-top: 0.75rem !important;
}
.buy-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.buy-list-grid .property-card.is-active {
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}
.buy-mobile-map-toggle { display: none; }
@media (max-width: 767px) {
    .buy-split {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }
    .buy-list-pane {
        border-left: 0;
        order: 1;
        max-width: none;
        min-width: 0;
        flex: 1 1 auto;
    }
    .buy-map-pane {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        height: 45vh;
        min-height: 260px;
    }
    .buy-list-scroll {
        max-height: none;
        overflow: visible;
    }
    .buy-list-grid { grid-template-columns: 1fr; }
    .buy-mobile-map-toggle {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        height: 2.5rem;
        padding: 0 0.7rem;
        border: 1px solid #d1d5db;
        background: #fff;
        color: #111827;
        font-size: 0.8125rem;
        font-weight: 600;
        flex: 0 0 auto;
    }
    .buy-map-pane.is-collapsed-mobile { display: none; }
}

.property-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    border-radius: 0;
}
.property-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.property-card .listing-card-body {
    padding: 0.7rem 0.75rem 0.85rem;
    text-align: left;
}
.property-card .listing-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin: 0 0 0.25rem;
}
.property-card .listing-card-facts {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0;
    margin: 0 0 0.45rem;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-card .listing-card-facts span {
    display: inline !important;
    white-space: nowrap;
}
.property-card .listing-card-facts .fact-sep {
    margin: 0 0.4rem;
    color: #9ca3af;
}
.property-card .listing-card-address {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #6b7280;
    font-size: 0.8125rem;
    margin: 0;
}
.property-card .listing-card-address a {
    color: inherit;
    text-decoration: none;
}
.property-card .listing-card-address a:hover {
    color: #111827;
}
.property-card .buy-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #D4AF37;
    color: #111827;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    z-index: 2;
    pointer-events: none;
}
.property-card .buy-card-badge-alt {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #006B3C;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    z-index: 2;
    pointer-events: none;
}
