/* ══════════════════════════════════════════════════════════════════
   VaultRE Real Estate — Front-End Styles v2.0
   ══════════════════════════════════════════════════════════════════ */
:root {
    --vrre-primary:   #1a56db;
    --vrre-primary-d: #1e429f;
    --vrre-success:   #057a55;
    --vrre-error:     #c81e1e;
    --vrre-text:      #111827;
    --vrre-muted:     #6b7280;
    --vrre-border:    #e5e7eb;
    --vrre-bg:        #f9fafb;
    --vrre-card-bg:   #ffffff;
    --vrre-radius:    10px;
    --vrre-shadow:    0 2px 12px rgba(0,0,0,.08);
    --vrre-shadow-hov:0 8px 28px rgba(0,0,0,.14);
}

/* ── Grid ──────────────────────────────────────────────────────── */
.vrre-grid { display: grid; gap: 24px; }
.vrre-grid--1 { grid-template-columns: 1fr; }
.vrre-grid--2 { grid-template-columns: repeat(2, 1fr); }
.vrre-grid--3 { grid-template-columns: repeat(3, 1fr); }
.vrre-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .vrre-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .vrre-grid--3,.vrre-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .vrre-grid--2,.vrre-grid--3,.vrre-grid--4 { grid-template-columns: 1fr; } }

/* ── Property Card ─────────────────────────────────────────────── */
.vrre-card--property {
    background: var(--vrre-card-bg);
    border: 1px solid var(--vrre-border);
    border-radius: var(--vrre-radius);
    overflow: hidden;
    box-shadow: var(--vrre-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
    display: flex;
    flex-direction: column;
}
.vrre-card--property:hover {
    transform: translateY(-4px);
    box-shadow: var(--vrre-shadow-hov);
}

/* Image area */
.vrre-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}
.vrre-card__image a { display: block; height: 100%; }
.vrre-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.vrre-card--property:hover .vrre-card__image img { transform: scale(1.04); }
.vrre-card__no-image {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: #d1d5db;
}
.vrre-card__no-image .dashicons { font-size: 48px !important; }

/* Badges */
.vrre-badge { position: absolute; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.vrre-badge--type { top: 10px; left: 10px; }
.vrre-badge--vrre_sale       { background: #dbeafe; color: #1e3a8a; }
.vrre-badge--vrre_lease      { background: #d1fae5; color: #065f46; }
.vrre-badge--vrre_sold       { background: #ede9fe; color: #4c1d95; }
.vrre-badge--vrre_commercial { background: #fef3c7; color: #92400e; }
.vrre-badge--status { top: 10px; right: 10px; }
.vrre-badge--status-leased   { background: #ede9fe; color: #5b21b6; }
.vrre-badge--status-withdrawn { background: #fef2f2; color: #991b1b; }
.vrre-badge--status-conditional { background: #fff7ed; color: #c2410c; }

/* Card body */
.vrre-card__body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.vrre-card__prop-type { font-size: 11px; color: var(--vrre-muted); text-transform: uppercase; letter-spacing: .06em; }
.vrre-card__title { font-size: 15px; font-weight: 600; margin: 4px 0 6px; line-height: 1.45; }
.vrre-card__title a { text-decoration: none; color: var(--vrre-text); }
.vrre-card__title a:hover { color: var(--vrre-primary); }
.vrre-card__suburb { font-size: 13px; color: var(--vrre-muted); display: flex; align-items: center; gap: 4px; margin: 0 0 8px; }
.vrre-card__price { font-size: 20px; font-weight: 700; color: var(--vrre-primary); margin-bottom: 12px; }

/* Feature icons */
.vrre-card__features { display: flex; gap: 14px; list-style: none; padding: 0; margin: 0 0 10px; }
.vrre-feat { display: flex; flex-direction: column; align-items: center; font-size: 14px; font-weight: 600; color: var(--vrre-text); }
.vrre-feat span { font-size: 10px; font-weight: 400; color: var(--vrre-muted); text-transform: uppercase; letter-spacing: .05em; }
.vrre-feat--bed::before  { content: '🛏'; font-size: 16px; }
.vrre-feat--bath::before { content: '🚿'; font-size: 16px; }
.vrre-feat--car::before  { content: '🚗'; font-size: 16px; }
.vrre-feat--land::before { content: '📐'; font-size: 16px; }

.vrre-card__available { font-size: 12px; color: var(--vrre-muted); margin: 0 0 8px; }
.vrre-card__headline  { font-size: 12px; color: var(--vrre-muted); font-style: italic; margin: 0 0 12px; flex: 1; }
.vrre-card__cta {
    display: inline-block; margin-top: auto;
    background: var(--vrre-primary); color: #fff;
    padding: 8px 18px; border-radius: 6px;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: background .15s;
    align-self: flex-start;
}
.vrre-card__cta:hover { background: var(--vrre-primary-d); color: #fff; }

/* ── Search Form ───────────────────────────────────────────────── */
.vrre-search-wrap { background: var(--vrre-card-bg); border: 1px solid var(--vrre-border); border-radius: var(--vrre-radius); padding: 24px 28px; box-shadow: var(--vrre-shadow); }
.vrre-search-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.vrre-search-row--advanced { background: var(--vrre-bg); border: 1px solid var(--vrre-border); border-radius: 6px; padding: 16px; }
.vrre-field { display: flex; flex-direction: column; gap: 5px; min-width: 160px; }
.vrre-field--grow { flex: 1; }
.vrre-field label { font-size: 12px; font-weight: 600; color: var(--vrre-muted); text-transform: uppercase; letter-spacing: .05em; }
.vrre-field input, .vrre-field select {
    padding: 9px 12px; border: 1.5px solid var(--vrre-border);
    border-radius: 6px; font-size: 14px; color: var(--vrre-text);
    background: #fff; transition: border-color .15s;
    width: 100%;
}
.vrre-field input:focus, .vrre-field select:focus { outline: none; border-color: var(--vrre-primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.vrre-search-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

/* Buttons */
.vrre-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 7px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; border: 2px solid transparent; text-decoration: none; }
.vrre-btn--primary { background: var(--vrre-primary); color: #fff; border-color: var(--vrre-primary); }
.vrre-btn--primary:hover { background: var(--vrre-primary-d); border-color: var(--vrre-primary-d); color: #fff; }
.vrre-btn--ghost { background: transparent; color: var(--vrre-text); border-color: var(--vrre-border); }
.vrre-btn--ghost:hover { border-color: var(--vrre-primary); color: var(--vrre-primary); }
.vrre-btn--outline { background: transparent; color: var(--vrre-primary); border-color: var(--vrre-primary); }
.vrre-btn--outline:hover { background: var(--vrre-primary); color: #fff; }
.vrre-btn--full { width: 100%; justify-content: center; }
.vrre-btn--search svg { flex-shrink: 0; }

/* Suburb autocomplete */
.vrre-suburb-suggestions { position: absolute; z-index: 99; background: #fff; border: 1px solid var(--vrre-border); border-radius: 6px; box-shadow: var(--vrre-shadow); max-height: 200px; overflow-y: auto; width: 100%; top: 100%; }
.vrre-suburb-suggestions li { padding: 9px 12px; cursor: pointer; font-size: 14px; list-style: none; }
.vrre-suburb-suggestions li:hover { background: var(--vrre-bg); }

/* ── Results header ────────────────────────────────────────────── */
.vrre-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; color: var(--vrre-muted); }

/* ── Loading ───────────────────────────────────────────────────── */
.vrre-loading { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 40px; color: var(--vrre-muted); }
.vrre-spinner { width: 28px; height: 28px; border: 3px solid var(--vrre-border); border-top-color: var(--vrre-primary); border-radius: 50%; animation: vrre-spin .7s linear infinite; }
@keyframes vrre-spin { to { transform: rotate(360deg); } }

/* ── Pagination ────────────────────────────────────────────────── */
.vrre-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.vrre-pagination button { padding: 7px 14px; border: 1.5px solid var(--vrre-border); border-radius: 6px; background: #fff; font-size: 14px; cursor: pointer; transition: all .15s; }
.vrre-pagination button.active { background: var(--vrre-primary); color: #fff; border-color: var(--vrre-primary); }
.vrre-pagination button:hover:not(.active) { border-color: var(--vrre-primary); color: var(--vrre-primary); }

.vrre-no-results { text-align: center; padding: 48px; color: var(--vrre-muted); font-style: italic; }

/* ── Single Property ───────────────────────────────────────────── */
.vrre-single-property { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }

/* Gallery */
.vrre-gallery { margin-bottom: 28px; border-radius: var(--vrre-radius); overflow: hidden; }
.vrre-gallery__main { position: relative; aspect-ratio: 16/8; overflow: hidden; background: #000; }
.vrre-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.vrre-gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.5); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%; font-size: 24px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.vrre-gallery__nav:hover { background: rgba(0,0,0,.8); }
.vrre-gallery__nav--prev { left: 12px; }
.vrre-gallery__nav--next { right: 12px; }
.vrre-gallery__count { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 20px; }
.vrre-gallery__thumbs { display: flex; gap: 6px; padding: 8px 0 0; overflow-x: auto; scrollbar-width: thin; }
.vrre-gallery__thumb { width: 100px; height: 70px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: .7; transition: opacity .15s; border: 2px solid transparent; flex-shrink: 0; }
.vrre-gallery__thumb.active, .vrre-gallery__thumb:hover { opacity: 1; border-color: var(--vrre-primary); }

/* Single layout */
.vrre-single__layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .vrre-single__layout { grid-template-columns: 1fr; } }

/* Header */
.vrre-single__header { margin-bottom: 20px; }
.vrre-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #e0f2fe; color: #0c4a6e; margin-right: 6px; margin-bottom: 8px; }
.vrre-tag--status-listing    { background: #d1fae5; color: #065f46; }
.vrre-tag--status-leased     { background: #ede9fe; color: #5b21b6; }
.vrre-tag--status-withdrawn  { background: #fef2f2; color: #991b1b; }
.vrre-single__address { font-size: 26px; font-weight: 700; margin: 8px 0 4px; line-height: 1.25; }
.vrre-single__location { color: var(--vrre-muted); font-size: 15px; margin: 0 0 12px; }
.vrre-single__price { font-size: 28px; font-weight: 800; color: var(--vrre-primary); }

/* Stats bar */
.vrre-single__stats { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 16px 0; margin: 16px 0; border-top: 1px solid var(--vrre-border); border-bottom: 1px solid var(--vrre-border); }
.vrre-single__stats li { display: flex; flex-direction: column; align-items: center; padding: 0 24px 0 0; margin-right: 24px; border-right: 1px solid var(--vrre-border); }
.vrre-single__stats li:last-child { border-right: none; }
.vrre-single__stats li strong { font-size: 22px; font-weight: 700; }
.vrre-single__stats li span { font-size: 11px; color: var(--vrre-muted); text-transform: uppercase; }

/* Headline, description, features */
.vrre-single__headline { font-size: 18px; font-weight: 600; color: var(--vrre-text); margin-bottom: 12px; line-height: 1.5; }
.vrre-single__description { font-size: 15px; line-height: 1.7; color: #374151; margin-bottom: 24px; }
.vrre-single__features h3 { font-size: 16px; margin-bottom: 10px; }
.vrre-features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; list-style: none; padding: 0; font-size: 14px; margin-bottom: 24px; }
.vrre-features-list li::before { content: '✓ '; color: var(--vrre-success); font-weight: 700; }
.vrre-single__available { font-size: 14px; margin-bottom: 20px; }

/* Map */
.vrre-single__map-wrap h3 { font-size: 16px; margin-bottom: 10px; }
.vrre-map { width: 100%; height: 320px; border-radius: var(--vrre-radius); border: 1px solid var(--vrre-border); background: #e2e8f0; }

/* Sidebar */
.vrre-single__sidebar { position: sticky; top: 20px; }
.vrre-sidebar-card { background: var(--vrre-card-bg); border: 1px solid var(--vrre-border); border-radius: var(--vrre-radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--vrre-shadow); }
.vrre-sidebar-card h4 { margin: 0 0 16px; font-size: 15px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--vrre-border); }

/* Agent card */
.vrre-agent-card { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.vrre-agent-card__photo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vrre-agent-card__info { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.vrre-agent-card__info strong { font-size: 15px; }
.vrre-agent-card__info a { color: var(--vrre-primary); text-decoration: none; display: block; }

/* Enquiry form */
.vrre-enquiry-form { display: flex; flex-direction: column; gap: 12px; }
.vrre-form__field { display: flex; flex-direction: column; gap: 5px; }
.vrre-form__field label { font-size: 12px; font-weight: 600; color: var(--vrre-muted); text-transform: uppercase; letter-spacing: .04em; }
.vrre-form__field input, .vrre-form__field textarea {
    padding: 9px 12px; border: 1.5px solid var(--vrre-border);
    border-radius: 6px; font-size: 14px; resize: vertical; font-family: inherit;
    transition: border-color .15s;
}
.vrre-form__field input:focus, .vrre-form__field textarea:focus { outline: none; border-color: var(--vrre-primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.vrre-req { color: #dc2626; }
.vrre-form__notice { font-size: 13px; padding: 8px 12px; border-radius: 6px; display: none; }
.vrre-form__notice--success { background: #f0fdf4; color: var(--vrre-success); display: block; }
.vrre-form__notice--error   { background: #fef2f2; color: var(--vrre-error); display: block; }
.vrre-form__privacy { font-size: 11px; color: var(--vrre-muted); margin: 0; text-align: center; }

/* ── Agent Tiles ───────────────────────────────────────────────── */
.vrre-agent-tile { background: var(--vrre-card-bg); border: 1px solid var(--vrre-border); border-radius: var(--vrre-radius); overflow: hidden; box-shadow: var(--vrre-shadow); transition: box-shadow .2s; }
.vrre-agent-tile:hover { box-shadow: var(--vrre-shadow-hov); }
.vrre-agent-tile__photo { aspect-ratio: 1; overflow: hidden; background: #f3f4f6; }
.vrre-agent-tile__img { width: 100%; height: 100%; object-fit: cover; }
.vrre-agent-tile__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #d1d5db; }
.vrre-agent-tile__placeholder .dashicons { font-size: 64px !important; }
.vrre-agent-tile__info { padding: 16px; display: flex; flex-direction: column; gap: 5px; }
.vrre-agent-tile__name { font-size: 16px; font-weight: 700; margin: 0; }
.vrre-agent-tile__name a { text-decoration: none; color: var(--vrre-text); }
.vrre-agent-tile__title { font-size: 12px; color: var(--vrre-muted); margin: 0; }
.vrre-agent-tile__phone, .vrre-agent-tile__email { font-size: 13px; color: var(--vrre-primary); text-decoration: none; }
