/* AlZakri website: readability and mobile fixes on top of the theme. */

/* Body text was weight 300, too thin to read on phones. */
p,
.text,
.list-text,
.paragraph,
.pParagraph {
    font-weight: 400;
}

/* Icon glyphs are left-to-right characters and pulled the numbers next to them to the wrong side. */
[class^="flaticon-"],
[class*=" flaticon-"],
.fas, .far, .fal, .fab {
    unicode-bidi: isolate;
}

.listing-style1 .list-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.listing-style1 .list-meta > span > span {
    margin: 0;
}

/* Arabic placeholders of phone / email fields were left aligned. */
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"] {
    direction: rtl;
    text-align: right;
}

/* Title rows on the unit / project pages */
.azk-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
}

.azk-meta > * {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.azk-status {
    padding: 2px 14px;
    border-radius: 20px;
    font-family: var(--title-font-family);
    font-weight: 600;
    font-size: 14px;
    background: #e7f5ec;
    color: #17693a;
}

.azk-status.reserved { background: #fdf1dd; color: #865728; }
.azk-status.sold { background: #1d4b8f; color: #fff; }
.azk-status.unavailable,
.azk-status.coming_soon,
.azk-status.preparing { background: #eceff4; color: #475569; }

/* Label / value lists */
.azk-info-list .item .label { flex-shrink: 0; max-width: 50%; }
.azk-info-list .item .text { text-align: end; overflow-wrap: anywhere; }

/* Gallery */
.azk-gallery-stage { position: relative; border-radius: 12px; overflow: hidden; background: #e9edf4; }

.azk-gallery-track {
    display: flex;
    direction: ltr;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.azk-gallery-track::-webkit-scrollbar { display: none; }

.azk-gallery-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.azk-gallery-stage .azk-gallery-slide { aspect-ratio: 16 / 9; max-height: 560px; cursor: zoom-in; }
.azk-gallery-slide img { width: 100%; height: 100%; object-fit: contain; }

.azk-gallery-arrow,
.azk-lightbox-close {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1d4b8f;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.azk-gallery-arrow { top: 50%; transform: translateY(-50%); }
.azk-gallery-arrow.left { left: 12px; }
.azk-gallery-arrow.right { right: 12px; }

.azk-gallery-count {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 12px;
    border-radius: 20px;
    background: rgba(13, 27, 62, .75);
    color: #fff;
    font-size: 13px;
}

.azk-gallery-thumbs { position: relative; display: flex; direction: ltr; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px; }

.azk-gallery-thumbs button {
    flex: 0 0 96px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #e9edf4;
    opacity: .7;
}

.azk-gallery-thumbs button.active { border-color: #1d4b8f; opacity: 1; }
.azk-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.azk-lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0b1220;
}

.azk-lightbox .azk-gallery-track { height: 100%; }
.azk-lightbox .azk-gallery-slide { height: 100%; }
.azk-lightbox .azk-gallery-slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.azk-lightbox .azk-gallery-count { bottom: 24px; }
.azk-lightbox-close { top: 16px; right: 16px; }

/* Pagination */
.azk-pagination { margin-top: 40px; text-align: center; }
.azk-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }

.azk-pagination a,
.azk-pagination li span {
    display: block;
    min-width: 42px;
    padding: 7px 14px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    background: #fff;
    color: var(--headings-color);
    font-weight: 600;
}

.azk-pagination a:hover { border-color: #1d4b8f; color: #1d4b8f; }
.azk-pagination li span.active { border-color: #1d4b8f; background: #1d4b8f; color: #fff; }
.azk-pagination li span.disabled { opacity: .45; }
.azk-pagination li span.dots { border-color: transparent; background: none; padding-inline: 4px; min-width: 0; }
.azk-pagination p { margin: 0; font-size: 14px; }

/* Search on map */
.azk-map-filter { display: flex; gap: 8px; }
.azk-map-filter .ud-btn { flex: 1 1 0; min-width: 0; padding: 8px 6px; text-align: center; white-space: nowrap; }
.azk-map-list { max-height: 650px; overflow-y: auto; }
#searchMap { height: 650px; width: 100%; }

@media (max-width: 991.98px) {
    /* The mobile header is not floating over the page, so the big top gap is not needed. */
    .pt150.pt120-md { padding-top: 40px !important; }
    #searchMap { height: 60vh; min-height: 320px; }
    .azk-map-list { max-height: none; }
    .mobile_logo img { height: 40px; width: auto; }
}

@media (max-width: 767.98px) {
    .ps-widget.p30,
    .default-box-shadow1.p30 { padding: 20px !important; }

    .scrollToHome { width: 40px; height: 40px; line-height: 40px; background-color: #fff; }
    .scrollToHome.show { left: 12px; bottom: 16px; }

    .azk-gallery-arrow { width: 36px; height: 36px; }
    .azk-gallery-thumbs button { flex-basis: 76px; height: 52px; }
}
