/* Jaidad Motmain / جایداد مطمئن - main stylesheet (LTR + RTL, light + dark) */
:root {
  --teal: #068DA4; --teal-d: #057a8e; --teal-soft: #e6f5f8;
  --navy: #01386E; --gold: #D4A016; --gold-d: #bb8d10; --white: #FFFFFF;
  --soft: #f5f9fb; --line: #e9edf1; --card: #FFFFFF;
  --heading: #01386E; --text: #475a72; --nav-bg: #FFFFFF; --link: #068DA4; --muted: #6b7d93;
  --shadow: 0 10px 30px rgba(1, 56, 110, .09);
  --bs-body-bg: #FFFFFF; --bs-body-color: var(--text); --bs-link-color: var(--link); --bs-link-hover-color: var(--teal-d);
  --radius: 16px;
}
[data-bs-theme="dark"] {
  --teal-soft: #0f2d3c; --soft: #0d1b2d; --line: #22344a; --card: #12233a;
  --heading: #eaf3fb; --text: #b4c3d4; --nav-bg: #0b1727; --link: #35c6df; --muted: #8fa3ba;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  --bs-body-bg: #0a1626; --bs-link-hover-color: #6fdaed;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Poppins', 'Vazirmatn', 'Noto Sans Arabic', system-ui, sans-serif; color: var(--text); background: var(--bs-body-bg); }
html[lang^="fa"] body { font-family: 'Vazirmatn', 'Noto Sans Arabic', system-ui, sans-serif; line-height: 1.85; }
html[lang^="ps"] body { font-family: 'Noto Sans Arabic', 'Vazirmatn', system-ui, sans-serif; line-height: 1.9; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; }
a { color: var(--link); }
img { max-width: 100%; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 3000; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 10px; color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
bdi { unicode-bidi: isolate; }

/* ---------- Buttons ---------- */
.btn-teal { background: var(--teal); color: #fff; border: 1px solid var(--teal); font-weight: 600; border-radius: 10px; }
.btn-teal:hover, .btn-teal:focus { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); font-weight: 700; border-radius: 10px; }
.btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--navy); }
.btn-outline-teal { color: var(--teal); border: 1px solid var(--teal); border-radius: 10px; font-weight: 500; background: transparent; }
.btn-outline-teal:hover, .btn-outline-teal.show { background: var(--teal); color: #fff; border-color: var(--teal); }
[data-bs-theme="dark"] .btn-outline-teal { color: var(--link); border-color: var(--link); }
[data-bs-theme="dark"] .btn-outline-teal:hover { background: var(--link); color: #06121f; }
.btn-icon { border: 1px solid var(--line); color: var(--heading); border-radius: 10px; background: transparent; display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; }
.btn-icon:hover, .btn-icon:focus, .btn-icon.show { background: var(--teal-soft); color: var(--teal); border-color: var(--teal); }
.btn-lg { padding: .8rem 1.6rem; }

/* ---------- Navbar ---------- */
.site-nav { background: var(--nav-bg); border-bottom: 3px solid var(--teal); box-shadow: 0 2px 14px rgba(1, 56, 110, .07); padding: .5rem 0; z-index: 1030; }
.site-nav .navbar-brand { margin-inline-end: .5rem; }
.site-nav .brand-name { color: var(--navy); font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
[data-bs-theme="dark"] .site-nav .brand-name { color: var(--heading); }
.site-nav .nav-link { color: var(--heading); font-weight: 500; padding: .65rem .85rem; position: relative; }
.site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .nav-link.show { color: var(--teal); }
[data-bs-theme="dark"] .site-nav .nav-link:hover, [data-bs-theme="dark"] .site-nav .nav-link.active { color: var(--link); }
@media (min-width: 992px) {
  .site-nav .nav-link.active::after { content: ""; position: absolute; inset-inline: .85rem; bottom: 3px; height: 2px; background: var(--teal); border-radius: 2px; }
}
.nav-tools { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
@media (min-width: 992px) { .nav-tools { order: 3; margin-inline-start: 0; } .site-nav .navbar-collapse { order: 2; } }
.navbar-toggler { border-color: var(--line); padding: .35rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(6, 141, 164, .25); }
[data-bs-theme="dark"] .navbar-toggler-icon { filter: invert(1); }
.dropdown-menu { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.dropdown-item { color: var(--heading); border-radius: 8px; }
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active { background: var(--teal-soft); color: var(--teal); }
.dropdown-item .bi-check2 { color: var(--teal); }

/* Services mega menu */
.mega-menu { padding: 14px; }
.mega-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.mega-item { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--heading); }
.mega-item:hover, .mega-item:focus { background: var(--teal-soft); color: var(--heading); }
.mega-item .mi { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: .2s; }
.mega-item:hover .mi { background: var(--teal); color: #fff; }
.mega-item strong { display: block; font-size: .98rem; }
.mega-item small { color: var(--muted); display: block; line-height: 1.5; }
.mega-foot { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--gold); color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.mega-foot:hover { background: var(--gold-d); color: var(--navy); }
@media (min-width: 992px) {
  .mega-menu[data-bs-popper], .mega-menu { width: min(780px, calc(100vw - 32px)); left: 50%; right: auto; transform: translateX(-50%); padding: 18px; margin-top: 0; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .nav-item.has-mega:hover > .dropdown-menu { display: block; }
  .nav-item.has-mega > .nav-link::before { content: ""; position: absolute; inset-inline: 0; bottom: -14px; height: 14px; } /* keeps hover alive across the gap */
}
@media (max-width: 991.98px) {
  .mega-menu { box-shadow: none; border: 0; background: var(--soft); margin-bottom: .5rem; }
  .site-nav .navbar-collapse { padding: .5rem 0 1rem; }
  .site-nav .navbar-collapse .btn-teal { width: 100%; margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 78px); display: flex; align-items: center; color: #fff; padding: 64px 0 84px;
  background-size: cover; background-position: center 35%; background-color: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1, 56, 110, .72) 0%, rgba(1, 56, 110, .45) 50%, rgba(1, 36, 72, .88) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hero .lead { color: rgba(255, 255, 255, .93); max-width: 720px; margin-inline: auto; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero-kicker { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; padding: .3rem 1rem; border-radius: 50px; font-size: .85rem; }
.type-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); padding: 6px; border-radius: 14px; }
.type-tabs button { border: 0; background: transparent; color: #fff; padding: .55rem 1.3rem; border-radius: 10px; font-weight: 600; }
.type-tabs button.active { background: var(--teal); color: #fff; box-shadow: 0 4px 12px rgba(6, 141, 164, .5); }
.search-card { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: 0 25px 60px rgba(0, 0, 0, .35); text-align: start; color: var(--text); }
.search-card .form-label, .filter-card .form-label { font-weight: 600; font-size: .85rem; color: var(--heading); margin-bottom: .35rem; }
.search-card .form-select, .search-card .form-control { border-radius: 10px; padding: .65rem .85rem; }
.search-card .btn-search { height: 100%; min-height: 46px; }
.lak-hint { display: block; min-height: 1.2em; font-size: .78rem; color: var(--teal); margin-top: .2rem; }
[data-bs-theme="dark"] .lak-hint { color: var(--link); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head h2::after, .head-row h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin: 14px auto 0; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.head-row h2::after { margin: 12px 0 0; }
.section-head p { margin-top: 14px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }

.parallax { position: relative; background-size: cover; background-position: center; background-attachment: fixed; background-color: var(--navy); color: #fff; }
.parallax::before { content: ""; position: absolute; inset: 0; background: rgba(1, 56, 110, .82); }
.parallax > .container { position: relative; z-index: 1; }
.parallax h2, .parallax h3 { color: #fff; }
@media (max-width: 991px) { .parallax { background-attachment: scroll; } }
.stat { text-align: center; padding: 10px; }
.stat .num { font-size: 2.6rem; font-weight: 700; color: var(--gold); line-height: 1.2; }
.stat .lbl { color: rgba(255, 255, 255, .92); font-weight: 500; }

/* ---------- Property cards (whole card is one link) ---------- */
.prop-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.prop-card:hover, .prop-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-soft); }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prop-card:hover .prop-img img { transform: scale(1.06); }
.prop-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.badge-type { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--teal); color: #fff; padding: .45em .8em; border-radius: 8px; font-weight: 600; z-index: 1; }
.badge-featured { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--gold); color: var(--navy); padding: .45em .8em; border-radius: 8px; font-weight: 700; z-index: 1; }
.badge-time, .badge-code { position: absolute; bottom: 10px; z-index: 1; color: #fff; font-size: .78rem; font-weight: 600; padding: .3em .7em; border-radius: 50px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.badge-time { inset-inline-start: 12px; }
.badge-code { inset-inline-end: 12px; letter-spacing: .3px; }
.prop-body { padding: 16px 20px 20px; }
.prop-price { color: var(--teal); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
[data-bs-theme="dark"] .prop-price { color: var(--link); }
.price-alt { display: block; color: var(--muted); font-size: .82rem; font-weight: 500; }
.price-period { font-weight: 500; font-size: .8rem; color: var(--muted); }
.prop-title { font-size: 1.05rem; margin: 8px 0 6px; }
.prop-title a { color: var(--heading); text-decoration: none; }
.prop-card:hover .prop-title a { color: var(--teal); }
.prop-loc { font-size: .9rem; }
.prop-loc i, .prop-meta i { color: var(--teal); }
.prop-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }

/* ---------- Categories, provinces, services, steps, features ---------- */
.cat-card, .prov-card { display: block; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px; text-decoration: none; transition: .25s; height: 100%; }
.cat-card:hover, .prov-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--teal); }
.cat-card .ci { width: 62px; height: 62px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 12px; transition: .25s; }
.cat-card:hover .ci { background: var(--teal); color: #fff; }
.cat-card strong, .prov-card strong { display: block; color: var(--heading); }
.cat-card small, .prov-card small { color: var(--muted); }
.prov-card { display: flex; align-items: center; gap: 14px; text-align: start; padding: 16px 18px; }
.prov-card .pi { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.prov-card .go { margin-inline-start: auto; color: var(--gold); }
[dir="rtl"] .prov-card .go { transform: scaleX(-1); }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; height: 100%; text-align: center; transition: .25s; border-top: 4px solid transparent; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-top-color: var(--gold); }
.svc-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 18px; }
.svc-card h3 { font-size: 1.15rem; }
.step { text-align: center; padding: 10px 14px; }
.step-num { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 0 0 8px rgba(212, 160, 22, .18); }
.step h3 { font-size: 1.1rem; }
.why-img { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: linear-gradient(135deg, var(--navy), var(--teal)) center/cover; }
.why-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 380px; }
.why-badge { position: absolute; bottom: 20px; inset-inline-start: 20px; background: var(--gold); color: var(--navy); padding: 14px 20px; border-radius: 14px; font-weight: 700; }
.why-item { display: flex; gap: 16px; margin-bottom: 22px; }
.why-item .ico { flex: 0 0 54px; height: 54px; border-radius: 14px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.testi-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; position: relative; }
.testi-card .quote { position: absolute; top: 14px; inset-inline-end: 20px; font-size: 2.6rem; color: var(--gold); opacity: .35; line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--teal); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.market-card .prop-img { aspect-ratio: 16 / 11; }
.market-card .prop-img::after { display: none; }
.market-card .prop-desc { font-size: .9rem; min-height: 2.8em; }

/* ---------- App download ---------- */
.app-section { background: linear-gradient(135deg, var(--navy) 0%, #025a8f 55%, var(--teal) 100%); color: #fff; overflow: hidden; position: relative; }
.app-section::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(212, 160, 22, .16); top: -140px; inset-inline-end: -100px; }
.app-section h2 { color: #fff; }
.app-section .container { position: relative; z-index: 1; }
.app-list { list-style: none; padding: 0; margin: 0 0 26px; }
.app-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: rgba(255, 255, 255, .95); }
.app-list i { color: var(--gold); font-size: 1.2rem; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: 12px; padding: 10px 20px; text-decoration: none; min-width: 190px; transition: .2s; direction: ltr; text-align: start; }
.store-btn:hover { background: #111; color: #fff; transform: translateY(-3px); border-color: var(--gold); }
.store-btn i { font-size: 1.9rem; }
.store-btn small { display: block; font-size: .68rem; letter-spacing: .6px; opacity: .85; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.15rem; color: #fff; line-height: 1.15; }
.phone-mock { width: 240px; height: 440px; margin-inline: auto; border-radius: 36px; background: #0b1727; border: 8px solid #1c2c44; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); position: relative; overflow: hidden; transform: rotate(-6deg); }
.phone-mock::before { content: ""; position: absolute; top: 8px; left: 50%; width: 70px; height: 14px; border-radius: 10px; background: #1c2c44; transform: translateX(-50%); z-index: 2; }
.phone-screen { position: absolute; inset: 0; padding: 36px 14px 14px; background: linear-gradient(180deg, #e6f5f8, #fff); }
.ps-bar { height: 34px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(1, 56, 110, .12); margin-bottom: 12px; display: flex; align-items: center; padding: 0 10px; color: #068DA4; }
.ps-card { height: 86px; border-radius: 12px; margin-bottom: 10px; background: #fff center/cover; box-shadow: 0 2px 8px rgba(1, 56, 110, .12); position: relative; }
.ps-card::after { content: ""; position: absolute; inset: auto 8px 8px 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .85); }
.ps-card.c1 { background-image: linear-gradient(135deg, #068DA4, #01386E); }
.ps-card.c2 { background-image: linear-gradient(135deg, #D4A016, #bb8d10); }
.ps-card.c3 { background-image: linear-gradient(135deg, #01386E, #068DA4); }
@media (max-width: 991px) { .phone-mock { margin-top: 30px; transform: none; } }

/* ---------- FAQ, contact, forms ---------- */
.accordion { --bs-accordion-bg: var(--card); --bs-accordion-border-color: var(--line); --bs-accordion-active-bg: var(--teal-soft); --bs-accordion-active-color: var(--heading); --bs-accordion-btn-color: var(--heading); --bs-accordion-color: var(--text); }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(6, 141, 164, .2); }
.contact-box, .form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-row .ico { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.form-label { font-weight: 600; color: var(--heading); font-size: .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(6, 141, 164, .2); }
.map-frame { border: 0; width: 100%; height: 240px; border-radius: 14px; }

/* ---------- Listing + detail pages ---------- */
.page-banner { background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; padding: 44px 0; }
.page-banner h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 0; }
.page-banner a { color: #fff; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .7); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .85); margin-bottom: .5rem; font-size: .88rem; }
.breadcrumb-item a { text-decoration: none; opacity: .92; }
.filter-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.pagination { --bs-pagination-color: var(--teal); --bs-pagination-active-bg: var(--teal); --bs-pagination-active-border-color: var(--teal); --bs-pagination-bg: var(--card); --bs-pagination-border-color: var(--line); --bs-pagination-hover-bg: var(--teal-soft); --bs-pagination-disabled-bg: var(--card); }

.detail-price .price-main { font-size: 2rem; font-weight: 700; color: var(--teal); }
[data-bs-theme="dark"] .detail-price .price-main { color: var(--link); }
.detail-price .price-alt { font-size: 1rem; }
.code-pill { display: inline-block; background: var(--teal-soft); color: var(--teal); font-weight: 700; padding: .25rem .8rem; border-radius: 50px; letter-spacing: .4px; }
[data-bs-theme="dark"] .code-pill { color: var(--link); }
.spec { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; height: 100%; }
.spec i { color: var(--teal); font-size: 1.3rem; }
.spec strong { display: block; color: var(--heading); }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 90px; }

.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--teal-soft); aspect-ratio: 16 / 10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.g-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 2; }
.g-btn:hover { background: var(--teal); }
.g-prev { inset-inline-start: 12px; } .g-next { inset-inline-end: 12px; }
[dir="rtl"] .g-btn i { transform: scaleX(-1); }
.g-count { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(0, 0, 0, .6); color: #fff; padding: .25rem .75rem; border-radius: 50px; font-size: .82rem; z-index: 2; }
.g-zoom { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(0, 0, 0, .6); color: #fff; border: 0; border-radius: 50px; padding: .25rem .8rem; font-size: .82rem; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 6px; scrollbar-width: thin; }
.thumb-btn { flex: 0 0 104px; height: 70px; border: 3px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: var(--teal-soft); opacity: .75; transition: .2s; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn.active, .thumb-btn:hover { border-color: var(--teal); opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(2, 10, 22, .95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox .lb-close { position: absolute; top: 14px; inset-inline-end: 18px; }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; }
.lightbox .g-btn { z-index: 3; }

/* ---------- Footer, floating buttons ---------- */
.site-footer { background: var(--navy); color: #fff; border-top: 4px solid var(--gold); }
[data-bs-theme="dark"] .site-footer { background: #06121f; }
.site-footer h2, .site-footer h6 { color: var(--gold); font-weight: 700; margin-bottom: 16px; font-size: 1rem; }
.footer-links li { margin-bottom: 10px; opacity: .92; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-links i { color: var(--gold); margin-inline-end: 6px; }
.social { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: .2s; }
.social:hover { background: var(--gold); color: var(--navy); }
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1050; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.9rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(37, 211, 102, .5); text-decoration: none; animation: pulse 2.2s infinite; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } html { scroll-behavior: auto; } .reveal { transition: none !important; } }

/* ---------- AI assistant ---------- */
.bot-fab { position: fixed; bottom: 92px; inset-inline-end: 22px; z-index: 1050; width: 58px; height: 58px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; font-size: 1.7rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(1, 56, 110, .45); }
.bot-fab:hover { transform: scale(1.08); }
.bot-fab .dot { position: absolute; top: -4px; inset-inline-end: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.bot-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); animation: botPulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes botPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bot-fab::after { animation: none; display: none; } }
.bot-panel { position: fixed; bottom: 92px; inset-inline-end: 22px; z-index: 1060; width: 370px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 120px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 25px 60px rgba(0, 0, 0, .35); display: none; flex-direction: column; overflow: hidden; }
.bot-panel.open { display: flex; }
.bot-head { background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.bot-head .av { position: relative; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.bot-head strong { display: block; line-height: 1.2; } .bot-head small { opacity: .85; }
.bot-head .x { margin-inline-start: auto; background: transparent; border: 0; color: #fff; font-size: 1.2rem; }
.bot-msgs { flex: 1; overflow-y: auto; padding: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.bmsg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.6; word-wrap: break-word; }
.bmsg.bot { background: var(--card); border: 1px solid var(--line); align-self: flex-start; border-end-start-radius: 4px; color: var(--text); }
.bmsg.user { background: var(--teal); color: #fff; align-self: flex-end; border-end-end-radius: 4px; }
.bot-props { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.bprop { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-decoration: none; color: var(--text); }
.bprop:hover { border-color: var(--teal); }
.bprop img { width: 72px; height: 58px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--teal-soft); }
.bprop strong { display: block; color: var(--heading); font-size: .88rem; line-height: 1.35; }
.bprop span { display: block; font-size: .78rem; color: var(--teal); font-weight: 600; }
.bot-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.bot-quick button, .bot-link { border: 1px solid var(--teal); background: var(--card); color: var(--teal); border-radius: 50px; padding: .3rem .85rem; font-size: .84rem; text-decoration: none; }
.bot-quick button:hover, .bot-link:hover { background: var(--teal); color: #fff; }
.bot-link.wa { background: #25D366; border-color: #25D366; color: #fff; }
.bot-lead { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; align-self: stretch; }
.bot-lead input { margin-bottom: 8px; }
.bot-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--card); }
.bot-form input { border-radius: 50px; }
.bot-form button { border-radius: 50%; width: 42px; height: 42px; flex-shrink: 0; padding: 0; }
[dir="rtl"] .bot-form button i { transform: scaleX(-1); }
.bot-note { font-size: .7rem; text-align: center; color: var(--muted); padding: 0 8px 8px; background: var(--card); }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Admin ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side { width: 260px; background: var(--navy); color: #fff; padding: 20px 14px; flex-shrink: 0; }
[data-bs-theme="dark"] .admin-side { background: #06121f; }
.admin-side a, .admin-side .as-link { color: rgba(255, 255, 255, .86); text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; margin-bottom: 3px; font-size: .94rem; background: transparent; border: 0; width: 100%; text-align: start; }
.admin-side a:hover, .admin-side a.active, .admin-side .as-link:hover { background: var(--teal); color: #fff; }
.admin-side .as-group { font-size: .72rem; letter-spacing: .8px; text-transform: uppercase; opacity: .55; padding: 14px 14px 4px; }
.admin-main { flex: 1; min-width: 0; padding: 26px; background: var(--soft); }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; color: var(--text); }
a.stat-card:hover { border-color: var(--teal); }
.stat-card .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-card .n { font-size: 1.7rem; font-weight: 700; color: var(--heading); line-height: 1.1; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.img-tile { position: relative; width: 110px; }
.img-tile img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; }
.role-badge { font-size: .75rem; }
@media (max-width: 991px) { .admin-wrap { flex-direction: column; } .admin-side { width: 100%; } }
@media (min-width: 992px) { .admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }

.bot-head .av-bot { position: absolute; bottom: -3px; inset-inline-end: -3px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: .65rem; border: 2px solid var(--navy); }
