/* 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;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    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 — واضحة ومحددة */
.shm-card-img-wrap {
    display: block;
    width: 100%;
    height: 200px;
    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); }

/* ----------------------------------------------------------------
   SINGLE LISTING PAGE
---------------------------------------------------------------- */
.shm-single-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    font-family: inherit;
}

.shm-single-gallery {
    position: relative; width: 100%;
    border-radius: 18px; overflow: hidden;
    background: #000; margin-bottom: 28px;
    box-shadow: 0 6px 28px rgba(0,0,0,.18);
    cursor: zoom-in;
}
.shm-sg-slides { position: relative; width: 100%; aspect-ratio: 16/9; }
.shm-sg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none; }
.shm-sg-slide.active { opacity: 1; pointer-events: auto; }
.shm-sg-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shm-sg-arrow {
    position: absolute !important; top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important; height: 48px !important;
    min-width: 0 !important; max-width: none !important;
    background: rgba(255,255,255,.18) !important;
    border: 2px solid rgba(255,255,255,.4) !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: all .18s !important;
    backdrop-filter: blur(8px);
    padding: 0 !important; outline: none !important; box-shadow: none !important;
}
.shm-sg-arrow:hover { background: rgba(255,255,255,.35) !important; transform: translateY(-50%) scale(1.08) !important; }
.shm-sg-arrow svg { display: block !important; pointer-events: none; }
.shm-sg-prev { left: 14px !important; right: auto !important; }
.shm-sg-next { right: 14px !important; left: auto !important; }

.shm-sg-dots {
    position: absolute !important; bottom: 70px !important;
    left: 50% !important; transform: translateX(-50%) !important;
    display: flex !important; gap: 7px; z-index: 20 !important;
}
.shm-sg-dot {
    display: block !important; width: 10px !important; height: 10px !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-sg-dot.active { background: #fff !important; transform: scale(1.4) !important; }

.shm-sg-counter {
    position: absolute; top: 14px; right: 14px;
    background: rgba(0,0,0,.5);
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 4px 12px; border-radius: 20px; z-index: 10;
    backdrop-filter: blur(6px);
}
.shm-sg-thumbs {
    display: flex; gap: 6px; padding: 8px 12px;
    background: rgba(0,0,0,.75); overflow-x: auto;
}
.shm-sg-thumb {
    width: 64px; height: 48px; object-fit: cover;
    border-radius: 6px; cursor: pointer; opacity: .6;
    transition: opacity .2s, transform .2s; flex-shrink: 0;
    border: 2px solid transparent;
}
.shm-sg-thumb:hover { opacity: .85; }
.shm-sg-thumb.active { opacity: 1; border-color: var(--shm-blue); transform: scale(1.06); }

/* Single details */
.shm-single-details {
    background: var(--shm-white);
    border: 1px solid var(--shm-border);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shm-shadow);
}
.shm-single-top { margin-bottom: 20px; }
.shm-badge-featured {
    display: inline-block;
    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: 28px; font-weight: 800; color: var(--shm-text);
    line-height: 1.25; margin-bottom: 12px;
}
.shm-single-price {
    display: flex; align-items: baseline; gap: 5px; margin-bottom: 24px;
}
.shm-single-price .shm-price-amount { font-size: 32px; color: var(--shm-blue); }
.shm-single-price .shm-price-currency { font-size: 15px; font-weight: 700; color: var(--shm-text-2); }
.shm-single-price .shm-price-period { font-size: 13px; color: var(--shm-text-3); }

.shm-single-meta {
    display: flex; flex-wrap: wrap; gap: 10px 24px;
    font-size: 14px; color: var(--shm-text-2);
    padding: 18px; background: var(--shm-bg);
    border-radius: 12px; margin-bottom: 24px;
}
.shm-single-meta .shm-meta-item { display: flex; align-items: center; gap: 7px; font-weight: 500; }

.shm-single-desc { margin-bottom: 28px; }
.shm-single-desc h3 {
    font-size: 17px; font-weight: 700; color: var(--shm-text);
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 2px solid var(--shm-blue-light);
}
.shm-single-desc-text { font-size: 15px; color: #374151; line-height: 1.75; }
.shm-single-desc-text p { margin-bottom: 10px; }

.shm-contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.shm-contact-btn {
    display: inline-flex; align-items: center; gap: 9px;
    height: 52px; padding: 0 28px; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    text-decoration: none; border: none;
    transition: all .18s;
}
.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); }

/* ----------------------------------------------------------------
   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
---------------------------------------------------------------- */
#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; }

    .shm-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .shm-single-title { font-size: 22px; }
    .shm-single-details { padding: 20px; }
    .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) {
    .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-buttons { flex-direction: column; }
    .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; }
    .shm-lb-prev { left: 8px !important; }
    .shm-lb-next { right: 8px !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;
}
