/* Audat Sudair Map */
.asm-map-wrap {
    margin: 0 0 1.5rem;
}

.asm-map,
.alomran-map {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(30, 71, 36, 0.25);
    background: #eee8d8;
    direction: ltr;              /* Leaflet controls expect LTR; popups set their own direction below */
    isolation: isolate;
}

/* Filter bar */
.asm-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    direction: rtl;
}

.asm-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(30, 71, 36, 0.35);
    border-radius: 999px;
    background: #fff9ed;
    color: #1E4724;
    font: inherit;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.asm-filter__btn:hover,
.asm-filter__btn:focus-visible {
    background: #f3e9cf;
}

.asm-filter__btn.is-active {
    background: #1E4724;
    color: #fff;
    border-color: #1E4724;
}

.asm-filter__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex: 0 0 auto;
}

.asm-filter__count {
    opacity: 0.75;
    font-size: 0.85em;
}

/* Popups */
.asm-map .leaflet-popup-content,
.alomran-map .leaflet-popup-content {
    direction: rtl;
    text-align: right;
    font-family: inherit;
    margin: 10px 14px;
    line-height: 1.6;
}

.asm-popup__title {
    display: block;
    color: #1E4724;
    font-size: 1.05em;
}

.asm-map .leaflet-popup-content img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 8px;
    border-radius: 8px;
}

.asm-popup__more {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #1E4724;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.9em;
}

.asm-map .leaflet-container a.leaflet-popup-close-button {
    left: 4px;
    right: auto;
}

.asm-map .leaflet-control-attribution {
    font-size: 11px;
}

@media (max-width: 767px) {
    .asm-map { border-radius: 10px; }
    .asm-filter__btn { padding: 5px 11px; font-size: 0.9em; }
}

/* ---------- Extras under the map (2.1) ---------- */
.asm-meta { margin: 10px 0 18px; text-align: right; color: #5b4a2c; }
.asm-meta .alomran-meta-views i { margin-inline-end: 4px; }

/* Share box fallback (theme's .alomran-share-box styles win when present because they load later or are more specific) */
.asm-share { direction: rtl; margin: 0 0 24px; }
.asm-share .alomran-share-icons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.asm-share .share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(30,71,36,.35); background: #fff9ed; color: #1E4724; font: inherit; cursor: pointer; text-decoration: none; }
.asm-share .share-icon img { width: 18px; height: 18px; display: block; }

/* Suggest section */
.asm-suggest { direction: rtl; text-align: right; margin: 8px 0 32px; }
.asm-suggest__cta { border: 1px solid rgba(30,71,36,.25); border-radius: 14px; background: linear-gradient(180deg, #fff9ed, #f6ecd2); padding: 22px 24px; }
.asm-suggest__heading { margin: 0 0 6px; color: #1E4724; font-size: 1.25em; }
.asm-suggest__lead { margin: 0 0 14px; color: #4b3d24; line-height: 1.7; }
.asm-suggest__open, .asm-suggest__submit { display: inline-block; padding: 10px 22px; border-radius: 999px; border: 0; background: #1E4724; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.asm-suggest__open:hover, .asm-suggest__submit:hover { background: #163619; }
.asm-suggest__notice { border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.asm-suggest__notice.is-ok { background: #e6f2e7; color: #1E4724; border: 1px solid #1E4724; }
.asm-suggest__notice.is-error { background: #fdecec; color: #8a1c1c; border: 1px solid #b32d2e; }

/* Dialog */
.asm-suggest__dialog { box-sizing: border-box; width: min(720px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: 92vh; overflow: auto; overscroll-behavior: contain; padding: 0; border: 0; border-radius: 16px; background: #fffdf7; color: #2b2113; direction: rtl; text-align: right; }
.asm-suggest__dialog *, .asm-suggest__dialog *::before, .asm-suggest__dialog *::after { box-sizing: border-box; }
.asm-suggest__form > * { min-width: 0; max-width: 100%; }
.asm-suggest__form input, .asm-suggest__form select, .asm-suggest__form textarea { max-width: 100%; }
.asm-suggest__form input[type="file"] { width: 100%; max-width: 100%; }
.asm-suggest__dialog::backdrop { background: rgba(20, 14, 5, .6); }
html.asm-dialog-open { overflow: hidden; }
.asm-suggest__form { padding: 20px 22px 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; max-width: 100%; }
.asm-suggest__head, .asm-suggest__form > .asm-field:not(.asm-field--half), .asm-suggest__disclaimer, .asm-suggest__actions { grid-column: 1 / -1; }
.asm-suggest__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.asm-suggest__head h3 { margin: 0; color: #1E4724; }
.asm-suggest__close { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: #5b4a2c; }
.asm-field label, .asm-label { display: block; font-weight: 700; margin-bottom: 4px; color: #1E4724; }
.asm-field input[type="text"], .asm-field input[type="url"], .asm-field select, .asm-field textarea { width: 100%; padding: 8px 10px; border: 1px solid rgba(30,71,36,.35); border-radius: 8px; background: #fff; font: inherit; }
.asm-req { color: #b32d2e; }
.asm-hint, .asm-nojs-hint { margin: 0 0 6px; font-size: .9em; color: #5b4a2c; }
.asm-suggest__map { width: 100%; max-width: 100%; height: 260px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(30,71,36,.25); direction: ltr; }
.asm-coords { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.asm-coords label { font-weight: 400; font-size: .9em; }
.asm-coords input { width: 100%; padding: 6px 8px; border: 1px solid rgba(30,71,36,.35); border-radius: 8px; font: inherit; }
.asm-hp, .asm-hp[hidden] { display: none; }
.asm-suggest__disclaimer { margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; background: #f3e9cf; color: #4b3d24; font-size: .92em; line-height: 1.6; }
.asm-suggest__actions { display: flex; gap: 10px; align-items: center; }
.asm-suggest__cancel { border: 0; background: transparent; color: #5b4a2c; font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 600px) {
    .asm-suggest__form { grid-template-columns: 1fr; }
    .asm-coords { grid-template-columns: 1fr; }
}
@media print { .asm-suggest, .asm-share, .asm-filter { display: none; } }
