/* Student Housing Marketplace — Public CSS v1.3.5
 * Design: Modern Blue & White (Airbnb/Material style)
 * ---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   RESET
---------------------------------------------------------------- */
.shm-wrap button:not(.shm-btn),
.shm-wrap button:not(.shm-btn):hover,
.shm-wrap button:not(.shm-btn):focus,
.shm-card-wrap button:not(.shm-btn),
.shm-card-wrap button:not(.shm-btn):hover,
.shm-card-wrap button:not(.shm-btn):focus,
.shm-single-wrap button:not(.shm-btn),
.shm-single-wrap button:not(.shm-btn):hover,
.shm-accordion button:not(.shm-btn),
.shm-accordion button:not(.shm-btn):hover,
.shm-modal-box button:not(.shm-btn),
.shm-modal-box button:not(.shm-btn):hover {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
}

/* ----------------------------------------------------------------
   VARIABLES — defined at :root so they work on ALL elements
---------------------------------------------------------------- */
:root {
    --shm-blue: #1a56db;
    --shm-blue-dark: #1140a6;
    --shm-blue-light: #eff6ff;
    --shm-blue-border: #bfdbfe;
    --shm-text: #111827;
    --shm-text-2: #4b5563;
    --shm-text-3: #9ca3af;
    --shm-border: #e5e7eb;
    --shm-bg: #f9fafb;
    --shm-white: #ffffff;
    --shm-green: #059669;
    --shm-amber: #d97706;
    --shm-red: #dc2626;
    --shm-radius: 14px;
    --shm-shadow: 0 2px 12px rgba(0,0,0,.07);
    --shm-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* ----------------------------------------------------------------
   BASE
---------------------------------------------------------------- */
.shm-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.shm-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', Arial, sans-serif;
    font-size: 15px;
    color: var(--shm-text);
    line-height: 1.6;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.shm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    letter-spacing: .2px;
}
.shm-btn:hover { transform: translateY(-1px); }
.shm-btn:active { transform: scale(.97); }
.shm-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.shm-btn-lg { height: 50px; padding: 0 28px; font-size: 16px; font-weight: 700; }
.shm-btn-full { width: 100%; justify-content: center; }

.shm-btn-primary { background: var(--shm-blue); color: #fff; }
.shm-btn-primary:hover { background: var(--shm-blue-dark); box-shadow: 0 6px 20px rgba(26,86,219,.35); }

.shm-btn-ghost { background: transparent; color: var(--shm-text-2); border: 1.5px solid var(--shm-border); }
.shm-btn-ghost:hover { background: var(--shm-bg); color: var(--shm-text); }

.shm-btn-outline { background: var(--shm-white); color: var(--shm-blue); border: 1.5px solid var(--shm-blue); }
.shm-btn-outline:hover { background: var(--shm-blue-light); }

.shm-btn-danger { background: #fee2e2; color: var(--shm-red); }
.shm-btn-danger:hover { background: #fecaca; }

/* ----------------------------------------------------------------
   NOTICE / ALERT
---------------------------------------------------------------- */
.shm-notice {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}
.shm-notice-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.shm-notice-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.shm-notice-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.shm-notice-info    { background: var(--shm-blue-light); color: var(--shm-blue-dark); border: 1px solid var(--shm-blue-border); }

/* ----------------------------------------------------------------
   SEARCH / FILTER BAR
---------------------------------------------------------------- */
.shm-search-bar {
    background: var(--shm-white);
    border: 1px solid var(--shm-border);
    border-radius: var(--shm-radius);
    padding: 20px 24px;
    margin-bottom: 28px;
    box-shadow: var(--shm-shadow);
}
.shm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.shm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 150px;
    min-width: 130px;
}
.shm-filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--shm-text-2);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.shm-filter-group input,
.shm-filter-group select {
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid var(--shm-border);
    border-radius: 9px;
    font-size: 14px;
    color: var(--shm-text);
    background: var(--shm-white);
    transition: border-color .2s;
    outline: none;
}
.shm-filter-group input:focus,
.shm-filter-group select:focus { border-color: var(--shm-blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.shm-price-inputs { display: flex; align-items: center; gap: 6px; }
.shm-price-inputs input { flex: 1; }
.shm-price-sep { color: var(--shm-text-3); font-size: 13px; flex-shrink: 0; }
.shm-filter-submit { flex-direction: row; align-items: flex-end; gap: 8px; flex: 0 0 auto; }

/* ----------------------------------------------------------------
   RESULTS COUNT
---------------------------------------------------------------- */
.shm-results-count {
    font-size: 13px;
    color: var(--shm-text-2);
    margin-bottom: 16px;
    font-weight: 500;
}

/* ----------------------------------------------------------------
   LISTINGS GRID
---------------------------------------------------------------- */
.shm-grid {
    display: grid;
    /* Fix layout: minmax(280px, 1fr) بدل 290px — يناسب موبايلات 360px عرضها */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}
.shm-loading { opacity: .5; pointer-events: none; transition: opacity .3s; }

/* ----------------------------------------------------------------
   CARD
---------------------------------------------------------------- */
.shm-card-wrap { display: flex; flex-direction: column; }

.shm-card {
    position: relative;
    background: var(--shm-white);
    border: 1px solid var(--shm-border);
    border-radius: var(--shm-radius);
    overflow: hidden;
    transition: box-shadow .22s, transform .22s;
    cursor: pointer;
}
.shm-card:hover {
    box-shadow: 0 10px 36px rgba(0,0,0,.13);
    transform: translateY(-4px);
}
.shm-card-featured { border-color: var(--shm-amber); box-shadow: 0 0 0 2px rgba(217,119,6,.2); }

/* Badges */
.shm-featured-badge {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.shm-card-type-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,.62);
    color: #fff; font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 20px;
    z-index: 2;
}

/* Image — aspect-ratio بدل fixed height لتكون متجاوبة */
.shm-card-img-wrap {
    display: block;
    width: 100%;
    /* Fix: aspect-ratio بدل height:200px — يحافظ على النسبة في كل الشاشات */
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #e5e7eb;
    position: relative;
}
.shm-card-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.shm-card-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; background: #f3f4f6;
}

/* Card body */
.shm-card-body { padding: 16px; }
.shm-card-title {
    font-size: 15px; font-weight: 700;
    color: var(--shm-text); line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shm-card-title a { color: inherit; text-decoration: none; }
.shm-card-title a:hover { color: var(--shm-blue); }

.shm-card-location {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--shm-text-2); margin-bottom: 8px;
}
.shm-card-location svg { flex-shrink: 0; fill: var(--shm-text-3); }

.shm-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.shm-tag { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; letter-spacing: .3px; }
.shm-tag-gender { background: #ede9fe; color: #7c3aed; }
.shm-tag-male   { background: #dbeafe; color: #1d4ed8; }
.shm-tag-female { background: #fce7f3; color: #be185d; }
.shm-tag-univ   { background: #d1fae5; color: #065f46; }

/* Card footer */
.shm-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
.shm-price { display: flex; align-items: baseline; gap: 3px; }
.shm-price-amount { font-size: 20px; font-weight: 800; color: var(--shm-text); }
.shm-price-currency { font-size: 12px; font-weight: 700; color: var(--shm-text-2); }
.shm-price-period { font-size: 11px; color: var(--shm-text-3); }

/* View Details button */
.shm-btn-view-details {
    display: inline-flex; align-items: center; gap: 5px;
    height: 36px; padding: 0 14px;
    background: var(--shm-blue-light); color: var(--shm-blue);
    border: 1.5px solid var(--shm-blue-border);
    border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: all .18s; flex-shrink: 0;
}
.shm-btn-view-details:hover { background: var(--shm-blue); color: #fff; }

/* ----------------------------------------------------------------
   ACCORDION
---------------------------------------------------------------- */
.shm-accordion {
    display: none;
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease;
    background: var(--shm-white);
    border: 1px solid var(--shm-blue-border);
    border-top: none;
    border-radius: 0 0 var(--shm-radius) var(--shm-radius);
    box-shadow: var(--shm-shadow-lg);
}
.shm-accordion.shm-acc-open { display: block; }
.shm-accordion-inner { padding: 0 0 20px; }

/* Accordion gallery */
.shm-acc-gallery { position: relative; width: 100%; background: #000; margin-bottom: 16px; }
.shm-acc-slides { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.shm-acc-slide {
    position: absolute !important; inset: 0;
    opacity: 0; transition: opacity .3s;
    pointer-events: none;
}
.shm-acc-slide.active { opacity: 1; pointer-events: auto; }
.shm-acc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shm-acc-arrow {
    position: absolute !important; top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important; height: 38px !important;
    min-width: 0 !important; max-width: none !important;
    background: rgba(0,0,0,.6) !important;
    border: none !important; border-radius: 50% !important;
    color: #fff !important; cursor: pointer !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important; z-index: 20 !important;
    transition: background .18s !important;
    backdrop-filter: blur(4px);
    padding: 0 !important; outline: none !important; box-shadow: none !important;
}
.shm-acc-arrow:hover { background: rgba(0,0,0,.85) !important; }
.shm-acc-arrow svg { display: block !important; pointer-events: none; }
.shm-acc-prev { left: 10px !important; right: auto !important; }
.shm-acc-next { right: 10px !important; left: auto !important; }

.shm-acc-dots {
    position: absolute !important; bottom: 10px !important;
    left: 50% !important; transform: translateX(-50%) !important;
    display: flex !important; gap: 6px; z-index: 20 !important;
    padding: 0 !important; margin: 0 !important;
}
.shm-acc-dot {
    display: block !important;
    width: 8px !important; height: 8px !important;
    min-width: 0 !important; max-width: none !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.5) !important;
    border: none !important; cursor: pointer !important;
    padding: 0 !important; outline: none !important; box-shadow: none !important;
    transition: background .2s, transform .2s;
}
.shm-acc-dot.active { background: #fff !important; transform: scale(1.35) !important; }

.shm-acc-counter {
    position: absolute !important; top: 10px !important; right: 10px !important;
    background: rgba(0,0,0,.6) !important; color: #fff !important;
    font-size: 12px !important; font-weight: 600 !important;
    padding: 3px 9px !important; border-radius: 20px !important;
    z-index: 20 !important; backdrop-filter: blur(4px);
}

/* Accordion details */
.shm-acc-details { padding: 0 16px; }
.shm-acc-meta {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    font-size: 13px; color: var(--shm-text-2); margin-bottom: 12px;
}
.shm-acc-meta-item { display: flex; align-items: center; gap: 5px; }
.shm-acc-desc {
    font-size: 14px; color: #374151; line-height: 1.65;
    margin-bottom: 16px; max-height: 120px; overflow-y: auto;
    border-top: 1px solid #f3f4f6; padding-top: 12px;
}
.shm-acc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.shm-acc-btn-phone,
.shm-acc-btn-wa,
.shm-acc-btn-full {
    display: inline-flex; align-items: center; gap: 7px;
    height: 40px; padding: 0 16px; border-radius: 9px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    text-decoration: none; border: none;
    transition: all .18s;
}
.shm-acc-btn-phone:hover, .shm-acc-btn-wa:hover, .shm-acc-btn-full:hover { transform: translateY(-1px); }
.shm-acc-btn-phone { background: var(--shm-blue); color: #fff; }
.shm-acc-btn-phone:hover { background: var(--shm-blue-dark); box-shadow: 0 4px 14px rgba(26,86,219,.3); }
.shm-acc-btn-phone.shm-phone-revealed { background: var(--shm-green); }
.shm-acc-btn-wa { background: #25d366; color: #fff; }
.shm-acc-btn-wa:hover { background: #1ebe5d; box-shadow: 0 4px 14px rgba(37,211,102,.3); }
.shm-acc-btn-full { background: var(--shm-bg); color: var(--shm-text-2); border: 1px solid var(--shm-border); }
.shm-acc-btn-full:hover { background: var(--shm-border); }

/* ----------------------------------------------------------------
   AUTH FORMS (صفحات مستقلة)
---------------------------------------------------------------- */
.shm-auth-wrap * { box-sizing: border-box; }
.shm-auth-card {
    max-width: 440px; margin: 48px auto;
    background: var(--shm-white);
    border: 1px solid var(--shm-border);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: var(--shm-shadow-lg);
}
.shm-auth-card h2 {
    font-size: 24px; font-weight: 800; color: var(--shm-text);
    margin-bottom: 28px; text-align: center;
}

/* FORM GROUPS */
.shm-form-group { margin-bottom: 18px; }
.shm-form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--shm-text-2); margin-bottom: 6px;
}
.shm-form-group input,
.shm-form-group select,
.shm-form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--shm-border);
    border-radius: 10px; font-size: 14px;
    color: var(--shm-text); outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: var(--shm-white); font-family: inherit;
}
.shm-form-group input:focus,
.shm-form-group select:focus,
.shm-form-group textarea:focus {
    border-color: var(--shm-blue);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.shm-form-group textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.shm-form-group small { font-size: 12px; color: var(--shm-text-3); margin-top: 4px; display: block; }

.shm-pw-wrap { position: relative; }
.shm-pw-wrap input { padding-right: 42px; }
.shm-pw-toggle {
    position: absolute !important; right: 12px !important; top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important; border: none !important;
    cursor: pointer !important; font-size: 16px !important;
    color: var(--shm-text-3) !important; padding: 0 !important;
    outline: none !important; line-height: 1 !important;
}

.shm-forgot-link {
    display: block; font-size: 13px; color: var(--shm-blue);
    text-align: right; text-decoration: none; margin-bottom: 18px;
}
.shm-forgot-link:hover { text-decoration: underline; }

.shm-auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: var(--shm-text-2); }
.shm-auth-links a { color: var(--shm-blue); font-weight: 600; text-decoration: none; }
.shm-auth-links a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
   AUTH MODAL (Popup) — Modern Purple/Gradient Design
---------------------------------------------------------------- */
.shm-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
body.shm-modal-open { overflow: hidden; }

.shm-modal-box {
    background: var(--shm-white);
    border-radius: 24px;
    width: 100%; max-width: 420px;
    max-height: 92vh; overflow-y: auto;
    padding: 36px 32px 28px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,.28);
    animation: shmModalIn .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes shmModalIn {
    from { opacity: 0; transform: translateY(32px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.shm-modal-close {
    position: absolute !important; top: 14px !important; left: 14px !important;
    width: 34px !important; height: 34px !important;
    background: #f3f4f6 !important; border: none !important;
    border-radius: 50% !important; font-size: 18px !important;
    cursor: pointer !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
    color: #6b7280 !important; padding: 0 !important;
    transition: background .18s !important; line-height: 1 !important;
    right: auto !important;
}
.shm-modal-close:hover { background: #e5e7eb !important; color: #111 !important; }

/* Hero section */
.shm-modal-hero {
    text-align: center; margin-bottom: 26px;
}
.shm-modal-hero-circle {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 30px; line-height: 1;
    box-shadow: 0 8px 24px rgba(124,58,237,.4);
}
.shm-modal-hero h3 {
    font-size: 22px; font-weight: 800; color: var(--shm-text);
    margin: 0 0 6px; line-height: 1.2;
}
.shm-modal-hero p {
    font-size: 14px; color: var(--shm-text-2); margin: 0; line-height: 1.5;
}

/* Icon input wrapper */
.shm-input-icon-wrap { position: relative; }
.shm-input-icon-wrap input {
    padding-right: 42px !important;
}
.shm-input-icon {
    position: absolute; right: 13px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; font-size: 15px;
    pointer-events: none; line-height: 1; z-index: 1;
}
/* When input also has pw-toggle on left side */
.shm-pw-wrap.shm-input-icon-wrap input {
    padding-right: 42px !important;
    padding-left: 40px !important;
}
.shm-pw-wrap .shm-pw-toggle {
    position: absolute !important; left: 12px !important; right: auto !important;
    top: 50% !important; transform: translateY(-50%) !important;
    background: none !important; border: none !important;
    cursor: pointer !important; font-size: 16px !important;
    color: var(--shm-text-3) !important; padding: 0 !important;
    outline: none !important; line-height: 1 !important;
}

/* Gradient button — Purple to Pink */
.shm-btn-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    color: #fff !important; border: none !important;
    box-shadow: 0 4px 18px rgba(124,58,237,.38);
    font-size: 16px !important; font-weight: 700 !important;
    letter-spacing: .3px;
}
.shm-btn-gradient:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 50%, #db2777 100%);
    box-shadow: 0 6px 24px rgba(124,58,237,.5);
    transform: translateY(-1px);
}
.shm-btn-gradient:active { transform: scale(.98); }

/* Switch link (ليس لديك حساب؟) */
.shm-modal-switch {
    text-align: center; margin-top: 20px;
    font-size: 14px; color: var(--shm-text-2);
}
.shm-modal-switch a {
    color: #7c3aed; font-weight: 700;
    text-decoration: none; cursor: pointer;
}
.shm-modal-switch a:hover { text-decoration: underline; }

/* Forgot password link */
.shm-forgot-link {
    display: block; font-size: 13px; color: #7c3aed;
    text-align: left; text-decoration: none; margin-bottom: 18px;
}
.shm-forgot-link:hover { text-decoration: underline; }

/* Form group inside modal */
.shm-mtab-content .shm-form-group { margin-bottom: 16px; }
.shm-mtab-content .shm-form-group label {
    font-size: 13px; font-weight: 600; color: var(--shm-text);
    margin-bottom: 6px; display: block;
}
.shm-mtab-content .shm-form-group input {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: 14px; color: var(--shm-text); outline: none;
    transition: border-color .2s, box-shadow .2s; font-family: inherit;
    background: #fafafa;
}
.shm-mtab-content .shm-form-group input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
    background: #fff;
}

/* Login/Register trigger buttons */
.shm-auth-trigger-bar {
    display: flex; gap: 10px; align-items: center;
    justify-content: center; padding: 12px 0;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   CURRENCY PREFIX INPUT
---------------------------------------------------------------- */
.shm-prefix-wrap { position: relative; }
.shm-prefix-wrap input { padding-right: 58px !important; }
.shm-input-prefix {
    position: absolute; right: 0; top: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    width: 50px; background: var(--shm-blue-light);
    border-left: none; border-right: 1.5px solid var(--shm-border);
    border-radius: 0 10px 10px 0;
    font-size: 13px; font-weight: 700; color: var(--shm-blue);
    pointer-events: none;
}

/* ----------------------------------------------------------------
   FORM SECTIONS — Flat Design (no box background)
---------------------------------------------------------------- */
.shm-form-section {
    border-top: 2px solid var(--shm-blue-light);
    padding: 20px 0 4px; margin-bottom: 8px;
    background: none;
}
.shm-form-section:first-of-type { border-top: none; padding-top: 0; }
.shm-form-section-title {
    font-size: 12px; font-weight: 800; color: #7c3aed;
    text-transform: uppercase; letter-spacing: .8px;
    margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}

/* ----------------------------------------------------------------
   LIGHTBOX
---------------------------------------------------------------- */
/* jQuery SHMLightbox (accordion cards) — مش يتعارض مع v2 inline lightbox */
#shm-lightbox:not(.shm-lightbox) {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
.shm-lb-img-wrap {
    max-width: 90vw; max-height: 85vh;
    display: flex; align-items: center; justify-content: center;
}
#shm-lb-img {
    max-width: 100%; max-height: 85vh;
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0,0,0,.5);
    transition: opacity .2s;
}
#shm-lb-img.shm-lb-fade { opacity: 0; }

.shm-lb-close {
    position: fixed !important; top: 16px !important; right: 16px !important;
    width: 44px !important; height: 44px !important;
    background: rgba(255,255,255,.15) !important;
    border: 2px solid rgba(255,255,255,.3) !important;
    border-radius: 50% !important; color: #fff !important;
    font-size: 22px !important; cursor: pointer !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important; z-index: 10 !important;
    transition: background .18s !important;
    backdrop-filter: blur(4px);
}
.shm-lb-close:hover { background: rgba(255,255,255,.25) !important; }

.shm-lb-prev,
.shm-lb-next {
    position: fixed !important; top: 50% !important;
    transform: translateY(-50%) !important;
    width: 52px !important; height: 52px !important;
    background: rgba(255,255,255,.15) !important;
    border: 2px solid rgba(255,255,255,.3) !important;
    border-radius: 50% !important; color: #fff !important;
    font-size: 20px !important; cursor: pointer !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important; z-index: 10 !important;
    transition: background .18s !important;
    backdrop-filter: blur(4px);
}
.shm-lb-prev:hover, .shm-lb-next:hover { background: rgba(255,255,255,.3) !important; }
.shm-lb-prev { left: 16px !important; right: auto !important; }
.shm-lb-next { right: 16px !important; left: auto !important; }

.shm-lb-counter {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,.15); color: #fff;
    font-size: 14px; font-weight: 600;
    padding: 6px 18px; border-radius: 20px;
    backdrop-filter: blur(4px); z-index: 10;
}

/* ----------------------------------------------------------------
   GUEST CARD — shown when user is not logged in
---------------------------------------------------------------- */
.shm-guest-card {
    max-width: 480px; margin: 48px auto;
    background: var(--shm-white);
    border: 1px solid var(--shm-border);
    border-radius: 24px; padding: 52px 40px;
    box-shadow: var(--shm-shadow-lg);
    text-align: center;
}
.shm-guest-icon { font-size: 60px; margin-bottom: 18px; display: block; line-height: 1; }
.shm-guest-card h2 {
    font-size: 24px; font-weight: 800;
    color: var(--shm-text); margin: 0 0 10px;
}
.shm-guest-card p {
    font-size: 15px; color: var(--shm-text-2);
    margin: 0 0 32px; line-height: 1.6;
}
.shm-guest-btns {
    display: flex; flex-direction: column; gap: 12px;
    align-items: stretch;
}
.shm-guest-btns .shm-btn { width: 100%; justify-content: center; }

/* ----------------------------------------------------------------
   DIRECT IMAGE UPLOAD
---------------------------------------------------------------- */
.shm-image-uploader {
    border: 2px dashed var(--shm-border);
    border-radius: 12px; padding: 20px;
    background: var(--shm-bg); transition: border-color .2s;
}
.shm-image-uploader:hover { border-color: var(--shm-blue); }

/* Label-style upload button — يعمل على كل المتصفحات */
label.shm-upload-label {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 20px;
    background: var(--shm-white); color: var(--shm-blue);
    border: 1.5px solid var(--shm-blue);
    border-radius: 10px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .18s;
    white-space: nowrap; user-select: none;
}
label.shm-upload-label:hover { background: var(--shm-blue-light); }
label.shm-upload-label.shm-upload-disabled {
    opacity: .45; cursor: not-allowed; pointer-events: none;
}
.shm-image-previews {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 14px; min-height: 10px;
}
.shm-img-preview {
    position: relative; width: 84px; height: 66px;
    border-radius: 8px; overflow: hidden;
    border: 2px solid var(--shm-border); background: var(--shm-bg);
}
.shm-img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shm-img-remove {
    position: absolute !important; top: 3px !important; right: 3px !important;
    width: 20px !important; height: 20px !important; min-width: 0 !important;
    background: rgba(220,38,38,.85) !important; color: #fff !important;
    border: none !important; border-radius: 50% !important;
    font-size: 11px !important; cursor: pointer !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important; padding: 0 !important; z-index: 2 !important;
}
.shm-img-remove:hover { background: #b91c1c !important; }

/* Upload spinner */
.shm-uploading { opacity: .7; }
.shm-upload-spinner {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.6);
}
.shm-upload-spinner::after {
    content: '';
    width: 22px; height: 22px;
    border: 3px solid var(--shm-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: shm-spin .7s linear infinite;
}
@keyframes shm-spin { to { transform: rotate(360deg); } }

.shm-upload-hint {
    font-size: 12px; color: var(--shm-text-3);
    margin-top: 8px; text-align: center;
}
#shmImageCounter {
    font-size: 12px; color: var(--shm-text-2);
    font-weight: 600; margin-top: 8px; display: block;
}

/* ----------------------------------------------------------------
   DASHBOARD
---------------------------------------------------------------- */
.shm-dashboard-wrap * { box-sizing: border-box; }
.shm-dashboard-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', Arial, sans-serif;
    color: var(--shm-text);
}

.shm-dashboard-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
    background: linear-gradient(135deg, #1140a6 0%, #1a56db 60%, #3b82f6 100%);
    border-radius: 18px; padding: 26px 30px; color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(26,86,219,.35);
}
.shm-dashboard-welcome { display: flex; align-items: center; gap: 16px; }
.shm-avatar {
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(255,255,255,.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff;
    flex-shrink: 0; border: 2px solid rgba(255,255,255,.5);
    text-transform: uppercase;
}
.shm-dashboard-welcome h2 { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.shm-dashboard-sub { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }
.shm-dashboard-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.shm-dash-stat {
    background: rgba(255,255,255,.15); border-radius: 12px;
    padding: 12px 20px; text-align: center; min-width: 80px;
    border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px);
}
.shm-dash-stat-num { display: block; font-size: 24px; font-weight: 800; color: #fff; line-height: 1; }
.shm-dash-stat-lbl { display: block; font-size: 11px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* Nav tabs */
.shm-dashboard-nav {
    display: flex; gap: 4px; background: #f3f4f6;
    border-radius: 12px; padding: 5px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.shm-tab-link {
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--shm-text-2);
    text-decoration: none; transition: all .18s;
    white-space: nowrap; flex: 1; justify-content: center;
}
.shm-tab-link:hover { background: var(--shm-white); color: var(--shm-text); }
.shm-tab-link.active { background: var(--shm-white); color: var(--shm-blue); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.shm-tab-link svg { flex-shrink: 0; }

/* Sections */
.shm-dash-section {
    background: var(--shm-white); border: 1px solid var(--shm-border);
    border-radius: 18px; padding: 26px;
    box-shadow: var(--shm-shadow);
}
.shm-dash-section h3 {
    font-size: 18px; font-weight: 700; color: var(--shm-text);
    margin: 0 0 20px; padding-bottom: 14px;
    border-bottom: 2px solid var(--shm-blue-light);
}
.shm-section-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 2px solid var(--shm-blue-light); flex-wrap: wrap;
}
.shm-section-header h3 { margin: 0; padding: 0; border: none; font-size: 18px; font-weight: 700; }

/* My listings */
.shm-my-listings { display: flex; flex-direction: column; gap: 12px; }
.shm-my-listing-row {
    display: flex; align-items: center; gap: 14px; padding: 14px;
    border: 1px solid var(--shm-border); border-radius: 12px;
    background: var(--shm-bg); transition: box-shadow .18s, background .18s;
}
.shm-my-listing-row:hover { box-shadow: var(--shm-shadow); background: var(--shm-white); }
.shm-my-listing-thumb {
    width: 76px; height: 58px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0; background: #f3f4f6;
}
.shm-my-listing-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shm-no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.shm-my-listing-info { flex: 1; min-width: 0; }
.shm-my-listing-info h4 {
    font-size: 14px; font-weight: 700; color: var(--shm-text);
    margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shm-my-listing-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.shm-my-listing-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

/* Status badges */
.shm-status {
    display: inline-flex; align-items: center;
    padding: 2px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.shm-status-publish { background: #d1fae5; color: #065f46; }
.shm-status-pending { background: #fef3c7; color: #92400e; }
.shm-status-draft   { background: #f3f4f6; color: #6b7280; }
.shm-status-private { background: #ede9fe; color: #5b21b6; }
.shm-status-active  { background: #d1fae5; color: #065f46; }
.shm-status-expired { background: #fee2e2; color: #991b1b; }

.shm-stat-pill {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: #6b7280;
    background: #f3f4f6; padding: 2px 8px; border-radius: 20px;
}

/* Dashboard listing pagination */
.shm-dash-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 4px;
}
.shm-dash-page-info {
    font-size: 13px;
    color: var(--shm-text-2);
}

/* Empty state */
.shm-empty-state { text-align: center; padding: 52px 20px; color: var(--shm-text-3); }
.shm-empty-icon { font-size: 56px; margin-bottom: 14px; display: block; }
.shm-empty-state p { font-size: 15px; margin-bottom: 20px; color: var(--shm-text-2); }

/* Listing form rows */
.shm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 0;
}
.shm-form-row + .shm-form-row { margin-top: 16px; }
.shm-col-full { grid-column: 1 / -1; }
.shm-form-actions {
    display: flex; gap: 12px; align-items: center;
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--shm-border); flex-wrap: wrap;
}

/* Current plan */
.shm-current-plan {
    background: linear-gradient(135deg, var(--shm-blue-light), #e0f2fe);
    border: 1px solid var(--shm-blue-border);
    border-radius: 14px; padding: 20px; margin-bottom: 24px;
}
.shm-current-plan-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.shm-current-plan-header h4 { font-size: 16px; font-weight: 700; color: var(--shm-blue-dark); margin: 0; }
.shm-plan-details { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: #374151; }
.shm-plan-details div strong { color: var(--shm-text); }
.shm-plans-heading { font-size: 15px; font-weight: 700; color: var(--shm-text); margin: 0 0 16px; }

/* Plans grid */
.shm-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.shm-plan-card {
    position: relative; background: var(--shm-white);
    border: 2px solid var(--shm-border);
    border-radius: 18px; padding: 26px 22px;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    overflow: hidden;
}
.shm-plan-card:hover { border-color: var(--shm-blue); box-shadow: 0 8px 24px rgba(26,86,219,.15); transform: translateY(-3px); }
.shm-plan-current { border-color: var(--shm-blue) !important; background: var(--shm-blue-light); box-shadow: 0 0 0 3px rgba(26,86,219,.15); }
.shm-plan-current-ribbon {
    position: absolute; top: 14px; right: -28px;
    background: var(--shm-blue); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 4px 36px; transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(26,86,219,.4);
}
.shm-plan-card h4 { font-size: 17px; font-weight: 700; color: var(--shm-text); margin: 0 0 12px; }
.shm-plan-price { margin-bottom: 16px; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.shm-plan-amount { font-size: 30px; font-weight: 800; color: var(--shm-text); }
.shm-plan-currency { font-size: 14px; font-weight: 700; color: var(--shm-text-2); }
.shm-plan-features { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.shm-plan-features li { font-size: 13px; color: #374151; padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.shm-plan-features li:last-child { border: none; }
.shm-payment-method {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1.5px solid var(--shm-border); border-radius: 9px;
    font-size: 13px; color: #374151; background: var(--shm-white);
    margin-bottom: 12px; outline: none; transition: border-color .2s;
}
.shm-payment-method:focus { border-color: var(--shm-blue); }

/* ----------------------------------------------------------------
   FEATURED SHORTCODE [shm_featured]
---------------------------------------------------------------- */
.shm-featured-wrap * { box-sizing: border-box; }
.shm-featured-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', Arial, sans-serif;
    margin: 32px auto; max-width: 1280px; padding: 0 16px;
}
.shm-featured-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.shm-featured-header h2 {
    font-size: 22px; font-weight: 800; color: var(--shm-text);
    display: flex; align-items: center; gap: 8px;
}
.shm-featured-header h2::before {
    content: '⭐';
}
.shm-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.shm-featured-card {
    background: var(--shm-white);
    border: 2px solid var(--shm-amber);
    border-radius: 16px; overflow: hidden;
    transition: box-shadow .22s, transform .22s;
    box-shadow: 0 2px 10px rgba(217,119,6,.12);
}
.shm-featured-card:hover { box-shadow: 0 10px 32px rgba(217,119,6,.22); transform: translateY(-4px); }
.shm-featured-card-img {
    width: 100%; height: 190px;
    object-fit: cover; object-position: center; display: block;
}
.shm-featured-card-no-img {
    height: 190px; background: #fef3c7;
    display: flex; align-items: center; justify-content: center; font-size: 52px;
}
.shm-featured-card-body { padding: 16px; }
.shm-featured-ribbon {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.shm-featured-card-title {
    font-size: 15px; font-weight: 700; color: var(--shm-text);
    margin-bottom: 6px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shm-featured-card-title a { color: inherit; text-decoration: none; }
.shm-featured-card-title a:hover { color: var(--shm-blue); }
.shm-featured-card-meta { font-size: 13px; color: var(--shm-text-2); margin-bottom: 12px; }
.shm-featured-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 1px solid #fef3c7;
}
.shm-featured-price { font-size: 18px; font-weight: 800; color: var(--shm-blue); }

/* ----------------------------------------------------------------
   EVENTS SHORTCODE [shm_events] — إعلانات مميزة بشكل مختلف
---------------------------------------------------------------- */
.shm-events-wrap * { box-sizing: border-box; }
.shm-events-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', Arial, sans-serif;
    margin: 32px auto; max-width: 1280px; padding: 0 16px;
}
.shm-events-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.shm-events-header h2 {
    font-size: 22px; font-weight: 800; color: var(--shm-text);
    display: flex; align-items: center; gap: 8px;
}
.shm-events-header h2::before { content: '🏠'; }
.shm-events-list { display: flex; flex-direction: column; gap: 16px; }
.shm-event-card {
    display: flex; gap: 0;
    background: var(--shm-white); border: 1px solid var(--shm-border);
    border-radius: 16px; overflow: hidden;
    transition: box-shadow .22s, transform .2s;
    box-shadow: var(--shm-shadow);
    border-left: 4px solid var(--shm-blue);
}
.shm-event-card:hover { box-shadow: var(--shm-shadow-lg); transform: translateY(-2px); }
.shm-event-card-img {
    width: 180px; flex-shrink: 0;
    object-fit: cover; object-position: center; display: block;
}
.shm-event-card-no-img {
    width: 180px; flex-shrink: 0;
    background: var(--shm-blue-light);
    display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.shm-event-card-body {
    padding: 18px 20px; flex: 1;
    display: flex; flex-direction: column; justify-content: space-between;
}
.shm-event-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--shm-blue-light); color: var(--shm-blue);
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
    border: 1px solid var(--shm-blue-border);
}
.shm-event-title {
    font-size: 16px; font-weight: 700; color: var(--shm-text);
    margin-bottom: 6px; line-height: 1.35;
}
.shm-event-title a { color: inherit; text-decoration: none; }
.shm-event-title a:hover { color: var(--shm-blue); }
.shm-event-meta { font-size: 13px; color: var(--shm-text-2); margin-bottom: 12px; }
.shm-event-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
}
.shm-event-price { font-size: 20px; font-weight: 800; color: var(--shm-blue); }

/* ----------------------------------------------------------------
   PROFILE TAB (Account Settings)
---------------------------------------------------------------- */
.shm-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 600px) {
    .shm-profile-grid { grid-template-columns: 1fr; }
}
.shm-profile-section {
    background: var(--shm-bg);
    border: 1px solid var(--shm-border);
    border-radius: 14px;
    padding: 22px 20px;
}
.shm-profile-section-title {
    font-size: 14px; font-weight: 800; color: var(--shm-blue);
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid var(--shm-blue-light);
    display: flex; align-items: center; gap: 8px;
}
.shm-profile-email-row {
    background: var(--shm-blue-light);
    border: 1px solid var(--shm-blue-border);
    border-radius: 10px; padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; color: var(--shm-text-2); font-size: 14px;
}
.shm-profile-email-row strong { color: var(--shm-text); }

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Search filters: 2-column grid on mobile */
    .shm-filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
        align-items: end;
    }
    .shm-filter-group { flex: unset; min-width: 0; }
    .shm-filter-group label {
        font-size: 10px;
        letter-spacing: .3px;
    }
    .shm-filter-group input,
    .shm-filter-group select { height: 40px; font-size: 13px; padding: 0 10px; }
    /* University, Price, and Submit all span full width */
    .shm-filter-group:has(#shm-filter-university),
    .shm-filter-price,
    .shm-filter-submit { grid-column: 1 / -1; }
    .shm-filter-submit {
        flex-direction: row !important;
        justify-content: stretch;
        gap: 8px;
    }
    .shm-filter-submit .shm-btn { flex: 1; justify-content: center; }

    /* Fix layout mobile:
       - موبايل عرضه 360-480px: كارتين جنب بعض بيبقوا ضيقين جداً، خليها واحدة
       - موبايل عرضه 480-768px: كارتين ممكن لو الـ card مش فيها صور كتير
    */
    .shm-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .shm-single-title { font-size: 22px; }
    .shm-contact-btn { height: 46px; font-size: 14px; }

    /* Dashboard header */
    .shm-dashboard-header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 20px 18px;
    }
    .shm-dashboard-welcome { gap: 14px; }
    .shm-avatar { width: 48px; height: 48px; font-size: 20px; }
    .shm-dashboard-welcome h2 { font-size: 16px; }
    .shm-dashboard-stats {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        width: 100%;
        margin-top: 6px;
    }
    .shm-dash-stat {
        padding: 10px 8px;
        min-width: 0;
        text-align: center;
    }
    .shm-dash-stat-num { font-size: 20px; }
    .shm-dash-stat-lbl { font-size: 10px; }

    .shm-dashboard-nav { overflow-x: auto; flex-wrap: nowrap; }
    .shm-tab-link { flex: 0 0 auto; min-width: 90px; padding: 0 10px; font-size: 12px; }
    .shm-my-listing-row { flex-wrap: wrap; }
    .shm-my-listing-actions { width: 100%; }
    .shm-plans-grid { grid-template-columns: 1fr; }
    .shm-form-row { grid-template-columns: 1fr; }
    .shm-featured-grid { grid-template-columns: 1fr 1fr; }
    .shm-event-card-img, .shm-event-card-no-img { width: 130px; }
}

@media (max-width: 480px) {
    /* Fix: موبايل صغير — كارت واحدة عشان تبقى واضحة ومريحة */
    .shm-grid { grid-template-columns: 1fr; }
    .shm-acc-actions { flex-direction: column; }
    .shm-acc-btn-phone, .shm-acc-btn-wa, .shm-acc-btn-full { width: 100%; justify-content: center; }
    .shm-contact-btn { width: 100%; justify-content: center; }
    .shm-form-actions { flex-direction: column; }
    .shm-form-actions .shm-btn { width: 100%; justify-content: center; }
    .shm-featured-grid { grid-template-columns: 1fr; }
    .shm-event-card { flex-direction: column; border-left: none; border-top: 4px solid var(--shm-blue); }
    .shm-event-card-img, .shm-event-card-no-img { width: 100%; height: 160px; }
    .shm-modal-box { padding: 24px 18px; }
    /* Fix lightbox nav: في RTL prev على اليمين وnext على اليسار */
    .shm-lightbox-prev { right: 8px !important; left: auto !important; }
    .shm-lightbox-next { left: 8px !important; right: auto !important; }
    .shm-ajax-pagination { flex-direction: column; }
}

/* AJAX filter pagination */
.shm-ajax-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 28px; flex-wrap: wrap;
}
.shm-ajax-pagination .shm-btn {
    min-width: 110px;
}
.shm-ajax-page-info {
    font-size: 14px; color: var(--shm-text-light);
    font-weight: 600; padding: 0 4px;
}

/* ================================================================
   v2.0 — ARABIC UI + PROFESSIONAL CARD & GALLERY REDESIGN
   ================================================================ */

/* ----------------------------------------------------------------
   ARABIC FONT + RTL BASE
---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

.shm-wrap,
.shm-single-wrap,
.shm-card-wrap {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ----------------------------------------------------------------
   SEARCH BAR — ARABIC v2
---------------------------------------------------------------- */
.shm-search-bar {
    border-radius: 18px;
    padding: 22px 24px;
}
.shm-filter-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--shm-text-2);
    letter-spacing: .3px;
}
.shm-filter-group label svg { flex-shrink: 0; }
.shm-filter-group select,
.shm-filter-group input {
    font-family: 'Cairo', sans-serif;
    height: 44px;
    border-radius: 10px;
}

/* ----------------------------------------------------------------
   CARD v2 — PROFESSIONAL REDESIGN
---------------------------------------------------------------- */
.shm-card-wrap {
    position: relative;
    background: var(--shm-white);
    border: 1px solid var(--shm-border);
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow .28s, transform .28s;
    cursor: pointer;
}
.shm-card-wrap:hover {
    box-shadow: 0 14px 44px rgba(0,0,0,.14);
    transform: translateY(-5px);
}
.shm-card-wrap.shm-card-featured {
    border-color: var(--shm-amber);
    box-shadow: 0 0 0 2px rgba(217,119,6,.15);
}

/* Image wrap */
.shm-card-img-wrap {
    display: block;
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #e5e7eb;
}
.shm-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.shm-card-wrap:hover .shm-card-img {
    transform: scale(1.05);
}

/* Badges */
.shm-badge-featured {
    position: absolute; top: 11px; right: 11px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 11px; border-radius: 20px; z-index: 2;
    display: flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.shm-badge-type {
    position: absolute; top: 11px; left: 11px;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    color: #fff; font-size: 11px; font-weight: 600;
    padding: 4px 11px; border-radius: 20px; z-index: 2;
}

/* Image counter */
.shm-img-counter {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    color: #fff; font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 20px; z-index: 2;
    display: flex; align-items: center; gap: 4px;
}

/* Card slide dots */
.shm-card-dots {
    position: absolute !important; bottom: 12px !important;
    left: 50% !important; transform: translateX(-50%) !important;
    display: flex !important; gap: 5px; z-index: 3 !important;
}
.shm-card-dot {
    display: block !important;
    width: 6px !important; height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.5) !important;
    border: none !important; padding: 0 !important;
    cursor: pointer !important;
    transition: all .2s !important;
}
.shm-card-dot.active {
    background: #fff !important;
    transform: scale(1.45) !important;
}

/* Card nav arrows */
.shm-card-arrow {
    position: absolute !important; top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important; height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.92) !important;
    border: none !important; cursor: pointer !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
    z-index: 4 !important;
    opacity: 0 !important;
    transition: opacity .2s !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.2) !important;
    padding: 0 !important;
}
.shm-card-wrap:hover .shm-card-arrow { opacity: 1 !important; }
.shm-card-arrow svg { display: block !important; pointer-events: none; }
.shm-card-arrow-prev { right: 10px !important; left: auto !important; }
.shm-card-arrow-next { left: 10px !important; right: auto !important; }

/* Card body */
.shm-card-body { padding: 14px 16px 16px; }
.shm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 7px;
}
.shm-card-title {
    font-size: 14px; font-weight: 700;
    color: var(--shm-text); line-height: 1.35;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shm-card-title a { color: inherit; text-decoration: none; }
.shm-card-title a:hover { color: var(--shm-blue); }

.shm-card-price { text-align: left; flex-shrink: 0; }
.shm-price-num {
    font-size: 18px; font-weight: 900;
    color: var(--shm-text); display: block; line-height: 1.1;
}
.shm-price-unit {
    font-size: 10px; color: var(--shm-text-3);
    display: block; white-space: nowrap;
}
.shm-card-location {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--shm-text-2); margin-bottom: 9px;
}
.shm-card-location svg { flex-shrink: 0; }

/* Pills (replaces old tags) */
.shm-card-pills {
    display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px;
}
.shm-pill {
    font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 3px;
}
.shm-pill svg { flex-shrink: 0; }
.shm-pill-male   { background: #dbeafe; color: #1d4ed8; }
.shm-pill-female { background: #fce7f3; color: #be185d; }
.shm-pill-any    { background: #ede9fe; color: #7c3aed; }
.shm-pill-univ   { background: #d1fae5; color: #065f46; }

/* CTA button */
.shm-card-cta {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    width: 100%; height: 38px;
    background: var(--shm-blue-light); color: var(--shm-blue);
    border: 1.5px solid var(--shm-blue-border);
    border-radius: 9px; font-size: 12px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: all .2s;
    font-family: 'Cairo', sans-serif;
}
.shm-card-cta:hover { background: var(--shm-blue); color: #fff; }

/* ----------------------------------------------------------------
   SINGLE LISTING v2 — WORLD-CLASS GALLERY + LAYOUT
---------------------------------------------------------------- */

/* Back link */
.shm-single-back-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 16px 0;
}
.shm-single-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: #6b7280; text-decoration: none;
    font-weight: 500; transition: color .15s;
}
.shm-single-back-link:hover { color: var(--shm-blue); }

/* Single wrap — بدون padding أفقي عشان الـ gallery تاخد full width */
#shm-single-main { padding-bottom: 60px; }
.shm-single-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 0;
}

/* Gallery shell */
.shm-gallery-shell {
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    margin-bottom: 28px;
    box-shadow: 0 8px 36px rgba(0,0,0,.2);
}
.shm-gallery-main {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: zoom-in;
}
.shm-gallery-main-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: opacity .25s;
}

/* Nav buttons */
.shm-gallery-nav {
    position: absolute !important; top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important; height: 48px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.18) !important;
    backdrop-filter: blur(8px) !important;
    border: 2px solid rgba(255,255,255,.35) !important;
    color: #fff !important; cursor: pointer !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    transition: all .2s !important;
    padding: 0 !important; outline: none !important;
}
.shm-gallery-nav:hover {
    background: rgba(255,255,255,.32) !important;
    transform: translateY(-50%) scale(1.08) !important;
}
/* Nav buttons —
   في RTL الـ layout معكوس:
   - "السابق" (index-1) يكون على اليمين لأن القراءة من اليمين
   - "التالي" (index+1) يكون على اليسار
   Fix: كان .shm-gallery-prev على اليمين و.shm-gallery-next على اليسار وهذا صحيح لـ RTL
   لكن السهم الداخلي كان مقلوباً — الـ SVG يجب أن يشير لليمين للـ "السابق" في RTL
*/
.shm-gallery-nav svg { display: block !important; pointer-events: none; }
/* في RTL: prev = يمين الشاشة (يرجع للخلف)، next = يسار الشاشة (يتقدم) */
.shm-gallery-prev { right: 14px !important; left: auto !important; }
.shm-gallery-next { left: 14px !important; right: auto !important; }
/* Fix: Counter يكون على اليسار في RTL عشان ما يتداخلش مع زر السابق على اليمين */
.shm-gallery-counter {
    position: absolute; top: 14px; left: 14px; right: auto;
    background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; z-index: 10;
}
.shm-gallery-expand {
    position: absolute !important; bottom: 14px !important;
    right: 14px !important; left: auto !important;
    background: rgba(0,0,0,.62) !important;
    backdrop-filter: blur(4px) !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.3) !important;
    border-radius: 9px !important;
    padding: 7px 14px !important;
    font-size: 12px !important; font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important; align-items: center !important;
    gap: 6px !important;
    transition: all .2s !important;
    font-family: 'Cairo', sans-serif !important;
    z-index: 10 !important;
}
.shm-gallery-expand:hover { background: rgba(0,0,0,.82) !important; }

/* Thumbnails strip */
.shm-gallery-thumbs {
    display: flex; gap: 6px;
    padding: 8px 12px;
    background: rgba(0,0,0,.8);
    overflow-x: auto;
}
.shm-gallery-thumbs::-webkit-scrollbar { height: 3px; }
.shm-gallery-thumbs::-webkit-scrollbar-track { background: rgba(255,255,255,.08); }
.shm-gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 3px; }
.shm-gallery-thumb {
    width: 72px; height: 52px;
    border-radius: 7px; overflow: hidden;
    border: 2.5px solid transparent;
    cursor: pointer; flex-shrink: 0;
    opacity: .58; transition: all .22s;
    background: none; padding: 0;
}
.shm-gallery-thumb:hover { opacity: .85; }
.shm-gallery-thumb.active { opacity: 1; border-color: var(--shm-blue); transform: scale(1.07); }
.shm-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox v2 */
.shm-lightbox {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
    pointer-events: none;
}
.shm-lightbox[hidden] { display: flex !important; }
.shm-lightbox { display: flex; }
.shm-lightbox.open { opacity: 1; pointer-events: all; }
.shm-lightbox-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.95);
}

/* Inner — يملأ الشاشة بالكامل ويحتوي كل العناصر */
.shm-lightbox-inner {
    position: relative; z-index: 1;
    width: 100vw; height: 100dvh;
    display: flex; align-items: center; justify-content: center;
}

/* زر الإغلاق — أعلى يمين الشاشة دائماً */
.shm-lightbox-close {
    position: fixed !important;
    top: 16px !important; right: 16px !important;
    left: auto !important;
    width: 44px !important; height: 44px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.55) !important;
    backdrop-filter: blur(8px) !important;
    border: 2px solid rgba(255,255,255,.3) !important;
    color: #fff !important; cursor: pointer !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important; transition: all .2s !important;
    padding: 0 !important;
}
.shm-lightbox-close:hover { background: rgba(255,255,255,.25) !important; }

/* أزرار التنقل — مثبتة على يمين ويسار الشاشة */
.shm-lightbox-nav {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important; height: 48px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.55) !important;
    backdrop-filter: blur(8px) !important;
    border: 2px solid rgba(255,255,255,.25) !important;
    color: #fff !important; cursor: pointer !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    transition: background .2s !important; padding: 0 !important;
}
.shm-lightbox-nav:hover { background: rgba(255,255,255,.2) !important; }
.shm-lightbox-prev { right: 12px !important; left: auto !important; }
.shm-lightbox-next { left: 12px !important; right: auto !important; }

/* الصورة — تملأ الشاشة مع الحفاظ على النسبة */
.shm-lightbox-img-wrap {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 70px 70px 80px;
    box-sizing: border-box;
}
.shm-lightbox-img-wrap img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity .2s;
    user-select: none;
}

/* Counter — أسفل الشاشة في المنتصف */
.shm-lightbox-counter {
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 6px 20px; border-radius: 20px;
    white-space: nowrap; font-family: 'Cairo', sans-serif;
    z-index: 10;
    border: 1px solid rgba(255,255,255,.15);
}

/* Single layout — 2 col */
.shm-single-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
    padding: 24px 16px 0;
    max-width: 960px;
    margin: 0 auto;
}
.shm-single-main { min-width: 0; }
.shm-single-sidebar { min-width: 0; }
.shm-single-header { margin-bottom: 20px; }
.shm-single-badge-featured {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}
.shm-single-title {
    font-size: 26px; font-weight: 900;
    color: var(--shm-text); line-height: 1.25; margin-bottom: 8px;
}
.shm-single-location {
    display: flex; align-items: center; gap: 5px;
    font-size: 14px; color: var(--shm-text-2);
}

/* Specs grid */
.shm-specs-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; margin-bottom: 24px;
    padding: 18px; background: var(--shm-bg);
    border-radius: 14px; border: 1px solid var(--shm-border);
}
.shm-spec-item { display: flex; align-items: center; gap: 10px; }
.shm-spec-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--shm-blue-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.shm-spec-text { display: flex; flex-direction: column; min-width: 0; }
.shm-spec-label { font-size: 11px; color: var(--shm-text-3); font-weight: 600; margin-bottom: 2px; white-space: nowrap; }
.shm-spec-value { font-size: 13px; font-weight: 700; color: var(--shm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Single description */
.shm-single-desc { margin-bottom: 24px; }
.shm-single-section-title {
    font-size: 16px; font-weight: 800; color: var(--shm-text);
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 2px solid var(--shm-blue-light);
}
.shm-single-desc-text { font-size: 14px; color: #374151; line-height: 1.8; }
.shm-single-desc-text p { margin-bottom: 10px; }

/* Contact sidebar card */
.shm-contact-card {
    background: var(--shm-white);
    border: 1px solid var(--shm-border);
    border-radius: 18px; padding: 22px;
    box-shadow: var(--shm-shadow-lg);
    position: sticky; top: 20px;
}
.shm-contact-price {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px solid var(--shm-border);
}
.shm-contact-price-num {
    font-size: 30px; font-weight: 900; color: var(--shm-blue); line-height: 1;
}
.shm-contact-price-meta { display: flex; flex-direction: column; gap: 1px; }
.shm-contact-currency { font-size: 12px; font-weight: 700; color: var(--shm-text-2); }
.shm-contact-period { font-size: 11px; color: var(--shm-text-3); }
.shm-contact-divider { display: none; }
.shm-contact-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; height: 50px; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    border: none; margin-bottom: 10px;
    transition: all .2s; text-decoration: none;
    font-family: 'Cairo', sans-serif;
}
.shm-contact-btn:hover { transform: translateY(-2px); }
.shm-contact-btn-phone { background: var(--shm-blue); color: #fff; }
.shm-contact-btn-phone:hover { background: var(--shm-blue-dark); box-shadow: 0 8px 24px rgba(26,86,219,.35); }
.shm-contact-btn-phone.shm-phone-revealed { background: var(--shm-green); }
.shm-contact-btn-wa { background: #25d366; color: #fff; }
.shm-contact-btn-wa:hover { background: #1ebe5d; box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.shm-contact-note {
    font-size: 11px; color: var(--shm-text-3);
    text-align: center; display: flex;
    align-items: center; justify-content: center; gap: 4px;
    margin-top: 8px;
}

/* ----------------------------------------------------------------
   RESPONSIVE v2
---------------------------------------------------------------- */
@media (max-width: 900px) {
    .shm-single-content { grid-template-columns: 1fr; }
    .shm-contact-card { position: static; }
}
@media (max-width: 600px) {
    /* Gallery — full bleed بدون margins */
    .shm-single-wrap { padding: 0; }
    .shm-gallery-shell { border-radius: 0; margin-bottom: 0; box-shadow: none; }
    /* Fix: 3/2 أنسب من 4/3 على الموبايل — 4/3 بيكون طويل جداً */
    .shm-gallery-main { aspect-ratio: 3/2; }
    .shm-gallery-nav { width: 38px !important; height: 38px !important; }
    /* Fix: على الموبايل الـ counter على اليسار عشان ما يتداخلش مع زر السابق */
    .shm-gallery-counter { top: 10px; left: 10px; right: auto; font-size: 11px; padding: 3px 10px; }
    .shm-gallery-expand { bottom: 10px; right: 10px !important; left: auto !important; padding: 6px 11px !important; font-size: 11px !important; }
    .shm-gallery-thumbs { padding: 5px 8px; gap: 4px; }
    .shm-gallery-thumb { width: 56px; height: 40px; }

    /* Content */
    .shm-single-content { padding: 16px 16px 0; gap: 14px; }
    .shm-single-title { font-size: 20px; }
    .shm-specs-grid { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
    .shm-spec-icon { width: 34px; height: 34px; font-size: 15px; border-radius: 8px; }
    .shm-spec-label { font-size: 10px; }
    .shm-spec-value { font-size: 12px; }

    /* Contact card */
    .shm-contact-card { border-radius: 14px; padding: 16px; margin: 0 0 8px; }
    .shm-contact-price-num { font-size: 26px; }
    .shm-contact-btn { height: 48px; font-size: 15px; }

    /* Lightbox على الموبايل — الصورة تملأ أكبر مساحة ممكنة */
    .shm-lightbox-img-wrap { padding: 60px 56px 70px; }
    .shm-lightbox-nav { width: 40px !important; height: 40px !important; }
    .shm-lightbox-prev { right: 8px !important; }
    .shm-lightbox-next { left: 8px !important; }
    .shm-lightbox-close { top: 12px !important; right: 12px !important; width: 40px !important; height: 40px !important; }
    .shm-lightbox-counter { bottom: 14px; font-size: 12px; padding: 5px 16px; }
}



/* ================================================================
   SINGLE LISTING v4.0 — واجهة عربية احترافية
   ================================================================ */

/* ─── ROOT ──────────────────────────────────────────────────── */
.shm-sl-root {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 80px;
    color: var(--shm-text);
}
.shm-sl-root * { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── BREADCRUMB ────────────────────────────────────────────── */
.shm-sl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--shm-text-3);
    flex-wrap: nowrap;
    overflow: hidden;
}
.shm-sl-bc-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--shm-text-2); text-decoration: none; font-weight: 500;
    transition: color .15s; white-space: nowrap; flex-shrink: 0;
}
.shm-sl-bc-link:hover { color: var(--shm-blue); }
.shm-sl-bc-sep { color: #d1d5db; font-size: 14px; flex-shrink: 0; }
.shm-sl-bc-cur {
    color: var(--shm-text); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0;
}

/* ─── GALLERY — أكبر وأوضح ──────────────────────────────────── */
.shm-sl-gallery {
    /* بدون margin جانبي — تملأ كل العرض */
    margin: 0 0 0 0;
    border-radius: 0;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 6px 32px rgba(0,0,0,.3);
    position: relative;
}
.shm-sl-gallery-main {
    position: relative;
    /* نسبة 16:9 → صورة أكبر بكتير على الموبايل والديسكتوب */
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: zoom-in;
    background: #111;
}
.shm-sl-gallery-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center; display: block;
    transition: opacity .22s ease;
}

/* أزرار التنقل */
.shm-sl-gnav {
    position: absolute !important; top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important; height: 44px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.52) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(255,255,255,.28) !important;
    color: #fff !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important; cursor: pointer !important;
    transition: background .18s, transform .18s !important;
    padding: 0 !important; outline: none !important;
}
.shm-sl-gnav:hover {
    background: rgba(0,0,0,.75) !important;
    border-color: rgba(255,255,255,.55) !important;
    transform: translateY(-50%) scale(1.1) !important;
}
.shm-sl-gnav svg { display: block !important; pointer-events: none; }
.shm-sl-gprev { right: 14px !important; left: auto !important; }
.shm-sl-gnext { left: 14px !important; right: auto !important; }

/* عداد الصور */
.shm-sl-gcounter {
    position: absolute; top: 12px; left: 12px; right: auto;
    display: flex; align-items: center; gap: 5px;
    background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 20px; z-index: 10;
    border: 1px solid rgba(255,255,255,.15);
    letter-spacing: .3px;
}

/* شارة مميز */
.shm-sl-gbadge-featured {
    position: absolute; top: 12px; right: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; font-size: 11px; font-weight: 800;
    padding: 5px 13px; border-radius: 20px; z-index: 10;
    box-shadow: 0 3px 12px rgba(0,0,0,.3);
}

/* شارة النوع */
.shm-sl-gbadge-type {
    position: absolute; bottom: 58px; right: 12px;
    background: rgba(0,0,0,.68); backdrop-filter: blur(6px);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; z-index: 10;
    border: 1px solid rgba(255,255,255,.18);
}

/* زر عرض كل الصور */
.shm-sl-gexpand {
    position: absolute !important; bottom: 12px !important;
    right: 12px !important; left: auto !important;
    display: inline-flex !important; align-items: center !important;
    gap: 6px !important;
    background: rgba(0,0,0,.65) !important;
    backdrop-filter: blur(8px) !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.3) !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-size: 12px !important; font-weight: 700 !important;
    cursor: pointer !important;
    transition: background .18s !important;
    font-family: 'Cairo', sans-serif !important;
    z-index: 10 !important; outline: none !important;
}
.shm-sl-gexpand:hover { background: rgba(0,0,0,.88) !important; }

/* Strip صور مصغرة */
.shm-sl-thumbs {
    display: flex; gap: 5px;
    padding: 8px 14px;
    background: rgba(0,0,0,.88);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}
.shm-sl-thumbs::-webkit-scrollbar { height: 3px; }
.shm-sl-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 3px; }

.shm-sl-thumb {
    width: 76px; height: 54px;
    border-radius: 8px; overflow: hidden;
    border: 2.5px solid transparent;
    cursor: pointer; flex-shrink: 0;
    opacity: .52; transition: all .2s;
    background: none; padding: 0;
}
.shm-sl-thumb:hover { opacity: .82; }
.shm-sl-thumb.active {
    opacity: 1;
    border-color: #fff;
    transform: scale(1.06);
    box-shadow: 0 0 0 2px rgba(255,255,255,.3);
}
.shm-sl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* لا توجد صور */
.shm-sl-no-img {
    margin: 0 0 20px;
    background: #f3f4f6;
    border-bottom: 1.5px solid #e5e7eb;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; padding: 80px 20px;
    color: #9ca3af; font-size: 14px; font-weight: 600;
}

/* ─── LAYOUT ────────────────────────────────────────────────── */
.shm-sl-body {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 22px;
    align-items: start;
    padding: 22px 20px 0;
}
.shm-sl-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.shm-sl-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* ─── SHARED CARD ───────────────────────────────────────────── */
.shm-sl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.shm-sl-card-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 800; color: var(--shm-text);
    margin-bottom: 16px; padding-bottom: 13px;
    border-bottom: 2px solid #eff6ff;
}
.shm-sl-card-title svg { color: var(--shm-blue); flex-shrink: 0; }

/* ─── HEADER CARD ───────────────────────────────────────────── */
.shm-sl-header-card { padding-bottom: 20px; }
.shm-sl-header-badges {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 10px;
}
.shm-sl-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 800;
    padding: 4px 12px; border-radius: 20px;
    letter-spacing: .2px;
}
.shm-sl-badge-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e; border: 1px solid #fcd34d;
}
.shm-sl-badge-blue {
    background: #eff6ff; color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.shm-sl-title {
    font-size: 22px; font-weight: 900;
    color: #111827; line-height: 1.3;
    margin-bottom: 11px;
}
.shm-sl-meta-row {
    display: flex; flex-wrap: wrap; gap: 5px 14px;
}
.shm-sl-meta-item {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: #6b7280; font-weight: 500;
}

/* ─── SPECS ─────────────────────────────────────────────────── */
.shm-sl-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.shm-sl-spec {
    display: flex; align-items: center; gap: 11px;
    padding: 13px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.shm-sl-spec-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.shm-sl-spec-icon svg { display: block; }
.shm-sl-si-blue   { background: #dbeafe; color: #1d4ed8; }
.shm-sl-si-purple { background: #ede9fe; color: #7c3aed; }
.shm-sl-si-green  { background: #d1fae5; color: #059669; }
.shm-sl-si-amber  { background: #fef3c7; color: #b45309; }
.shm-sl-spec-label {
    font-size: 10.5px; font-weight: 700; color: #9ca3af;
    margin-bottom: 3px; letter-spacing: .2px; white-space: nowrap;
}
.shm-sl-spec-value {
    font-size: 13px; font-weight: 800; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── DESCRIPTION ───────────────────────────────────────────── */
.shm-sl-desc {
    font-size: 14.5px; color: #374151; line-height: 1.9;
}
.shm-sl-desc p { margin-bottom: 12px; }
.shm-sl-desc p:last-child { margin-bottom: 0; }

/* ─── SAFETY ────────────────────────────────────────────────── */
.shm-sl-safety-mobile  { display: none; }
.shm-sl-safety-desktop { display: block; }
.shm-sl-safety-card {
    background: #f0fdf4; border-color: #bbf7d0; padding: 16px 18px;
}
.shm-sl-safety-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 800; color: #065f46;
    margin-bottom: 10px;
}
.shm-sl-safety-title svg { color: #059669; flex-shrink: 0; }
.shm-sl-safety-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 7px;
}
.shm-sl-safety-list li {
    font-size: 12.5px; color: #047857; line-height: 1.5;
    padding-right: 18px; position: relative;
}
.shm-sl-safety-list li::before {
    content: '✓'; position: absolute; right: 0;
    font-weight: 900; color: #059669;
}

/* ─── CONTACT CARD ──────────────────────────────────────────── */
.shm-sl-contact-card {
    background: #fff;
    border: 2px solid #bfdbfe;
    border-radius: 18px;
    padding: 20px 18px 16px;
    box-shadow: 0 4px 24px rgba(26,86,219,.1);
    position: sticky; top: 16px;
}

/* كتلة السعر */
.shm-sl-price-block {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.shm-sl-price-label {
    font-size: 10.5px; font-weight: 700;
    color: #6b7280; letter-spacing: .4px;
    margin-bottom: 5px; text-transform: uppercase;
}
.shm-sl-price-row {
    display: flex; align-items: baseline; gap: 6px;
    margin-bottom: 5px;
}
.shm-sl-price-num {
    font-size: 36px; font-weight: 900;
    color: #1a56db; line-height: 1;
    letter-spacing: -1.5px;
}
.shm-sl-price-currency {
    font-size: 16px; font-weight: 700; color: #374151;
}
.shm-sl-price-loc {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: #6b7280; font-weight: 500;
}

/* أزرار التواصل */
.shm-sl-contact-btns {
    display: flex; flex-direction: column; gap: 9px;
    margin-bottom: 12px;
}
.shm-sl-btn-phone,
.shm-sl-btn-wa,
.shm-sl-btn-share {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border-radius: 12px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; border: none;
    transition: all .2s;
    font-family: 'Cairo', sans-serif;
    letter-spacing: .2px;
    text-decoration: none;
}
.shm-sl-btn-phone {
    height: 50px;
    background: #1a56db; color: #fff;
    box-shadow: 0 4px 14px rgba(26,86,219,.3);
}
.shm-sl-btn-phone:hover {
    background: #1140a6;
    box-shadow: 0 6px 22px rgba(26,86,219,.42);
    transform: translateY(-1px);
}
.shm-sl-btn-phone.shm-phone-revealed {
    background: #059669;
    box-shadow: 0 4px 14px rgba(5,150,105,.3);
}
.shm-sl-btn-wa {
    height: 50px;
    background: #25d366; color: #fff;
    box-shadow: 0 4px 14px rgba(37,211,102,.28);
}
.shm-sl-btn-wa:hover {
    background: #1ebe5d;
    box-shadow: 0 6px 22px rgba(37,211,102,.42);
    transform: translateY(-1px);
}
.shm-sl-btn-share {
    height: 40px;
    background: #f9fafb; color: #4b5563;
    border: 1.5px solid #e5e7eb !important;
    font-size: 13px;
}
.shm-sl-btn-share:hover {
    background: #eff6ff; color: #1a56db;
    border-color: #bfdbfe !important;
}

/* نُشر منذ */
.shm-sl-posted-since {
    display: flex; align-items: center; justify-content: center;
    gap: 5px; font-size: 11.5px; color: #9ca3af;
    text-align: center; padding-top: 2px;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 860px) {
    .shm-sl-body { grid-template-columns: 1fr; gap: 16px; }
    .shm-sl-contact-card { position: static; }
    .shm-sl-safety-desktop { display: none; }
    .shm-sl-safety-mobile { display: block; }
    /* الـ contact card فوق الـ main column على التابلت/موبايل */
}

@media (max-width: 560px) {
    /* Gallery full bleed */
    .shm-sl-gallery { border-radius: 0; }
    /* نسبة 4:3 على الموبايل لأن الشاشة ضيقة — تعطي ارتفاع أكبر */
    .shm-sl-gallery-main { aspect-ratio: 4/3; }
    .shm-sl-gnav { width: 38px !important; height: 38px !important; }
    .shm-sl-gprev { right: 10px !important; }
    .shm-sl-gnext { left: 10px !important; }
    .shm-sl-gcounter { font-size: 11px; padding: 4px 10px; }
    .shm-sl-gexpand { bottom: 10px !important; right: 10px !important; font-size: 11px !important; padding: 6px 12px !important; }
    .shm-sl-gbadge-featured { top: 10px; right: 10px; }
    .shm-sl-gbadge-type { bottom: 52px; right: 10px; }
    .shm-sl-thumbs { padding: 6px 10px; }
    .shm-sl-thumb { width: 62px; height: 44px; }

    .shm-sl-body { padding: 14px 14px 0; gap: 12px; }
    .shm-sl-card { padding: 14px 15px; border-radius: 13px; }
    .shm-sl-title { font-size: 18px; }
    .shm-sl-specs { gap: 8px; }
    .shm-sl-spec { padding: 10px; gap: 9px; }
    .shm-sl-spec-icon { width: 36px; height: 36px; border-radius: 9px; }
    .shm-sl-spec-icon svg { width: 16px; height: 16px; }
    .shm-sl-price-num { font-size: 30px; }
    .shm-sl-btn-phone, .shm-sl-btn-wa { height: 48px; }
    .shm-sl-contact-card { border-radius: 14px; padding: 16px 14px 13px; }
    .shm-sl-breadcrumb { padding: 9px 14px; font-size: 12px; }
    .shm-sl-bc-cur { max-width: 160px; }
}
