/* REPM Connect frontend styles. Author: WOODS Business Solutions. */

.repm-grid {
    display: grid;
    grid-template-columns: repeat(var(--repm-cols, 3), 1fr);
    gap: 1.5rem;
    margin: 1rem 0;
}
@media (max-width: 900px) {
    .repm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .repm-grid { grid-template-columns: 1fr; }
}

.repm-card {
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s ease;
}
.repm-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10); }
.repm-card__link { display: block; color: inherit; text-decoration: none; }
.repm-card__media { position: relative; aspect-ratio: 4 / 3; background: #f2f2f2; }
.repm-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.repm-card__img--empty { background: repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 12px, #ececec 12px, #ececec 24px); }
.repm-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(20, 20, 20, 0.82);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}
.repm-card__body { padding: 1rem 1.1rem 1.2rem; }
.repm-card__title { margin: 0 0 0.25rem; font-size: 1.05rem; line-height: 1.35; }
.repm-card__location { margin: 0 0 0.5rem; color: #666; font-size: 0.9rem; }
.repm-card__price { margin: 0 0 0.6rem; font-weight: 600; font-size: 1.1rem; }
.repm-card__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.repm-card__chip {
    background: #f4f4f4;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.8rem;
    color: #444;
}

.repm-detail { max-width: 860px; }
.repm-detail__title { margin-bottom: 0.25rem; }
.repm-detail__location { color: #666; margin-top: 0; }
.repm-detail__gallery { margin: 1.25rem 0; }
.repm-detail__cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; display: block; }
.repm-detail__thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.repm-detail__thumb { width: 110px; height: 82px; object-fit: cover; border-radius: 6px; display: block; }
.repm-detail__heading { font-size: 1.2rem; margin: 1.75rem 0 0.75rem; }
.repm-detail__text { line-height: 1.6; }

.repm-facts { width: 100%; border-collapse: collapse; }
.repm-facts tr { border-bottom: 1px solid #ececec; }
.repm-facts__label { text-align: left; padding: 0.55rem 1rem 0.55rem 0; color: #666; font-weight: 500; width: 40%; }
.repm-facts__value { padding: 0.55rem 0; }

.repm-form { max-width: 560px; }
.repm-form__hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.repm-form__row { margin: 0 0 1rem; }
.repm-form__label { display: block; margin-bottom: 0.3rem; font-weight: 500; }
.repm-form__input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}
.repm-form__input:focus { outline: 2px solid #333; outline-offset: 1px; }
.repm-form__textarea { resize: vertical; }
.repm-form__consent { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.45; }
.repm-form__consent input { margin-top: 0.2rem; }
.repm-form__submit {
    background: #141414;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 0.65rem 1.4rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.repm-form__submit:hover { background: #333; }
.repm-form__submit:disabled { opacity: 0.6; cursor: default; }
.repm-form__status { min-height: 1.2em; font-size: 0.95rem; }
.repm-form__status--ok { color: #1a7a2e; }
.repm-form__status--error { color: #a02222; }

.repm-notice {
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    background: #f6f6f6;
    border: 1px solid #e0e0e0;
    margin: 1rem 0;
}
.repm-notice--error { background: #fff5f5; border-color: #e6c3c3; }
.repm-notice__detail { color: #888; font-size: 0.85em; }
