/* Oman Realty additions on top of nstyle.css: story blocks and photo cards. */
.story-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px;
  align-items: center;
}
.story-block.flip .story-media { order: 2; }
.story-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.story-body .sec { margin-top: 0; }
.story-body .lead p { margin: 0 0 12px; }
.why-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.why-photo {
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.why-photo .ph img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.why-photo .body { padding: 18px 20px 20px; }
.why-photo h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.why-photo p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }
.specs .v a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
/* language switcher (Polylang fallback list, styled like aida's EN | RU pills) */
.site-header .left-header .logo-link { margin-right: 18px; white-space: nowrap; }
.lang-list { list-style: none; margin: 0 0 0 22px; padding: 0; display: flex; gap: 4px; align-items: center; }
.lang-list li { margin: 0; }
.lang-list a { display: inline-block; padding: 7px 11px; border-radius: 10px; text-transform: uppercase; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #fff; opacity: .85; text-decoration: none; }
.lang-list a:hover { opacity: 1; }
.lang-list .current-lang a { background: rgba(255, 255, 255, 0.18); opacity: 1; }
.drawer-foot .lang-list { margin: 14px 0 0; }
/* footer auto columns */
.footer-auto { list-style: none; margin: 0; padding: 0; }
.footer-auto li { margin: 0 0 8px; }
.footer-auto a { color: #fff; opacity: .9; text-decoration: none; }
.footer-auto a:hover { opacity: 1; text-decoration: underline; }
.footer-auto + .widget-title { margin-top: 26px; }
/* footer lists: a real two-column grid, so long names wrap inside their own cell instead of running into the neighbour */
footer .footer-container ul.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
footer .footer-container ul.footer-grid li { margin: 0; min-width: 0; line-height: 1.35; }
footer .footer-container ul.footer-grid li a { display: inline-block; overflow-wrap: anywhere; }
footer .footer-container .footer-all { margin: 14px 0 0; }
footer .footer-container .footer-all a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
footer .footer-container .footer-all + .widget-title { margin-top: 26px; }
@media (max-width: 480px) { footer .footer-container ul.footer-grid { grid-template-columns: 1fr; } }
/* native lead form */
.oman-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.oman-lead-form { position: relative; }
.oman-lead-form .drow > * { flex: 1 1 0; min-width: 0; }
.oman-lead-form .iti { width: 100%; }
.oman-lead-form button.btn-primary { width: 100%; justify-content: center; }
.oman-lead-msg:empty { display: none; }
.oman-lead-msg { font-size: 14px; color: var(--mint-text); }
@media (max-width: 768px) {
  .story-block { grid-template-columns: 1fr; gap: 18px; }
  .story-block.flip .story-media { order: 0; }
}

/* home map with one marker per project */
.oman-map { width: 100%; height: 450px; border-radius: 16px; overflow: hidden; z-index: 0; }
.oman-map .leaflet-popup-content { margin: 10px 12px; font-family: inherit; }
.oman-map .pin-card { width: 200px; }
.oman-map .pin-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 8px; }
.oman-map .pin-card b { display: block; font-size: 14px; margin-bottom: 2px; }
.oman-map .pin-card span { display: block; font-size: 12px; color: var(--muted); }
.oman-map .pin-card em { display: block; font-style: normal; color: var(--orange); font-weight: 600; margin-top: 4px; }

/* catalogue */
.catalogue .sec-head { margin-bottom: 18px; }
.catalogue h1.sec { margin-bottom: 8px; }
.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 24px; }
.cat-filters .chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-size: 14px; }
.cat-filters .chip small { color: var(--muted); font-size: 12px; }
.cat-filters .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.cat-filters .chip.on small { color: rgba(255,255,255,.8); }
.cat-pagination { margin-top: 28px; }
.cat-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.cat-pagination .page-numbers.current { background: var(--teal); color: #fff; border-color: var(--teal); }
.prop .name a { color: inherit; text-decoration: none; }
/* footer: about block under the copyright, three columns */
footer .footer-container .col-logo { flex: 0 0 30%; }
footer .footer-container .col-object, footer .footer-container .col-villas { flex: 1 1 0; }
footer .footer-container .footer-communities { margin: 0 0 32px; }
footer .footer-container .footer-communities .widget-title { margin-bottom: 14px; }
footer .footer-container .footer-about { margin: 0 0 28px; }
footer .footer-container .footer-about .widget-title { margin-bottom: 14px; }
footer .footer-container .footer-about .contacts-blocks { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
footer .footer-container .footer-about .phone { font-weight: 700; color: #fff; text-decoration: none; }
footer .footer-container .footer-about .social-block { display: flex; gap: 12px; }
@media (max-width: 768px) { footer .footer-container .col-logo { flex: 1 1 100%; } }

/* catalogue cards: the image stays a direct child of .img (nstyle positions it absolutely); the link is an overlay */
.prop .img .cover-link { position: absolute; inset: 0; z-index: 1; }
.prop .img .meta { z-index: 2; gap: 6px 12px; padding-top: 22px; }
/* one line per chip, long values are cut instead of stacking over the photo */
.prop .meta span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop .meta span a { overflow: hidden; text-overflow: ellipsis; }
/* catalogue page sits under the fixed header: same offset the other pages use */
.site-main.catalogue { padding-top: 140px; padding-bottom: 48px; }
@media (max-width: 991.98px) { .site-main.catalogue { padding-top: 118px; } }
@media (max-width: 575.98px) { .site-main.catalogue { padding-top: 84px; } }

/* facts bar: as many cells as the card has, no empty slot */
.specs { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* developer page extras */
.dev-hero{border-radius:18px;overflow:hidden;margin:0 0 24px;aspect-ratio:21/9;background:#0f3d3e}
.dev-hero img{width:100%;height:100%;object-fit:cover;display:block}
.dev-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 28px}
.dev-facts .fact{background:#fff;border:1px solid #e3ebea;border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.dev-facts .fact b{font-size:1.5rem;line-height:1.1;color:#0f3d3e}
.dev-facts .fact span{font-size:.85rem;color:#4b5b5a}
.dev-locs{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:.92rem;opacity:.9}
.dev-locs i{margin-right:6px}
.dev-story{max-width:860px;margin:0 0 28px;font-size:1.02rem;line-height:1.7}
.dev-story h3{margin:22px 0 8px;font-size:1.25rem}
.dev-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:0 0 36px}
.dev-gallery a{display:block;border-radius:14px;overflow:hidden;aspect-ratio:4/3;background:#e9efee}
.dev-gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.dev-gallery a:hover img{transform:scale(1.04)}
.dev-projects-title{margin:8px 0 16px}
@media (max-width:640px){.dev-hero{aspect-ratio:16/10}.dev-facts .fact b{font-size:1.25rem}}

/* community / developer landing extras */
.catalogue .com-amen{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.catalogue .com-amen span{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid rgba(0,0,0,.12);border-radius:999px;font-size:.95rem}
.catalogue .com-map{margin:0 0 32px;border-radius:16px;overflow:hidden}
.catalogue .com-map iframe{width:100%;height:420px;display:block;border:0}
.catalogue .dev-locs li b{font-weight:600;margin-left:4px}
.catalogue .cat-faq{margin:48px 0 0}
.catalogue .cat-cta{margin:40px 0 0}
.catalogue .cat-pagination{margin-bottom:8px}

/* term pages: live summary strip + related chips */
.catalogue .term-summary{display:flex;flex-wrap:wrap;gap:8px 18px;margin:-6px 0 22px;font-size:1rem}
.catalogue .term-summary span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.catalogue .term-summary i{color:var(--accent,#1f6f6b)}
.term-related{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 26px}
.term-related .tr-label{font-size:.9rem;color:var(--muted);margin-right:4px}
.term-related .chip{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid rgba(0,0,0,.14);border-radius:999px;text-decoration:none;color:inherit;font-size:.95rem}
.term-related .chip:hover{border-color:currentColor}
.prop-grid .card-meta a, .project-card a.loc{color:inherit;text-decoration:underline;text-decoration-color:rgba(0,0,0,.25)}

/* ============================================================
   Blog article blocks (ported from the aida blog stack):
   overview-block, callout, profile-cards, compare-table, cta-box,
   WA/TG buttons, article-sources, Rank Math FAQ accordion + HowTo steps,
   article typography scoped to .article-content
   ============================================================ */
:root {
  --art-teal: var(--teal, #0d7272);
  --art-teal-dark: var(--teal-dark, #0a5a5a);
  --art-teal-tint: #eef7f6;
  --art-orange: var(--orange, #e07818);
  --art-orange-tint: #fdf3e7;
  --art-line: #dde7e6;
  --art-muted: #5d6b6b;
  --art-wa: #25D366;
  --art-tg: #2AABEE;
}

/* overview (quick take) */
.overview-block {
  background: var(--art-teal-tint);
  border-left: 4px solid var(--art-teal);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 0 0 34px;
}
.overview-block .ov-label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--art-teal); margin-bottom: 8px;
}
.overview-block p { margin: 0; }

/* callouts */
.callout {
  background: var(--art-teal-tint);
  border: 1px solid #cfe5e3;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 26px 0;
}
.callout .callout-label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--art-teal); margin-bottom: 6px;
}
.callout p { margin: 0; }
.callout-orange { background: var(--art-orange-tint); border-color: #f3d9b8; }
.callout-orange .callout-label { color: var(--art-orange); }

/* profile cards */
.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0 34px;
}
.profile-card {
  border: 1px solid var(--art-line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 60, 60, .05);
}
.profile-card .pc-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.profile-card .pc-body { display: flex; flex-direction: column; gap: 8px; }
.profile-card .pc-title { font-weight: 600; font-size: 15.5px; }
.profile-card .pc-pill {
  align-self: flex-start;
  width: auto; max-width: max-content;
  background: var(--art-teal); color: #fff;
  font-size: 12.5px; font-weight: 600; line-height: 1.2;
  padding: 4px 12px; border-radius: 20px;
}
.profile-card .pc-desc { font-size: 14px; color: var(--art-muted); line-height: 1.55; }

/* CTA box + messenger buttons */
.cta-box {
  background: linear-gradient(135deg, var(--art-teal), var(--art-teal-dark));
  color: #fff; border-radius: 14px; padding: 30px 28px; margin: 44px 0 12px; text-align: center;
}
.cta-box .cta-title { font-size: 23px; margin-bottom: 8px; font-weight: 700; }
.cta-box p { font-size: 15.5px; opacity: .92; margin-bottom: 18px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--art-wa); color: #fff; font-weight: 600; font-size: 16px;
  padding: 13px 28px; border-radius: 40px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.wa-btn:hover { color: #fff; opacity: .92; }
.wa-btn svg { width: 21px; height: 21px; fill: #fff; }
.tg-btn { background: var(--art-tg); }

/* Rank Math FAQ accordion */
.rank-math-block .rank-math-list-item {
  border: 1px solid var(--art-line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s;
}
.rank-math-block .rank-math-list-item.is-active,
.rank-math-block .rank-math-list-item:hover { border-color: var(--art-teal); }
.rank-math-block .rank-math-question {
  margin: 0; padding: 16px 48px 16px 20px;
  font-size: 16px; font-weight: 600; cursor: pointer; position: relative;
  user-select: none;
}
.rank-math-block .rank-math-question::after {
  content: "+";
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; line-height: 1; color: var(--art-teal); transition: transform .2s;
}
.rank-math-block .rank-math-list-item.is-active .rank-math-question::after {
  transform: translateY(-50%) rotate(45deg);
}
.rank-math-block .rank-math-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.rank-math-block .rank-math-answer p {
  padding: 0 20px 20px 29px;
  color: var(--art-muted); font-size: 15.5px;
}
.rank-math-block .rank-math-list-item.is-active .rank-math-answer { max-height: 600px; }
/* answers stay visible until the accordion script marks the block as initialised */
.rank-math-block:not(.is-init) .rank-math-answer { max-height: none; }

/* the publisher plugin emits the block markup (.wp-block-rank-math-faq-block / .rank-math-faq-item): same accordion */
.wp-block-rank-math-faq-block .rank-math-faq-item { border: 1px solid var(--art-line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; transition: border-color .15s; }
.wp-block-rank-math-faq-block .rank-math-faq-item.is-active,
.wp-block-rank-math-faq-block .rank-math-faq-item:hover { border-color: var(--art-teal); }
.wp-block-rank-math-faq-block .rank-math-question { margin: 0; padding: 16px 48px 16px 20px; font-size: 16px; font-weight: 600; cursor: pointer; position: relative; user-select: none; font-family: var(--sans, system-ui, sans-serif); }
.wp-block-rank-math-faq-block .rank-math-question::after { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 1; color: var(--art-teal); transition: transform .2s; }
.wp-block-rank-math-faq-block .rank-math-faq-item.is-active .rank-math-question::after { transform: translateY(-50%) rotate(45deg); }
.wp-block-rank-math-faq-block .rank-math-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; color: var(--art-muted); font-size: 15.5px; line-height: 1.6; }
.wp-block-rank-math-faq-block .rank-math-faq-item.is-active .rank-math-answer { max-height: 600px; padding-bottom: 18px; }
.wp-block-rank-math-faq-block:not(.is-init) .rank-math-answer { max-height: none; padding-bottom: 18px; }

/* Rank Math HowTo steps */
#rank-math-howto { counter-reset: howto; margin: 26px 0; }
.rank-math-block .rank-math-step {
  position: relative;
  border: 1px solid var(--art-line);
  border-left: 3px solid var(--art-teal);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px 16px 60px;
  margin-bottom: 10px;
  background: #fff;
}
.rank-math-block .rank-math-step::before {
  counter-increment: howto; content: counter(howto);
  position: absolute; left: 16px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--art-teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.rank-math-block .rank-math-howto-title { margin: 0 0 4px; font-size: 16.5px; font-weight: 600; }
.rank-math-block .rank-math-howto-content { margin: 0; color: var(--art-muted); font-size: 15px; line-height: 1.55; }
.article-content .rank-math-howto-description p {
  font-size: clamp(24px, 3vw, 30px); line-height: 1.25; margin: 42px 0 14px; font-weight: 400;
}

/* compare table */
.compare-table {
  border: 1px solid #e2e8ef;
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
  font-size: 14px;
}
.compare-table .ct-head {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--art-teal); color: #fff;
}
.compare-table .ct-head div { padding: 12px 16px; font-weight: 600; font-size: 13px; }
.compare-table .ct-head div:first-child { background: rgba(0, 0, 0, .15); }
.compare-table .ct-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #e2e8ef;
}
.compare-table .ct-row:last-child { border-bottom: none; }
.compare-table .ct-row div { padding: 12px 16px; }
.compare-table .ct-row div:first-child { color: #8a97a8; font-weight: 500; background: #f4f6f8; }
.compare-table .ct-val { font-weight: 700; color: #1a2332; font-size: 15px; }
.compare-table .ct-note { color: #8a97a8; font-size: 12px; margin-top: 3px; }

/* sources (plain names, no links) */
.article-sources {
  background: var(--art-teal-tint);
  border: 1px solid #cfe5e3;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 34px 0 26px;
}
.article-sources .src-label {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--art-teal); margin-bottom: 8px;
}
.article-sources ul { margin: 0; padding: 0; list-style: none; }
.article-sources li {
  margin: 0; padding: 6px 0;
  font-size: 14px; line-height: 1.55; color: var(--art-muted);
  border-top: 1px solid var(--art-line);
}
.article-sources li:first-child { border-top: none; padding-top: 0; }
.article-sources li:last-child { padding-bottom: 0; }

/* article typography (blog posts only) */
.article-content h2,
.article-content h3 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  color: #1f2a2a;
  letter-spacing: .2px;
}
.article-content h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.25; margin: 42px 0 14px; }
.article-content h3 {
  font-size: clamp(19px, 2.2vw, 22px); line-height: 1.3; margin: 28px 0 10px;
  font-weight: 600; font-family: var(--sans, system-ui, sans-serif);
}
.article-content p { font-size: 17.5px; line-height: 1.75; margin: 0 0 18px; color: #26312f; }
.article-content a { color: var(--art-teal); text-decoration-color: rgba(13, 114, 114, .4); text-underline-offset: 3px; }
.article-content a:hover { text-decoration-color: var(--art-teal); }
.article-content ul,
.article-content ol { font-size: 17.5px; line-height: 1.75; margin: 0 0 18px; padding-left: 1.4em; }
.article-content li { margin-bottom: 8px; }
.article-h1 { font-family: var(--serif, Georgia, serif); font-weight: 400; text-transform: none; line-height: 1.18; }
.article-content > h2 { margin-top: 48px; }
.article-content .overview-block + h2 { margin-top: 34px; }

@media (max-width: 640px) {
  .compare-table .ct-head,
  .compare-table .ct-row { grid-template-columns: 1fr; }
  .compare-table .ct-head div:first-child,
  .compare-table .ct-row div:first-child { background: var(--art-teal); color: #fff; font-weight: 700; }
}
@media (max-width: 520px) {
  .profile-cards { grid-template-columns: 1fr; }
  .cta-box { padding: 24px 18px; }
  .article-content p,
  .article-content ul,
  .article-content ol { font-size: 16.5px; }
}

/* drawer: contact label above phone and messengers; long groups scroll */
.drawer-foot .drawer-contact-title { margin: 0 0 10px; }
.drawer .drawer-body { overflow-y: auto; }

/* term index pages (/developers/, /communities/) */
.term-index h1 { margin: 6px 0 14px; }
.term-index .term-index-intro { max-width: 760px; margin: 0 0 28px; }
.term-index-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 40px; }
.term-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.term-card .ph { aspect-ratio: 16 / 10; background: #e9efee; display: flex; align-items: center; justify-content: center; }
.term-card .ph-empty { font-size: 42px; color: var(--muted); }
.term-card .term-card-meta { font-size: 13.5px; color: var(--teal, #0d7272); font-weight: 600; margin: 0 0 8px; }
.term-card .link { margin-top: auto; }

/* data tables on type and index pages */
.oman-table-wrap { overflow-x: auto; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.oman-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.oman-table th, .oman-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.oman-table th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #f4f6f8; }
.oman-table tr:last-child td { border-bottom: 0; }
.oman-table td a { color: var(--teal, #0d7272); font-weight: 600; text-decoration: none; }
.oman-table-note { font-size: 13px; color: var(--muted); margin: 6px 0 28px; }
.type-story, .term-index-faq { margin-top: 36px; }
.term-index-faq .rank-math-question { font-family: var(--sans, system-ui, sans-serif); }
