
* {
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #202a33;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.85;
}

.topbar {
    background: #173b57;
    color: #fff;
}

.topbar-inner {
    width: min(100% - 30px, 1050px);
    margin: 0 auto;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.admin-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 18px;
}

.container {
    width: min(100% - 30px, 950px);
    margin: 28px auto 50px;
}

.admin-container {
    max-width: 850px;
}

.heading {
    margin-bottom: 20px;
}

.heading h1 {
    margin: 0 0 4px;
    font-size: 25px;
}

.heading p {
    margin: 0;
    color: #687681;
}

.property-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.property,
.settings,
.editor,
.empty,
.login-box {
    background: #fff;
    border: 1px solid #dfe5ea;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(20, 40, 60, .04);
}

.property {
    padding: 18px 20px;
    margin-bottom: 13px;
}

.ad-content {
    white-space: normal;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    font-size: 19px;
    line-height: 2;
}

.ad-link {
    color: #0869b2;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.ad-link:hover {
    color: #064b80;
}

.date {
    display: block;
    color: #89939c;
    font-size: 12px;
    margin-top: 12px;
}

.empty {
    padding: 28px;
    text-align: center;
    color: #77838d;
}

.footer {
    text-align: center;
    color: #89939c;
    font-size: 12px;
    padding: 20px;
}

.settings {
    padding: 16px 18px;
    margin-bottom: 17px;
}

.settings h2,
.manage h2 {
    margin: 0 0 12px;
    font-size: 19px;
}

.settings-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-form label {
    font-weight: bold;
}

.settings-form input[type=number] {
    width: 105px;
    padding: 9px 10px;
    border: 1px solid #cbd4dc;
    border-radius: 7px;
    font: inherit;
    text-align: center;
    direction: ltr;
}

.hint {
    margin: 10px 0 0;
    color: #77838d;
    font-size: 13px;
}

.editor {
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

textarea {
    width: 100%;
    min-height: 235px;
    resize: vertical;
    padding: 14px;
    border: 1px solid #cbd4dc;
    border-radius: 7px;
    font: 16px/2 Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

textarea:focus,
input:focus {
    outline: none;
    border-color: #2876a5;
    box-shadow: 0 0 0 3px rgba(40,118,165,.12);
}

.primary,
.delete {
    border: 0;
    border-radius: 7px;
    padding: 9px 19px;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.primary {
    color: #fff;
    background: #176b9a;
}

.primary:hover {
    background: #10577f;
}

.manage {
    margin-top: 28px;
}

.manage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf0f2;
    margin-top: 12px;
    padding-top: 8px;
}

.manage-footer .date {
    margin: 0;
}

.delete {
    color: #b42318;
    background: #fff0f0;
    padding: 5px 12px;
    font-size: 13px;
}

.alert {
    padding: 10px 14px;
    border-radius: 7px;
    margin-bottom: 14px;
}

.success {
    color: #216e39;
    background: #eaf7ee;
}

.error {
    color: #b42318;
    background: #fff0f0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 25px 0 7px;
}

.page-button {
    min-width: 38px;
    min-height: 38px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5dde4;
    border-radius: 6px;
    background: #fff;
    color: #175d87;
    text-decoration: none;
    font-size: 14px;
}

a.page-button:hover {
    background: #edf5fa;
}

.page-button.active {
    color: #fff;
    background: #173b57;
    border-color: #173b57;
}

.dots {
    color: #77838d;
    padding: 0 3px;
}

.page-info {
    text-align: center;
    color: #89939c;
    font-size: 12px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-box {
    width: min(100%, 390px);
    padding: 25px;
}

.login-box h1 {
    margin: 0 0 18px;
    font-size: 22px;
}

.login-box label {
    display: block;
    margin-bottom: 6px;
}

.login-box input[type=password] {
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd4dc;
    border-radius: 7px;
    margin-bottom: 14px;
    font: inherit;
}

.login-box .primary {
    width: 100%;
}

.back {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #176b9a;
    text-decoration: none;
    font-size: 13px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* أزرار التواصل */

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: opacity .15s ease;
}

.contact-button:hover {
    opacity: .88;
}

.whatsapp-button {
    background: #16834a;
}

.phone-button {
    background: #176b9a;
}

/* تثبيت حجم الأيقونات على 16 بكسل */

.contact-buttons .contact-button svg.contact-icon {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex: 0 0 16px !important;
    overflow: hidden !important;
    vertical-align: middle !important;
}

/* إعدادات الهاتف */

@media (max-width: 600px) {

    .topbar-inner {
        width: calc(100% - 22px);
        min-height: 54px;
    }

    .logo {
        font-size: 19px;
    }

    .header-actions {
        gap: 11px;
    }

    .admin-link {
        font-size: 12px;
    }

    .container {
        width: calc(100% - 20px);
        margin-top: 18px;
    }

    .heading h1 {
        font-size: 21px;
    }

    .property {
        padding: 13px;
    }

    .ad-content {
        font-size: 18px;
        line-height: 1.95;
    }

    textarea {
        min-height: 210px;
        font-size: 15px;
    }

    .settings-form {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-form input[type=number] {
        width: 100%;
    }

    .settings-form .primary {
        width: 100%;
    }

    .manage-footer {
        align-items: flex-start;
    }

    .pagination {
        gap: 5px;
    }

    .page-button {
        min-width: 34px;
        min-height: 36px;
        padding: 4px 9px;
    }

    .contact-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .contact-button {
        padding: 8px 6px;
        font-size: 13px;
    }
	.property {
    position: relative !important;
}

.property-id {
    position: absolute !important;
    left: 10px !important;
    right: auto !important;
    top: 10px !important;
    font-size: 10px !important;
    color: #999 !important;
    direction: ltr !important;
    text-align: left !important;
    font-weight: normal !important;
    width: auto !important;
    z-index: 5;
}
}






/* حقلا البحث: بحث عام + منطقة */
.search-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
    margin: 16px 0 22px;
}

.search-field {
    flex: 1 1 220px;
    min-width: 0;
}

.search-field label {
    display: block;
    margin: 0 0 5px;
    color: #46535e;
    font-size: 13px;
    font-weight: bold;
}

.search-field input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #cbd4dc;
    border-radius: 7px;
    background: #fff;
    color: #202a33;
    font: 14px Tahoma, Arial, sans-serif;
    direction: rtl;
}

.search-form button {
    border: 0;
    border-radius: 7px;
    padding: 10px 22px;
    min-height: 42px;
    background: #176b9a;
    color: #fff;
    font: bold 14px Tahoma, Arial, sans-serif;
    cursor: pointer;
}

.search-form button:hover {
    background: #10577f;
}

.clear-search {
    align-self: center;
    color: #687681;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}


.property {
    position: relative;
}

.property-id {
    position: absolute;
    left: 10px;
    right: auto;
    top: 10px;
    font-size: 10px;
    color: #999;
    direction: ltr;
    text-align: left;
    font-weight: normal;
    width: auto;
    z-index: 5;
}

@media (max-width: 600px) {
    .search-form {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin-top: 13px;
    }

    .search-field {
        flex-basis: auto;
        width: 100%;
    }

    .search-field input {
        padding: 10px;
        font-size: 13px;
    }

    .search-form button {
        width: 100%;
        padding: 9px 15px;
        font-size: 13px;
    }

    .clear-search {
        align-self: flex-start;
    }

    .contact-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}


/* رقم الإعلان وأيقونة المشاركة بجواره */
.property-meta {
    position: absolute;
    left: 10px;
    right: auto;
    top: 8px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    direction: ltr;
}
.property-meta .property-id {
    position: static !important;
    inset: auto;
    width: auto;
    color: #999;
    font-size: 10px;
    font-weight: normal;
    line-height: 1;
}
.share-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #176b9a;
    cursor: pointer;
}
.share-icon-button:hover {
    background: #edf5fa;
}
.share-icon-button:focus-visible {
    outline: 2px solid #176b9a;
    outline-offset: 2px;
}
.share-icon-button .share-icon {
    display: block;
    width: 17px;
    height: 17px;
}
@media (max-width: 600px) {
    .property-meta {
        left: 8px;
        top: 7px;
        gap: 5px;
    }
    .property-meta .property-id {
        position: static !important;
    }
    .share-icon-button {
        width: 27px;
        height: 27px;
    }
}


/* إرسال إعلان جديد */
.submit-ad-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 7px;
    background: #16834a;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}
.submit-ad-link:hover { background: #116b3c; }
.status-label { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 5px; font-size: 12px; }
.status-pending { color: #805500; background: #fff4d6; }
.status-approved { color: #216e39; background: #eaf7ee; }
.status-rejected { color: #a32121; background: #fff0f0; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.moderation-actions form { margin: 0; }
.approve, .reject { border: 0; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 12px; font-weight: bold; cursor: pointer; }
.approve { color: #216e39; background: #eaf7ee; }
.reject { color: #805500; background: #fff4d6; }
@media (max-width: 600px) {
    .topbar-inner { flex-wrap: wrap; padding: 8px 0; }
    .submit-ad-link { font-size: 12px; padding: 6px 9px; }
    .manage-footer { flex-direction: column; }
    .moderation-actions { width: 100%; }
}


/* زر مشاركة الإعلان - أخضر متناسق مع زر واتساب */
.share-only-row {
    margin-top: 8px;
}
.share-button {
    border: 0;
    background: #16834a;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}
.share-button:hover {
    background: #116b3c;
}
.share-button .share-icon {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    flex: 0 0 17px !important;
}

/* تعديل الإعلان قبل الموافقة عليه */
.edit-ad-details {
    flex: 1 1 100%;
    min-width: 220px;
}
.edit-ad-toggle {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: #eef3f7;
    color: #24536f;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    list-style-position: inside;
}
.edit-ad-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
    background: #fafcfd;
}
.edit-ad-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid #ccd5dc;
    border-radius: 6px;
    font: inherit;
    line-height: 1.7;
    resize: vertical;
}
.edit-ad-form .primary {
    align-self: flex-start;
}

/* إصلاح نهائي للون زر «ارسل الاعلان» أسفل كل موضوع */
.contact-buttons .contact-button.share-button {
    background: #16834a !important;
    background-color: #16834a !important;
    color: #ffffff !important;
    border: 0 !important;
    appearance: none;
    -webkit-appearance: none;
}
.contact-buttons .contact-button.share-button:hover,
.contact-buttons .contact-button.share-button:focus-visible {
    background: #116b3c !important;
    background-color: #116b3c !important;
    color: #ffffff !important;
}


/* أزرار طلب العقار وإرسال الإعلان في رأس الصفحة */
.public-action-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.request-property-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 7px;
    background: #2475a5;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}
.request-property-link:hover {
    background: #1b5f87;
}
@media (max-width: 600px) {
    .public-action-links {
        gap: 6px;
    }
    .request-property-link,
    .submit-ad-link {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* صندوق الطلبات الخاصة في لوحة التحكم */
.requests-manage {
    margin-bottom: 26px;
}
.unread-counter {
    display: inline-block;
    margin-right: 7px;
    padding: 3px 9px;
    border-radius: 14px;
    color: #805500;
    background: #fff4d6;
    font-size: 12px;
    vertical-align: middle;
}
.request-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.request-preview {
    margin-top: 8px;
    color: #596775;
    overflow-wrap: anywhere;
}
.request-opened {
    border-color: #9bc7df;
    background: #fbfdff;
}
.request-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 7px;
    background: #f4f7f9;
    white-space: normal;
}
.read-request-button,
.back-request-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 6px;
    background: #176b9a;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}
.read-request-button:hover,
.back-request-link:hover {
    background: #10577f;
}
.back-request-link {
    margin-top: 12px;
}

/* روابط أرقام الهواتف داخل تفاصيل طلبات العقارات الخاصة فقط */
.request-whatsapp-link {
    color: #16834a !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.request-whatsapp-link:hover { color: #0f6337 !important; }


/* ===== هوية عقارات عُمان: العنابي والكريمي ===== */
:root {
    --aqar-maroon: #760d27;
    --aqar-maroon-dark: #5f091e;
    --aqar-cream: #fbf3e8;
    --aqar-cream-deep: #f1e3cf;
    --aqar-gold: #b28b5e;
    --aqar-ink: #241a18;
}
body {
    background: #fffaf4;
    color: var(--aqar-ink);
}
.site-header {
    background: var(--aqar-maroon);
    color: #fff;
    box-shadow: 0 4px 16px rgba(80, 12, 31, .16);
}
.site-banner {
    min-height: 176px;
    padding: 22px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--aqar-maroon);
    background: url("images/oman-banner.jpg") center center / 100% 100% no-repeat;
    border-bottom: 5px solid var(--aqar-gold);
    position: relative;
    overflow: hidden;
}
.site-banner::before,
.site-banner::after {
    content: none;
}
.site-banner::before,
.site-banner::after {
    content: "";
    position: absolute;
    bottom: -36px;
    width: 190px;
    height: 90px;
    border: 2px solid rgba(118,13,39,.10);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}
.site-banner::before { right: -65px; }
.site-banner::after { left: -65px; }
.site-brand {
    position: relative;
    z-index: 1;
    color: var(--aqar-maroon);
    text-decoration: none;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.5px;
    text-shadow: 0 1px 1px rgba(255,250,242,.45);
}
.site-tagline {
    position: relative;
    z-index: 1;
    margin: 3px 0 0;
    color: #382522;
    font-size: clamp(14px, 2vw, 19px);
    font-weight: 700;
}
.site-actions {
    width: min(100% - 28px, 1050px);
    margin: 0 auto;
    min-height: 82px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}
.site-action {
    min-height: 56px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 12px;
    background: var(--aqar-cream);
    color: var(--aqar-maroon);
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    transition: background .18s ease, transform .18s ease;
}
.site-action:hover,
.site-action:focus-visible {
    background: #fff;
    transform: translateY(-1px);
}
.site-action-icon {
    font-size: 27px;
    line-height: 1;
    font-weight: 700;
}
.container {
    margin-top: 24px;
}
.heading {
    padding: 10px 14px;
    background: var(--aqar-cream-deep);
    border-radius: 10px;
    color: var(--aqar-maroon);
}
.heading h1 {
    color: var(--aqar-maroon);
}
.heading p {
    color: #715e50;
}
.property,
.settings,
.editor,
.empty,
.login-box {
    background: #fffdfa;
    border-color: #e5d3bd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(95, 55, 31, .045);
}
.ad-content { color: #2a211d; }
.ad-link { color: var(--aqar-maroon); }
.primary,
button[type="submit"],
.search-form button {
    background: var(--aqar-maroon);
    border-color: var(--aqar-maroon);
}
.primary:hover,
button[type="submit"]:hover,
.search-form button:hover {
    background: var(--aqar-maroon-dark);
}
.page-button.active {
    background: var(--aqar-maroon);
    border-color: var(--aqar-maroon);
}
.page-button,
input,
textarea,
select {
    border-color: #ddc9b1;
}
@media (max-width: 600px) {
    .site-banner {
        min-height: 122px;
        padding: 17px 12px 15px;
        border-bottom-width: 4px;
        background-size: 100% 100%;
    }
    .site-brand {
        font-size: clamp(29px, 8vw, 38px);
    }
    .site-tagline {
        max-width: 360px;
        font-size: clamp(12px, 3.35vw, 15px);
        line-height: 1.7;
    }
    .site-actions {
        width: calc(100% - 20px);
        min-height: 0;
        gap: 7px;
        padding: 10px 0;
    }
    .site-action {
        min-height: 66px;
        padding: 8px 4px;
        flex-direction: column;
        gap: 3px;
        border-radius: 10px;
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.4;
    }
    .site-action-icon {
        font-size: 24px;
    }
    .container {
        margin-top: 14px;
    }
}


/* توحيد تصميم صفحات إرسال الإعلان وطلب العقار */
.topbar {
    background: var(--aqar-maroon);
    color: #fff;
    box-shadow: 0 4px 16px rgba(80, 12, 31, .16);
}
.topbar-inner { min-height: 68px; }
.topbar .logo { color: #fff; font-weight: 800; }
.topbar .admin-link {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; border-radius: 9px;
    background: var(--aqar-cream); color: var(--aqar-maroon);
    font-weight: 700; text-decoration: none;
}
.admin-container .heading {
    padding: 12px 16px; border-right: 5px solid var(--aqar-gold);
}
.admin-container .heading h1 { color: var(--aqar-maroon); }
.editor {
    padding: 22px; border: 1px solid #e5d3bd; border-radius: 14px;
    background: #fffdfa; box-shadow: 0 4px 16px rgba(95,55,31,.06);
}
.editor label {
    display: block; margin: 0 0 9px;
    color: var(--aqar-maroon); font-weight: 800;
}
.editor textarea, .editor input, .editor select {
    width: 100%; border: 1px solid #ddc9b1; border-radius: 10px;
    background: #fffaf4; color: var(--aqar-ink);
    padding: 12px 14px; font: inherit; outline: none;
}
.editor textarea:focus, .editor input:focus, .editor select:focus {
    border-color: var(--aqar-maroon);
    box-shadow: 0 0 0 3px rgba(118,13,39,.10);
}
.editor textarea { min-height: 230px; resize: vertical; }
.editor .primary {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; margin-top: 14px; padding: 10px 22px;
    border: 1px solid var(--aqar-maroon); border-radius: 10px;
    background: var(--aqar-maroon); color: #fff; font: inherit;
    font-weight: 800; cursor: pointer;
}
.editor .primary:hover { background: var(--aqar-maroon-dark); }
.alert.success { border-color: #c7dfca; background: #f0f8f0; }
.alert.error { border-color: #e8c5c5; background: #fff3f2; }
@media (max-width: 600px) {
    .topbar-inner { width: calc(100% - 22px); min-height: 58px; gap: 8px; }
    .topbar .logo { font-size: 17px; }
    .topbar .admin-link { padding: 7px 10px; font-size: 12px; }
    .admin-container .heading h1 { font-size: 20px; }
    .editor { padding: 14px; }
    .editor .primary { width: 100%; }
}


/* ألوان أزرار التواصل بما يتناسق مع الهوية العنابية والكريمية */
.contact-buttons:not(.share-only-row) .whatsapp-button {
    background: #16834a !important;
    color: #ffffff !important;
    border: 1px solid #16834a !important;
}

.contact-buttons:not(.share-only-row) .phone-button {
    background: #70263d !important;
    color: #fffaf1 !important;
    border: 1px solid #70263d !important;
}

.contact-buttons:not(.share-only-row) .sms-button {
    background: #f7eddd !important;
    color: #70263d !important;
    border: 1px solid #d8bd9e !important;
}

.contact-buttons:not(.share-only-row) .contact-button {
    min-height: 44px;
    border-radius: 9px;
    box-shadow: 0 2px 5px rgba(70, 35, 45, .08);
}

.contact-buttons:not(.share-only-row) .contact-button:hover,
.contact-buttons:not(.share-only-row) .contact-button:focus-visible {
    filter: brightness(.96);
    opacity: 1;
}

@media (max-width: 600px) {
    .contact-buttons:not(.share-only-row) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-buttons:not(.share-only-row) .sms-button {
        grid-column: 1 / -1;
    }
}


/* Final banner refinements: compact desktop proportions and clear mobile tagline */
.site-banner,
.hero-banner,
.main-banner {
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .site-banner,
    .hero-banner,
    .main-banner {
        min-height: 210px;
        height: auto;
        max-height: 270px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

@media (max-width: 767px) {
    .site-banner,
    .hero-banner,
    .main-banner {
        min-height: 220px;
        height: auto;
        max-height: none;
        padding-top: 16px;
        padding-bottom: 18px;
        background-position: center;
    }

    .site-banner .banner-subtitle,
    .hero-banner .banner-subtitle,
    .main-banner .banner-subtitle,
    .site-banner .banner-description,
    .hero-banner .banner-description,
    .main-banner .banner-description {
        max-width: 92%;
        margin-inline: auto;
        line-height: 1.7;
        white-space: normal;
        text-wrap: balance;
    }
}


/* إصلاح نهائي لتناسق البانر: إظهار المشهد كاملاً على الكمبيوتر والجوال */
.site-banner {
    box-sizing: border-box;
    min-height: 230px;
    height: auto;
    padding: 24px 18px 22px;
    background-image: url("images/oman-banner.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    overflow: hidden;
}

.site-banner .site-brand,
.site-banner .site-tagline {
    position: relative;
    z-index: 2;
}

.site-banner .site-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
    line-height: 1.55;
}

/* في الشاشات الواسعة نحافظ على كامل الصورة دون قص أطرافها أو أعلاها */
@media (min-width: 768px) {
    .site-banner {
        min-height: 230px;
        padding-top: 24px;
        padding-bottom: 22px;
        background-size: 100% 100%;
    }

    .site-banner .site-brand {
        font-size: clamp(34px, 4vw, 48px);
    }

    .site-banner .site-tagline {
        font-size: clamp(15px, 1.6vw, 19px);
    }
}

/* على الجوال: العنوان والوصف في مساحة مستقلة، والصورة كاملة أسفلها */
@media (max-width: 767px) {
    .site-banner {
        min-height: 0;
        height: auto;
        padding: 14px 10px 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background-color: #fbf3e8;
        background-image: none;
        border-bottom-width: 4px;
    }

    .site-banner::before {
        content: "";
        position: absolute;
        display: block;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 1;
        border: 0;
        border-radius: 0;
        background-image: url("images/oman-banner.jpg");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 100% 100%;
        pointer-events: none;
        z-index: 0;
    }

    .site-banner::after {
        content: none;
    }

    .site-banner .site-brand {
        font-size: clamp(25px, 7vw, 34px);
        line-height: 1.35;
        white-space: nowrap;
    }

    .site-banner .site-tagline {
        max-width: 100%;
        margin: 5px 0 0;
        padding: 0 2px;
        font-size: clamp(12px, 3.5vw, 15px);
        line-height: 1.65;
        gap: 0;
    }

    .site-banner .site-tagline span {
        display: block;
        white-space: nowrap;
    }

    /* reserve a full-width image strip below the words */
    .site-banner {
        padding-bottom: calc((100vw - 20px) / 3 + 8px);
    }
}


/* الإصلاح المطلوب: النص في منتصف المشهد بين القلعة والمسجد على الجوال */
@media (max-width: 767px) {
    .site-banner {
        position: relative;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 190px;
        height: auto;
        padding: 20px 7px 25px;
        overflow: hidden;
        text-align: center;
        background-color: #fbf0df;
        background-image: url("images/oman-banner.jpg");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 100% 100%;
        border-bottom: 4px solid #b58a49;
    }

    /* إلغاء الصورة المنفصلة أسفل النص؛ كل العناصر في بانر واحد */
    .site-banner::before,
    .site-banner::after {
        content: none !important;
        display: none !important;
    }

    .site-banner .site-brand {
        position: relative;
        z-index: 3;
        display: block;
        max-width: 100%;
        margin: 0;
        padding: 0 2px;
        color: #70263d;
        font-size: clamp(21px, 6vw, 28px);
        line-height: 1.35;
        font-weight: 900;
        white-space: nowrap;
        text-align: center;
        text-shadow: 0 1px 3px rgba(255, 248, 235, .95),
                     0 0 7px rgba(255, 248, 235, .9);
    }

    .site-banner .site-tagline {
        position: relative;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        margin: 5px 0 0;
        padding: 0;
        color: #70263d;
        font-size: clamp(12px, 3.4vw, 15px);
        line-height: 1.65;
        font-weight: 800;
        text-align: center;
        text-shadow: 0 1px 3px rgba(255, 248, 235, .98),
                     0 0 6px rgba(255, 248, 235, .95);
    }

    .site-banner .site-tagline span {
        display: block;
        white-space: nowrap;
    }
}


/* تحسين وضوح أزرار مراجعة الإعلانات */
.moderation-actions .approve,
.moderation-actions .reject {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.4;
    padding: 8px 14px;
    border: 1px solid transparent;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
    box-shadow: 0 2px 5px rgba(50, 25, 30, .12);
    opacity: 1;
}

.moderation-actions .approve {
    background: #247344 !important;
    border-color: #1d6038 !important;
}

.moderation-actions .reject {
    background: #873047 !important;
    border-color: #70263d !important;
}

.moderation-actions .approve:hover,
.moderation-actions .approve:focus-visible {
    background: #195c35 !important;
}

.moderation-actions .reject:hover,
.moderation-actions .reject:focus-visible {
    background: #682237 !important;
}

@media (max-width: 600px) {
    .moderation-actions .approve,
    .moderation-actions .reject {
        min-height: 40px;
        font-size: 14px !important;
        padding: 9px 14px;
    }
}


/* تكبير بسيط إضافي لعنوان البانر وتصنيفات العقارات */
@media (min-width: 768px) {
    .site-banner .site-brand {
        font-size: clamp(38px, 4.3vw, 52px);
    }

    .site-banner .site-tagline {
        font-size: clamp(17px, 1.8vw, 21px);
        font-weight: 800;
    }
}

/* زر واتساب داخل لوحة التحكم فقط */
.admin-whatsapp-button { display:inline-block; background:#168a45; color:#fff !important; padding:8px 14px; border-radius:7px; text-decoration:none; font-weight:700; margin:5px 0; }
.admin-whatsapp-button:hover { background:#116f37; }
.editor input[type="tel"] { width:100%; box-sizing:border-box; margin:0 0 14px; padding:12px; border:1px solid #d7d0c8; border-radius:7px; font:inherit; direction:ltr; text-align:right; }


/* ضمان ظهور جميع إعلانات لوحة التحكم كسجل عمودي واضح */
.admin-ads-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
}
.admin-ads-list > .admin-ad-card {
    display: block !important;
    flex: 0 0 auto !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    margin: 0 0 14px !important;
}
.admin-ad-number {
    display: block;
    margin: 0 0 8px;
    color: #8a6a55;
    font-size: 12px;
    font-weight: 700;
}
