/* =====================================
   Dar Arabia — Sale & Rent Properties
   ===================================== */

.dar-home-properties {
    position: relative;
    overflow: hidden;
    padding: 96px 0 104px;
    background: #ffffff;
}

.dar-home-properties::before {
    content: "";
    position: absolute;
    top: 10%;
    right: -180px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(219, 91, 43, .075),
            transparent 70%
        );
    pointer-events: none;
}

.dar-home-properties::after {
    content: "";
    position: absolute;
    left: -190px;
    bottom: 2%;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(40, 20, 111, .065),
            transparent 70%
        );
    pointer-events: none;
}

.dar-properties-section {
    position: relative;
    z-index: 2;
}

.dar-properties-section + .dar-properties-section {
    margin-top: 86px;
}

.dar-properties-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 29px;
}

.dar-properties-heading-copy {
    max-width: 760px;
}

.dar-properties-heading h2 {
    margin: 0 0 11px;
    color: var(--dar-primary);
    font-size: clamp(29px, 3.8vw, 46px);
    font-weight: 800;
    line-height: 1.45;
}

.dar-properties-heading h2 span {
    color: var(--dar-secondary);
}

.dar-properties-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--dar-muted);
    font-size: 14px;
    line-height: 1.95;
}

.dar-properties-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 47px;
    padding: 10px 18px;
    border: 1px solid rgba(40, 20, 111, .15);
    border-radius: 13px;
    background: #ffffff;
    color: var(--dar-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 9px 24px rgba(40, 20, 111, .06);
    transition:
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.dar-properties-view-all:hover {
    border-color: rgba(219, 91, 43, .35);
    color: var(--dar-secondary);
    box-shadow: 0 14px 31px rgba(40, 20, 111, .10);
    transform: translateY(-2px);
}

.dar-properties-view-all svg {
    width: 16px;
    height: 16px;
}

/* =====================================
   Property Grid
   ===================================== */

.dar-property-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dar-home-property-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #eae6ef;
    border-radius: 21px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(40, 20, 111, .075);
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

.dar-home-property-card:hover {
    border-color: rgba(219, 91, 43, .27);
    box-shadow: 0 22px 52px rgba(40, 20, 111, .13);
    transform: translateY(-5px);
}

.dar-home-property-media {
    position: relative;
    height: 210px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            var(--dar-primary),
            #4a2c9d
        );
}

.dar-home-property-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.dar-home-property-card:hover
.dar-home-property-media img {
    transform: scale(1.055);
}

.dar-home-property-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(16, 8, 43, .67) 100%
        );
    pointer-events: none;
}

.dar-property-placeholder {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.dar-property-placeholder::before {
    content: "";
    position: absolute;
    top: -55px;
    left: -55px;
    width: 180px;
    height: 180px;
    border: 30px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
}

.dar-property-placeholder-house {
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 68%;
    height: 62%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px 15px 0 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .20),
            rgba(255, 255, 255, .06)
        );
    transform: translateX(50%);
}

.dar-property-placeholder-house::before {
    content: "";
    position: absolute;
    top: -44px;
    right: 50%;
    width: 72%;
    height: 72px;
    border-radius: 9px;
    background: rgba(219, 91, 43, .43);
    transform:
        translateX(50%)
        rotate(45deg);
}

.dar-property-placeholder-house::after {
    content: "";
    position: absolute;
    inset: 16px 14px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, .18) 0 10px,
            transparent 10px 28px
        );
}

.dar-property-purpose-badge {
    position: absolute;
    z-index: 4;
    top: 13px;
    right: 13px;
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(9px);
}

.dar-property-purpose-sale {
    background: rgba(40, 20, 111, .90);
}

.dar-property-purpose-rent {
    background: rgba(219, 91, 43, .92);
}

.dar-property-favorite {
    position: absolute;
    z-index: 4;
    top: 13px;
    left: 13px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: var(--dar-primary);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.dar-property-favorite svg {
    width: 17px;
    height: 17px;
}

.dar-property-media-location {
    position: absolute;
    z-index: 4;
    right: 14px;
    bottom: 13px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.dar-property-media-location svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.dar-property-media-location span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dar-home-property-content {
    padding: 17px;
}

.dar-property-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 9px;
}

.dar-property-price strong {
    color: var(--dar-secondary);
    font-size: 19px;
    font-weight: 800;
}

.dar-property-price span {
    color: var(--dar-muted);
    font-size: 10px;
}

.dar-home-property-content h3 {
    display: -webkit-box;
    min-height: 45px;
    margin: 0;
    overflow: hidden;
    color: var(--dar-primary);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dar-property-project-name {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--dar-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dar-property-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 13px 0;
    margin-top: 14px;
    border-top: 1px solid #eeeaf2;
    border-bottom: 1px solid #eeeaf2;
}

.dar-property-spec {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    color: var(--dar-muted);
    font-size: 10px;
}

.dar-property-spec:not(:last-child) {
    border-left: 1px solid #eeeaf2;
}

.dar-property-spec svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--dar-primary);
}

.dar-property-spec strong {
    overflow: hidden;
    color: var(--dar-text);
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dar-property-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 41px;
    gap: 8px;
    margin-top: 14px;
}

.dar-property-details-button,
.dar-property-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 11px;
    text-decoration: none;
    transition:
        background .2s ease,
        transform .2s ease;
}

.dar-property-details-button {
    gap: 7px;
    padding: 8px 12px;
    background: var(--dar-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.dar-property-details-button:hover {
    background: var(--dar-secondary);
    transform: translateY(-1px);
}

.dar-property-details-button svg {
    width: 14px;
    height: 14px;
}

.dar-property-contact-button {
    border: 1px solid rgba(219, 91, 43, .22);
    background: rgba(219, 91, 43, .08);
    color: var(--dar-secondary);
}

.dar-property-contact-button:hover {
    background: var(--dar-secondary);
    color: #ffffff;
}

.dar-property-contact-button svg {
    width: 17px;
    height: 17px;
}

/* =====================================
   Skeleton
   ===================================== */

.dar-property-skeleton {
    overflow: hidden;
    min-height: 430px;
    border: 1px solid #eae6ef;
    border-radius: 21px;
    background: #ffffff;
}

.dar-property-skeleton-media {
    height: 210px;
}

.dar-property-skeleton-body {
    padding: 17px;
}

.dar-property-skeleton-line {
    height: 12px;
    margin-bottom: 11px;
    border-radius: 6px;
}

.dar-property-skeleton-price {
    width: 45%;
    height: 19px;
}

.dar-property-skeleton-title {
    width: 84%;
    height: 17px;
}

.dar-property-skeleton-short {
    width: 58%;
}

.dar-property-skeleton-block {
    position: relative;
    overflow: hidden;
    background: #efedf2;
}

.dar-property-skeleton-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .72),
            transparent
        );
    transform: translateX(-100%);
    animation: darPropertySkeleton 1.35s infinite;
}

@keyframes darPropertySkeleton {
    to {
        transform: translateX(100%);
    }
}

/* =====================================
   Messages
   ===================================== */

.dar-properties-empty {
    grid-column: 1 / -1;
    padding: 43px 23px;
    border: 1px dashed rgba(40, 20, 111, .20);
    border-radius: 21px;
    background: #faf9fb;
    text-align: center;
}

.dar-properties-empty-icon {
    display: grid;
    place-items: center;
    width: 57px;
    height: 57px;
    margin: 0 auto 14px;
    border-radius: 17px;
    background: rgba(40, 20, 111, .09);
    color: var(--dar-primary);
}

.dar-properties-empty-icon svg {
    width: 27px;
    height: 27px;
}

.dar-properties-empty strong {
    display: block;
    margin-bottom: 7px;
    color: var(--dar-primary);
    font-size: 16px;
}

.dar-properties-empty p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--dar-muted);
    font-size: 11px;
    line-height: 1.8;
}

/* =====================================
   Responsive
   ===================================== */

@media (max-width: 1120px) {
    .dar-property-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .dar-home-property-card:nth-child(4) {
        display: none;
    }
}

@media (max-width: 820px) {
    .dar-home-properties {
        padding: 74px 0 82px;
    }

    .dar-properties-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dar-properties-view-all {
        align-self: stretch;
    }

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

    .dar-home-property-card:nth-child(4) {
        display: block;
    }
}

@media (max-width: 560px) {
    .dar-property-grid {
        grid-template-columns: 1fr;
    }

    .dar-home-property-media,
    .dar-property-skeleton-media {
        height: 235px;
    }

    .dar-properties-section + .dar-properties-section {
        margin-top: 65px;
    }
}

/* DAR_HIDE_HOME_SALE_PRICE_START */

/*
 * إخفاء السعر من وحدات البيع في الرئيسية فقط.
 * سعر وحدات الإيجار يظل ظاهرًا.
 */
#selected-sale-properties .dar-property-price {
    display: none !important;
}

#selected-sale-properties .dar-home-property-content h3 {
    margin-top: 2px;
}

/* DAR_HIDE_HOME_SALE_PRICE_END */
