/* =============================================================
   Real Hodge MLS Plugin — Listing Card Styles
   v2.1 | Brand: #1496d4 Blue | #d4af35 Gold | #c1c0c0 Silver
   ============================================================= */

/* ---- Grid ---- */
.rhg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 8px 0 32px;
}
@media (max-width: 1100px) {
    .rhg-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
    .rhg-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* Featured / homepage — 2-col */
.rhg-grid-featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
@media (max-width: 700px) {
    .rhg-grid-featured { grid-template-columns: 1fr; }
}

/* ---- Card ---- */
.rhg-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .22s ease, transform .22s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.rhg-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

/* ---- Photo ---- */
.rhg-card-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 220px;
    overflow: hidden;
    background: #e8f4fb;
    position: relative;
    flex-shrink: 0;
}
.rhg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}
.rhg-card:hover .rhg-card-img img {
    transform: scale(1.04);
}
.rhg-card-img-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 220px;
    background: linear-gradient(135deg, #e8f4fb 0%, #d0e9f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1496d4;
    font-size: 3rem;
}

/* ---- Badge (status pill) ---- */
.rhg-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1496d4;
    color: #fff;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* ---- Card Body ---- */
.rhg-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

/* ---- Price ---- */
.rhg-price {
    font-family: 'Trajan Pro', 'Times New Roman', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #1496d4;
    line-height: 1.2;
    letter-spacing: -.01em;
}

/* ---- Address ---- */
.rhg-address {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: .9rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* ---- Meta row (beds / baths / sqft) ---- */
.rhg-meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: .88rem;
    color: #444;
    margin-top: 4px;
    flex-wrap: wrap;
}
.rhg-meta span {
    display: inline-flex;
    align-items: center;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 1px solid #d0d0d0;
    line-height: 1.3;
}
.rhg-meta span:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}
.rhg-meta strong {
    color: #1a1a1a;
    font-weight: 700;
    margin-right: 3px;
}

/* ---- Search Wrap ---- */
.rhg-search-wrap {
    background: #f5fafd;
    border: 1px solid #c1c0c0;
    border-radius: 10px;
    padding: 24px 20px;
    margin-bottom: 28px;
}
.rhg-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rhg-form-row { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.rhg-form-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.rhg-form-group label { font-size: .82rem; font-weight: 600; color: #444; }
.rhg-form-group input,
.rhg-form-group select {
    padding: 9px 12px;
    border: 1px solid #c1c0c0;
    border-radius: 6px;
    font-size: .9rem;
    color: #333;
    background: #fff;
}
.rhg-form-group input:focus,
.rhg-form-group select:focus {
    outline: none;
    border-color: #1496d4;
    box-shadow: 0 0 0 3px rgba(20,150,212,.12);
}
.rhg-form-btn { display: flex; align-items: flex-end; }

/* ---- Buttons ---- */
.rhg-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #1496d4;
    color: #fff;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    letter-spacing: .02em;
}
.rhg-btn:hover { background: #0f7eb5; color: #fff; text-decoration: none; }

/* ---- Pagination ---- */
.rhg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}
.rhg-page-btn {
    padding: 7px 14px;
    border: 1px solid #c1c0c0;
    border-radius: 6px;
    background: #fff;
    color: #444;
    font-size: .88rem;
    cursor: pointer;
    transition: all .18s;
}
.rhg-page-btn:hover { border-color: #1496d4; color: #1496d4; }
.rhg-page-btn.active {
    background: #1496d4;
    border-color: #1496d4;
    color: #fff;
    font-weight: 700;
}

/* ---- States ---- */
.rhg-loading {
    text-align: center;
    padding: 48px 0;
    color: #1496d4;
    font-size: 1.1rem;
}
.rhg-no-results {
    text-align: center;
    padding: 48px 0;
    color: #888;
    font-size: 1rem;
}


/* ================================================
   MOBILE — iOS zoom prevention + touch targets
   ================================================ */

.rhg-search-bar input,
.rhg-search-bar select,
.rhg-filters input,
.rhg-filters select,
.rhg-contact-form input,
.rhg-contact-form select,
.rhg-contact-form textarea {
    font-size: 16px;
}

.rhg-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .rhg-search-bar {
        flex-direction: column;
        gap: 10px;
    }
    .rhg-search-bar input,
    .rhg-search-bar select {
        width: 100%;
        font-size: 16px;
    }
    .rhg-search-bar .rhg-btn {
        width: 100%;
    }
    .rhg-filters {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .rhg-filters {
        grid-template-columns: 1fr;
    }
    .rhg-price {
        font-size: 1.3rem;
    }
}
