/* =========================================================
   PKL - Warehouses-2
   Laravel 12 / Responsive / RTL + LTR
   ========================================================= */

:root {
    --w2-cyan: #00c8f0;
    --w2-navy: #0d1b2a;
    --w2-dark-teal: #0e4144;
    --w2-off-white: #f7f7f7;
    --w2-royal-blue: #003768;
    --w2-steel-blue: #0047ab;
    --w2-soft-mint: #b5ecb7;
    --w2-text-muted: #9fb1c4;
    --w2-line: rgba(247, 247, 247, 0.11);
    --w2-shadow: 0 28px 80px rgba(13, 27, 42, 0.32);
}

.w2-page,
.w2-page * {
    box-sizing: border-box;
}

.w2-page {
    background: var(--w2-off-white);
    color: var(--w2-navy);
    min-height: 100vh;
    font-family: "Season VF", "Relaway", Arial, sans-serif;
    overflow-x: hidden;
}

.w2-page[lang="ar"] {
    font-family: "Tajawal", Arial, sans-serif;
}

.w2-container {
    width: min(1480px, calc(100% - 40px));
    margin-inline: auto;
}

.w2-hero {
    padding: clamp(34px, 5vw, 72px) 0 clamp(24px, 3vw, 42px);
}

.w2-eyebrow {
    margin: 0 0 10px;
    color: var(--w2-steel-blue);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.w2-page[dir="rtl"] .w2-eyebrow {
    letter-spacing: 0;
}

.w2-hero h1 {
    margin: 0;
    max-width: 900px;
    color: var(--w2-navy);
    font-size: clamp(2.2rem, 5vw, 5.7rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.w2-page[dir="rtl"] .w2-hero h1 {
    letter-spacing: 0;
    line-height: 1.15;
}

.w2-intro {
    max-width: 760px;
    margin: 18px 0 0;
    color: #42556a;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.8;
}

.w2-map-section {
    padding: 0 0 clamp(60px, 7vw, 110px);
}

.w2-container--map {
    width: min(1680px, calc(100% - 24px));
}

.w2-map-stage {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border-radius: clamp(20px, 3vw, 42px);
    background:
        linear-gradient(135deg, rgba(0, 200, 240, 0.08), rgba(13, 27, 42, 0.05)),
        #dfe7eb;
    box-shadow: 0 18px 70px rgba(13, 27, 42, 0.14);
    isolation: isolate;
}

.w2-map-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 420px;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.w2-map-svg {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: auto;
}

.w2-polygon {
    /*
     * Per-warehouse values are injected by Warehouses-2.js from the
     * ImageMapPro JSON.
     */
    fill: var(--w2-poly-fill, #00c8f0);
    fill-opacity: var(--w2-poly-fill-opacity, 0.50);

    stroke: var(--w2-poly-stroke, #FFFFFF);
    stroke-opacity: var(--w2-poly-stroke-opacity, 0.90);
    stroke-width: var(--w2-poly-stroke-width, 2px);

    vector-effect: non-scaling-stroke;
    paint-order: stroke fill;
    stroke-linejoin: round;
    stroke-linecap: round;

    cursor: pointer;
    outline: none;

    transition:
        fill 160ms ease,
        fill-opacity 160ms ease,
        stroke 160ms ease,
        stroke-opacity 160ms ease,
        stroke-width 160ms ease,
        filter 160ms ease;
}

.w2-polygon:hover,
.w2-polygon:focus-visible,
.w2-polygon.is-active {
    fill: var(--w2-poly-hover-fill, var(--w2-poly-fill, #00c8f0));
    fill-opacity: var(--w2-poly-hover-fill-opacity, 0.72);

    stroke: var(--w2-poly-hover-stroke, #FFFFFF);
    stroke-opacity: var(--w2-poly-hover-stroke-opacity, 1);
    stroke-width: var(--w2-poly-hover-stroke-width, 3px);

    filter: drop-shadow(0 4px 10px rgba(13, 27, 42, 0.28));
}

.w2-loading,
.w2-error {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-content: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
    color: var(--w2-navy);
    background: rgba(247, 247, 247, 0.88);
    backdrop-filter: blur(8px);
}

.w2-error[hidden],
.w2-loading[hidden] {
    display: none;
}

.w2-spinner {
    width: 38px;
    height: 38px;
    margin-inline: auto;
    border: 3px solid rgba(13, 27, 42, 0.12);
    border-top-color: var(--w2-cyan);
    border-radius: 50%;
    animation: w2-spin 0.8s linear infinite;
}

@keyframes w2-spin {
    to { transform: rotate(360deg); }
}

/* Card */
.w2-card {
    position: absolute;
    z-index: 24;
    width: min(370px, calc(100% - 28px));
    color: var(--w2-off-white);
    background:
        radial-gradient(circle at 100% 0, rgba(0, 200, 240, 0.11), transparent 33%),
        var(--w2-navy);
    border: 1px solid rgba(0, 200, 240, 0.22);
    border-radius: 23px;
    box-shadow: var(--w2-shadow);
    overflow: hidden;
    opacity: 0;
    transform: translate3d(10px, 10px, 0) scale(0.985);
    transition: opacity 150ms ease, transform 150ms ease;
    pointer-events: auto;
}

.w2-card[hidden] {
    display: none;
}

.w2-card.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.w2-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--w2-line);
}

.w2-card__title {
    margin: 0;
    min-width: 0;
    color: #fff;
    font-size: clamp(1.32rem, 1.75vw, 1.72rem);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.w2-page[dir="rtl"] .w2-card__title {
    letter-spacing: 0;
}

.w2-card__top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.w2-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(0, 200, 240, 0.35);
    border-radius: 999px;
    background: rgba(0, 200, 240, 0.10);
    color: var(--w2-off-white);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.w2-status[data-status="available"] {
    border-color: rgba(181, 236, 183, 0.42);
    background: rgba(181, 236, 183, 0.12);
    color: var(--w2-soft-mint);
}

.w2-status[data-status="reserved"],
.w2-status[data-status="booked"] {
    border-color: rgba(0, 200, 240, 0.38);
    background: rgba(0, 200, 240, 0.12);
    color: var(--w2-cyan);
}

.w2-status[data-status="unavailable"],
.w2-status[data-status="not_set"] {
    border-color: rgba(247, 247, 247, 0.16);
    background: rgba(247, 247, 247, 0.07);
    color: #c3cfdb;
}

.w2-card__close {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(247, 247, 247, 0.14);
    border-radius: 50%;
    background: rgba(247, 247, 247, 0.06);
    color: #fff;
    font: inherit;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.w2-card__body {
    padding: 2px 20px 0;
}

.w2-info-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
    align-items: center;
    gap: 12px;
    min-height: 52px;
    border-bottom: 1px solid var(--w2-line);
}

.w2-info-row__label {
    color: var(--w2-text-muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.w2-info-row__value {
    color: #fff;
    font-size: clamp(0.92rem, 1.05vw, 1.05rem);
    font-weight: 850;
    text-align: end;
}

.w2-card__actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    padding: 18px 20px 20px;
}

.w2-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 850;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.w2-btn:hover {
    transform: translateY(-2px);
}

.w2-btn--outline {
    border: 1px solid rgba(0, 200, 240, 0.58);
    background: rgba(0, 200, 240, 0.05);
    color: #fff;
}

.w2-btn--outline:hover {
    background: rgba(0, 200, 240, 0.12);
    color: #fff;
}

.w2-btn--primary {
    border: 1px solid var(--w2-cyan);
    background: var(--w2-cyan);
    color: var(--w2-navy);
}

.w2-btn[aria-disabled="true"] {
    pointer-events: none;
    border-color: rgba(247, 247, 247, 0.08);
    background: rgba(159, 177, 196, 0.24);
    color: #9eacba;
    transform: none;
}

.w2-btn__icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 900;
}

.w2-card-backdrop {
    display: none;
}



/* =========================================================
   Compact hover card — desktop
   ========================================================= */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
    .w2-card {
        width: min(370px, calc(100% - 28px));
        border-radius: 23px;
    }

    .w2-card__top {
        gap: 12px;
        padding: 18px 20px 16px;
    }

    .w2-card__title {
        font-size: clamp(1.32rem, 1.75vw, 1.72rem);
    }

    .w2-status {
        min-height: 36px;
        padding-inline: 13px;
        font-size: 0.78rem;
    }

    .w2-card__body {
        padding: 2px 20px 0;
    }

    .w2-info-row {
        grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
        gap: 12px;
        min-height: 52px;
    }

    .w2-info-row__label {
        font-size: 0.88rem;
    }

    .w2-info-row__value {
        font-size: clamp(0.92rem, 1.05vw, 1.05rem);
    }

    .w2-card__actions {
        gap: 10px;
        padding: 18px 20px 20px;
    }

    .w2-btn {
        min-height: 48px;
        padding-inline: 14px;
        border-radius: 15px;
        font-size: 0.88rem;
    }

    .w2-btn__icon {
        width: 22px;
        height: 22px;
        font-size: 0.72rem;
    }
}

/* Tablet / Touch */
@media (max-width: 991.98px), (hover: none), (pointer: coarse) {
    .w2-container {
        width: min(100% - 28px, 1480px);
    }

    .w2-container--map {
        width: min(100% - 16px, 1680px);
    }

    .w2-map-stage {
        min-height: 360px;
        overflow: hidden;
    }

    .w2-map-image {
        min-height: 360px;
        object-fit: cover;
    }

    .w2-card-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9998;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(13, 27, 42, 0.48);
        backdrop-filter: blur(3px);
    }

    .w2-card-backdrop[hidden] {
        display: none;
    }

    .w2-card {
        position: fixed !important;
        z-index: 9999;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: 12px;
        width: min(620px, calc(100% - 24px));
        max-height: min(82vh, 720px);
        overflow: auto;
        border-radius: 26px;
        transform: translate3d(-50%, 22px, 0) scale(0.99);
    }

    .w2-card.is-visible {
        transform: translate3d(-50%, 0, 0) scale(1);
    }

    .w2-card__close {
        display: inline-grid;
        place-items: center;
    }
}

@media (max-width: 575.98px) {
    .w2-hero {
        padding-top: 28px;
    }

    .w2-container {
        width: min(100% - 22px, 1480px);
    }

    .w2-map-stage,
    .w2-map-image {
        min-height: 300px;
    }

    .w2-card {
        bottom: 8px;
        width: calc(100% - 16px);
        border-radius: 24px;
    }

    .w2-card__top {
        padding: 20px 18px 16px;
    }

    .w2-card__body {
        padding: 2px 18px 0;
    }

    .w2-info-row {
        min-height: 58px;
        gap: 12px;
    }

    .w2-card__actions {
        grid-template-columns: 1fr;
        padding: 20px 18px 18px;
    }

    .w2-btn {
        min-height: 54px;
    }

    .w2-status {
        min-height: 38px;
        padding-inline: 13px;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .w2-spinner,
    .w2-card,
    .w2-polygon,
    .w2-btn {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   Warehouses-2: shell safety guards
   ========================================================= */

.warehouses-2-page .header-one img,
.warehouses-2-page .pkl-footer img {
    max-width: 100%;
    height: auto;
}

.warehouses-2-page .pkl-header-desktop-row {
    display: none !important;
}

.warehouses-2-page .pkl-header-mobile-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.warehouses-2-page .pkl-header-logo-host img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 132px !important;
    max-height: 58px !important;
}

.warehouses-2-page .header-one .menu-btn,
.warehouses-2-page .header-one .menu-btn img,
.warehouses-2-page .header-one .menu-light {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
}

.warehouses-2-page .pkl-footer svg {
    display: block;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
}

.warehouses-2-page .pkl-footer__social-link {
    width: 42px;
    height: 42px;
}

.warehouses-2-page .pkl-footer__back-top {
    width: 48px;
    height: 48px;
}

@media (min-width: 1200px) {
    .warehouses-2-page .pkl-header-desktop-row {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .warehouses-2-page .pkl-header-mobile-row {
        display: none !important;
    }
}


/* =========================================================
   Warehouse-Projects-2 map roles
   ========================================================= */

/* "Warehouses sold" is a visual zoning layer only.
   It must not block hover/click on individual warehouses. */
.w2-polygon--decorative {
    pointer-events: none;
    cursor: default;
}

/* Warehouse 1–13 remain interactive. */
.w2-polygon--warehouse {
    pointer-events: auto;
}


/* Sold status badge */
.w2-status[data-status="sold"] {
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(168, 85, 247, 0.16);
    color: #d8b4fe;
}

/* Interactive grouped polygon such as "Warehouses Sold". */
.w2-polygon--warehouse-group {
    pointer-events: auto;
}


.w2-server-error {
    margin: 16px auto;
    width: min(1480px, calc(100% - 40px));
    padding: 16px 18px;
    border: 1px solid rgba(185, 28, 28, 0.25);
    border-radius: 14px;
    background: rgba(185, 28, 28, 0.06);
    color: #7f1d1d;
    font-size: 0.92rem;
    line-height: 1.6;
}

.w2-server-error code {
    font-family: monospace;
    overflow-wrap: anywhere;
}


/* =========================================================
   Arabic card RTL layout
   ========================================================= */

/* Entire card follows Arabic reading direction. */
.w2-page[dir="rtl"] .w2-card {
    direction: rtl;
    text-align: right;
}

/* Title stays on the right, status stays on the left. */
.w2-page[dir="rtl"] .w2-card__top {
    direction: rtl;
}

.w2-page[dir="rtl"] .w2-card__title {
    text-align: right;
}

.w2-page[dir="rtl"] .w2-card__top-actions,
.w2-page[dir="rtl"] .w2-status {
    direction: rtl;
}

/*
 * Arabic information rows:
 * label = right
 * value = left
 *
 * The row itself is forced LTR only for physical column placement.
 * Each text cell gets its own correct reading direction.
 */
.w2-page[dir="rtl"] .w2-info-row {
    direction: ltr;
    grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
}

.w2-page[dir="rtl"] .w2-info-row__label {
    grid-column: 2;
    grid-row: 1;
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
    justify-self: stretch;
}

.w2-page[dir="rtl"] .w2-info-row__value {
    grid-column: 1;
    grid-row: 1;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
    justify-self: start;
    white-space: nowrap;
}

/*
 * Arabic action buttons:
 * More Details = right
 * Book Now     = left
 */
.w2-page[dir="rtl"] .w2-card__actions {
    direction: ltr;
    grid-template-columns: 1.35fr 1fr;
}

.w2-page[dir="rtl"] .w2-btn--outline {
    grid-column: 2;
    grid-row: 1;
    direction: rtl;
}

.w2-page[dir="rtl"] .w2-btn--primary {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
}

/* Keep mixed Arabic / Latin content clean. */
.w2-page[dir="rtl"] .w2-card__title,
.w2-page[dir="rtl"] .w2-info-row__label,
.w2-page[dir="rtl"] .w2-status,
.w2-page[dir="rtl"] .w2-btn {
    unicode-bidi: plaintext;
}

/* On small phones actions are stacked; restore natural RTL text flow. */
@media (max-width: 575.98px) {
    .w2-page[dir="rtl"] .w2-card__actions {
        direction: rtl;
        grid-template-columns: 1fr;
    }

    .w2-page[dir="rtl"] .w2-btn--outline,
    .w2-page[dir="rtl"] .w2-btn--primary {
        grid-column: 1;
        grid-row: auto;
    }
}
