/* ===================================================================
   Immo Sync – Frontend Styles
   =================================================================== */

/* Grid layout */
.immo-grid {
    display: grid;
    gap: 24px;
    margin: 30px 0;
}
.immo-cols-2 { grid-template-columns: repeat(2, 1fr); }
.immo-cols-3 { grid-template-columns: repeat(3, 1fr); }
.immo-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .immo-cols-2, .immo-cols-3, .immo-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Property card */
.immo-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.immo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.immo-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.immo-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.immo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1e3a5f;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.immo-dpe {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}
.immo-dpe-a { background: #319834; }
.immo-dpe-b { background: #33cc31; }
.immo-dpe-c { background: #cbfc34; color: #333; }
.immo-dpe-d { background: #fbfe06; color: #333; }
.immo-dpe-e { background: #fbcb02; }
.immo-dpe-f { background: #eb6101; }
.immo-dpe-g { background: #e20000; }

.immo-card-body {
    padding: 18px;
}
.immo-card-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}
.immo-card-price {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #2c6fbb;
}
.immo-card-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}
.immo-card-ref {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    color: #94a3b8;
}

/* Search form */
.immo-search-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}
.immo-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
.immo-search-field {
    flex: 1;
    min-width: 160px;
}
.immo-search-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}
.immo-search-field select,
.immo-search-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}
.immo-btn {
    background: linear-gradient(135deg, #1e3a5f, #2c6fbb);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}
.immo-btn:hover { opacity: .9; }

/* Single property */
.immo-single-wrap {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}
.immo-gallery-main img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 500px;
}
.immo-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}
.immo-gallery-thumb img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
}
.immo-gallery-thumb img:hover {
    border-color: #2c6fbb;
}
.immo-single-header {
    margin: 30px 0 20px;
}
.immo-single-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
}
.immo-single-price {
    font-size: 26px;
    font-weight: 700;
    color: #2c6fbb;
    margin: 0 0 4px;
}
.immo-single-ref {
    font-size: 12px;
    color: #94a3b8;
}
.immo-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.immo-detail {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.immo-detail strong {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.immo-detail span {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}
.immo-diagnostics {
    margin: 30px 0;
}
.immo-diag-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.immo-diag {
    display: flex;
    align-items: center;
    gap: 10px;
}
.immo-diag-label {
    font-weight: 700;
    font-size: 14px;
}
.immo-dpe-badge, .immo-ges-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}
.immo-dpe-a, .immo-ges-a { background: #319834; }
.immo-dpe-b, .immo-ges-b { background: #33cc31; }
.immo-dpe-c, .immo-ges-c { background: #cbfc34; color:#333; }
.immo-dpe-d, .immo-ges-d { background: #fbfe06; color:#333; }
.immo-dpe-e, .immo-ges-e { background: #fbcb02; }
.immo-dpe-f, .immo-ges-f { background: #eb6101; }
.immo-dpe-g, .immo-ges-g { background: #e20000; }

.immo-description {
    margin: 30px 0;
    line-height: 1.7;
}
.immo-description h3 {
    margin-bottom: 10px;
}

.immo-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    grid-column: 1 / -1;
}
