/* C1 – Container general listare proprietăți */
.rebs-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Card proprietate */
.rebs-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.rebs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Imagine */
.rebs-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.rebs-card-image {
    position: relative;
}

/* BADGE TIP OFERTĂ — Vânzare / Închiriere */
.rebs-offer-badge {
    position: absolute;
    top: 10px;
    right: 10px; /* sau left: 10px dacă vrei în stânga */
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    color: #fff;
    background: #FF4646; /* implicit pentru Inchiriere */
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Culori diferite */
.rebs-offer-badge.vanzare {
    background: #1a8917; /* verde */
}

.rebs-offer-badge.inchiriere {
    background: #e60000; /* roșu */
}

/* Badge status în pagina proprietății */
.rebs-status-tag {
    color: #b30000;
    font-weight: 600;
}

/* Culori pentru statusurile reale */
.rebs-status-activ {
    background: #1a8917; /* verde */
}

.rebs-status-inactiv {
    background: #b30000; /* roșu */
}

.rebs-status-vandut {
    background: #e6a100; /* galben */
}

.rebs-status-exclusiv {
    background: #0073e6; /* albastru */
}

/* Conținut */
.rebs-card-content {
    padding: 18px 20px;
    flex: 1;
}

/* Titlu */
.rebs-card-title {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.3;
}

/* Preț */
.rebs-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a8917;
    margin-bottom: 12px;
}

/* Detalii */
.rebs-card-details {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.rebs-card-details span {
    background: #f3f3f3;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Status indisponibil */
.rebs-card-status {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.rebs-status-off {
    background: #ffe5e5;
    color: #b30000;
}

/* Paginare */
.rebs-pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
}

.rebs-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f3f3f3;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.rebs-pagination .page-numbers.current {
    background: #1a8917;
    color: #fff;
    font-weight: 700;
}

.rebs-pagination .page-numbers:hover {
    background: #ddd;
}

/* C2 – Container general pagină agent */
.rebs-agent-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
}

/* Header agent */
.rebs-agent-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Poză agent */
.rebs-agent-photo img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* Info agent */
.rebs-agent-info {
    flex: 1;
    min-width: 260px;
}

.rebs-agent-name {
    font-size: 32px;
    margin: 0 0 10px;
    font-weight: 700;
}

.rebs-agent-function {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.rebs-agent-phone,
.rebs-agent-email {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

/* Descriere agent */
.rebs-agent-description {
    margin-bottom: 50px;
    font-size: 16px;
    line-height: 1.6;
}

/* Titlu secțiune proprietăți */
.rebs-agent-properties-title {
    font-size: 26px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Grid proprietăți */
.rebs-agent-properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* Card proprietate */
.rebs-agent-property-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.rebs-agent-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Imagine proprietate */
.rebs-agent-property-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Conținut proprietate */
.rebs-agent-property-content {
    padding: 15px 18px;
}

.rebs-agent-property-title {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 600;
}

.rebs-agent-property-title a {
    text-decoration: none;
    color: #222;
}

.rebs-agent-property-title a:hover {
    color: #1a8917;
}

/* Preț */
.rebs-agent-property-price {
    font-size: 17px;
    font-weight: 700;
    color: #1a8917;
}

/* C3 – Container general pagină proprietate */
.rebs-property-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
}

/* Galerie foto */
.rebs-property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 35px;
}
.rebs-gallery-item {
    display: block;
    cursor: zoom-in;
}

.rebs-property-gallery img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Header proprietate */
.rebs-property-header {
    margin-bottom: 30px;
}

.rebs-property-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px;
}

/* Preț + iconițe */
.rebs-property-main-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rebs-property-price {
    font-size: 28px;
    font-weight: 700;
    color: #1a8917;
}

.rebs-property-icons {
    display: flex;
    gap: 15px;
    font-size: 16px;
    color: #444;
}

.rebs-property-icons span {
    background: #f3f3f3;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Tag-uri (tip imobil, tip ofertă) */
.rebs-property-tags {
    margin: 25px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rebs-tag {
    background: #e8e8e8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.rebs-tag.rebs-offer {
    background: #1a8917;
    color: #fff;
}

/* Descriere */
.rebs-property-description {
    margin: 40px 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Agent responsabil */
.rebs-property-agent-box {
    margin: 40px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    border-left: 4px solid #1a8917;
}

.rebs-property-agent-box h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.rebs-agent-link {
    font-size: 17px;
    font-weight: 600;
    color: #1a8917;
    text-decoration: none;
}

.rebs-agent-link:hover {
    text-decoration: underline;
}

/* Proprietăți similare */
.rebs-property-similar {
    margin: 50px 0;
}

.rebs-property-similar h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.rebs-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.rebs-similar-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.rebs-similar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.rebs-similar-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.rebs-similar-card h4 {
    font-size: 18px;
    margin: 12px;
    font-weight: 600;
}

.rebs-similar-card a {
    text-decoration: none;
    color: #222;
}

.rebs-similar-card a:hover h4 {
    color: #1a8917;
}

/* C4 – Filtru avansat */
.rebs-advanced-filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 30px 0 40px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
}

.rebs-advanced-filter select,
.rebs-advanced-filter input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
}

.rebs-filter-btn {
    background: #1a8917;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.rebs-filter-btn:hover {
    background: #166f13;
}

/* Latime imagine reprezentativa */
.rebs-image-contained img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Card agent sidebar */
.rebs-agent-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    font-family: inherit;
}

.rebs-agent-card .agent-photo {
    display: flex;
    justify-content: center;
}

.rebs-agent-card .agent-photo img {
    width: auto;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Centrare nume și funcție în sidebar */
.rebs-agent-card.sticky-agent .agent-name,
.rebs-agent-card.sticky-agent .agent-function {
    text-align: center;
}

.rebs-agent-card .agent-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.rebs-agent-card .agent-function {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.rebs-agent-card .agent-contact {
    margin-bottom: 15px;
}

.rebs-agent-card .agent-phone,
.rebs-agent-card .agent-email {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 15px;
}

/* ICON-WRAP — SOLUȚIA REALĂ */
.icon-wrap {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-wrap svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Telefon — aliniere perfectă */
.agent-phone .icon-wrap svg {
    top: 0;
    position: relative;
}

/* Descriere agent */
.rebs-agent-card .agent-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.rebs-property-features-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    flex: 0 0 43%;

}
.rebs-property-features-box h3 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 700;
}


/* Lista de buline */
.rebs-property-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buline individuale */
.rebs-property-features-list span {
    background: #e8e8e8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Wrapper pentru cardurile Caracteristici / Dotări / Facilități */
.rebs-features-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Breadcrumbs */
.rebs-wrapper,
.rebs-wrapper * {
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.breadcrumbs {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 16px;
    color: #555;
}

.breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #333;
}

/* Proprietati similare */
.rebs-similar-properties {
    margin-top: 40px;
}

.rebs-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rebs-similar-item {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform .2s;
}

.rebs-similar-item:hover {
    transform: translateY(-4px);
}

.rebs-similar-item img {
    width: 100%;
    border-radius: 8px;
}

.rebs-similar-title {
    font-weight: 600;
    margin-top: 10px;
}

/* Folosim aceeași culoare în proprietăți similare */
.rebs-similar-price {
    color: #1a8917;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 6px;
    display: block;
}



