/*!
 * City Sites — Main Stylesheet
 * Theme: city-sites | Version 1.0.0
 * Inherited property-guide layout; the identity layer supplies per-site colors:
 * limestone ground (#F4F2EC) + palm ink (#172E27) + oasis green (#2E6B4F)
 * + sand gold (#C79A3D), Cairo variable font, pill-shaped actions.
 * RTL + LTR via CSS logical properties throughout.
 *
 * TABLE OF CONTENTS
 *  1.  Font faces (Cairo variable — arabic / latin / latin-ext)
 *  2.  Design tokens (:root)
 *  3.  Reset & base
 *  4.  Typography
 *  5.  Accessibility (screen-reader-text, skip-link, focus-visible)
 *  6.  Layout primitives (container, section, section-head, grid)
 *  7.  Buttons & badges
 *  8.  Form controls
 *  9.  Header & navigation
 * 10.  Mobile off-canvas nav
 * 11.  Hero + search bar
 * 12.  City cards
 * 13.  Property card (chips, CTA row)
 * 14.  Latest projects slider
 * 15.  Developers (marquee, cards)
 * 16.  Counters band
 * 17.  Blog post cards
 * 18.  CTA band
 * 19.  Footer
 * 20.  Archive filters & pagination
 * 21.  Breadcrumbs
 * 22.  Single property (hero, gallery, layout, facts, aside, map, related)
 * 23.  Single developer
 * 24.  Prose (post content typography)
 * 25.  WordPress core (alignments, blocks, captions)
 * 26.  Comments
 * 27.  Search / 404
 * 28.  Back to top
 * 29.  Swiper theme overrides
 * 30.  RTL-only overrides
 * 31.  Responsive — 1024px
 * 32.  Responsive — 640px
 * 33.  Reduced motion
 */

/* --------------------------------------------------------------------------
 * 1. FONT FACES — Cairo variable font (400–800), display swap.
 *    Subsets + unicode ranges follow Google Fonts standard ranges.
 * ------------------------------------------------------------------------ */

/* arabic */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891,
    U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
    U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E,
    U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F,
    U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39,
    U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F,
    U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F,
    U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77,
    U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3,
    U+1EEA5-1EEA9, U+1EEAB-1EEBB;
}

/* latin-ext */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
 * 2. DESIGN TOKENS
 * ------------------------------------------------------------------------ */

:root {
  --sst-primary: #172E27;        /* palm ink — headers, footer, titles */
  --sst-primary-dark: #10221C;
  --sst-accent: #C79A3D;         /* sand gold — highlights, small marks */
  /* Darkened from #A98230 (3.55:1 on white — below the 4.5:1 WCAG AA floor for
     body text) to 5.71:1. Every use is either text on a light ground or a
     white-on-gold button, so both directions improve. */
  --sst-accent-dark: #826120;
  --sst-oasis: #2E6B4F;          /* oasis green — primary actions */
  --sst-oasis-dark: #245840;
  --sst-sage: #DFE4DA;           /* sage mist — panels, chips */
  --sst-dark: #101714;
  --sst-text: #4A5B54;
  --sst-title: #132821;
  --sst-bg: #F4F2EC;             /* limestone — page ground */
  --sst-bg-soft: #ECE9E1;        /* alternating section bg */
  --sst-bg-card: #FFFFFF;
  --sst-border: #E2E0D6;
  --sst-white: #FFFFFF;
  --sst-whatsapp: #25D366;
  --sst-radius: 8px;
  --sst-radius-sm: 4px;
  --sst-shadow: 0 6px 24px rgba(var(--city-primary-rgb), .08);
  --sst-shadow-lg: 0 12px 40px rgba(var(--city-primary-rgb), .14);
  --sst-font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sst-container: 1280px;
}

/* --------------------------------------------------------------------------
 * 3. RESET & BASE
 * ------------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sst-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--sst-text);
  background: var(--sst-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sst-nav-locked {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

figure {
  margin: 0;
}

a {
  color: var(--sst-primary);
  text-decoration: none;
  transition: color .25s ease;
}

a:hover {
  color: var(--sst-accent);
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  padding-inline-start: 1.4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--sst-border);
  margin-block: 32px;
}

::selection {
  background: var(--sst-accent);
  color: var(--sst-white);
}

/* Inline SVG icons */
.sst-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
 * 4. TYPOGRAPHY
 * ------------------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--sst-title);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: break-word;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-block-end: 0;
}

strong, b {
  font-weight: 700;
  color: var(--sst-title);
}

/* --------------------------------------------------------------------------
 * 5. ACCESSIBILITY
 * ------------------------------------------------------------------------ */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--sst-white);
  border-radius: var(--sst-radius-sm);
  box-shadow: var(--sst-shadow);
  clip: auto !important;
  clip-path: none;
  color: var(--sst-primary);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  inset-inline-start: 8px;
  inset-block-start: 8px;
  line-height: normal;
  padding: 16px 24px;
  text-decoration: none;
  width: auto;
  z-index: 100000;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  inset-block-start: 0;
  z-index: 100000;
  background: var(--sst-primary);
  color: var(--sst-white);
  font-weight: 700;
  padding: 12px 24px;
  border-end-end-radius: var(--sst-radius-sm);
}

.skip-link:focus {
  inset-inline-start: 0;
  color: var(--sst-white);
  outline: 2px solid var(--sst-accent);
  outline-offset: -2px;
}

:focus-visible {
  outline: 3px solid var(--sst-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* JS adds .is-tabbing on Tab keydown — stronger ring for keyboard users */
body.is-tabbing :focus {
  outline: 3px solid var(--sst-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
 * 6. LAYOUT PRIMITIVES
 * ------------------------------------------------------------------------ */

.sst-container {
  max-width: var(--sst-container);
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}

.sst-section {
  padding-block: 80px;
}

.sst-section--soft {
  background: var(--sst-bg-soft);
}

.sst-section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-block-end: 48px;
}

.sst-section-head__sub {
  display: inline-block;
  color: var(--sst-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-block-end: 10px;
  position: relative;
}

.sst-section-head__sub::before,
.sst-section-head__sub::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--sst-accent);
  vertical-align: middle;
  margin-inline: 10px;
  border-radius: 2px;
  opacity: .7;
}

.sst-section-head__title {
  font-size: 34px;
  margin: 0;
  color: var(--sst-title);
}

.sst-section-head p {
  margin-block-start: 12px;
  color: var(--sst-text);
}

/* Grid */
.sst-grid {
  display: grid;
  gap: 24px;
}

.sst-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sst-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sst-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Counters band renders only non-zero counters, so the column count varies. */
.sst-counters .sst-grid--count-1 { grid-template-columns: minmax(0, 1fr); }
.sst-counters .sst-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sst-counters .sst-grid--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
 * 7. BUTTONS & BADGES
 * ------------------------------------------------------------------------ */

.sst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 999px; /* rounded action */
  font-family: var(--sst-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease,
    border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sst-btn .sst-icon {
  width: 18px;
  height: 18px;
}

.sst-btn:hover {
  transform: translateY(-2px);
}

.sst-btn:active {
  transform: translateY(0) scale(.98);
}

/* Legacy class name — primary actions are oasis green in the 1.1 identity. */
.sst-btn--gold {
  background: var(--sst-oasis);
  border-color: var(--sst-oasis);
  color: var(--sst-white);
  box-shadow: 0 6px 18px rgba(46, 107, 79, .3);
}

.sst-btn--gold:hover,
.sst-btn--gold:focus {
  background: var(--sst-oasis-dark);
  border-color: var(--sst-oasis-dark);
  color: var(--sst-white);
}

.sst-btn--outline {
  background: transparent;
  border-color: var(--sst-primary);
  color: var(--sst-primary);
}

.sst-btn--outline:hover,
.sst-btn--outline:focus {
  background: var(--sst-primary);
  color: var(--sst-white);
}

.sst-btn--white {
  background: var(--sst-white);
  border-color: var(--sst-white);
  color: var(--sst-primary);
}

.sst-btn--white:hover,
.sst-btn--white:focus {
  background: transparent;
  color: var(--sst-white);
}

.sst-btn--wa {
  background: var(--sst-whatsapp);
  border-color: var(--sst-whatsapp);
  color: var(--sst-white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, .3);
}

.sst-btn--wa:hover,
.sst-btn--wa:focus {
  background: #1EBE59;
  border-color: #1EBE59;
  color: var(--sst-white);
}

.sst-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--sst-accent-dark);
  color: var(--sst-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
 * 8. FORM CONTROLS
 * ------------------------------------------------------------------------ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
  display: block;
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius-sm);
  background: var(--sst-white);
  color: var(--sst-title);
  font-family: var(--sst-font);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .25s ease, box-shadow .25s ease;
  appearance: none;
  -webkit-appearance: none;
}

textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
}

select {
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5B54' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

[dir="rtl"] select {
  background-position: left 14px center;
}

input::placeholder,
textarea::placeholder {
  color: #93A398;
  opacity: 1;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sst-accent);
  box-shadow: 0 0 0 3px rgba(199, 154, 61, .25);
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--sst-title);
  margin-block-end: 6px;
}

fieldset {
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius-sm);
  padding: 20px;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--sst-accent);
  width: 18px;
  height: 18px;
}

input[type="submit"],
button[type="submit"] {
  transition: background-color .25s ease, transform .25s ease,
    box-shadow .25s ease;
}

/* --------------------------------------------------------------------------
 * 9. HEADER & NAVIGATION
 * ------------------------------------------------------------------------ */

.sst-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 990;
  background: var(--sst-white);
  border-block-end: 1px solid var(--sst-border);
  transition: box-shadow .25s ease;
}

.sst-header.is-scrolled {
  box-shadow: var(--sst-shadow);
  border-block-end-color: transparent;
}

.sst-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}

.sst-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  color: var(--sst-primary);
  line-height: 1.2;
}

.sst-header__logo:hover {
  color: var(--sst-primary);
}

.sst-header__logo img {
  max-height: 48px;
  width: auto;
}

/* Brand lockup: gold "6" plaque mark + wordmark (used when no custom logo). */
.sst-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  white-space: nowrap;
}

.sst-brand:hover,
.sst-brand:focus {
  color: inherit;
}

.sst-brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
}

.sst-footer__logo .sst-brand__mark {
  box-shadow: 0 0 0 1px rgba(199, 154, 61, 0.35);
  border-radius: 10px;
}

/* .sst-header__nav is the flex item inside .sst-header__inner — it (not the
   <ul>) must take the free space so the phone CTA is pushed to the inline-end. */
.sst-header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

/* Language switcher (Polylang) — compact AR | EN pill group. */
.sst-langswitch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--sst-border);
  border-radius: 999px;
  background: var(--sst-white);
}

.sst-langswitch__item {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--sst-text);
  transition: color .25s ease, background-color .25s ease;
}

.sst-langswitch__item:hover {
  color: var(--sst-primary);
  background: rgba(199, 154, 61, .12);
}

.sst-langswitch__item.is-active {
  background: var(--sst-primary);
  color: var(--sst-white);
}

/* Inside the off-canvas panel the switcher sits under the menu. */
.sst-mobilenav .sst-langswitch {
  margin-block-start: 20px;
  align-self: flex-start;
}

/* .sst-nav IS the <ul> (wp_nav_menu menu_class / fallback markup). */
.sst-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sst-nav li {
  position: relative;
}

.sst-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--sst-radius-sm);
  color: var(--sst-title);
  font-size: 15px;
  font-weight: 700;
  transition: color .25s ease, background-color .25s ease;
}

.sst-nav a:hover,
.sst-nav .current-menu-item > a,
.sst-nav .current_page_item > a,
.sst-nav .current-menu-ancestor > a {
  color: var(--sst-accent);
  background: rgba(199, 154, 61, .08);
}

/* Simple dropdown for nested menus (.sub-menu) */
.sst-nav ul {
  display: flex;
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  min-width: 220px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--sst-white);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius-sm);
  box-shadow: var(--sst-shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 20;
}

.sst-nav li:hover > ul,
.sst-nav li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sst-nav ul a {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
}

.sst-header__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sst-header__cta .sst-btn {
  padding: 10px 15px;
  font-size: 14px;
}

/* Burger */
.sst-burger {
  display: none;
  flex: 0 0 46px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius-sm);
  background: var(--sst-white);
  transition: border-color .25s ease, background-color .25s ease;
}

.sst-burger:hover {
  border-color: var(--sst-accent);
}

/* --------------------------------------------------------------------------
 * 10. MOBILE OFF-CANVAS NAV
 * ------------------------------------------------------------------------ */

.sst-mobilenav {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(340px, 86vw);
  z-index: 1001;
  background: var(--sst-white);
  box-shadow: var(--sst-shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  transform: translateX(calc(-100% - 40px));
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}

[dir="rtl"] .sst-mobilenav {
  transform: translateX(calc(100% + 40px));
}

.sst-mobilenav.is-open,
[dir="rtl"] .sst-mobilenav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.sst-mobilenav__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(var(--city-primary-rgb), .6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}

.sst-mobilenav__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sst-mobilenav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius-sm);
  background: var(--sst-white);
  color: var(--sst-primary);
  transition: color .25s ease, border-color .25s ease;
}

.sst-mobilenav__close:hover {
  color: var(--sst-accent);
  border-color: var(--sst-accent);
}

.sst-mobilenav .sst-nav {
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.sst-mobilenav .sst-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 16px;
}

.sst-mobilenav .sst-nav ul {
  position: static;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: 0;
  padding: 0;
  padding-inline-start: 16px;
  min-width: 0;
}

.sst-mobilenav__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sst-mobilenav__cta .sst-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
 * 11. HERO + SEARCH BAR
 * ------------------------------------------------------------------------ */

.sst-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-color: var(--sst-primary);
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: hidden;
}

/* Layered navy gradient overlay over the bg image */
.sst-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(var(--city-primary-rgb), .55) 0%,
      rgba(var(--city-primary-rgb), .78) 55%,
      rgba(var(--city-primary-rgb), .92) 100%
    ),
    linear-gradient(
      120deg,
      rgba(var(--city-primary-rgb), .55) 0%,
      rgba(var(--city-primary-rgb), .15) 60%,
      rgba(199, 154, 61, .12) 100%
    );
}

/* Subtle gold accent line along the bottom edge */
.sst-hero::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--sst-accent) 35%,
    var(--sst-accent) 65%,
    transparent 100%
  );
  opacity: .85;
}

.sst-hero__inner {
  position: relative;
  width: 100%;
  padding-block: 100px 80px;
  text-align: center;
}

.sst-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-block: 0 14px;
  color: #F0D68E;
  font-size: 14px;
  font-weight: 800;
}

.sst-hero__eyebrow::before,
.sst-hero__eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .72;
}

.sst-hero__title {
  color: var(--sst-white);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.25;
  max-width: 820px;
  margin-inline: auto;
  margin-block-end: 16px;
  text-shadow: 0 2px 16px rgba(var(--city-primary-rgb), .4);
}

.sst-hero__subtitle {
  color: rgba(255, 255, 255, .85);
  font-size: 19px;
  line-height: 1.7;
  max-width: 680px;
  margin-inline: auto;
  margin-block-end: 22px;
}

.sst-hero__actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-end: 24px;
}

.sst-hero__actions .sst-btn {
  min-height: 48px;
  min-width: 210px;
  justify-content: center;
}

.sst-hero__quick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-block-start: 18px;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  font-weight: 700;
}

.sst-hero__quick a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(240, 214, 142, .55);
  text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.sst-hero__quick a:hover,
.sst-hero__quick a:focus-visible {
  color: var(--sst-white);
  text-decoration-color: #F0D68E;
}

.sst-hero__quick > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sst-accent);
}

/* Search bar — white pill card with divided fields.
   Flex (not fixed grid tracks) so optional fields — the city/type selects
   only render when terms exist — degrade gracefully. */
.sst-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 1120px;
  margin-inline: auto;
  padding: 6px;
  background: var(--sst-white);
  border-radius: 999px; /* rounded control — resets to --sst-radius below 1024px */
  box-shadow: var(--sst-shadow-lg);
  padding: 8px;
  gap: 0;
  text-align: start;
}

.sst-search__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 140px;
  min-width: 0;
}

/* Keyword field (always first, always present) gets extra room. */
.sst-search__field:first-child {
  flex-grow: 1.6;
  flex-basis: 200px;
}

.sst-search__field > input,
.sst-search__field > select {
  width: 100%;
}

.sst-search__field + .sst-search__field::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 20%;
  width: 1px;
  background: var(--sst-border);
}

.sst-search input[type="text"],
.sst-search input[type="search"],
.sst-search select {
  height: 56px;
  border: 0;
  border-radius: var(--sst-radius-sm);
  background-color: transparent;
  font-size: 15px;
  padding-inline: 18px;
}

.sst-search input[type="text"]:focus,
.sst-search input[type="search"]:focus,
.sst-search select:focus {
  box-shadow: inset 0 0 0 2px rgba(199, 154, 61, .5);
}

.sst-search .sst-btn {
  flex: 0 0 auto;
  height: 56px;
  padding-inline: 30px;
  margin-inline-start: 8px;
}

/* --------------------------------------------------------------------------
 * 12. CITY CARDS
 * ------------------------------------------------------------------------ */

.sst-citycard {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--sst-radius);
  overflow: hidden;
  background: var(--sst-primary);
  box-shadow: var(--sst-shadow);
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.sst-citycard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sst-shadow-lg);
}

.sst-citycard__img,
.sst-citycard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .45s ease;
}

.sst-citycard:hover .sst-citycard__img,
.sst-citycard:hover img {
  transform: scale(1.08);
}

.sst-citycard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(var(--city-primary-rgb), .88) 0%,
    rgba(var(--city-primary-rgb), .35) 45%,
    rgba(var(--city-primary-rgb), .05) 100%
  );
  transition: opacity .25s ease;
}

.sst-citycard__body {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 20px;
}

.sst-citycard__name {
  display: block;
  color: var(--sst-white);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 2px;
}

.sst-citycard__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sst-accent);
  font-size: 13px;
  font-weight: 700;
}

.sst-citycard__count .sst-icon {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
 * 13. PROPERTY CARD
 * ------------------------------------------------------------------------ */

.sst-card {
  display: flex;
  flex-direction: column;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  overflow: hidden;
  box-shadow: var(--sst-shadow);
  transition: transform .25s ease, box-shadow .25s ease,
    border-color .25s ease;
  height: 100%;
}

.sst-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sst-shadow-lg);
  border-color: rgba(199, 154, 61, .4);
}

.sst-card__media {
  position: relative;
  aspect-ratio: 640 / 430;
  background: var(--sst-bg-soft);
  overflow: hidden;
}

.sst-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.sst-card:hover .sst-card__media > a > img,
.sst-card:hover .sst-card__media > img {
  transform: scale(1.05);
}

.sst-card-swiper {
  position: absolute;
  inset: 0;
  height: 100%;
}

.sst-card-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No-image placeholders */
.sst-card__placeholder,
.sst-postcard__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--sst-bg-soft);
  color: var(--sst-border);
}

.sst-card__placeholder .sst-icon,
.sst-postcard__fallback .sst-icon {
  width: 48px;
  height: 48px;
}

.sst-citycard__fallback {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--sst-primary) 0%, var(--sst-primary-dark) 100%);
}

.sst-card__count {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 23, 20, .65);
  backdrop-filter: blur(3px);
  color: var(--sst-white);
  font-size: 12px;
  font-weight: 700;
}

.sst-card__count .sst-icon {
  width: 14px;
  height: 14px;
}

.sst-card__type {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sst-accent-dark);
  color: var(--sst-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(16, 23, 20, .25);
}

.sst-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1 1 auto;
}

.sst-card__title {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}

.sst-card__title a {
  color: var(--sst-title);
  transition: color .25s ease;
}

.sst-card__title a:hover {
  color: var(--sst-accent);
}

.sst-card__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sst-text);
  font-size: 14px;
}

.sst-card__loc .sst-icon {
  width: 16px;
  height: 16px;
  color: var(--sst-accent);
}

/* Meta chips: bed / bath / area */
.sst-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sst-chips > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--sst-border);
  border-radius: 999px;
  background: var(--sst-bg-soft);
  color: var(--sst-title);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.sst-chips .sst-icon {
  width: 15px;
  height: 15px;
  color: var(--sst-accent);
}

.sst-card__foot {
  margin-block-start: auto;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--sst-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sst-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--sst-primary);
}

.sst-card__price small,
.sst-card__price span {
  font-size: 13px;
  font-weight: 600;
  color: var(--sst-text);
}

/* CTA buttons row */
.sst-cta {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.sst-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px; /* rounded action */
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease,
    border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.sst-cta a:active {
  transform: scale(.97);
}

.sst-cta .sst-icon {
  width: 16px;
  height: 16px;
}

.sst-cta__wa {
  flex: 1 1 auto;
  background: var(--sst-whatsapp);
  color: var(--sst-white);
}

.sst-cta__wa:hover {
  background: #1EBE59;
  color: var(--sst-white);
}

.sst-cta__call {
  flex: 1 1 auto;
  background: var(--sst-primary);
  color: var(--sst-white);
}

.sst-cta__call:hover {
  background: var(--sst-primary-dark);
  color: var(--sst-white);
}

.sst-cta__more {
  flex: 1 1 auto;
  border: 1px solid var(--sst-border);
  background: var(--sst-white);
  color: var(--sst-title);
}

.sst-cta__more:hover {
  border-color: var(--sst-accent);
  color: var(--sst-accent);
}

/* Single-context CTA (aside) — stacked, bigger */
.sst-cta--single {
  flex-direction: column;
}

.sst-cta--single a {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
}

.sst-cta--home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sst-cta--home .sst-cta__more {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  background: var(--sst-oasis);
  border-color: var(--sst-oasis);
  color: var(--sst-white);
}

.sst-cta--home .sst-cta__more:hover,
.sst-cta--home .sst-cta__more:focus-visible {
  background: var(--sst-oasis-dark);
  border-color: var(--sst-oasis-dark);
  color: var(--sst-white);
}

/* --------------------------------------------------------------------------
 * 14. LATEST PROJECTS SLIDER
 * ------------------------------------------------------------------------ */

.sst-latest-swiper {
  overflow: hidden;
  padding-block-end: 48px;
  margin-block-end: -10px;
}

.sst-latest-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.sst-latest-swiper .swiper-slide .sst-card {
  width: 100%;
}

.sst-latest__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 8px;
}

/* --------------------------------------------------------------------------
 * 15. DEVELOPERS
 * ------------------------------------------------------------------------ */

.sst-devs-swiper {
  overflow: hidden;
}

.sst-devs-swiper .swiper-wrapper {
  transition-timing-function: linear;
  align-items: stretch;
}

.sst-devs-swiper .swiper-slide {
  height: auto;
}

.sst-devcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 140px;
  padding: 24px;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease,
    border-color .25s ease;
}

.sst-devcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sst-shadow-lg);
  border-color: rgba(199, 154, 61, .4);
}

.sst-devcard img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .25s ease, opacity .25s ease;
}

.sst-devcard:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.sst-devcard__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--sst-title);
  margin: 0;
}

/* Developer archive — large cards */
.sst-devcard--lg {
  min-height: 220px;
  padding: 32px 24px;
  gap: 16px;
}

.sst-devcard--lg img {
  max-height: 84px;
}

.sst-devcard--lg .sst-devcard__name {
  font-size: 18px;
  font-weight: 800;
}

.sst-devcard__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--sst-text);
}

.sst-devcard--lg .sst-btn {
  padding: 8px 20px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
 * 16. COUNTERS BAND
 * ------------------------------------------------------------------------ */

.sst-counters {
  position: relative;
  background:
    radial-gradient(
      ellipse at 20% -20%,
      rgba(199, 154, 61, .16) 0%,
      transparent 55%
    ),
    linear-gradient(135deg, var(--sst-primary) 0%, var(--sst-primary-dark) 100%);
  color: var(--sst-white);
  padding-block: 64px;
  overflow: hidden;
}

.sst-counters::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 154, 61, .8),
    transparent
  );
}

.sst-counter {
  text-align: center;
  padding: 12px;
}

.sst-counter + .sst-counter {
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
}

.sst-counter__num {
  display: block;
  font-family: ui-serif, "New York", Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sst-accent);
  font-variant-numeric: tabular-nums;
  margin-block-end: 6px;
  text-shadow: 0 2px 12px rgba(199, 154, 61, .25);
}

.sst-counter__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
 * 17. BLOG POST CARDS
 * ------------------------------------------------------------------------ */

.sst-postcard {
  display: flex;
  flex-direction: column;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  overflow: hidden;
  box-shadow: var(--sst-shadow);
  transition: transform .25s ease, box-shadow .25s ease,
    border-color .25s ease;
  height: 100%;
}

.sst-postcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sst-shadow-lg);
  border-color: rgba(199, 154, 61, .4);
}

.sst-postcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sst-bg-soft);
}

.sst-postcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.sst-postcard:hover .sst-postcard__media img {
  transform: scale(1.05);
}

.sst-postcard__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  flex: 1 1 auto;
}

.sst-postcard__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sst-accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.sst-postcard__date .sst-icon {
  width: 15px;
  height: 15px;
}

.sst-postcard__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  line-height: 1.4;
}

.sst-postcard__title a {
  color: var(--sst-title);
}

.sst-postcard__title a:hover {
  color: var(--sst-accent);
}

.sst-postcard__excerpt {
  color: var(--sst-text);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.sst-postcard__more {
  margin-block-start: auto;
  padding-block-start: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sst-primary);
  font-size: 14px;
  font-weight: 700;
}

.sst-postcard__more .sst-icon {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}

.sst-postcard__more:hover {
  color: var(--sst-accent);
}

.sst-postcard__more:hover .sst-icon {
  transform: translateX(4px);
}

[dir="rtl"] .sst-postcard__more:hover .sst-icon {
  /* Keep the RTL mirror while nudging inline-end. */
  transform: translateX(-4px) scaleX(-1);
}

/* --------------------------------------------------------------------------
 * 18. CTA BAND
 * ------------------------------------------------------------------------ */

.sst-ctaband {
  position: relative;
  background:
    radial-gradient(
      ellipse at 85% 15%,
      rgba(199, 154, 61, .22) 0%,
      transparent 50%
    ),
    linear-gradient(120deg, var(--sst-primary-dark) 0%, var(--sst-primary) 100%);
  color: var(--sst-white);
  padding-block: 72px;
  overflow: hidden;
  isolation: isolate;
}

.sst-ctaband::before {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  inset-block-start: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px solid rgba(199, 154, 61, .25);
  z-index: -1;
}

.sst-ctaband::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  inset-block-start: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px solid rgba(199, 154, 61, .15);
  z-index: -1;
}

.sst-ctaband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.sst-ctaband__title {
  color: var(--sst-white);
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 8px;
}

.sst-ctaband__title span {
  color: var(--sst-accent);
}

.sst-ctaband__text {
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  max-width: 560px;
  margin: 0;
}

.sst-ctaband__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
 * 19. FOOTER
 * ------------------------------------------------------------------------ */

.sst-footer {
  background: var(--sst-primary-dark);
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  position: relative;
}

.sst-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sst-accent),
    transparent
  );
  opacity: .7;
}

.sst-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 64px 48px;
}

.sst-footer__col h4,
.sst-footer__title {
  color: var(--sst-white);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 18px;
  padding-block-end: 10px;
  position: relative;
}

.sst-footer__col h4::after,
.sst-footer__title::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--sst-accent);
}

.sst-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sst-white);
  font-size: 22px;
  font-weight: 800;
  margin-block-end: 16px;
}

.sst-footer__logo img {
  max-height: 46px;
  width: auto;
}

.sst-footer__about {
  line-height: 1.8;
  margin: 0 0 20px;
}

.sst-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sst-footer ul li {
  margin-block-end: 10px;
}

.sst-footer a {
  color: rgba(255, 255, 255, .75);
  transition: color .25s ease, padding .25s ease;
}

.sst-footer a:hover {
  color: var(--sst-accent);
  padding-inline-start: 4px;
}

.sst-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sst-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .8);
  transition: background-color .25s ease, color .25s ease,
    border-color .25s ease, transform .25s ease;
}

.sst-social a:hover {
  background: var(--sst-accent);
  border-color: var(--sst-accent);
  color: var(--sst-white);
  transform: translateY(-3px);
  padding-inline-start: 0;
}

.sst-social .sst-icon {
  width: 18px;
  height: 18px;
}

.sst-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-end: 14px;
}

.sst-footer__contact .sst-icon {
  width: 18px;
  height: 18px;
  color: var(--sst-accent);
  margin-block-start: 3px;
}

.sst-footer__contact a:hover {
  padding-inline-start: 0;
}

.sst-footer__bottom {
  border-block-start: 1px solid rgba(255, 255, 255, .1);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.sst-footer__bottom a {
  color: var(--sst-accent);
}

.sst-footer__bottom a:hover {
  color: var(--sst-white);
  padding-inline-start: 0;
}

.sst-footer__bottom .sst-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.sst-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.sst-footer__legal a {
  color: rgba(255, 255, 255, .55);
}

.sst-footer__legal a:hover {
  color: var(--sst-accent);
}

/* --------------------------------------------------------------------------
 * 20. ARCHIVE FILTERS & PAGINATION
 * ------------------------------------------------------------------------ */

/* Flex (not fixed grid tracks): on term archives one select is intentionally
   skipped, so tracks can't be assumed — fields share the row and wrap. */
.sst-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  box-shadow: var(--sst-shadow);
  padding: 20px;
  margin-block-end: 40px;
}

.sst-filters__field {
  flex: 1 1 150px;
  min-width: 0;
}

/* Keyword field gets extra room. */
.sst-filters__field:first-child {
  flex-grow: 1.4;
  flex-basis: 180px;
}

.sst-filters__field > input,
.sst-filters__field > select {
  width: 100%;
}

.sst-filters label {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sst-text);
}

.sst-filters .sst-btn {
  flex: 0 0 auto;
  height: 48px;
  padding-inline: 24px;
}

/* Results count line */
.sst-results {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sst-text);
}

/* Pagination */
.sst-pagination {
  margin-block-start: 48px;
  text-align: center;
}

.sst-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sst-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius-sm);
  background: var(--sst-white);
  color: var(--sst-title);
  font-size: 15px;
  font-weight: 700;
  transition: background-color .25s ease, color .25s ease,
    border-color .25s ease, transform .25s ease;
}

.sst-pagination .page-numbers:hover {
  border-color: var(--sst-accent);
  color: var(--sst-accent);
  transform: translateY(-2px);
}

.sst-pagination .page-numbers.current {
  background: var(--sst-primary);
  border-color: var(--sst-primary);
  color: var(--sst-white);
}

.sst-pagination .page-numbers.dots {
  border: 0;
  background: transparent;
}

.sst-pagination .page-numbers.dots:hover {
  transform: none;
  color: var(--sst-text);
}

/* Post nav (prev/next single) */
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-block-start: 1px solid var(--sst-border);
  margin-block-start: 40px;
}

/* --------------------------------------------------------------------------
 * 21. BREADCRUMBS
 * ------------------------------------------------------------------------ */

.sst-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  margin-block-end: 12px;
}

.sst-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sst-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sst-breadcrumbs a {
  color: rgba(255, 255, 255, .7);
}

.sst-breadcrumbs a:hover {
  color: var(--sst-accent);
}

.sst-breadcrumbs .sep {
  opacity: .5;
  margin-inline: 4px;
}

.sst-breadcrumbs .current {
  color: var(--sst-accent);
}

/* Breadcrumbs on light backgrounds */
.sst-section .sst-breadcrumbs,
.sst-breadcrumbs--dark {
  color: var(--sst-text);
}

.sst-section .sst-breadcrumbs a,
.sst-breadcrumbs--dark a {
  color: var(--sst-text);
}

.sst-section .sst-breadcrumbs .current,
.sst-breadcrumbs--dark .current {
  color: var(--sst-accent);
}

/* --------------------------------------------------------------------------
 * 22. SINGLE PROPERTY
 * ------------------------------------------------------------------------ */

/* Page hero: breadcrumbs + title + loc + price row */
.sst-single-hero {
  position: relative;
  background:
    radial-gradient(
      ellipse at 90% 0%,
      rgba(199, 154, 61, .18) 0%,
      transparent 55%
    ),
    linear-gradient(135deg, var(--sst-primary) 0%, var(--sst-primary-dark) 100%);
  color: var(--sst-white);
  padding-block: 48px;
  overflow: hidden;
}

.sst-single-hero::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 154, 61, .8),
    transparent
  );
}

.sst-single-hero__pricerow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-block-start: 12px;
}

.sst-single-hero h1 {
  color: var(--sst-white);
  font-size: 34px;
  margin: 0 0 6px;
}

.sst-single-hero .sst-card__loc,
.sst-single-hero__loc,
.sst-single-hero__sub {
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  margin: 0;
}

.sst-single-hero__loc {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sst-single-hero__loc .sst-icon {
  width: 16px;
  height: 16px;
  color: var(--sst-accent);
}

.sst-single-hero__price {
  color: var(--sst-accent);
  font-size: 26px;
  font-weight: 800;
  display: block;
}

.sst-single-hero__price small,
.sst-single-hero__price span {
  color: rgba(255, 255, 255, .7);
}

/* Gallery */
.sst-gallery {
  margin-block-end: 32px;
}

.sst-gallery-swiper {
  border-radius: var(--sst-radius);
  overflow: hidden;
  box-shadow: var(--sst-shadow);
  margin-block-end: 12px;
}

.sst-gallery-swiper .swiper-slide {
  aspect-ratio: 16 / 9;
  background: var(--sst-primary-dark);
}

.sst-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sst-gallery-thumbs {
  overflow: hidden;
}

.sst-gallery-thumbs .swiper-slide {
  aspect-ratio: 16 / 10;
  border-radius: var(--sst-radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: .55;
  border: 2px solid transparent;
  transition: opacity .25s ease, border-color .25s ease;
}

.sst-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sst-gallery-thumbs .swiper-slide:hover {
  opacity: .85;
}

.sst-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--sst-accent);
}

/* Two-column layout: main + sticky aside */
.sst-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

/* Grid items default to min-width:auto — wide content (tables) would blow
   the column out and clip the page. Clamp so inner scrollers can work. */
.sst-single-main,
.sst-aside {
  min-width: 0;
}

.sst-aside {
  position: sticky;
  inset-block-start: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* The aside precedes .sst-single-main in the DOM (so the price/CTAs lead on
   mobile); pin the desktop columns explicitly so the visual layout is
   unchanged: main in column 1 (inline-start), aside in column 2. */
.sst-single-main {
  grid-column: 1;
  grid-row: 1;
}

.sst-aside {
  grid-column: 2;
  grid-row: 1;
}

/* Single-photo gallery: plain figure, no Swiper chrome. */
.sst-gallery-single {
  margin: 0;
  border-radius: var(--sst-radius);
  overflow: hidden;
  box-shadow: var(--sst-shadow);
  aspect-ratio: 16 / 9;
  background: var(--sst-primary-dark);
}

.sst-gallery-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The secondary call button next to WhatsApp: oasis outline, not palm ink —
   palm ink reads near-black beside the brand's greens. `background` must be
   restated here because .sst-cta__call (later in the file) paints it dark. */
.sst-cta--single .sst-btn--outline {
  background: transparent;
  border-color: var(--sst-oasis);
  color: var(--sst-oasis);
}

.sst-cta--single .sst-btn--outline:hover,
.sst-cta--single .sst-btn--outline:focus {
  background: var(--sst-oasis);
  border-color: var(--sst-oasis);
  color: var(--sst-white);
}

/* Price card at the top of the sticky aside */
.sst-pricecard {
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  box-shadow: var(--sst-shadow);
  padding: 24px;
  text-align: center;
}

.sst-pricecard__note {
  display: block;
  color: var(--sst-text);
  font-size: 13px;
  font-weight: 600;
  margin-block-end: 4px;
}

.sst-pricecard__amount {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--sst-primary);
  line-height: 1.3;
}

/* Developer inquiry card (single-property aside) */
.sst-devbox {
  background: var(--sst-bg-soft);
  border: 1px solid var(--sst-border);
  border-inline-start: 4px solid var(--sst-accent);
  border-radius: var(--sst-radius);
  padding: 22px 24px;
  margin-block-end: 40px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.sst-devbox:hover {
  border-color: rgba(199, 154, 61, .5);
  border-inline-start-color: var(--sst-accent);
  box-shadow: var(--sst-shadow);
}

.sst-devbox__inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sst-devbox__logo {
  flex: 0 0 auto;
}

.sst-devbox__logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--sst-white);
  border: 1px solid var(--sst-border);
  padding: 8px;
  display: block;
}

.sst-devbox__logo .sst-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--sst-white);
  border: 1px solid var(--sst-border);
  padding: 22px;
  color: var(--sst-primary);
}

.sst-devbox__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sst-devbox__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sst-text);
  letter-spacing: .04em;
  margin-block-end: 2px;
}

.sst-devbox__name a {
  font-size: 18px;
  font-weight: 800;
  color: var(--sst-title);
  line-height: 1.4;
}

.sst-devbox__name a:hover {
  color: var(--sst-accent);
}

.sst-devbox__projects {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sst-accent);
}

.sst-devbox__projects .sst-icon {
  width: 15px;
  height: 15px;
}

.sst-devbox__cta {
  flex: 0 0 auto;
  text-align: center;
}

.sst-devbox__buttons {
  display: flex;
  gap: 10px;
}

.sst-devbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--sst-radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .25s ease, box-shadow .25s ease;
}

.sst-devbox__btn .sst-icon {
  width: 17px;
  height: 17px;
}

.sst-devbox__btn--call {
  background: var(--sst-primary);
  color: var(--sst-white);
}

.sst-devbox__btn--call:hover,
.sst-devbox__btn--call:focus {
  background: var(--sst-primary-dark);
  color: var(--sst-white);
}

.sst-devbox__btn--wa {
  background: var(--sst-whatsapp);
  color: var(--sst-white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, .3);
}

.sst-devbox__btn--wa:hover,
.sst-devbox__btn--wa:focus {
  background: #1EBE59;
  color: var(--sst-white);
}

.sst-devbox__cta-label {
  display: block;
  margin-block-start: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sst-text);
}

/* Facts grid */
.sst-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-block-end: 40px;
}

.sst-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  padding: 16px;
  transition: border-color .25s ease, box-shadow .25s ease,
    transform .25s ease;
}

.sst-fact:hover {
  border-color: rgba(199, 154, 61, .45);
  box-shadow: var(--sst-shadow);
  transform: translateY(-2px);
}

.sst-fact .sst-icon {
  width: 32px;
  height: 32px;
  color: var(--sst-accent);
  flex: 0 0 auto;
}

.sst-fact__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sst-text);
  line-height: 1.4;
}

.sst-fact__value {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--sst-title);
  line-height: 1.4;
}

/* Map */
.sst-map {
  position: relative;
  border-radius: var(--sst-radius);
  overflow: hidden;
  box-shadow: var(--sst-shadow);
  aspect-ratio: 16 / 8;
  background: var(--sst-bg-soft);
  margin-block: 40px 0;
}

.sst-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sst-map__consent {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(199, 154, 61, .35);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  color: var(--sst-title);
  background:
    radial-gradient(circle at 50% 38%, rgba(199, 154, 61, .18), transparent 34%),
    linear-gradient(135deg, var(--sst-bg-soft), var(--sst-white));
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.sst-map__consent:hover {
  border-color: var(--sst-accent);
}

.sst-map__pin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  color: var(--sst-accent);
  background: var(--sst-white);
  box-shadow: var(--sst-shadow);
}

.sst-map__title {
  font-size: 18px;
  color: var(--sst-primary);
}

.sst-map__note {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sst-text);
}

.sst-map__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* Sitting inside the body copy, under the location heading. */
.sst-map--inline {
  margin-block: 24px 32px;
}

/* Related */
.sst-related {
  margin-block-start: 64px;
}

.sst-related > h2,
.sst-related__title {
  font-size: 26px;
  margin-block-end: 24px;
  position: relative;
  padding-inline-start: 16px;
}

.sst-related > h2::before,
.sst-related__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--sst-accent);
}

/* --------------------------------------------------------------------------
 * 23. SINGLE DEVELOPER
 * ------------------------------------------------------------------------ */

.sst-devhead {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  box-shadow: var(--sst-shadow);
  padding: 32px;
  margin-block-end: 48px;
}

.sst-devhead img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  background: var(--sst-white);
  padding: 12px;
  flex: 0 0 auto;
}

.sst-devhead__body {
  flex: 1 1 320px;
}

/* The card sits inside the dark single-hero band, which paints text white —
   re-assert card colors so the developer name/desc stay readable. */
.sst-devhead {
  color: var(--sst-text);
}

.sst-devhead__body h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--sst-title);
}

.sst-devhead__body p {
  margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
 * 24. PROSE — post/page/project content typography
 * ------------------------------------------------------------------------ */

.sst-prose {
  /* 17px: Cairo sets tighter than latin faces at 16px over 20k-char articles. */
  font-size: 17px;
  line-height: 1.85;
  color: var(--sst-text);
  overflow-wrap: break-word;
}

.sst-prose > * + * {
  margin-block-start: 1.1em;
}

.sst-prose h2,
.sst-prose h3,
.sst-prose h4,
.sst-prose h5,
.sst-prose h6 {
  color: var(--sst-title);
  margin-block: 1.6em .6em;
}

.sst-prose > h2:first-child,
.sst-prose > h3:first-child {
  margin-block-start: 0;
}

.sst-prose h2 {
  font-size: 26px;
  padding-inline-start: 14px;
  position: relative;
}

.sst-prose h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 5px;
  width: 4px;
  border-radius: 4px;
  background: var(--sst-accent);
}

.sst-prose h3 {
  font-size: 21px;
}

.sst-prose h4 {
  font-size: 17px;
}

.sst-prose a {
  color: var(--sst-accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(199, 154, 61, .45);
  text-underline-offset: 3px;
  transition: color .25s ease, text-decoration-color .25s ease;
}

.sst-prose a:hover {
  color: var(--sst-primary);
  text-decoration-color: var(--sst-accent);
}

.sst-prose ul,
.sst-prose ol {
  padding-inline-start: 1.4em;
  margin-block: 1em;
}

.sst-prose li {
  margin-block-end: .45em;
}

.sst-prose ul > li::marker {
  color: var(--sst-accent);
}

.sst-prose ol > li::marker {
  color: var(--sst-accent);
  font-weight: 700;
}

.sst-prose blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  border-inline-start: 4px solid var(--sst-accent);
  border-radius: var(--sst-radius-sm);
  background: var(--sst-bg-soft);
  color: var(--sst-title);
  font-size: 17px;
  font-weight: 600;
  font-style: normal;
}

.sst-prose blockquote p:last-child {
  margin-block-end: 0;
}

.sst-prose blockquote cite {
  display: block;
  margin-block-start: 8px;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  color: var(--sst-accent-dark);
}

.sst-prose img {
  border-radius: var(--sst-radius);
  box-shadow: var(--sst-shadow);
}

.sst-prose figure {
  margin-block: 1.6em;
}

.sst-prose figcaption {
  font-size: 13px;
  color: var(--sst-text);
  text-align: center;
  margin-block-start: 10px;
}

.sst-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.6em;
  font-size: 15px;
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius-sm);
  overflow: hidden;
}

.sst-prose th,
.sst-prose td {
  padding: 12px 16px;
  border: 1px solid var(--sst-border);
  text-align: start;
}

.sst-prose thead th,
.sst-prose table th {
  background: var(--sst-primary);
  color: var(--sst-white);
  font-weight: 700;
  border-color: rgba(255, 255, 255, .15);
}

/* Header cells read as headers: a centred white label on the green band, never
   split mid-word. Editor-built tables carry no <thead> — their header is a
   first row of <td>s with the green painted inline on the <tr> — so match that
   row on its inline colour too, and set the colour on the cell itself so it
   holds even where the row's inline `color` is missing. */
.sst-prose thead th,
.sst-prose table th,
.sst-prose tr[style*="#1b6b44"] > td,
.sst-prose tr[style*="#1B6B44"] > td {
  color: var(--sst-white);
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  /* Beats the narrow-column `overflow-wrap: anywhere` further down, which was
     chopping short labels such as "المقدم" across two lines. */
  overflow-wrap: normal;
  word-break: normal;
}

/* Those labels are wrapped in <strong> by the editor, and the global
   `strong, b { color: var(--sst-title) }` repaints them dark ink — invisible on
   the green band. Hand the whole header cell's contents back to the cell. */
.sst-prose thead th *,
.sst-prose table th *,
.sst-prose tr[style*="#1b6b44"] > td *,
.sst-prose tr[style*="#1B6B44"] > td * {
  color: inherit;
}

.sst-prose tbody tr:nth-child(even) {
  background: var(--sst-bg-soft);
}

.sst-prose code {
  background: var(--sst-bg-soft);
  border: 1px solid var(--sst-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .9em;
}

.sst-prose pre {
  background: var(--sst-dark);
  color: #E2E0D6;
  border-radius: var(--sst-radius-sm);
  padding: 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.sst-prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.sst-prose hr {
  margin-block: 2em;
}

/* Article (single post / page) */
.sst-article {
  max-width: 820px;
  margin-inline: auto;
}

.sst-article__header {
  margin-block-end: 32px;
  text-align: center;
}

.sst-article__header h1,
.sst-article__title {
  font-size: 36px;
  margin-block-end: 12px;
}

.sst-article__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--sst-text);
  font-size: 14px;
  font-weight: 600;
}

.sst-article__meta .sst-icon {
  width: 16px;
  height: 16px;
  color: var(--sst-accent);
}

.sst-article__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sst-article__thumb {
  border-radius: var(--sst-radius);
  overflow: hidden;
  box-shadow: var(--sst-shadow);
  margin-block-end: 32px;
}

.sst-article__thumb img {
  width: 100%;
  display: block;
}

.sst-article__tags {
  margin-block-start: 28px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--sst-border);
  font-size: 14px;
}

.sst-article__tags-label {
  font-weight: 700;
  color: var(--sst-title);
  margin-inline-end: 6px;
}

.sst-article__tags a {
  color: var(--sst-accent-dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
 * 25. WORDPRESS CORE — alignments, blocks, captions (minimal)
 * ------------------------------------------------------------------------ */

.alignwide {
  margin-inline: calc((820px - min(100vw - 40px, var(--sst-container))) / 2);
  max-width: none;
  width: auto;
}

.sst-prose .alignwide {
  margin-inline: min(0px, calc((820px - min(100vw - 40px, 1080px)) / 2));
}

.alignfull {
  margin-inline: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.aligncenter {
  display: block;
  margin-inline: auto;
  text-align: center;
}

.alignleft {
  float: inline-start;
  margin-inline-end: 24px;
  margin-block: 6px 16px;
  max-width: 50%;
}

.alignright {
  float: inline-end;
  margin-inline-start: 24px;
  margin-block: 6px 16px;
  max-width: 50%;
}

.wp-block-image img {
  border-radius: var(--sst-radius);
}

.wp-block-image figcaption,
.wp-caption-text {
  font-size: 13px;
  color: var(--sst-text);
  text-align: center;
  margin-block-start: 8px;
}

.wp-caption {
  max-width: 100%;
}

.wp-block-quote,
.wp-block-pullquote {
  border-inline-start: 4px solid var(--sst-accent);
  padding-inline-start: 20px;
}

.wp-block-button__link {
  border-radius: var(--sst-radius-sm);
  background: var(--sst-accent);
  color: var(--sst-white);
  font-weight: 700;
  transition: background-color .25s ease;
}

.wp-block-button__link:hover {
  background: var(--sst-accent-dark);
  color: var(--sst-white);
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--sst-border);
}

.wp-block-embed iframe {
  max-width: 100%;
}

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

.gallery-item {
  margin: 0;
}

.gallery-item img {
  border-radius: var(--sst-radius-sm);
  width: 100%;
  object-fit: cover;
}

.sticky {
  /* WP required class — subtle highlight */
  position: relative;
}

.bypostauthor {
  /* WP required class */
  display: block;
}

/* --------------------------------------------------------------------------
 * 26. COMMENTS
 * ------------------------------------------------------------------------ */

.sst-comments {
  max-width: 820px;
  margin-inline: auto;
  margin-block-start: 56px;
  padding-block-start: 40px;
  border-block-start: 1px solid var(--sst-border);
}

.sst-comments__title,
.sst-comments .comments-title,
.sst-comments .comment-reply-title {
  font-size: 22px;
  margin-block-end: 24px;
}

.sst-comments .comment-list,
.sst-comments .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sst-comments .children {
  padding-inline-start: 40px;
}

.sst-comments .comment,
.sst-comments .pingback,
.sst-comments .trackback {
  margin-block-end: 20px;
}

.sst-comments .comment-body {
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  padding: 20px;
  transition: border-color .25s ease;
}

.sst-comments .comment-body:hover {
  border-color: rgba(199, 154, 61, .35);
}

.sst-comments .comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-block-end: 12px;
}

.sst-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--sst-title);
}

.sst-comments .comment-author .avatar {
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.sst-comments .comment-metadata {
  font-size: 13px;
}

.sst-comments .comment-metadata a {
  color: var(--sst-text);
}

.sst-comments .comment-metadata a:hover {
  color: var(--sst-accent);
}

.sst-comments .comment-content {
  font-size: 15px;
  line-height: 1.75;
}

.sst-comments .reply {
  margin-block-start: 10px;
}

.sst-comments .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sst-accent-dark);
  border: 1px solid var(--sst-border);
  border-radius: 999px;
  padding: 4px 14px;
  transition: border-color .25s ease, color .25s ease,
    background-color .25s ease;
}

.sst-comments .comment-reply-link:hover {
  border-color: var(--sst-accent);
  background: rgba(199, 154, 61, .08);
  color: var(--sst-accent-dark);
}

/* Comment form */
.sst-comments .comment-respond {
  margin-block-start: 32px;
  background: var(--sst-bg-soft);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  padding: 28px;
}

.sst-comments .comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sst-comments .comment-form-comment,
.sst-comments .comment-form-url,
.sst-comments .comment-notes,
.sst-comments .logged-in-as,
.sst-comments .comment-form-cookies-consent,
.sst-comments .form-submit {
  grid-column: 1 / -1;
}

.sst-comments .comment-form p {
  margin: 0;
}

.sst-comments .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sst-comments .comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  color: var(--sst-text);
}

.sst-comments .form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 2px solid var(--sst-accent);
  border-radius: var(--sst-radius-sm);
  background: var(--sst-accent);
  color: var(--sst-white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease,
    transform .25s ease;
}

.sst-comments .form-submit .submit:hover {
  background: var(--sst-accent-dark);
  border-color: var(--sst-accent-dark);
  transform: translateY(-2px);
}

.sst-comments .form-submit .submit:active {
  transform: scale(.98);
}

.sst-comments .no-comments {
  color: var(--sst-text);
  font-style: italic;
}

/* --------------------------------------------------------------------------
 * 27. SEARCH / 404
 * ------------------------------------------------------------------------ */

.sst-page-hero {
  position: relative;
  background:
    radial-gradient(
      ellipse at 85% 10%,
      rgba(199, 154, 61, .18) 0%,
      transparent 55%
    ),
    linear-gradient(135deg, var(--sst-primary) 0%, var(--sst-primary-dark) 100%);
  color: var(--sst-white);
  padding-block: 56px;
  text-align: center;
}

.sst-page-hero h1,
.sst-page-hero__title {
  color: var(--sst-white);
  font-size: 34px;
  margin: 0 0 8px;
}

.sst-page-hero p,
.sst-page-hero__desc {
  color: rgba(255, 255, 255, .8);
  max-width: 640px;
  margin-inline: auto;
}

.sst-page-hero__query {
  color: var(--sst-accent);
}

.sst-page-hero .sst-breadcrumbs {
  justify-content: center;
}

/* Search form (searchform.php) */
.sst-searchform {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-inline: auto;
}

.sst-searchform input[type="search"] {
  flex: 1 1 auto;
}

.sst-searchform .sst-btn {
  height: 48px;
  flex: 0 0 auto;
}

/* 404 (rendered inside the navy .sst-page-hero--404 band) */
.sst-page-hero--404 {
  padding-block: 80px;
}

.sst-404__code {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: var(--sst-accent);
  letter-spacing: .04em;
  margin-block: 0 8px;
  text-shadow: 0 2px 16px rgba(var(--city-primary-rgb), .4);
}

.sst-404__code span {
  color: var(--sst-white);
}

.sst-page-hero--404 h1 {
  font-size: 30px;
}

.sst-404__text {
  max-width: 560px;
  margin-inline: auto;
}

.sst-404__search {
  margin-block: 32px 24px;
}

.sst-404__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* No results / empty state */
.sst-empty {
  text-align: center;
  background: var(--sst-bg-soft);
  border: 1px dashed var(--sst-border);
  border-radius: var(--sst-radius);
  padding: 56px 24px;
  color: var(--sst-text);
}

.sst-empty > .sst-icon {
  width: 40px;
  height: 40px;
  color: var(--sst-accent);
  margin-block-end: 12px;
}

.sst-empty h2,
.sst-empty h3,
.sst-empty__title {
  margin-block-end: 8px;
}

.sst-empty__search {
  margin-block-start: 20px;
}

/* --------------------------------------------------------------------------
 * 28. BACK TO TOP
 * ------------------------------------------------------------------------ */

.sst-totop {
  position: fixed;
  inset-block-end: 28px;
  inset-inline-end: 28px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--sst-primary);
  color: var(--sst-white);
  box-shadow: var(--sst-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s,
    background-color .25s ease;
}

.sst-totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sst-totop:hover {
  background: var(--sst-accent);
  transform: translateY(-3px);
}

.sst-totop:active {
  transform: scale(.95);
}

.sst-totop .sst-icon {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg); /* arrow points inline-end by default → up */
}

[dir="rtl"] .sst-totop .sst-icon {
  transform: rotate(90deg) scaleX(-1);
}

/* --------------------------------------------------------------------------
 * 29. SWIPER THEME OVERRIDES
 * ------------------------------------------------------------------------ */

.swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: var(--sst-primary);
  opacity: .25;
  transition: opacity .25s ease, background-color .25s ease,
    width .25s ease;
}

.swiper-pagination-bullet-active {
  background: var(--sst-accent);
  opacity: 1;
  width: 26px;
  border-radius: 999px;
}

.sst-card-swiper .swiper-pagination {
  inset-block-end: 8px;
}

.sst-card-swiper .swiper-pagination-bullet {
  background: var(--sst-white);
  opacity: .55;
  width: 7px;
  height: 7px;
}

.sst-card-swiper .swiper-pagination-bullet-active {
  background: var(--sst-accent);
  opacity: 1;
  width: 18px;
}

/* Keep the visible latest-slider dots compact while meeting the 24px minimum
   pointer-target size. The nested card-gallery pagination stays unchanged. */
.sst-latest-swiper > .swiper-pagination .swiper-pagination-bullet {
  position: relative;
  width: 24px;
  height: 24px;
  margin-inline: 1px;
  background: transparent;
  opacity: 1;
}

.sst-latest-swiper > .swiper-pagination .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--sst-primary);
  opacity: .25;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease, background-color .25s ease,
    width .25s ease;
}

[dir="rtl"] .sst-latest-swiper > .swiper-pagination .swiper-pagination-bullet::before {
  transform: translate(50%, -50%);
}

.sst-latest-swiper > .swiper-pagination .swiper-pagination-bullet-active::before {
  width: 26px;
  background: var(--sst-accent-dark);
  opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sst-white);
  color: var(--sst-primary);
  box-shadow: var(--sst-shadow);
  transition: background-color .25s ease, color .25s ease;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
  font-weight: 800;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--sst-accent);
  color: var(--sst-white);
}

/* --------------------------------------------------------------------------
 * 30. RTL-ONLY OVERRIDES (icon mirroring — logical props handle the rest)
 * ------------------------------------------------------------------------ */

[dir="rtl"] .sst-icon--arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .sst-icon--chevron-down {
  /* symmetric — no flip needed, kept explicit for clarity */
  transform: none;
}

/* --------------------------------------------------------------------------
 * 31. RESPONSIVE — TABLET (max-width: 1024px)
 * ------------------------------------------------------------------------ */

@media (max-width: 1024px) {

  h1 { font-size: 34px; }
  h2 { font-size: 28px; }

  .sst-grid--3,
  .sst-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sst-section-head__title {
    font-size: 29px;
  }

  /* Header: collapse desktop nav, show burger; the switcher takes over the
     auto margin so it sits at the inline-end next to the burger. */
  .sst-header__nav {
    display: none;
  }

  .sst-header__cta {
    display: none;
  }

  .sst-langswitch {
    margin-inline-start: auto;
  }

  .sst-burger {
    display: flex;
    margin-inline-start: 0;
  }

  .sst-header__inner {
    gap: 16px;
  }

  /* Hero */
  .sst-hero {
    min-height: 540px;
  }

  .sst-hero__title {
    font-size: 38px;
  }

  .sst-hero__subtitle {
    font-size: 17px;
  }

  .sst-search {
    gap: 8px;
    padding: 12px;
    border-radius: var(--sst-radius);
  }

  /* Two fields per row on tablet. */
  .sst-search__field,
  .sst-search__field:first-child {
    flex: 1 1 45%;
  }

  .sst-search__field + .sst-search__field::before {
    content: none;
  }

  .sst-search input[type="text"],
  .sst-search input[type="search"],
  .sst-search select {
    height: 50px;
    background-color: var(--sst-bg-soft);
    border-radius: var(--sst-radius-sm);
  }

  .sst-search .sst-btn {
    flex: 1 1 100%;
    height: 52px;
    margin-inline-start: 0;
    width: 100%;
  }

  /* Counters */
  .sst-counters .sst-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .sst-counter:nth-child(odd) {
    border-inline-start: 0;
  }

  .sst-counter__num {
    font-size: 42px;
  }

  /* Filters: roughly three fields per row on tablet, full-width button. */
  .sst-filters__field,
  .sst-filters__field:first-child {
    flex: 1 1 30%;
  }

  .sst-filters .sst-btn {
    flex: 1 1 100%;
  }

  /* Single property */
  .sst-single-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  /* One column: release the desktop column pins so DOM order rules —
     aside (price + CTAs) first, then the article. */
  .sst-single-main,
  .sst-aside {
    grid-column: auto;
    grid-row: auto;
  }

  .sst-aside {
    position: static;
  }

  .sst-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sst-devbox__inner {
    flex-wrap: wrap;
  }

  /* Footer */
  .sst-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  /* Alignments */
  .alignwide,
  .sst-prose .alignwide {
    margin-inline: 0;
  }
}

/* --------------------------------------------------------------------------
 * 32. RESPONSIVE — MOBILE (max-width: 640px)
 * ------------------------------------------------------------------------ */

@media (max-width: 640px) {

  body {
    font-size: 15px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }

  .sst-section {
    padding-block: 56px;
  }

  .sst-section-head {
    margin-block-end: 32px;
  }

  .sst-section-head__title {
    font-size: 25px;
  }

  .sst-grid,
  .sst-grid--2,
  .sst-grid--3,
  .sst-grid--4 {
    grid-template-columns: 1fr;
  }

  .sst-btn {
    padding: 12px 22px;
    font-size: 14px;
  }

  /* Header */
  .sst-header__inner {
    min-height: 64px;
  }

  .sst-header__logo {
    font-size: 18px;
  }

  .sst-header__logo img {
    max-height: 40px;
  }

  .sst-brand__mark {
    width: 36px;
    height: 36px;
  }

  .sst-header__cta {
    display: none;
  }

  .sst-langswitch__item {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 6px 10px;
  }

  .sst-map__consent {
    padding: 20px;
  }

  .sst-map__pin {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  /* Hero */
  .sst-hero {
    min-height: 590px;
  }

  .sst-hero__inner {
    padding-block: 64px 44px;
  }

  .sst-hero__title {
    font-size: 31px;
  }

  .sst-hero__subtitle {
    font-size: 15px;
    margin-block-end: 18px;
  }

  .sst-hero__actions {
    flex-wrap: nowrap;
    gap: 8px;
    margin-block-end: 18px;
  }

  .sst-hero__actions .sst-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding-inline: 10px;
    font-size: 12.5px;
  }

  .sst-hero__eyebrow {
    font-size: 13px;
  }

  .sst-hero__eyebrow::before,
  .sst-hero__eyebrow::after {
    width: 18px;
  }

  .sst-hero__quick {
    gap: 0 12px;
    margin-block-start: 12px;
    font-size: 13px;
  }

  .sst-hero__quick > span {
    display: none;
  }

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

  /* Cards */
  .sst-card__body {
    padding: 16px;
  }

  .sst-cta a {
    padding: 10px 8px;
    font-size: 12.5px;
  }

  .sst-latest__actions .sst-btn {
    width: min(100%, 320px);
    justify-content: center;
  }

  /* Counters */
  .sst-counters {
    padding-block: 48px;
  }

  .sst-counters .sst-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .sst-counter__num {
    font-size: 34px;
  }

  .sst-counter__label {
    font-size: 13px;
  }

  /* CTA band */
  .sst-ctaband {
    padding-block: 56px;
    text-align: center;
  }

  .sst-ctaband__inner {
    flex-direction: column;
    justify-content: center;
  }

  .sst-ctaband__title {
    font-size: 24px;
  }

  .sst-ctaband__actions {
    width: 100%;
    flex-direction: column;
  }

  .sst-ctaband__actions .sst-btn {
    width: 100%;
  }

  /* Footer */
  .sst-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 48px 36px;
  }

  .sst-footer__bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .sst-footer__bottom .sst-container {
    flex-direction: column;
    justify-content: center;
  }

  .sst-footer__legal {
    justify-content: center;
  }

  /* Hero search: stack fields on mobile. */
  .sst-search__field,
  .sst-search__field:first-child {
    flex: 1 1 100%;
  }

  /* Filters: stack everything on mobile. */
  .sst-filters {
    padding: 16px;
  }

  .sst-filters__field,
  .sst-filters__field:first-child {
    flex: 1 1 100%;
  }

  /* Single property */
  .sst-single-hero {
    padding-block: 36px;
  }

  .sst-single-hero h1 {
    font-size: 25px;
  }

  .sst-single-hero__pricerow {
    align-items: flex-start;
    flex-direction: column;
  }

  .sst-single-hero__price {
    text-align: start;
    font-size: 22px;
  }

  .sst-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sst-fact {
    padding: 12px;
    gap: 10px;
  }

  .sst-fact .sst-icon {
    width: 26px;
    height: 26px;
  }

  .sst-devbox {
    padding: 20px 16px;
    margin-block-end: 32px;
  }

  .sst-devbox__inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .sst-devbox__body {
    width: 100%;
  }

  .sst-devbox__cta {
    width: 100%;
  }

  .sst-devbox__buttons {
    flex-direction: column;
  }

  .sst-devbox__btn {
    width: 100%;
  }

  .sst-map {
    aspect-ratio: 4 / 3;
  }

  .sst-devhead {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  /* flex-basis becomes HEIGHT in column direction — reset it. */
  .sst-devhead__body {
    flex: 1 1 auto;
    width: 100%;
  }

  /* Article */
  .sst-article__header h1,
  .sst-article__title {
    font-size: 26px;
  }

  .sst-prose h2 {
    font-size: 22px;
  }

  .sst-prose h3 {
    font-size: 18px;
  }

  /* Every prose table fits the screen — no sideways scrolling. Fixed layout
     divides the width evenly and the cells wrap instead of forcing an
     overflow (they used to be `white-space: nowrap` inside a scroller, so the
     last columns were simply unreachable). */
  .sst-prose table {
    display: table;
    width: 100%;
    max-width: 100%;
    /* `auto` (not `fixed`) so a column of long project names gets the room and
       a column of "70 m²" does not — with `anywhere` below, the minimum
       column width is one character, so the table can always be made to fit. */
    table-layout: auto;
    font-size: 12.5px;
  }

  .sst-prose th,
  .sst-prose td {
    padding: 8px 7px;
    white-space: normal;
    /* `anywhere` only kicks in when a word genuinely cannot fit its column;
       `word-break: break-word` would chop Arabic mid-word far more eagerly. */
    overflow-wrap: anywhere;
  }

  /* Five-plus columns on a 390px screen leaves ~70px each, which splits
     ordinary Arabic words. Tighten just those tables so a word like
     "المساحات" clears its column instead of breaking across lines. */
  .sst-prose table:has(tr > *:nth-child(5)) {
    font-size: 11px;
  }

  .sst-prose table:has(tr > *:nth-child(5)) th,
  .sst-prose table:has(tr > *:nth-child(5)) td {
    padding: 7px 4px;
  }

  /* Comments */
  .sst-comments .children {
    padding-inline-start: 16px;
  }

  .sst-comments .comment-form {
    grid-template-columns: 1fr;
  }

  .sst-comments .comment-respond {
    padding: 20px;
  }

  /* Pagination */
  .sst-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Back to top */
  .sst-totop {
    inset-block-end: 20px;
    inset-inline-end: 20px;
    width: 44px;
    height: 44px;
  }

  /* 404 */
  .sst-404__code {
    font-size: 84px;
  }

  /* Gallery WP */
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Floats off on mobile */
  .alignleft,
  .alignright {
    float: none;
    margin-inline: auto;
    margin-block: 16px;
    max-width: 100%;
    display: block;
  }
}

/* The full bilingual wordmark cannot coexist with three 44px controls at the
   smallest supported viewport. Keep the accessible link name and show its
   distinctive mark so the menu and language controls stay fully visible. */
@media (max-width: 400px) {
  .sst-header__inner {
    gap: 12px;
  }

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

@media (max-width: 360px) {
  .sst-prose table:has(tr > *:nth-child(5)) {
    width: 100% !important;
    table-layout: fixed;
    font-size: 10px;
  }

  .sst-prose table:has(tr > *:nth-child(5)) th,
  .sst-prose table:has(tr > *:nth-child(5)) td {
    padding-inline: 2px;
    overflow-wrap: anywhere;
  }
}

/* --------------------------------------------------------------------------
 * 33. REDUCED MOTION
 * ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
 * 34. SEARCH BAND + CONTACT (front page)
 * ------------------------------------------------------------------------ */

/* Search band — the shared .sst-search bar sits on a soft background. */
.sst-searchband .sst-search {
  border: 1px solid var(--sst-border);
}

/* Cities grid centers itself while only a couple of districts exist. */
.sst-cities .sst-grid--2 {
  max-width: 760px;
  margin-inline: auto;
}

/* Card placeholder when a city term has no image yet. */
.sst-citycard__img--ph {
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(199, 154, 61, .30), transparent 60%),
    linear-gradient(200deg, var(--sst-primary-dark), var(--sst-primary));
}

.sst-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 28px;
  align-items: start;
}

.sst-contact__info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.sst-contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  box-shadow: var(--sst-shadow);
  color: var(--sst-title);
  transition: transform .2s ease, box-shadow .2s ease;
}

a.sst-contact__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sst-shadow-lg);
}

.sst-contact__item .sst-icon {
  flex: 0 0 auto;
  color: var(--sst-oasis);
}

.sst-contact__item--wa .sst-icon {
  color: var(--sst-whatsapp);
}

.sst-contact__item-text {
  display: block;
  min-width: 0;
}

.sst-contact__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--sst-text);
}

.sst-contact__value {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sst-contact__value[dir="ltr"] {
  text-align: inherit;
}

.sst-contact__form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  box-shadow: var(--sst-shadow);
}

.sst-contact__hp {
  position: absolute !important;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

.sst-contact__notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--sst-radius-sm);
  font-weight: 600;
}

.sst-contact__notice--sent {
  background: rgba(46, 107, 79, .12);
  color: var(--sst-oasis-dark);
}

.sst-contact__notice--error {
  background: rgba(178, 58, 44, .12);
  color: #B23A2C;
}

.sst-contact__consent {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sst-text);
}

.sst-contact__consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sst-contact__field {
  display: grid;
  gap: 6px;
}

.sst-contact__field--full {
  grid-column: 1 / -1;
}

.sst-contact__field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--sst-title);
}

.sst-contact__field input,
.sst-contact__field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius-sm);
  background: var(--sst-bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--sst-title);
}

.sst-contact__field textarea {
  resize: vertical;
}

.sst-contact__field input:focus,
.sst-contact__field textarea:focus {
  outline: none;
  border-color: var(--sst-oasis);
  box-shadow: 0 0 0 3px rgba(46, 107, 79, .15);
}

.sst-contact__form .sst-btn {
  justify-self: start;
}

@media (max-width: 1024px) {
  .sst-contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sst-contact__form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
 * 35. HOME EDITORIAL ARTICLE (front-page long-form content)
 * ------------------------------------------------------------------------ */

.sst-home-article {
  border-top: 1px solid var(--sst-border);
}

.sst-home-article__prose {
  max-width: 860px;
  margin-inline: auto;
}

.sst-home-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-block-end: 24px;
  padding-block-end: 16px;
  border-block-end: 1px solid var(--sst-border);
  color: var(--sst-text);
  font-size: 14px;
}

.sst-home-article__meta a {
  color: var(--sst-primary);
  font-weight: 800;
}

.sst-home-article__meta time {
  color: var(--sst-title);
  font-weight: 700;
}

.sst-home-article__role {
  color: var(--sst-text);
}

/* The article's own H1 sits below the hero — styled as an editorial title,
   not another hero headline. */
.sst-home-article__prose h1 {
  color: var(--sst-title);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.3;
  margin-block: 0 .7em;
}

.sst-home-article__prose > p:first-of-type {
  font-size: 17px;
  color: var(--sst-title);
}

@media (max-width: 640px) {
  .sst-home-article__prose h1 {
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
 * 36. STICKY MOBILE CONTACT BAR (single property)
 * ------------------------------------------------------------------------ */

.sst-sticky-cta {
  display: none;
}

@media (max-width: 1024px) {

  .sst-sticky-cta {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 980;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(244, 242, 236, .94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-block-start: 1px solid var(--sst-border);
    box-shadow: 0 -6px 18px rgba(var(--city-primary-rgb), .08);
  }

  .sst-sticky-cta .sst-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  /* Developer variant: logo + name take the room, the two actions become
     circular icon buttons so the whole lockup fits one 360px row. */
  .sst-sticky-cta--dev {
    align-items: center;
    gap: 8px;
  }

  .sst-sticky-cta__dev {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sst-title);
  }

  .sst-sticky-cta__logo {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sst-white);
    border: 1px solid var(--sst-border);
  }

  .sst-sticky-cta__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .sst-sticky-cta__logo .sst-icon {
    width: 22px;
    height: 22px;
    color: var(--sst-oasis);
  }

  .sst-sticky-cta__devname {
    min-width: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    /* Two lines max: developer names run long in Arabic. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .sst-sticky-cta__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--sst-white);
  }

  .sst-sticky-cta__icon .sst-icon {
    width: 22px;
    height: 22px;
  }

  .sst-sticky-cta__icon--call {
    background: var(--sst-oasis);
  }

  .sst-sticky-cta__icon--call:hover,
  .sst-sticky-cta__icon--call:focus {
    background: var(--sst-oasis-dark);
    color: var(--sst-white);
  }

  .sst-sticky-cta__icon--wa {
    background: var(--sst-whatsapp);
  }

  .sst-sticky-cta__icon--wa:hover,
  .sst-sticky-cta__icon--wa:focus {
    background: #1da851;
    color: var(--sst-white);
  }

  /* Keep page content clear of the fixed bar. */
  body.single-property {
    padding-block-end: 74px;
  }
}

/* Keep the fixed actions inside the 320px viewport. This block deliberately
   follows the component defaults above so its spacing is not overridden. */
@media (max-width: 360px) {
  .sst-sticky-cta {
    gap: 8px;
    padding-inline: 10px;
  }

  .sst-sticky-cta .sst-btn {
    min-width: 0;
    gap: 6px;
    padding-inline: 10px;
    font-size: 14px;
    overflow: hidden;
  }

  .sst-sticky-cta .sst-btn:first-child {
    flex-grow: 1.3;
  }

  .sst-sticky-cta .sst-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sst-sticky-cta .sst-btn .sst-icon {
    width: 20px;
    height: 20px;
  }
}

/* --------------------------------------------------------------------------
 * 37. COMPARE TABLE (compound comparison — live figures from projects)
 * ------------------------------------------------------------------------ */

.sst-compare {
  margin-block: 8px;
}

.sst-compare__heading {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--sst-title);
  margin-block: 0 20px;
}

.sst-compare__empty {
  text-align: center;
  color: var(--sst-text);
  padding-block: 40px;
}

/* Filter matched nothing — replaces the table, never sits beside it. */
.sst-compare__nomatch {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--sst-border);
  border-radius: 16px;
}

.sst-compare__nomatch[hidden] {
  display: none;
}

.sst-compare__nomatch-title {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--sst-title);
  margin-block: 0 8px;
}

.sst-compare__nomatch-hint {
  color: var(--sst-text);
  margin-block: 0 20px;
}

.sst-compare__nomatch-reset {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--sst-border);
  background: transparent;
  color: var(--sst-title);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.sst-compare__nomatch-reset:hover,
.sst-compare__nomatch-reset:focus-visible {
  background: var(--sst-bg-soft);
  border-color: currentColor;
}

/* Toolbar --------------------------------------------------------------- */
.sst-compare__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block-end: 16px;
}

.sst-compare__search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  align-items: center;
}

.sst-compare__search .sst-icon {
  position: absolute;
  inset-inline-start: 14px;
  width: 18px;
  height: 18px;
  color: var(--sst-accent);
  pointer-events: none;
}

.sst-compare__filter {
  width: 100%;
  padding: 12px 16px;
  padding-inline-start: 42px;
  border: 1px solid var(--sst-border);
  border-radius: 999px;
  background: var(--sst-bg-card);
  font: inherit;
  color: var(--sst-title);
}

.sst-compare__filter:focus-visible {
  outline: 2px solid var(--sst-oasis);
  outline-offset: 1px;
  border-color: transparent;
}

.sst-compare__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sst-title);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.sst-compare__toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--sst-oasis);
  cursor: pointer;
}

.sst-compare__toggle input:disabled {
  cursor: not-allowed;
}

.sst-compare__toggle:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

.sst-compare__reset {
  border: 1px solid var(--sst-border);
  background: var(--sst-bg-card);
  color: var(--sst-title);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.sst-compare__reset:hover {
  background: var(--sst-sage);
  border-color: var(--sst-sage);
}

.sst-compare__count {
  margin-inline-start: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--sst-text);
  white-space: nowrap;
}

/* Scroll region + table ------------------------------------------------- */
.sst-compare__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  /* The table carries ~31 `position: sticky` name cells. In RTL those escape
     the scroller's paint box and widen the DOCUMENT to ~1058px on a 400px
     screen; because `html` is `overflow-x: clip`, the viewport then sits
     permanently offset and every section renders off-screen — the homepage
     looked completely blank on mobile. `contain: paint` bounds the sticky
     cells to this box. The column still sticks and the table still scrolls. */
  contain: paint;
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  box-shadow: var(--sst-shadow);
  background: var(--sst-bg-card);
  -webkit-overflow-scrolling: touch;
}

.sst-compare__scroll:focus-visible {
  outline: 2px solid var(--sst-oasis);
  outline-offset: 2px;
}

.sst-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: var(--sst-title);
}

/* Head */
.sst-compare__th {
  background: var(--sst-primary);
  color: var(--sst-white);
  text-align: start;
  font-weight: 700;
  white-space: nowrap;
  padding: 0;
  border-block-end: 2px solid var(--sst-accent);
  vertical-align: middle;
}

.sst-compare__th--name,
.sst-compare__name {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
}

.sst-compare__th--name {
  z-index: 3;
  padding: 16px 18px;
  min-width: 180px;
  box-shadow: 6px 0 12px -8px rgba(16, 23, 20, .5);
}

[dir="rtl"] .sst-compare__th--name {
  box-shadow: -6px 0 12px -8px rgba(16, 23, 20, .5);
}

.sst-compare__th--actions {
  padding: 16px 18px;
}

.sst-compare__sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 16px 18px;
  cursor: pointer;
  white-space: nowrap;
}

.sst-compare__sort:hover {
  background: rgba(255, 255, 255, .07);
}

/* Draw the focus ring inset so the scroll region's top clip
   (overflow-y: hidden) can't cut off the header buttons' outline. */
.sst-compare__sort:focus-visible {
  outline: 2px solid var(--sst-white);
  outline-offset: -3px;
}

.sst-compare__caret::after {
  content: "\25BE";
  font-size: 11px;
  opacity: .4;
}

.sst-compare__th[aria-sort="ascending"] .sst-compare__caret::after {
  content: "\25B4";
  opacity: 1;
  color: var(--sst-accent);
}

.sst-compare__th[aria-sort="descending"] .sst-compare__caret::after {
  opacity: 1;
  color: var(--sst-accent);
}

/* Body */
.sst-compare__row td,
.sst-compare__name {
  padding: 14px 18px;
  border-block-end: 1px solid var(--sst-border);
  white-space: nowrap;
  vertical-align: middle;
}

.sst-compare__name {
  background: var(--sst-bg-card);
  font-weight: 700;
  min-width: 180px;
  max-width: 260px;
  box-shadow: 6px 0 12px -8px rgba(16, 23, 20, .18);
}

[dir="rtl"] .sst-compare__name {
  box-shadow: -6px 0 12px -8px rgba(16, 23, 20, .18);
}

input.sst-compare__check {
  width: 24px;
  height: 24px;
  margin-inline-end: 8px;
  accent-color: var(--sst-oasis);
  cursor: pointer;
  vertical-align: middle;
}

.sst-compare__title {
  color: var(--sst-title);
  text-decoration: none;
  white-space: normal;
}

.sst-compare__title:hover {
  color: var(--sst-oasis);
  text-decoration: underline;
}

.sst-compare__cell--price {
  color: var(--sst-accent-dark);
  font-weight: 800;
  font-size: 16px;
}

.sst-compare__cell a {
  color: var(--sst-oasis);
  text-decoration: none;
}

.sst-compare__cell a:hover {
  text-decoration: underline;
}

.sst-compare__dash {
  color: var(--sst-text);
  opacity: .5;
}

.sst-compare__row:nth-child(even) td {
  background: var(--sst-bg-soft);
}

/* Keep the frozen name cell in step with its row's zebra shade (it is a th,
   so the td rule above doesn't reach it) and stay opaque under it. */
.sst-compare__row:nth-child(even) .sst-compare__name {
  background: var(--sst-bg-soft);
}

.sst-compare__row:hover td {
  background: var(--sst-sage);
}

.sst-compare__row:hover .sst-compare__name {
  background: var(--sst-sage);
}

.sst-compare__row.is-selected td {
  background: rgba(199, 154, 61, .12);
}

/* Composite the selection tint over an opaque base so the sticky name column
   still occludes cells scrolled under it (a bare rgba would be translucent). */
.sst-compare__row.is-selected .sst-compare__name {
  background: linear-gradient(rgba(199, 154, 61, .16), rgba(199, 154, 61, .16)), var(--sst-bg-card);
}

.sst-compare__row.is-hidden,
.sst-compare__row.is-condensed-hidden {
  display: none;
}

.sst-compare__expand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 18px auto 0;
  padding: 10px 24px;
  border: 1px solid var(--sst-oasis);
  border-radius: 999px;
  background: transparent;
  color: var(--sst-oasis-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.sst-compare__expand:hover,
.sst-compare__expand:focus-visible {
  background: var(--sst-oasis);
  color: var(--sst-white);
}

.sst-compare__expand[hidden] {
  display: none;
}

.sst-compare-section__actions {
  display: flex;
  justify-content: center;
  margin-block-start: 18px;
}

/* Actions */
.sst-compare__actions {
  white-space: nowrap;
}

.sst-compare__actions > * {
  vertical-align: middle;
}

.sst-compare__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sst-whatsapp);
  color: var(--sst-white);
  margin-inline-end: 8px;
  transition: transform .15s ease;
}

.sst-compare__wa:hover {
  transform: translateY(-1px);
}

.sst-compare__wa .sst-icon {
  width: 20px;
  height: 20px;
}

.sst-compare__more {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--sst-oasis);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--sst-oasis);
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}

.sst-compare__more:hover {
  background: var(--sst-oasis);
  color: var(--sst-white);
}

/* Compare page head ----------------------------------------------------- */
.sst-compare-page__head {
  margin-block-end: 24px;
}

.sst-compare-page__title {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--sst-title);
  margin-block: 4px 0;
}

.sst-compare-page__intro {
  margin-block-start: 14px;
  max-width: 760px;
}

@media (max-width: 640px) {

  .sst-compare__count {
    margin-inline-start: 0;
  }

  .sst-compare__sort,
  .sst-compare__th--name,
  .sst-compare__th--actions {
    padding: 12px 14px;
  }

  .sst-compare__row td,
  .sst-compare__name {
    padding: 12px 14px;
  }

  .sst-compare__table {
    font-size: 14px;
  }

  .sst-compare__name,
  .sst-compare__th--name {
    min-width: 150px;
  }
}

/* --------------------------------------------------------------------------
 * 38. AUTHOR BOX (under a single project / developer)
 * ------------------------------------------------------------------------ */

.sst-authorbox {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-inline-start: 4px solid var(--sst-accent);
  border-radius: var(--sst-radius);
  padding: 24px 26px;
  margin-block: 40px 8px;
  box-shadow: var(--sst-shadow);
}

.sst-authorbox__avatar {
  flex: 0 0 auto;
  line-height: 0;
}

.sst-authorbox__avatar a {
  display: block;
}

.sst-author__img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sst-sage);
  background: var(--sst-bg-soft);
}

.sst-authorbox__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sst-authorbox__eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sst-accent-dark);
}

.sst-authorbox__name {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  color: var(--sst-title);
}

.sst-authorbox__name a {
  color: inherit;
  text-decoration: none;
}

.sst-authorbox__name a:hover,
.sst-authorbox__name a:focus-visible {
  color: var(--sst-oasis);
  text-decoration: underline;
}

.sst-authorbox__role {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--sst-oasis);
}

.sst-authorbox__bio {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--sst-text);
}

.sst-authorbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 16px;
}

.sst-authorbox__actions .sst-btn {
  font-size: 14px;
  padding: 9px 18px;
}

.sst-author__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.sst-author__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sst-bg-soft);
  border: 1px solid var(--sst-border);
  color: var(--sst-primary);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.sst-author__social a:hover,
.sst-author__social a:focus-visible {
  background: var(--sst-oasis);
  border-color: var(--sst-oasis);
  color: var(--sst-white);
}

.sst-author__social .sst-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .sst-authorbox {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
  }

  .sst-authorbox__body {
    width: 100%;
  }

  .sst-authorbox__actions,
  .sst-author__social {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
 * 39. AUTHOR PAGE (author archive)
 * ------------------------------------------------------------------------ */

.sst-authorhero__inner {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-block-start: 18px;
}

.sst-authorhero__avatar {
  flex: 0 0 auto;
  line-height: 0;
}

.sst-authorhero .sst-author__img {
  width: 148px;
  height: 148px;
  border-color: rgba(255, 255, 255, .28);
}

.sst-authorhero__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sst-authorhero__name {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--sst-white);
}

.sst-authorhero__role {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--sst-accent);
}

.sst-authorhero__lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .84);
}

.sst-authorstats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.sst-authorstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 104px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--sst-radius);
}

.sst-authorstat__num {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sst-accent);
}

.sst-authorstat__label {
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
}

.sst-authorhero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 22px;
}

.sst-authorhero .sst-author__social a {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: var(--sst-white);
}

.sst-authorhero .sst-author__social a:hover,
.sst-authorhero .sst-author__social a:focus-visible {
  background: var(--sst-accent);
  border-color: var(--sst-accent);
  color: var(--sst-primary);
}

.sst-authorbio {
  max-width: 860px;
  margin-inline: auto;
}

.sst-authorsub {
  margin-block-start: 48px;
}

.sst-authordevs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.sst-authordev {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 130px;
  padding: 20px;
  background: var(--sst-bg-card);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  text-align: center;
  text-decoration: none;
  color: var(--sst-title);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sst-authordev:hover,
.sst-authordev:focus-visible {
  transform: translateY(-3px);
  border-color: var(--sst-accent);
  box-shadow: var(--sst-shadow);
}

.sst-authordev__logo {
  max-width: 120px;
  height: auto;
}

.sst-authordev__name {
  font-size: 14px;
  font-weight: 700;
}

.sst-authorposts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-block-start: 1px solid var(--sst-border);
}

.sst-authorposts li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-block-end: 1px solid var(--sst-border);
}

.sst-authorposts a {
  font-weight: 700;
  color: var(--sst-title);
  text-decoration: none;
}

.sst-authorposts a:hover,
.sst-authorposts a:focus-visible {
  color: var(--sst-oasis);
  text-decoration: underline;
}

.sst-authorposts__date {
  font-size: 13px;
  color: var(--sst-text);
}

.sst-authorcta {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding: 40px 28px;
  background: var(--sst-bg-soft);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
}

.sst-authorcta__title {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--sst-title);
}

.sst-authorcta__text {
  margin: 12px auto 0;
  max-width: 56ch;
  line-height: 1.9;
  color: var(--sst-text);
}

.sst-authorcta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-block-start: 22px;
}

@media (max-width: 768px) {
  .sst-authorhero__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sst-authorhero .sst-author__img {
    width: 116px;
    height: 116px;
  }

  .sst-authorhero__lede {
    margin-inline: auto;
  }

  .sst-authorstats,
  .sst-authorhero__actions,
  .sst-authorhero .sst-author__social {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   40. Summary strip + project details table (single property)
   -------------------------------------------------------------------------- */

/* One unified horizontal panel: label over bold value, sage hairline dividers,
   gold line icons. Replaces the old 8-tile facts grid. */
.sst-summary {
  display: flex;
  align-items: stretch;
  background: var(--sst-bg-soft);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  box-shadow: 0 6px 24px rgba(var(--city-primary-rgb), .04);
  padding: 18px 8px;
}

.sst-summary__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-inline: 12px;
  border-inline-end: 1px solid var(--sst-sage);
}

.sst-summary__item:last-child {
  border-inline-end: 0;
}

.sst-summary__item .sst-icon {
  width: 26px;
  height: 26px;
  color: var(--sst-accent);
}

.sst-summary__label {
  font-size: 13px;
  color: var(--sst-text);
}

.sst-summary__value {
  font-size: 17px;
  font-weight: 700;
  color: var(--sst-title);
  overflow-wrap: anywhere;
}

/* Project details table — palm-ink header with a gold underline; the label
   column alternates dark oasis / warm limestone ("لون ولون"). */
.sst-details__scroll {
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  overflow-x: auto;
}

.sst-details__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.sst-details__table thead th {
  background: var(--sst-primary);
  color: var(--sst-white);
  text-align: start;
  font-size: 18px;
  padding: 16px 20px;
  border-block-end: 2px solid var(--sst-accent);
}

.sst-details__table tbody th {
  width: 32%;
  text-align: start;
  font-weight: 700;
  padding: 13px 20px;
  border-block-end: 1px solid var(--sst-border);
  vertical-align: top;
}

.sst-details__table tbody td {
  background: var(--sst-bg-card);
  color: var(--sst-text);
  padding: 13px 20px;
  border-block-end: 1px solid var(--sst-border);
  vertical-align: top;
}

.sst-details__table tbody tr:nth-child(odd) th {
  background: var(--sst-oasis);
  color: var(--sst-white);
}

.sst-details__table tbody tr:nth-child(even) th {
  background: var(--sst-bg-soft);
  color: var(--sst-title);
}

/* Printing usually drops background colours, which would leave the white label
   text on the dark rows invisible. Force ink-on-paper there. */
@media print {
  .sst-details__table thead th,
  .sst-details__table tbody tr:nth-child(odd) th {
    background: transparent;
    color: #000;
  }

  .sst-details__table th,
  .sst-details__table td {
    border: 1px solid #000;
  }
}

/* Same failure mode in forced-colors mode: the UA replaces the backgrounds but
   keeps the authored white text. Hand the whole cell back to the UA palette. */
@media (forced-colors: active) {
  .sst-details__table thead th,
  .sst-details__table tbody tr:nth-child(odd) th,
  .sst-details__table tbody tr:nth-child(even) th {
    forced-color-adjust: none;
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
  }
}

.sst-details__table tbody tr:last-child th,
.sst-details__table tbody tr:last-child td {
  border-block-end: 0;
}

.sst-details__table td a {
  color: var(--sst-accent-dark);
  font-weight: 600;
}

@media (max-width: 640px) {
  /* All five facts stay visible — a 3+2 grid rather than a swipeable rail,
     where the last two facts were off-screen. The 1px grid gap over a sage
     background draws the dividers, so the rule holds for any item count. */
  .sst-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--sst-sage);
    padding: 1px;
  }

  .sst-summary__item {
    background: var(--sst-bg-soft);
    border-inline-end: 0;
    padding: 12px 6px;
    gap: 4px;
  }

  /* Forced-colors mode flattens backgrounds, which erases dividers drawn by
     the grid gap. Draw real borders there instead. */
  @media (forced-colors: active) {
    .sst-summary {
      gap: 0;
    }

    .sst-summary__item {
      border: 1px solid CanvasText;
    }
  }

  /* A lone item on the final row spans the gap instead of leaving a stub. */
  .sst-summary__item:last-child:nth-child(3n + 2) {
    grid-column: span 2;
  }

  .sst-summary__item .sst-icon {
    width: 22px;
    height: 22px;
  }

  .sst-summary__label {
    font-size: 11.5px;
  }

  .sst-summary__value {
    font-size: 14px;
  }

  /* The details table fits the screen too: no scroller, fixed layout, wrap. */
  .sst-details__scroll {
    overflow-x: visible;
  }

  .sst-details__table {
    table-layout: fixed;
    font-size: 13px;
  }

  .sst-details__table tbody th {
    width: 36%;
  }

  .sst-details__table thead th,
  .sst-details__table tbody th,
  .sst-details__table tbody td {
    padding: 10px 11px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* --------------------------------------------------------------------------
   41. Pricecard extras, article TOC, inline CTA callouts (single property)
   -------------------------------------------------------------------------- */

.sst-pricecard__monthly {
  display: block;
  margin-block-start: 6px;
  font-size: 14px;
  color: var(--sst-text);
}

/* "Prices change often" — the disclaimer that is itself the CTA. */
.sst-pricecard__fresh {
  display: block;
  margin-block-start: 12px;
  padding: 10px 14px;
  background: rgba(199, 154, 61, .12);
  border: 1px solid rgba(199, 154, 61, .35);
  border-radius: var(--sst-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sst-accent-dark);
}

.sst-pricecard__fresh:hover,
.sst-pricecard__fresh:focus {
  background: rgba(199, 154, 61, .2);
  color: var(--sst-accent-dark);
}

/* "On this page" — collapsible without JS, two columns on wide screens. */
.sst-toc {
  background: var(--sst-bg-soft);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  padding: 16px 20px;
  margin-block-end: 24px;
}

.sst-toc summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--sst-title);
}

.sst-toc__list {
  margin: 12px 0 0;
  padding-inline-start: 1.2em;
  columns: 2;
  column-gap: 32px;
}

.sst-toc__list li {
  margin-block-end: 6px;
  break-inside: avoid;
}

.sst-toc__list a {
  color: var(--sst-text);
  text-decoration: none;
}

.sst-toc__list a:hover,
.sst-toc__list a:focus {
  color: var(--sst-oasis);
  text-decoration: underline;
}

/* Anchor targets clear the sticky header. */
.sst-prose h2[id^="sec-"] {
  scroll-margin-block-start: 96px;
}

/* Mid-article callout — an editorial card, not a banner. */
.sst-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--sst-bg-soft);
  border: 1px solid var(--sst-border);
  border-inline-start: 4px solid var(--sst-accent);
  border-radius: var(--sst-radius);
  padding: 18px 20px;
  margin-block: 28px;
}

.sst-inline-cta__lead {
  margin: 0;
  font-weight: 600;
  color: var(--sst-title);
}

.sst-inline-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sst-inline-cta .sst-btn {
  padding: 10px 18px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .sst-toc__list {
    columns: 1;
  }

  .sst-inline-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   42. Hero Latin alias + same-developer block (single property)
   -------------------------------------------------------------------------- */

.sst-single-hero__alias {
  margin-block-start: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .4px;
  color: rgba(244, 242, 236, .72);
}

.sst-related--dev {
  margin-block-start: 32px;
}

/* --------------------------------------------------------------------------
   43. Price-forecast lead card (single property)
   -------------------------------------------------------------------------- */

.sst-forecast {
  margin-block-start: 32px;
  background: var(--sst-bg-card);
  border: 1px solid rgba(199, 154, 61, .45);
  border-radius: var(--sst-radius);
  box-shadow: var(--sst-shadow);
  padding: 28px 24px;
  text-align: center;
}

.sst-forecast__chart {
  display: block;
  width: 96px;
  margin-inline: auto;
  color: var(--sst-oasis);
}

.sst-forecast__title {
  margin-block: 10px 6px;
  font-size: 22px;
  color: var(--sst-title);
}

.sst-forecast__lede {
  margin: 0 auto 16px;
  max-width: 46ch;
  font-size: 15px;
  color: var(--sst-text);
}

.sst-gate__form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.sst-gate__phone {
  flex: 1 1 220px;
  max-width: 260px;
  padding: 12px 16px;
  border: 1px solid var(--sst-border);
  border-radius: 999px;
  font-size: 15px;
  text-align: center;
  background: var(--sst-bg-soft);
}

.sst-gate__phone:focus {
  outline: 2px solid var(--sst-oasis);
  outline-offset: 1px;
}

.sst-gate__hp {
  position: absolute;
  inset-inline-start: -9999px;
}

.sst-forecast__hint {
  margin-block: 12px 0;
  font-size: 12.5px;
  color: var(--sst-text);
  opacity: .8;
}

.sst-forecast__notice {
  margin-block-end: 14px;
  padding: 10px 14px;
  border-radius: var(--sst-radius-sm);
  font-weight: 600;
}

.sst-forecast__notice--ok {
  background: rgba(46, 107, 79, .12);
  color: var(--sst-oasis-dark);
}

.sst-forecast__notice--err {
  background: rgba(178, 58, 58, .1);
  color: #b23a3a;
}

@media (max-width: 640px) {
  .sst-gate__form {
    flex-direction: column;
    align-items: stretch;
  }

  /* The row turns into a column here, so `flex: 1 1 220px` would apply its
     basis to the HEIGHT and render a 220px-tall phone box. Reset the flex. */
  .sst-gate__phone {
    flex: 0 0 auto;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   44. Forecast panel — chart, horizon switch, calculator (single property)

   The panel ships locked: blurred, inert and unreadable until the REST call
   confirms this visitor left a number. The blur is cosmetic only — the real
   gate is that the page HTML never contains the numbers in the first place.
   -------------------------------------------------------------------------- */

.sst-forecast__panel {
  margin-block-start: 20px;
  padding: 18px 16px 6px;
  background: var(--sst-bg-soft);
  border: 1px solid var(--sst-border);
  border-radius: var(--sst-radius);
  transition: filter .35s ease, opacity .35s ease;
}

.sst-forecast__panel.is-locked {
  filter: blur(6px);
  opacity: .55;
  pointer-events: none;
  user-select: none;
}

.sst-forecast__controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-block-end: 14px;
}

.sst-forecast__hbtn {
  padding: 7px 16px;
  border: 1px solid var(--sst-border);
  border-radius: 999px;
  background: var(--sst-bg-card);
  color: var(--sst-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sst-forecast__hbtn.is-active {
  background: var(--sst-oasis);
  border-color: var(--sst-oasis);
  color: var(--sst-white);
  font-weight: 600;
}

.sst-forecast__hbtn:focus-visible {
  outline: 2px solid var(--sst-oasis);
  outline-offset: 2px;
}

.sst-forecast__viz {
  margin: 0;
}

.sst-forecast__graph {
  display: block;
  width: 100%;
  height: 140px;
  color: var(--sst-oasis);
  overflow: visible;
}

.sst-forecast__dot {
  fill: var(--sst-accent-dark);
}

.sst-forecast__axis {
  display: flex;
  justify-content: space-between;
  margin-block-start: 6px;
  font-size: 11.5px;
  color: var(--sst-text);
}

.sst-forecast__axis .is-forecast {
  color: var(--sst-accent-dark);
  font-weight: 700;
}

.sst-forecast__readout {
  margin-block: 14px 4px;
  text-align: center;
  line-height: 1.7;
}

.sst-forecast__readout-label {
  display: block;
  font-size: 14px;
  color: var(--sst-text);
}

.sst-forecast__readout-value {
  display: block;
  font-size: 26px;
  color: var(--sst-title);
}

.sst-forecast__readout-rate {
  display: block;
  font-size: 12.5px;
  color: var(--sst-accent-dark);
  font-weight: 600;
}

.sst-forecast__calc {
  margin-block-start: 16px;
  padding-block-start: 14px;
  border-block-start: 1px dashed var(--sst-border);
}

.sst-forecast__calc-label {
  display: block;
  margin-block-end: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sst-title);
}

.sst-forecast__calc-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.sst-forecast__calc-input {
  flex: 1 1 200px;
  max-width: 240px;
  padding: 11px 14px;
  border: 1px solid var(--sst-border);
  border-radius: 999px;
  background: var(--sst-bg-card);
  font: inherit;
  font-size: 15px;
  text-align: center;
}

.sst-forecast__calc-input:focus {
  outline: 2px solid var(--sst-oasis);
  outline-offset: 1px;
}

.sst-btn--ghost {
  background: transparent;
  border: 1px solid var(--sst-oasis);
  color: var(--sst-oasis-dark);
}

.sst-btn--ghost:hover,
.sst-btn--ghost:focus-visible {
  background: var(--sst-oasis);
  color: var(--sst-white);
}

.sst-forecast__calc-out:not(:empty) {
  display: block;
  margin-block-start: 12px;
  padding: 10px 14px;
  border-radius: var(--sst-radius-sm);
  background: rgba(46, 107, 79, .1);
  color: var(--sst-oasis-dark);
  font-weight: 700;
  font-size: 15.5px;
}

.sst-forecast__disclaimer {
  margin-block: 14px 8px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--sst-text);
  opacity: .85;
}

.sst-forecast__gate[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .sst-forecast__calc-row {
    flex-direction: column;
    align-items: stretch;
  }

  /* Same trap as .sst-gate__phone above: in a column the flex-basis becomes
     the height. Without this the input renders as a 200px-tall box. */
  .sst-forecast__calc-input {
    flex: 0 0 auto;
    max-width: none;
  }

  .sst-forecast__axis {
    font-size: 10.5px;
  }
}

/* --------------------------------------------------------------------------
   45. Brochure gate (single property)
   -------------------------------------------------------------------------- */

.sst-brochure {
  margin-block-start: 32px;
  padding: 28px 24px;
  background: var(--sst-bg-card);
  border: 1px solid rgba(199, 154, 61, .45);
  border-radius: var(--sst-radius);
  box-shadow: var(--sst-shadow);
  text-align: center;
}

.sst-brochure__title {
  margin-block: 0 6px;
  font-size: 22px;
  color: var(--sst-title);
}

.sst-brochure__lede {
  margin: 0 auto 16px;
  max-width: 46ch;
  font-size: 15px;
  color: var(--sst-text);
}

.sst-brochure__gate[hidden],
.sst-brochure__reveal[hidden] {
  display: none;
}

.sst-brochure__open {
  display: inline-flex;
}

.sst-brochure__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-block-start: 16px;
}

.sst-brochure__grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--sst-radius-sm);
}

/* --------------------------------------------------------------------------
   46. Project shortcut rail

   Pinned to the RIGHT edge in both languages. Deliberately physical `right`,
   NOT `inset-inline-end`: on an RTL page the logical end is the LEFT side, and
   the first build put the whole rail there. It also stays fixed on every
   viewport — the earlier "inline row under the hero" variant was invisible to
   anyone who had already scrolled past it, which is most of the traffic.
   Sits above .sst-sticky-cta (z-index 980, ~66px tall + safe area).
   -------------------------------------------------------------------------- */

.sst-rail {
  position: fixed;
  right: 0;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 975;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  max-width: none;
  /* The column is only as wide as its widest button, but let clicks through
     any slack so the rail never eats taps meant for the article. */
  pointer-events: none;
}

.sst-rail__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  /* Flush to the right edge, so only the inner (left) corners are rounded.
     border-radius is physical and is NOT mirrored in RTL — correct here. */
  border-radius: 6px 0 0 6px;
  background: var(--sst-accent-dark);
  color: var(--sst-white);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(var(--city-primary-rgb), .22);
  transition: background .2s ease;
}

.sst-rail__btn:hover,
.sst-rail__btn:focus-visible {
  background: var(--sst-primary);
  color: var(--sst-white);
}

.sst-rail__btn:focus-visible {
  outline: 2px solid var(--sst-white);
  outline-offset: -4px;
}

.sst-rail__icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

@media (max-width: 400px) {
  .sst-rail__btn {
    padding: 8px 11px;
    font-size: 12.5px;
  }

  .sst-rail__icon svg {
    width: 15px;
    height: 15px;
  }
}

/* Above this width .sst-sticky-cta is display:none, so the rail can drop to
   the bottom of the viewport. */
@media (min-width: 1025px) {
  .sst-rail {
    bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sst-forecast__panel {
    transition: none;
  }
}

@media print {
  .sst-rail {
    display: none;
  }

  .sst-forecast__panel.is-locked {
    filter: none;
    opacity: 1;
  }
}
