:root {
    --bg: #f5f2ec;
    --card: #ffffff;
    --text: #202024;
    --muted: #6f7376;
    --line: #ddd8cf;

    /* Khamacheer logo palette */
    --brand: #404048;
    --brand-dark: #202024;
    --brand-red: #e81820;
    --brand-green: #00a048;
    --brand-silver: #a0a8a8;
    --brand-white: #ffffff;

    --danger: #e81820;
    --ok: #00a048;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--brand);
}

.nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
}

.nav a {
    color: #333;
    padding: 8px 10px;
    border-radius: 999px;
}

.nav a:hover,
.nav a.active {
    background: var(--bg);
    color: var(--brand);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px;
}

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f5f2ec 55%, #eef7f1 100%);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: 0 16px 40px rgba(0,0,0,.06);
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1;
    color: var(--brand);
}

.hero p {
    margin: 0;
    color: #404048;
    font-size: 18px;
    max-width: 680px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin: 26px 0 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 24px;
}

.muted {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.card-img {
    aspect-ratio: 1 / 1;
    background: #f0f0ee;
    display: block;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 8px;
}

.price {
    color: var(--brand);
    font-weight: 800;
}

.badge {
    display: inline-block;
    font-size: 12px;
    background: rgba(0, 160, 72, .10);
    color: var(--brand);
    padding: 5px 9px;
    border-radius: 999px;
    margin-bottom: 9px;
}

.empty {
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 28px;
    color: var(--muted);
}

.item-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
}

.item-main-img {
    width: 100%;
    border-radius: 24px;
    background: #f0f0ee;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
}

.item-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    align-self: start;
}

.item-panel h1 {
    margin: 0 0 12px;
    font-size: 36px;
}

.btn {
    display: inline-block;
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.btn.secondary {
    background: #eee;
    color: #222;
}

.btn.danger {
    background: var(--danger);
}

.admin-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.form-row {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    background: #fff;
}

textarea {
    min-height: 120px;
}

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

.alert.error {
    background: #ffecec;
    color: var(--danger);
}

.alert.ok {
    background: #e8f6ee;
    color: var(--ok);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.table th,
.table td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 12px;
}

.table th {
    background: #f0f0ee;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 26px;
    }
}


/* Khamacheer logo inspired accents */
.logo {
    color: var(--brand-dark);
}

.logo::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 8px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--brand-green) 0 33%, var(--brand-white) 33% 66%, var(--brand-red) 66% 100%);
    border: 1px solid var(--brand);
    vertical-align: -1px;
}

.site-header {
    border-top: 5px solid var(--brand);
}

.site-header::after {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-white), var(--brand-red));
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, var(--brand-green), var(--brand-red));
}

.hero h1 {
    color: var(--brand-dark);
}

.btn {
    background: var(--brand-dark);
}

.btn:hover {
    filter: brightness(.92);
}

.btn.secondary {
    background: #f0f0ee;
    color: var(--brand-dark);
    border: 1px solid var(--line);
}

.price {
    color: var(--brand-green);
}

.badge {
    background: rgba(232, 24, 32, .08);
    color: var(--brand-red);
}

.admin-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    background: rgba(255,255,255,.92);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    backdrop-filter: blur(8px);
    z-index: 50;
}

.admin-wrap {
    padding-bottom: 70px;
}

.admin-login-page {
    min-height: 100vh;
    padding-bottom: 58px;
}

.admin-card {
    border-top: 4px solid var(--brand);
}

.admin-card h1,
.admin-card h2 {
    color: var(--brand-dark);
}

.admin-login-logo-wrap {
    text-align: center;
    margin-bottom: 18px;
}

.admin-login-logo {
    width: 180px;
    max-width: 80%;
    height: auto;
    display: inline-block;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.form-split {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 9px;
}

.checkbox-row input {
    width: auto;
}

.actions {
    white-space: nowrap;
}

.btn.tiny {
    padding: 7px 10px;
    font-size: 12px;
}

.admin-thumb {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #f0f0ee;
}

.admin-thumb.small {
    width: 58px;
    height: 58px;
    border-radius: 10px;
}

.wide-scroll {
    overflow-x: auto;
}

@media (max-width: 1050px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .2px;
    color: var(--brand-dark);
}

.admin-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.admin-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 11px 16px;
    background: rgba(32,32,36,.96);
    border-top: 3px solid var(--brand-red);
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    z-index: 999;
}

.admin-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-white), var(--brand-red));
}

.admin-wrap {
    padding-bottom: 88px;
}

.admin-brand::before {
    content: none !important;
}

/* polish admin header logo */
.admin-brand {
    gap: 14px;
}

.admin-brand-logo {
    width: 62px !important;
    height: 62px !important;
    object-fit: contain;
}

.admin-brand span {
    font-size: 26px;
    line-height: 1;
}

.site-header-inner {
    min-height: 86px;
}

.item-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.item-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f0f0ee;
}

.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.admin-image-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-image-tile .btn {
    text-align: center;
}

@media (max-width: 700px) {
    .item-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* public logo/header */
.public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-dark);
    font-size: 26px;
    font-weight: 900;
}

.public-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.public-brand::before {
    content: none !important;
}

/* language direction */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .site-header-inner,
body.rtl .section-title {
    direction: rtl;
}

body.rtl .nav {
    direction: rtl;
}

body.rtl .item-panel {
    text-align: right;
}

body.rtl .hero::before {
    left: auto;
    right: 0;
}

/* clickable item gallery */
.item-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumb {
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    background: #f0f0ee;
}

.gallery-thumb.active {
    border-color: var(--brand-green);
}

@media (max-width: 700px) {
    .public-brand-logo {
        width: 52px;
        height: 52px;
    }

    .public-brand {
        font-size: 22px;
    }
}

.item-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.whatsapp-btn {
    background: #25D366 !important;
    color: #ffffff !important;
}

.whatsapp-btn::before {
    content: "☎";
    display: inline-block;
    margin-inline-end: 8px;
    font-weight: 900;
}

.buy-btn {
    background: var(--brand-red) !important;
    color: #ffffff !important;
}

.buy-btn::before {
    content: "🛒";
    display: inline-block;
    margin-inline-end: 8px;
}

body.rtl .whatsapp-btn::before,
body.rtl .buy-btn::before {
    margin-inline-end: 8px;
}

@media (max-width: 520px) {
    .item-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* public polish: arabic font, cleaner header, language dropdown */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;700;800;900&display=swap');

body.rtl,
body.rtl input,
body.rtl textarea,
body.rtl select,
body.rtl button {
    font-family: "Alexandria", Arial, sans-serif;
}

body.rtl .hero h1,
body.rtl .item-panel h1,
body.rtl .card-title,
body.rtl .section-title h2 {
    font-family: "Alexandria", Arial, sans-serif;
    letter-spacing: -0.8px;
}

.site-header {
    border-top: 2px solid var(--brand);
}

.site-header::after {
    height: 2px;
    opacity: .75;
}

.site-header-inner {
    min-height: 74px;
}

.public-brand-logo {
    width: 58px;
    height: 58px;
}

.public-brand {
    font-size: 24px;
}

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 145px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    padding: 8px;
    display: none;
    z-index: 100;
}

body.rtl .lang-menu {
    right: auto;
    left: 0;
}

.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.lang-menu a:hover {
    background: var(--bg);
}

.hero h1 {
    max-width: 760px;
}

body.rtl .hero h1 {
    font-size: clamp(36px, 6vw, 66px);
}

@media (max-width: 700px) {
    .site-header-inner {
        min-height: auto;
    }

    .public-brand-logo {
        width: 50px;
        height: 50px;
    }

    .public-brand {
        font-size: 21px;
    }
}

.checkout-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.checkout-img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    background: #f0f0ee;
}

.payment-methods {
    display: grid;
    gap: 10px;
}

.payment-methods label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
}

.payment-methods input {
    width: auto;
}

.checkout-confirm {
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.sold-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--brand-red);
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .6px;
    transform: rotate(-3deg);
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.item-sold-notice {
    display: inline-flex;
    margin: 4px 0 18px;
    padding: 10px 18px;
    border: 3px solid var(--brand-red);
    color: var(--brand-red);
    border-radius: 12px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 1px;
    transform: rotate(-2deg);
    background: #fff7f7;
}

.sold-btn.disabled {
    background: #777 !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: .85;
}

.card:has(.sold-ribbon) .card-img {
    filter: grayscale(.25);
}

/* ===== sold image stamp ===== */
.card {
    position: relative;
    overflow: hidden;
}

.card .sold-ribbon {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-16deg);
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 12px 28px;
    border: 5px solid rgba(214, 48, 49, .68);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: rgba(214, 48, 49, .78);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: none;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
}

.card .card-img,
.card img {
    display: block;
}

.card:has(.sold-ribbon) .card-img,
.card:has(.sold-ribbon) img {
    filter: saturate(.88) contrast(.97);
}

.sold-photo-wrap,
.sold-thumb-wrap {
    position: relative !important;
    overflow: hidden;
}

.photo-sold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-16deg);
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 14px 38px;
    border: 5px solid rgba(214, 48, 49, .68);
    border-radius: 16px;
    background: rgba(255, 255, 255, .10);
    color: rgba(214, 48, 49, .78);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: none;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
}

.photo-sold-stamp.photo-sold-stamp--thumb {
    min-width: 92px;
    padding: 6px 14px;
    border-width: 3px;
    border-radius: 10px;
    font-size: 17px;
    letter-spacing: 1px;
}

.item-sold-notice {
    display: none !important;
}

@media (max-width: 900px) {
    .card .sold-ribbon {
        min-width: 130px;
        padding: 8px 18px;
        font-size: 24px;
    }

    .photo-sold-stamp {
        min-width: 170px;
        padding: 10px 24px;
        font-size: 28px;
    }
}

.phone-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.phone-prefix {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f4ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    direction: ltr;
}

.captcha-pending {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed var(--line);
    background: #fff8e8;
    color: #8a5a00;
    line-height: 1.7;
}

body.rtl .phone-row input {
    direction: ltr;
    text-align: left;
}

/* locked kuwait phone input */
.kw-phone-field {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.kw-phone-prefix {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f4ef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 900;
    direction: ltr;
    white-space: nowrap;
    user-select: none;
}

.kw-flag {
    font-size: 20px;
    line-height: 1;
}

.kw-phone-input {
    direction: ltr !important;
    text-align: left !important;
    letter-spacing: 1px;
}

.phone-help {
    margin-top: 7px;
    font-size: 13px;
}

@media (max-width: 560px) {
    .kw-phone-field {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .kw-phone-prefix {
        font-size: 14px;
    }
}

/* locked kuwait phone input */
.kw-phone-field {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.kw-phone-prefix {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f4ef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 900;
    direction: ltr;
    white-space: nowrap;
    user-select: none;
}

.kw-flag {
    font-size: 20px;
    line-height: 1;
}

.kw-phone-input {
    direction: ltr !important;
    text-align: left !important;
    letter-spacing: 1px;
}

.phone-help {
    margin-top: 7px;
    font-size: 13px;
}

@media (max-width: 560px) {
    .kw-phone-field {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .kw-phone-prefix {
        font-size: 14px;
    }
}

/* locked kuwait phone input */
.kw-phone-field {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.kw-phone-prefix {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f4ef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 900;
    direction: ltr;
    white-space: nowrap;
    user-select: none;
}

.kw-flag {
    font-size: 20px;
    line-height: 1;
}

.kw-phone-input {
    direction: ltr !important;
    text-align: left !important;
    letter-spacing: 1px;
}

.phone-help {
    margin-top: 7px;
    font-size: 13px;
}

@media (max-width: 560px) {
    .kw-phone-field {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .kw-phone-prefix {
        font-size: 14px;
    }
}

.turnstile-wrap {
    margin-top: 8px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

body.rtl .turnstile-wrap {
    justify-content: flex-end;
}

.payment-option {
    cursor: pointer;
}

.payment-option-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

.payment-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: inline-block;
    flex: 0 0 auto;
}

.payment-icon-knet {
    width: 38px;
}

body.rtl .payment-option-content {
    flex-direction: row-reverse;
    direction: rtl;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.72);
}

.site-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #666;
    font-size: 14px;
}

.site-footer a {
    color: var(--brand-green);
    font-weight: 800;
    text-decoration: none;
}

.contact-hero p {
    color: #666;
    margin: 8px 0 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: stretch;
    margin-top: 24px;
}

.contact-card,
.map-card {
    min-height: 360px;
}

.contact-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

body.rtl .contact-row {
    grid-template-columns: 140px minmax(0, 1fr);
}

.contact-row a {
    color: var(--brand-green);
    font-weight: 900;
    text-decoration: none;
    direction: ltr;
    unicode-bidi: plaintext;
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.map-card {
    padding: 0 !important;
    overflow: hidden;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.lang-switch {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f7f4ef;
}

.lang-switch a {
    font-weight: 900;
}

@media (max-width: 800px) {
    .site-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== final public nav/footer cleanup ===== */

/* keep footer docked to bottom on short pages */
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main,
body > .container {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto !important;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.86);
}

/* make footer compact and bottom-like, not floating mid-page */
.site-footer-inner {
    max-width: 1160px;
    width: 100%;
    min-height: 54px;
    margin: 0 auto;
    padding: 14px 18px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #666;
    font-size: 14px;
}

/* normalize menu links so hover/active does not create oversized bubbles */
.nav {
    align-items: center;
}

.nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transform: none !important;
    box-shadow: none !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease !important;
}

/* no growing on hover */
.nav a:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #f2eee8 !important;
}

/* active item should be proportional to text */
.nav a.active {
    transform: none !important;
    box-shadow: none !important;
    background: #eee9e1 !important;
    color: #202024 !important;
}

/* keep the globe button round but not huge */
.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    box-shadow: none !important;
}

.lang-btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* mobile footer */
@media (max-width: 700px) {
    .site-footer-inner {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 16px 14px !important;
    }

    .nav a {
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 11px !important;
        font-size: 13px !important;
    }
}

/* final contact logo cap */
.site-header img,
.public-brand-logo {
    max-width: 62px !important;
    width: 62px !important;
    height: auto !important;
    object-fit: contain !important;
}

.public-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.public-brand span {
    font-weight: 900 !important;
    font-size: 24px !important;
    color: #202024 !important;
}

.office-photo-wrap {
    margin: 14px 0 18px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f7f4ef;
}

.office-photo {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.contact-card h2 {
    margin-bottom: 10px;
}

.contact-row {
    align-items: start;
}

.contact-row span,
.contact-row a {
    line-height: 1.8;
}

/* ===== final contact page polish ===== */
.contact-grid-final {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.whatsapp-contact-btn {
    background: #25D366 !important;
    color: #fff !important;
    border-color: #25D366 !important;
    box-shadow: none !important;
}

.whatsapp-contact-btn:hover {
    background: #1fb85a !important;
    border-color: #1fb85a !important;
}

.wa-icon {
    font-size: 17px;
    line-height: 1;
}

.contact-form-card {
    align-self: stretch;
}

.contact-form .form-row {
    margin-bottom: 14px;
}

.contact-submit-btn {
    margin-top: 4px;
}

.success {
    padding: 13px 15px;
    border-radius: 14px;
    background: #eaf7ee;
    color: #1c7c3f;
    font-weight: 800;
    margin-bottom: 14px;
}

.error {
    padding: 13px 15px;
    border-radius: 14px;
    background: #fdecec;
    color: #b42323;
    font-weight: 800;
    margin-bottom: 14px;
}

.office-photo-wrap {
    margin: 14px 0 18px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f7f4ef;
}

.office-photo {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .contact-grid-final {
        grid-template-columns: 1fr;
    }
}

/* ===== final clean contact page ===== */
.contact-hero p {
    color: #666;
    margin-top: 8px;
}

.contact-grid-final {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: start;
    margin-top: 24px;
}

.contact-grid-final .contact-card {
    min-height: auto !important;
}

.whatsapp-contact-btn {
    background: #25D366 !important;
    color: #fff !important;
    border-color: #25D366 !important;
    box-shadow: none !important;
}

.whatsapp-contact-btn:hover {
    background: #1fb85a !important;
    border-color: #1fb85a !important;
}

.wa-icon {
    font-size: 17px;
    line-height: 1;
}

.contact-form-card {
    align-self: stretch;
}

.contact-form .form-row {
    margin-bottom: 14px;
}

.contact-submit-btn {
    margin-top: 4px;
}

.success {
    padding: 13px 15px;
    border-radius: 14px;
    background: #eaf7ee;
    color: #1c7c3f;
    font-weight: 800;
    margin-bottom: 14px;
}

.error {
    padding: 13px 15px;
    border-radius: 14px;
    background: #fdecec;
    color: #b42323;
    font-weight: 800;
    margin-bottom: 14px;
}

.office-photo-wrap {
    margin: 14px 0 18px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f7f4ef;
}

.office-photo {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .contact-grid-final {
        grid-template-columns: 1fr;
    }
}

/* ===== contact submit button final styling ===== */
.contact-submit-btn{
    background:#4a4d55 !important;
    border:1px solid #4a4d55 !important;
    color:#ffffff !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    min-width:150px;
    border-radius:999px !important;
    font-weight:800 !important;
    box-shadow:none !important;
    text-decoration:none !important;
}

.contact-submit-btn:hover{
    background:#343840 !important;
    border-color:#343840 !important;
    color:#ffffff !important;
}

.contact-submit-btn .submit-arrow{
    font-size:18px;
    line-height:1;
    display:inline-block;
}

/* ===== admin items list polish ===== */
.admin-table td {
    vertical-align: middle;
}

.admin-table td:last-child,
.item-list td:last-child {
    white-space: nowrap;
}

.admin-item-actions,
.admin-table td:last-child {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-table a[href*="item.php"],
.admin-table a[href*="edit="],
.admin-table button,
.item-list a[href*="item.php"],
.item-list a[href*="edit="],
.item-list button {
    min-width: 42px !important;
    height: 34px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    border: 1px solid #ded8cf !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.admin-table a[href*="item.php"],
.item-list a[href*="item.php"] {
    background: #f7f4ef !important;
    color: #202024 !important;
}

.admin-table a[href*="edit="],
.item-list a[href*="edit="] {
    background: #202024 !important;
    border-color: #202024 !important;
    color: #fff !important;
}

.admin-table button,
.item-list button,
.admin-table .delete,
.item-list .delete {
    background: #df322f !important;
    border-color: #df322f !important;
    color: #fff !important;
}

.admin-table a[href*="item.php"]:hover,
.item-list a[href*="item.php"]:hover {
    background: #ece7df !important;
}

.admin-table a[href*="edit="]:hover,
.item-list a[href*="edit="]:hover {
    background: #3f444d !important;
    border-color: #3f444d !important;
}

.admin-table button:hover,
.item-list button:hover,
.admin-table .delete:hover,
.item-list .delete:hover {
    background: #bd2523 !important;
    border-color: #bd2523 !important;
}

.admin-items-filter-note {
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.admin-items-filter-note strong {
    color: #202024;
}

.admin-items-empty-filter {
    padding: 24px;
    border: 1px dashed #d8d2ca;
    border-radius: 16px;
    background: #faf8f5;
    color: #666;
    font-weight: 800;
    text-align: center;
    margin-top: 14px;
}
