/*
 * property.css — Single property page + archive-specific UI
 *
 * Loaded conditionally on property singular and archive only.
 * All colors through tokens → GP vars.
 */

/* ── Property Meta Bar ───────────────────────────── */
.gpre-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
}

.gpre-property-meta__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-width: 80px;
}

.gpre-property-meta__value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.gpre-property-meta__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Property Gallery (TailPress Swiper) ─────────── */
.gpre-gallery {
    position: relative;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-alt);
}

.gpre-gallery .swiper-slide img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gpre-gallery .swiper-button-next,
.gpre-gallery .swiper-button-prev {
    color: #fff;
}

.gpre-gallery .swiper-pagination-bullet-active {
    background: #fff;
}

/* ── Gallery Thumbnail Trigger ───────────────────── */
.gpre-gallery-thumb {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.gpre-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gpre-gallery-thumb__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gpre-gallery-thumb:hover .gpre-gallery-thumb__overlay {
    opacity: 1;
}

.gpre-gallery-thumb__count {
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ── Property Agent Card ─────────────────────────── */
.gpre-agent-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-top: var(--space-xl);
}

.gpre-agent-card__photo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.gpre-agent-card__photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-xl);
    color: var(--color-text-faint);
}

.gpre-agent-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.gpre-agent-card__name {
    font-weight: 700;
    color: var(--color-text);
}

.gpre-agent-card__phone,
.gpre-agent-card__email {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ── Map Container ───────────────────────────────── */
.gpre-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-xl) 0;
    border: 1px solid var(--color-border);
}

/* ── Property Description ────────────────────────── */
.gpre-property-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
}

/* ── Filter Bar on Archive ───────────────────────── */
.gpre-filter-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: end;
}

.gpre-filter-bar select,
.gpre-filter-bar input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    background: var(--color-surface);
    color: var(--color-text);
}




