/* =========================================================
   HOME PROPERTIES - LUXURY MURO
========================================================= */

.home-properties {
    padding: 52px 28px 72px;
    background: #ffffff;
}

.home-properties__inner {
    width: min(1480px, 100%);
    margin: 0 auto;
}


/* Header */

.home-properties__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.home-properties__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-properties__heading h2 {
    margin: 0;
    color: #101827;
    font-family: var(--font-heading);
    font-size: clamp(30px, 2.6vw, 42px);
    font-weight: 600;
    line-height: 1.08;
}

.home-properties__title-line {
    width: 56px;
    height: 2px;
    margin-top: 18px;
    background: #c9973e;
}

.home-properties__all-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    color: #b87f1d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.home-properties__all-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-properties__all-link:hover svg {
    transform: translateX(3px);
}


/* Exactly 4 cards per row on desktop */

.home-properties__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}


/* Card */

.property-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e5df;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(22, 29, 39, 0.055);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    border-color: #ddd5c8;
    box-shadow: 0 14px 32px rgba(22, 29, 39, 0.10);
}


/* Image */

.property-card__media {
    position: relative;
    aspect-ratio: 1.28 / 1;
    overflow: hidden;
    background: #e9edf2;
}

.property-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.property-card:hover .property-card__media img {
    transform: scale(1.035);
}

.property-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #172236, #28364e);
    color: #d2a653;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    letter-spacing: 0.18em;
}


/* Sale / rent badge */

.property-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d6a94e, #c58e2e);
    box-shadow: 0 4px 12px rgba(164, 112, 26, 0.20);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.025em;
}


/* Property labels (Капариран / Продаден / Ексклузивен / ...) */

.property-card__labels {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: calc(100% - 32px);
}

.property-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 9px;
    background: #10233f;
    box-shadow: 0 4px 12px rgba(16, 23, 39, 0.20);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.property-label svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.property-label__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fallback colors by slug (used only if no color is set in the database) */
.property-label--reserved {
    background: #e63946;
}

.property-label--sold {
    background: #2f8f5b;
}

.property-label--exclusive {
    background: #c3943e;
}

.property-label--top-offer {
    background: #10233f;
}

.property-label--act16 {
    background: #6541c7;
}

@media (max-width: 480px) {
    .property-card__labels {
        top: 12px;
        right: 12px;
        gap: 6px;
        max-width: calc(100% - 24px);
    }

    .property-label {
        min-height: 30px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 11px;
    }

    .property-label svg {
        width: 15px;
        height: 15px;
    }
}


/* Body */

.property-card__body {
    padding: 17px 18px 16px;
}

.property-card__type {
    margin-bottom: 8px;
    color: #c08b30;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.property-card__title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.property-card__title-row h3 {
    min-width: 0;
    margin: 0;
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.28;
}

.property-card__ref {
    padding-top: 2px;
    color: #b77d1b;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.property-card__location {
    min-height: 34px;
    margin-top: 8px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.45;
}


/* Details */

.property-card__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
    padding: 13px 0;
    border-top: 1px solid #ece9e4;
    border-bottom: 1px solid #ece9e4;
}

.property-card__detail {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4b5563;
    font-size: 10px;
    white-space: nowrap;
}

.property-card__detail svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: #c28b2e;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.property-card__detail strong {
    color: #1f2937;
    font-weight: 600;
}


/* Price / button */

.property-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
}

.property-card__price {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;

    color: #c3943e;
    letter-spacing: -0.4px;
}

.property-card__button {
    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    flex: 0 0 auto;

    padding: 0 11px;

    overflow: hidden;

    border-radius: 8px;

    background: linear-gradient(
        135deg,
        #d4a54b,
        #bf8527
    );

    box-shadow:
        0 5px 13px rgba(177, 119, 27, 0.18);

    color: #fff;
    text-decoration: none;

    transition:
        width 0.35s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.property-card__button-text {
    max-width: 0;
    overflow: hidden;

    opacity: 0;
    transform: translateX(8px);

    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        max-width 0.35s ease,
        opacity 0.2s ease 0.05s,
        transform 0.3s ease;
}

.property-card__button svg {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.3s ease;
}

.property-card__button:hover {
    width: 108px;

    box-shadow:
        0 8px 18px rgba(177, 119, 27, 0.28);
}

.property-card__button:hover
.property-card__button-text {
    max-width: 55px;

    opacity: 1;
    transform: translateX(0);
}

.property-card__button:hover svg {
    transform: translateX(2px);
}

/* Empty/error */

.home-properties__message {
    padding: 30px;
    border: 1px solid #e8e5df;
    border-radius: 10px;
    background: #fff;
    color: #667085;
    text-align: center;
}


/* Benefits */

.home-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 48px;
    padding: 34px 26px;
    border: 1px solid #eeeae4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 25px rgba(22, 29, 39, 0.045);
}

.home-benefit {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 0 22px;
}

.home-benefit:first-child {
    padding-left: 0;
}

.home-benefit:last-child {
    padding-right: 0;
}

.home-benefit:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    bottom: 8px;
    width: 1px;
    background: #ece8e1;
}

.home-benefit__icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee9e1;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 16px rgba(25, 31, 40, 0.06);
}

.home-benefit__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #bd872b;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-benefit h3 {
    margin: 0 0 6px;
    color: #151a23;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
}

.home-benefit p {
    margin: 0;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.5;
}


/* Responsive */

@media (max-width: 1180px) {

    .home-properties__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 0;
    }

    .home-benefit:nth-child(2)::after {
        display: none;
    }

}

@media (max-width: 700px) {

    .home-properties {
        padding: 44px 16px 56px;
    }

    .home-properties__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 26px;
    }

    .home-properties__all-link {
        margin-top: 0;
    }

    .home-properties__grid {
        grid-template-columns: 1fr;
    }

    .property-card__media {
        aspect-ratio: 1.35 / 1;
    }

    .home-benefits {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .home-benefit,
    .home-benefit:first-child,
    .home-benefit:last-child {
        padding: 0 0 24px;
    }

    .home-benefit:not(:last-child)::after {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: 1px;
    }

}

.property-card__title-row {
    min-height: 44px;
    align-items: flex-start;
}

.property-card__title-row h3 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    line-height: 1.3;
}

.property-card__title-row h3,
.property-card__price,
.home-properties__heading h2 {
    font-family: "Cormorant Garamond", serif;
}

.property-card,
.home-properties__all-link,
.home-benefit {
    font-family: "Manrope", sans-serif;
}
/* =========================================================
   PROPERTY CARDS - TYPOGRAPHY FINAL TUNING
========================================================= */

/* Тип на имота */
.property-card__type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
}


/* Заглавие на имота */
.property-card__title-row {
    min-height: 54px;
}

.property-card__title-row h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;

    color: #101827;
}


/* Ref. ID вдясно */
.property-card__ref {
    padding-top: 4px;

    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;

    color: #b77d1b;
    white-space: nowrap;
}


/* Локация */
.property-card__location {
    min-height: 38px;
    margin-top: 8px;

    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;

    color: #667085;
}


/* Квадратура / стаи / етаж */
.property-card__detail {
    gap: 6px;

    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 500;

    color: #475467;
}

.property-card__detail strong {
    font-size: 12px;
    font-weight: 700;

    color: #1d2939;
}


/* Малко по-големи икони */
.property-card__detail svg {
    width: 17px;
    height: 17px;
}


/* Цена */
.property-card__price {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;

    color: #c3943e;
    letter-spacing: -0.4px;
}


/* Продажба / Наем */
.property-card__badge {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
}

.property-label-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}
.property-card__labels .property-label-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    max-height: 18px;
    object-fit: contain !important;
    flex: 0 0 18px;
    display: block;
}

/* =========================================================
   PROPERTY CARD - NO IMAGE PLACEHOLDER
========================================================= */

.property-card__placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: linear-gradient(135deg, #172236, #28364e);
}

.property-card__media .property-card__placeholder-logo {
    display: block;

    width: 150px;
    max-width: 55%;
    height: auto;
    max-height: 90px;

    object-fit: contain;

    transform: none;
}

.property-card:hover .property-card__media .property-card__placeholder-logo {
    transform: none;
}
