/**
 * PropConduit - Component Styles
 */

/* =============================================================================
   GLOBALS
============================================================================= */
:root {
    --pc-radius:      6px;
    --pc-radius-lg:   12px;
    --pc-shadow:      0 2px 12px rgba(0,0,0,0.08);
    --pc-shadow-hover:0 8px 28px rgba(0,0,0,0.14);
    --pc-transition:  0.2s ease;
    --pc-gap:         24px;

    /* Neutral palette - subtle, works on light and dark templates */
    --pc-surface:     #f8f8f8;
    --pc-surface-2:   #efefef;
    --pc-border:      #e0e0e0;
    --pc-text:        inherit;
    --pc-text-soft:   #666;
    --pc-text-faint:  #999;
    --pc-white:       #ffffff;

    /* Accent - used sparingly */
    --pc-accent:      #c07030;
    --pc-accent-dark: #a05a20;

    /* Status badges */
    --pc-lease-bg:    #e8f5ee;
    --pc-lease-text:  #1a6b4a;
    --pc-sale-bg:     #e8eef5;
    --pc-sale-text:   #1a3f6b;
    --pc-offer-bg:    #fdf0e0;
    --pc-offer-text:  #7a4000;
    --pc-cat-bg:      #f0f0f0;
    --pc-cat-text:    #555;
}

/* =============================================================================
   WRAPPER
============================================================================= */
.pc-listings-wrap,
.pc-listing-wrap {
    font-family: inherit;
    color: inherit;
    line-height: 1.6;
}
 
/* =============================================================================
   PAGE HEADER
============================================================================= */
.pc-page-title {
    font-family: inherit;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
 
.pc-subtitle {
    font-size: 0.9rem;
    color: var(--pc-text-soft);
    margin-bottom: 28px;
}
 
.pc-subtitle a {
    color: var(--pc-accent);
    text-decoration: none;
}
 
.pc-subtitle a:hover {
    text-decoration: underline;
}
 
/* =============================================================================
   FILTER BAR
============================================================================= */
.pc-filter-bar {
    background: var(--pc-white);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: var(--pc-shadow);
}
 
.pc-filter-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
 
.pc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
 
.pc-filter-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pc-text-faint);
}
 
/* Dropdown */
.pc-dropdown {
    position: relative;
}
 
.pc-dropdown-trigger {
    min-width: 160px;
    padding: 8px 14px;
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: var(--pc-surface);
    font-family: inherit;
    font-size: 0.88rem;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color var(--pc-transition);
}
 
.pc-dropdown-trigger:hover {
    border-color: var(--pc-accent);
}
 
.pc-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: var(--pc-white);
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow-hover);
    z-index: 200;
    padding: 6px 0;
    max-height: 260px;
    overflow-y: auto;
}
 
.pc-dropdown-panel.is-open {
    display: block;
    animation: pcFadeIn 0.15s ease;
}
 
.pc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background var(--pc-transition);
}
 
.pc-dropdown-item:hover {
    background: var(--pc-surface);
}
 
.pc-dropdown-item input[type="checkbox"] {
    accent-color: var(--pc-accent);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
 
/* Select */
.pc-select {
    padding: 8px 32px 8px 14px;
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: var(--pc-surface);
    font-family: inherit;
    font-size: 0.88rem;
    color: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color var(--pc-transition);
    min-width: 160px;
}
 
.pc-select:focus {
    outline: none;
    border-color: var(--pc-accent);
}
 
/* Range inputs */
.pc-range-pair {
    display: flex;
    gap: 6px;
}
 
.pc-range-pair input {
    width: 90px;
    padding: 8px 10px;
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: var(--pc-surface);
    font-family: inherit;
    font-size: 0.88rem;
    color: inherit;
    transition: border-color var(--pc-transition);
}
 
.pc-range-pair input:focus {
    outline: none;
    border-color: var(--pc-accent);
}
 
.pc-range-pair input::placeholder {
    color: var(--pc-text-faint);
}
 
/* Null price checkbox */
.pc-null-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--pc-text-soft);
    cursor: pointer;
    margin-top: 4px;
}
 
.pc-null-price input {
    accent-color: var(--pc-accent);
    cursor: pointer;
}
 
/* Buttons */
.pc-filter-actions {
    display: flex;
    gap: 8px;
}
 
.pc-btn {
    padding: 8px 20px;
    border-radius: var(--pc-radius);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--pc-transition);
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
 
.pc-btn--primary {
    background: #333;
    color: #fff;
}
 
.pc-btn--primary:hover {
    background: var(--pc-accent);
    color: #fff;
}
 
.pc-btn--ghost {
    background: transparent;
    color: var(--pc-text-soft);
    border: 1.5px solid var(--pc-border);
}
 
.pc-btn--ghost:hover {
    border-color: #999;
    color: inherit;
}
 
/* =============================================================================
   BADGES
============================================================================= */
.pc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
 
.pc-badge--lease { background: var(--pc-lease-bg); color: var(--pc-lease-text); }
.pc-badge--sale  { background: var(--pc-sale-bg);  color: var(--pc-sale-text); }
.pc-badge--offer { background: var(--pc-offer-bg); color: var(--pc-offer-text); }
.pc-badge--cat   { background: var(--pc-cat-bg);   color: var(--pc-cat-text); }
 
/* =============================================================================
   LISTINGS GRID
============================================================================= */
.pc-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--pc-gap);
}
 
/* =============================================================================
   CARD
============================================================================= */
.pc-card {
    background: var(--pc-white);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--pc-shadow);
    transition: transform var(--pc-transition), box-shadow var(--pc-transition);
}
 
.pc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pc-shadow-hover);
    text-decoration: none;
    color: inherit;
}
 
.pc-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--pc-surface-2);
}
 
.pc-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
 
.pc-card:hover .pc-card__image img {
    transform: scale(1.04);
}
 
.pc-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-text-faint);
    font-size: 0.85rem;
}
 
.pc-card__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
 
.pc-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
 
.pc-card__price {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}
 
.pc-card__address {
    font-size: 0.85rem;
    color: var(--pc-text-soft);
}
 
.pc-card__heading {
    font-size: 0.88rem;
    color: var(--pc-text-soft);
    line-height: 1.4;
}
 
.pc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--pc-text-faint);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--pc-surface-2);
}
 
.pc-card__agent {
    font-size: 0.78rem;
    color: var(--pc-text-faint);
}
 
/* =============================================================================
   EMPTY STATE
============================================================================= */
.pc-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--pc-text-soft);
}
 
.pc-empty a {
    color: var(--pc-accent);
}
 
/* =============================================================================
   SINGLE LISTING
============================================================================= */
.pc-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.88rem;
}
 
.pc-breadcrumb a {
    color: var(--pc-text-soft);
    text-decoration: none;
    transition: color var(--pc-transition);
}
 
.pc-breadcrumb a:hover {
    color: var(--pc-accent);
}
 
.pc-listing-header {
    margin-bottom: 28px;
}
 
.pc-listing-header .pc-card__badges {
    margin-bottom: 10px;
}
 
.pc-listing-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
}
 
.pc-listing-address {
    font-size: 1rem;
    color: var(--pc-text-soft);
    margin-bottom: 4px;
}
 
.pc-listing-heading {
    font-size: 0.95rem;
    color: var(--pc-text-faint);
}
 
/* Share bar */
.pc-share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
 
/* Body layout */
.pc-listing-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
 
.pc-listing-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
 
/* Sections */
.pc-section {
    background: var(--pc-white);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    padding: 20px 22px;
    box-shadow: var(--pc-shadow);
}
 
.pc-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pc-text-faint);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pc-surface-2);
}
 
/* Photo grid */
.pc-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
 
.pc-photo-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--pc-radius);
    cursor: pointer;
    transition: opacity var(--pc-transition), transform var(--pc-transition);
    display: block;
}
 
.pc-photo-grid img:hover {
    opacity: 0.9;
    transform: scale(1.01);
}
 
/* Floorplan grid */
.pc-floorplan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}
 
.pc-floorplan-grid img {
    width: 100%;
    border-radius: var(--pc-radius);
    display: block;
}
 
/* Description */
.pc-description {
    font-size: 0.92rem;
    line-height: 1.75;
    color: inherit;
}
 
/* Details grid */
.pc-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
 
.pc-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
 
.pc-detail__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pc-text-faint);
}
 
.pc-detail__value {
    font-size: 0.95rem;
    font-weight: 500;
}
 
/* =============================================================================
   SIDEBAR
============================================================================= */
.pc-listing-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}
 
/* Agent card */
.pc-agent-card {
    background: var(--pc-white);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    overflow: hidden;
    box-shadow: var(--pc-shadow);
}
 
.pc-agent-card__photo {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: top;
    display: block;
}
 
.pc-agent-card__no-photo {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--pc-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-text-faint);
    font-size: 0.85rem;
}
 
.pc-agent-card__info {
    padding: 16px;
}
 
.pc-agent-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
 
.pc-agent-card__position {
    font-size: 0.82rem;
    color: var(--pc-text-soft);
    margin-bottom: 12px;
}
 
.pc-agent-card__contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
 
.pc-agent-card__contact {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
}
 
.pc-agent-card__contact-label {
    color: var(--pc-text-faint);
    width: 18px;
    flex-shrink: 0;
}
 
.pc-agent-card__contact a {
    color: inherit;
    text-decoration: none;
    transition: color var(--pc-transition);
}
 
.pc-agent-card__contact a:hover {
    color: var(--pc-accent);
}
 
.pc-agent-card__profile {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--pc-text-soft);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pc-surface-2);
}
 
.pc-agent-card__profile p {
    margin-bottom: 8px;
}
 
/* Enquiry card */
.pc-enquiry-card {
    background: var(--pc-white);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    padding: 16px;
    box-shadow: var(--pc-shadow);
    text-align: center;
    font-size: 0.88rem;
    color: var(--pc-text-soft);
}
 
.pc-enquiry-card strong {
    display: block;
    margin-bottom: 6px;
    color: inherit;
    font-size: 0.95rem;
}
 
/* =============================================================================
   ANIMATIONS
============================================================================= */
@keyframes pcFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
.pc-card {
    animation: pcFadeIn 0.2s ease both;
}
 
/* Stagger cards */
.pc-listings-grid .pc-card:nth-child(1)  { animation-delay: 0.02s; }
.pc-listings-grid .pc-card:nth-child(2)  { animation-delay: 0.04s; }
.pc-listings-grid .pc-card:nth-child(3)  { animation-delay: 0.06s; }
.pc-listings-grid .pc-card:nth-child(4)  { animation-delay: 0.08s; }
.pc-listings-grid .pc-card:nth-child(5)  { animation-delay: 0.10s; }
.pc-listings-grid .pc-card:nth-child(6)  { animation-delay: 0.12s; }
.pc-listings-grid .pc-card:nth-child(7)  { animation-delay: 0.14s; }
.pc-listings-grid .pc-card:nth-child(8)  { animation-delay: 0.16s; }
.pc-listings-grid .pc-card:nth-child(9)  { animation-delay: 0.18s; }
.pc-listings-grid .pc-card:nth-child(10) { animation-delay: 0.20s; }
.pc-listings-grid .pc-card:nth-child(11) { animation-delay: 0.22s; }
.pc-listings-grid .pc-card:nth-child(12) { animation-delay: 0.24s; }
 
/* =============================================================================
   AGENT BIO ACCORDION
============================================================================= */
.pc-bio-toggle {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pc-accent);
    cursor: pointer;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pc-surface-2);
    width: 100%;
    text-align: left;
    transition: color var(--pc-transition);
}
 
.pc-bio-toggle:hover {
    color: var(--pc-accent-dark);
}
 
.pc-bio-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--pc-text-soft);
}
 
.pc-bio-body.is-open {
    transition: max-height 0.4s ease;
}
 
.pc-bio-body p {
    margin-bottom: 8px;
    margin-top: 10px;
}
 
/* =============================================================================
   LIGHTBOX
============================================================================= */
.pc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
 
.pc-lightbox.is-open {
    display: flex;
    animation: pcFadeIn 0.2s ease;
}
 
.pc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}
 
.pc-lightbox__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
}
 
.pc-lightbox__img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.pc-lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--pc-radius);
    transition: opacity 0.15s ease;
    display: block;
}
 
.pc-lightbox__close,
.pc-lightbox__prev,
.pc-lightbox__next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background var(--pc-transition);
    backdrop-filter: blur(4px);
}
 
.pc-lightbox__close:hover,
.pc-lightbox__prev:hover,
.pc-lightbox__next:hover {
    background: rgba(255,255,255,0.25);
}
 
.pc-lightbox__close {
    top: 16px;
    right: 16px;
    font-size: 1rem;
}
 
.pc-lightbox__prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
}
 
.pc-lightbox__next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
}
 
.pc-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-family: inherit;
}
 
/* =============================================================================
   RESPONSIVE
============================================================================= */
@media (max-width: 900px) {
    .pc-listing-body {
        grid-template-columns: 1fr;
    }
 
    .pc-listing-sidebar {
        position: static;
    }
}
 
@media (max-width: 640px) {
    .pc-listings-grid {
        grid-template-columns: 1fr;
    }
 
    .pc-filter-bar form {
        flex-direction: column;
    }
 
    .pc-dropdown-trigger,
    .pc-select {
        min-width: 100%;
        width: 100%;
    }
 
    .pc-listing-price {
        font-size: 1.4rem;
    }
 
    .pc-details-grid {
        grid-template-columns: 1fr;
    }
 
    .pc-photo-grid {
        grid-template-columns: 1fr 1fr;
    }
}