﻿/* Tourism section — standalone identity, deliberately NOT reusing the
   classifieds site's header/footer/colors. Prototype only: hardcoded
   sample data, no backend wiring yet. */
:root {
  --t-primary: #0d9488;
  --t-primary-dark: #0b7a70;
  --t-primary-light: #e3f6f3;
  --t-accent: #f0741f;
  --t-accent-dark: #d6620f;
  --t-navy: #0f2a3d;
  --t-navy-2: #123448;
  --t-text: #1b2733;
  --t-muted: #6b7686;
  --t-bg: #f5f8f8;
  --t-surface: #ffffff;
  --t-border: #e4ecec;
  --t-radius-sm: 8px;
  --t-radius-md: 14px;
  --t-radius-lg: 22px;
  --t-radius-pill: 999px;
}

/* No visible theme toggle exists on this prototype yet, so the
   colors must not silently follow the OS/browser dark-mode setting
   (that's what caused two browsers to render different background
   and border colors for the same page). Colors only change via an
   explicit data-theme="dark" attribute (set by the classifieds
   site's toggle script, if present) — never automatically. */
:root[data-theme="dark"] {
  --t-primary: #2dd4bf;
  --t-primary-dark: #5eead4;
  --t-primary-light: #0f2e2b;
  --t-accent: #fb923c;
  --t-accent-dark: #fdba74;
  --t-navy: #0a1620;
  --t-navy-2: #0e1e2c;
  --t-text: #e8ebf3;
  --t-muted: #9aa3b8;
  --t-bg: #0e1219;
  --t-surface: #1a1f2b;
  --t-border: #2b3244;
}

:root[data-theme="light"] {
  --t-primary: #0d9488;
  --t-primary-dark: #0b7a70;
  --t-primary-light: #e3f6f3;
  --t-accent: #f0741f;
  --t-accent-dark: #d6620f;
  --t-navy: #0f2a3d;
  --t-navy-2: #123448;
  --t-text: #1b2733;
  --t-muted: #6b7686;
  --t-bg: #f5f8f8;
  --t-surface: #ffffff;
  --t-border: #e4ecec;
}

@font-face {
  font-family: 'ElgharibAlwiSahafa';
  src: url('fonts/Elgharib-AlwiSahafa.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  background: #fff;
  color: var(--t-text);
  direction: rtl;
}

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

.t-container {
  width: 100%;
  margin: 0 auto;
}


/* ---- header ----
   min-height in vh (≈ the old 60px on a common ~780px-tall viewport)
   instead of a hard height, so wrapped content on narrow/short
   screens grows the bar instead of getting clipped by it. */
.t-header {
  min-height: 7.7vh;
  height: auto;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(15, 42, 61, .08);
}

.t-header-inner {
  width: 93%;
  margin: 0 auto;
  min-height: 60px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.t-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-brand-main {
  font-family: 'ElgharibAlwiSahafa', 'Cairo', 'Tajawal', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--t-navy);
  margin: 0;
}

.t-logo .pin {
  width: 26px;
  height: 26px;
  background: none;
  color: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-logo .pin svg {
  width: 24px;
  height: 24px;
}

/* Missing before — with no rule of its own, .t-logo-text had no
   text-align, so "سوريا" and "اكتشف كل الجمال" each fell back to
   whatever they inherited (and the leftover padding-right below
   nudged "سوريا" further off), landing on two different, both
   off-center positions instead of both sitting centered. */
.t-logo-text {
  text-align: center;
}

.t-logo-text b {
  display: block;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #0ea5e9;
}

.t-logo-text span {
  display: block;
  font-size: 10px;
  color: #14b8a6;
  font-weight: 600;
}

.t-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 63%;
  gap: 5%;
  flex-wrap: wrap;
}

.t-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.t-nav a.active {
  color: var(--t-primary);
  border-color: var(--t-primary);
  font-weight: 800;
}

.t-nav a:hover {
  color: var(--t-primary);
}

.t-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-lang {
  /* Hidden for now (feature not finished — content isn't translated
     yet), kept in the DOM/CSS so it's a one-line flip to bring back. */
  display: none;
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--t-text);
  background: none;
  cursor: pointer;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.t-lang:hover {
  border-color: var(--t-primary);
  color: var(--t-primary);
}

.t-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0d9488;
  border: 1px solid #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.t-avatar svg {
  width: 18px;
  height: 18px;
}

/* ---- hero ---- */
.t-hero {
  position: relative;
  overflow: hidden;
  height: 600px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 42, 61, .02) 0%, rgba(15, 42, 61, .28) 100%),
    url('images/header/hero-umayyad.jpg') center 42% / cover no-repeat,
    linear-gradient(180deg, #f3b969 0%, #e8935a 30%, #3a7d92 62%, #164a5c 100%);
}

/* Content block is pinned 300px down from the top of the (now 600px) hero. */
.t-hero-inner {
  position: absolute;
  inset-block-start: 100px;
  height: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.t-hero h1 {
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.t-hero p {
  font-size: 15px;
  margin: 0 0 26px;
  opacity: .95;
}

.t-search {
  width: 60%;
  height: 25%;
  max-width: 92vw;
  margin: 0 auto;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--t-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 0 10px;
  box-shadow: 0 10px 30px rgba(15, 42, 61, .25), inset 0 2px 6px rgba(15, 42, 61, .12);
}

.t-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--t-text);
  height: 100%;
}

.t-search-btn {
  background: var(--t-primary);
  color: #fff;
  border: none;
  border-radius: 20%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.t-search-btn svg {
  width: 22px;
  height: 22px;
}

/* ---- category cards ---- */
.t-cats-wrap {
  width: 85%;
  margin: -70px auto 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 65px 65px 0 0;
  position: relative;
  z-index: 3;
  padding: 24px 0 4px;
  box-shadow: 0 -10px 24px rgba(15, 42, 61, .06);
}

/* ---- unified tab bar (same on every page — homepage included) ----
   3 fixed size tiers (set via plain px, not vh/vw — see the two
   media queries below): >820px = 120px tall / 22px radius,
   400-820px = 90px / 16px, <400px = 50px / 8px. Icon size is a fixed
   px per tier too (not vw or %), computed to fit inside that tier's
   own height budget (padding + gap + label) with margin to spare, so
   it can never get clipped by .t-cats' overflow:hidden. No vertical
   padding of its own — the tab fill (hover/.active) must reach flush
   to the top/bottom edge, so breathing room lives on .t-cat instead. */
.t-cats {
  width: 80%;
  height: 120px;
  margin: 15px auto 10px;
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  gap: 0;
  flex-wrap: nowrap;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0px 5px 20px 1px rgb(15 42 90 / 57%);
  overflow: hidden;
}

/* No box/border of its own anymore — its 5 children lay out as if
   they were direct children of .t-cats (the single rectangle below),
   so all 6 tabs (this group's 5 + the standalone "all"/"more" tab)
   sit in one even flat row. */
.t-cats-group {
  display: contents;
}

/* flex:1 so all 6 tabs always share the rectangle's own width evenly
   and shrink together with it. */
.t-cat {
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--t-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 4px;
  transition: background .2s ease, color .2s ease;
}

.t-cat.all {
  color: var(--t-muted);
}

.t-cat .ic {
  width: 70px;
  height: 70px;
  color: var(--t-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-cat .ic svg {
  width: 55%;
  height: 55%;
}

/* each type keeps its own icon color, no circle background behind it */
.t-cat.shop .ic {
  color: #0d9488;
}

.t-cat.landmark .ic {
  color: #2563eb;
}

.t-cat.garden .ic {
  color: #16a34a;
}

.t-cat.cafe .ic {
  color: #c2740c;
}

.t-cat.food .ic {
  color: #dc4a30;
}

.t-cat.all .ic {
  color: var(--t-navy);
}

/* Hovered or selected (.active, added per-page to mark the current
   category) tab fills solid teal — the whole tab, not just the icon
   or text — same look the old standalone "all" button used to have.
   Placed after the per-category icon colors so it wins the cascade
   at equal specificity regardless of which category class is set. */
.t-cat:hover,
.t-cat.active {
  background: var(--t-primary);
  color: #fff;
}

.t-cat:hover .ic,
.t-cat.active .ic {
  color: #fff;
}

/* ---- homepage-only spacing ----
   Everything about the tab bar's own SHAPE (height/radius/icon size)
   is unified across every page now via the shared rules above — only
   the outer spacing below it (25px vs the category pages' 10px, to
   clear the "أماكن مميزة" section better) stays homepage-specific. */
.home-tabs .t-cats {
  margin: 0 auto 25px;
}

/* ---- sections ---- */
.t-section {
  padding: 8px 20px 36px;
}

.t-section-head {
  width: 95%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t-section-head h2 {
  font-size: 17px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-section-head a {
  font-size: 12.5px;
  color: var(--t-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

.t-section-head a .chev {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.t-grid {
  width: 95%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width:1024px) {
  .t-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  /* Exactly one clean row of 3 — hide anything past the 3rd card
     instead of letting it wrap down into a lonely partial row. */
  .t-grid > .t-card:nth-child(n+4) {
    display: none;
  }
}

.t-card {
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-md);
  overflow: hidden;
  display: block;
}

.t-card-media {
  aspect-ratio: 16/10;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .85);
  font-size: clamp(10px, 2.2vw, 12.5px);
  font-weight: 700;
  text-align: center;
  padding: 8px;
}

.t-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t-card-fav {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.t-card-fav svg {
  width: 18px;
  height: 18px;
}

/* Favorite toggle "on" state — shared by every heart button on the
   site (.fav-btn is the common class; .t-card-fav/.c-card-actions
   button are just each context's own positioning/sizing on top of
   it). Filled red heart once a place is actually favorited. */
.fav-btn.on {
  color: #e11d48;
}

.fav-btn.on svg {
  fill: #e11d48;
  stroke: #e11d48;
}

.t-card-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  background: var(--t-navy);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--t-radius-pill);
}

.t-card-body {
  padding: clamp(8px, 2.5vw, 14px) clamp(8px, 3vw, 16px);
}

.t-card-body h3 {
  font-size: clamp(11.5px, 2.4vw, 14px);
  margin: 0 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t-card-city {
  font-size: clamp(10px, 2vw, 11.5px);
  color: var(--t-muted);
  margin-bottom: 7px;
}

.t-card-rec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(10px, 2vw, 11.5px);
  color: var(--t-muted);
}

.t-card-rec svg {
  width: 13px;
  height: 13px;
  color: var(--t-primary);
  flex-shrink: 0;
}

/* ---- CTA banner ----
   Original 3-item row: button, centered text block, illustration.
   Base rules below are the desktop/tablet design; the phone-only
   media query further down restyles this into a compact stack. */
.t-cta {
  width: 95%;
  position: relative;
  overflow: hidden;
  height: 125px;
  box-sizing: border-box;
  margin: 10px auto 20px;
  border-radius: 24px;
  padding-right: 2%;
  background: linear-gradient(to top, #FFFFFF 0%,
      #F8FCFF 60%,
      #a0d6ff 100%);
  box-shadow: 0 6px 24px rgba(15, 42, 61, .10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

/* The saved file has no alpha channel (flattened to a white background
   during save/paste). mix-blend-mode:multiply fakes transparency: white
   pixels multiply out to nothing over the banner's light background,
   while the illustration's colored pixels stay visible. */
.t-cta-illustration {
  align-self: flex-end;
  height: 154px;
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
  mix-blend-mode: multiply;
  margin-bottom: -26px;
  margin-left: 10px;
}

:root[data-theme="dark"] .t-cta {
  background: linear-gradient(180deg, #234a5c 0%, #1c232e 100%);
}

:root[data-theme="light"] .t-cta {
  background: linear-gradient(to top, #FFFFFF 0%,
      #F8FCFF 60%,
      #a0d6ff 100%);
}

.t-cta-text {
  text-align: center;
}

.t-cta-text h3 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--t-primary-dark);
}

.t-cta-text p {
  font-size: 13px;
  color: var(--t-muted);
  margin: 0;
}

.t-cta-btn {
  background: var(--t-accent);
  color: #fff;
  border: none;
  border-radius: var(--t-radius-pill);
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.t-cta-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.t-cta-btn:hover {
  background: var(--t-accent-dark);
}

/* ---- footer ---- */
.t-footer {
  color: var(--t-text);
}

.t-footer-top {
  min-height: 7.7vh;
  height: auto;
  box-sizing: border-box;
  padding: 14px 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  box-shadow: 0 -4px 12px rgba(15, 42, 61, .08);
  position: relative;
  z-index: 10;
}

/* Mirrors .t-cats-wrap's width:90% (no other styling) so this outer
   wrapper's content box lines up exactly with the card grid's, instead
   of hand-computing the combined percentage (which also has to account
   for .t-section's horizontal padding). */
.t-cats-wrap-width {
  width: 100%;
  margin: 0 auto;
}

.t-footer-top-inner {
  width: 95%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.t-footer-social {
  display: flex;
  gap: 12px;
}

.t-footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--t-bg);
  border: 1px solid var(--t-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-text);
}

.t-footer-social a svg {
  width: 14px;
  height: 14px;
}

.t-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
}

.t-footer-links a {
  color: var(--t-muted);
  white-space: nowrap;
}

.t-footer-links a:hover {
  color: var(--t-text);
}

.t-footer-copy {
  font-size: 11.5px;
  color: #0ea5e9;
  text-align: center;
}

.t-footer-back {
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  padding: 12px 20px;
  font-size: 12.5px;
  background: var(--t-navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.t-footer-back a {
  font-weight: 800;
  color: #fff;
}

.t-footer-back a:hover {
  text-decoration: underline;
}

/* place-thumb backgrounds reused on detail/add pages */
.place-thumb-teal {
  background: linear-gradient(135deg, var(--t-primary), var(--t-navy));
}

/* ---- mobile fixes ---- */
@media (max-width:820px) {
  /* Portrait phone crops the wide panorama down to a narrow vertical
     sliver; shift the focal point left so the dome + minarets (the
     recognizable part of the photo) stay in frame instead of the
     plain sky/plaza that "center" lands on at this aspect ratio. */
  .t-hero {
    height: 37vh;
    background-position: 30% 42%;
  }

  /* The 100px fixed offset was sized for the old 600px-tall hero;
     at 37vh it eats too much of the box, so switch to a percentage
     that scales down with it. */
  .t-hero-inner {
    inset-block-start: 14%;
  }

  /* Nav bar keeps everything on one row: logo+brand 30%, menu 60%,
     login icon 10% of the header width, sized in vw so text/icons
     scale down together as the phone gets narrower. */
  .t-header-inner {
    width: 96%;
    flex-wrap: nowrap;
    gap: 0;
  }

  .t-logo {
    width: 28%;
    gap: 1%;
    overflow: hidden;
  }

  .t-brand-main {
    font-size: 4.2vw;
  }

  .t-logo .pin {
    width: 5.5vw;
    height: 5.5vw;
  }

  .t-logo .pin svg {
    width: 5vw;
    height: 5vw;
  }

  .t-logo-text b {
    font-size: 3.4vw;
  }

  .t-logo-text span {
    font-size: 2.1vw;
  }

  .t-nav {
    width: 58%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1.5%;
    padding: 0 1.5%;
  }

  .t-nav a {
    font-size: 2.3vw;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .t-header-right {
    width: 10%;
    justify-content: center;
    gap: 0;
  }

  .t-avatar {
    width: 8vw;
    height: 8vw;
  }

  .t-avatar svg {
    width: 4vw;
    height: 4vw;
  }

  /* Links + social icons now share a single row (copyright moved out
     to .t-footer-back). 5 full-text links + 4 icons genuinely don't
     fit on one row at readable sizes across 401-820px — shrinking
     the font further made it fit but illegible. Let the row scroll
     horizontally instead of either breaking words mid-link or
     shrinking text into the unreadable range. */
  .t-footer-top-inner {
    flex-wrap: nowrap;
    gap: 3%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .t-footer-top-inner::-webkit-scrollbar {
    display: none;
  }

  .t-footer-links {
    gap: 3%;
    font-size: 2vw;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .t-footer-social {
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 2%;
  }

  .t-footer-social a {
    width: 4vw;
    height: 4vw;
  }

  .t-footer-social a svg {
    width: 45%;
    height: 45%;
  }

  .t-footer-back {
    font-size: 10px;
  }

  .t-hero h1 {
    font-size: 5vw;
    margin: 0 0 5px;
  }

  .t-hero p {
    font-size: 3vw;
    margin: 0 0 12px;
  }

  /* The 60x60px button was sized for the ~75px-tall desktop search
     bar; at the shrunk mobile bar height (~25% of a much smaller
     hero) it stuck out top and bottom. Scale it (and its icon) in vw
     so it stays proportionate to the bar instead of overflowing it. */
  .t-search-btn {
    height: 85%;
    width: auto;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .t-search-btn svg {
    width: 4vw;
    height: 4vw;
  }

  .t-search input {
    font-size: 3.2vw;
  }

  .t-cats-wrap {
    width: 92%;
    margin: -55px auto 0;
    border-radius: 40px 40px 0 0;
  }

  /* Unified tab bar tier 2 (400-820px): 90px tall / 16px radius, same
     on every page (no more .home-tabs-specific size overrides). Icon
     fixed at 40px — checked against BOTH dimensions: vertically it
     fits well inside 90px (padding+gap+label budget), and
     horizontally it still fits 6-across even at the tier's narrowest
     point (~401px wide, where each tab is only ~49px). */
  .t-cats {
    height: 90px;
    border-radius: 16px;
  }

  .t-cat {
    padding: 10px 2px;
    gap: 4px;
    font-size: 11px;
  }

  .t-cat .ic {
    width: 40px;
    height: 40px;
  }


  .t-section-head h2 {
    font-size: 4.2vw;
  }

  .t-section-head a {
    font-size: 3vw;
  }

  /* Tied to the link's own font-size (em) instead of a fixed 17px,
     so the chevron scales down together with the text next to it. */
  .t-section-head a .chev {
    width: 1.2em;
    height: 1.2em;
  }

  /* 180px card. Body no longer needs a fixed % — it only holds the
     place name + city now (the recommendation line is hidden below),
     so it can size to that content and the image just takes
     whatever's left via flex:1 instead of a solved ratio. */
  .t-card {
    height: 180px;
    display: flex;
    flex-direction: column;
  }

  .t-card-media {
    flex: 1;
  }

  /* Fixed 18px on a card that now ranges from ~90-180px wide across
     the grid — scale with the viewport instead. */
  .t-card-fav svg {
    width: 4vw;
    height: 4vw;
  }

  .t-card-body {
    padding: 6px 8px;
  }

  .t-card-body h3 {
    font-size: 2.8vw;
  }

  .t-card-city {
    font-size: 2.3vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Recommendation count isn't needed on mobile — just name + city. */
  .t-card-rec {
    display: none;
  }

  .t-card-badge {
    font-size: 9px;
  }

  /* Wide banner instead of the desktop's near-square 3-item row.
     .t-cta is already position:relative (base rule) with a fixed
     box (90px/95%), so it works as the containing block: the text
     group and the image are each position:absolute against IT
     instead of being grid/flex tracks that push against each other
     — every time one got bigger the other got squeezed sideways.
     Absolute + margin lets each be placed and sized independently. */
  .t-cta {
    width: 95%;
    height: 90px;
    padding: 0;
    border-radius: 18px;
  }

  .t-cta-text {
    position: absolute;
    top: 13px;
    right: 20px;
    text-align: start;
    margin: 0;
  }

  .t-cta-text h3 {
    font-size: 12px;
    margin: 0;
  }

  .t-cta-text p {
    display: none;
  }

  .t-cta-btn {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: clamp(9px, 2.5vw, 12.5px);
    padding: 8px 12px;
  }

  /* Was a 20px fixed size set inline in the HTML. Tied to em now so
     it scales with the button's own clamp()'d font-size. */
  .t-cta-btn-icon {
    width: 1.4em;
    height: 1.4em;
  }

  .t-cta-illustration {
    position: absolute;
    bottom: -17px;
    left: 12px;
    height: 120%;
    width: 40%;
    margin: 0;
  }
}

/* ---- narrow-phone category tabs ----
   At <=430px the 5 tabs in .t-cats-group + the "all" button no
   longer fit at their 820px-tier size — shrink the whole tab bar to
   its own tier instead of scrolling, so all 6 stay visible. Unified
   with every other page: 50px tall / 8px radius. Icon fixed at 22px
   — checked against both dimensions at the narrowest supported width
   (320px, ~39px per tab) so it never gets clipped or squeezed. */
@media (max-width:430px) {
    .t-cats-wrap {
    width: 92%;
    margin: -55px auto 0;
    border-radius: 40px 40px 0 0;
  }

  .t-cats {
    height: 50px;
    border-radius: 8px;
  }

  .t-cta {
    border-radius: 14px;
  }

  .t-cat {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    font-size: 8px;
    gap: 2px;
    padding: 4px 1px;
  }

  .t-cat .ic {
    width: 22px;
    height: 22px;
  }

  .t-cat .ic svg {
    width: 55%;
    height: 55%;
  }

  /* At this width the 50% image (sized for the 820px tier) reaches
     far enough right to overlap the text/button anchored to the
     right edge. Shrink it so there's clear space between them. */
  .t-cta-illustration {
    width: 45%;
    height: 120%;
  }

  /* Links + social icons no longer fit on one row at this width with
     the 820px-tier sizing (25px short at 320px) — tighten gaps/sizes
     further so the row still fits without wrapping. */
  .t-footer-links {
    gap: 1.5vw;
    font-size: 2vw;
    flex-wrap: nowrap;
  }

  .t-footer-social {
    gap: 2%;
  }

  .t-footer-social a {
    width: 4.5vw;
    height: 4.5vw;
  }
}

/* ---- very-narrow phones ----
   The 45% .t-cta image (fine from 360px up) overlaps the text/button
   between ~320-350px (iPhone SE and some older Android widths). Drop
   it back down to the 35% that's already confirmed clear at 320px. */
@media (max-width:360px) {
  .t-cta-illustration {
    width: 35%;
  }
}
.saaha-portal{ margin:26px auto; padding:0 14px; }
/* ============ شريط أقسام ساحة (مكوّن موحّد) — لا تعدّل يدوياً ============ */
.saaha-portal{
  --sp-panel:#ffffff; --sp-bd:#e7ebf3; --sp-cardbg:#e8ecf2; --sp-line:#dbe1ea; --sp-chev:#9aa7c0;
  --sp-muted:#64748b; --sp-discA:#22345c; --sp-discB:#101f3d; --sp-ring:#8ba3d6;
  --sp-ads:#2540d0; --sp-ads2:#4f6bf0; --sp-tour:#0d9488; --sp-tour2:#2bb6d6; --sp-sport:#16803c; --sp-sport2:#3fbe6a;
  direction:rtl; max-width:1000px; margin:0 auto;
}
.saaha-portal .orbit{ container-type:inline-size; background:var(--sp-panel); border:1px solid var(--sp-bd);
  border-radius:16px; padding:clamp(12px,3.2cqi,28px); box-shadow:0 6px 20px rgba(20,33,64,.06); }
.saaha-portal .orbit-row{ display:flex; align-items:stretch; justify-content:center; gap:0; }
.saaha-portal .oside{ --c:var(--sp-ads); --c2:var(--sp-ads2); flex:1 1 0; min-width:0; display:flex; align-items:center;
  gap:clamp(7px,2cqi,12px); text-decoration:none; background:var(--sp-cardbg);
  border:1px solid color-mix(in srgb,var(--c) 22%, var(--sp-line)); border-radius:clamp(11px,2.5cqi,15px);
  padding:clamp(9px,2.4cqi,15px); transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.saaha-portal .oside.k-ads{ --c:var(--sp-ads); --c2:var(--sp-ads2); }
.saaha-portal .oside.k-tour{ --c:var(--sp-tour); --c2:var(--sp-tour2); }
.saaha-portal .oside.k-sport{ --c:var(--sp-sport); --c2:var(--sp-sport2); }
.saaha-portal .oside:hover{ transform:translateY(-2px); background:var(--c); border-color:var(--c);
  box-shadow:0 9px 22px color-mix(in srgb,var(--c) 38%, transparent); }
.saaha-portal .oside:hover .onm,.saaha-portal .oside:hover .ochev{ color:#fff; }
.saaha-portal .oside:hover .ods{ color:rgba(255,255,255,.9); }
.saaha-portal .oside:hover .oic{ background:#fff; }
.saaha-portal .oside:hover .oic svg{ color:var(--c); }
.saaha-portal .oside:focus-visible{ outline:2px solid var(--c); outline-offset:2px; }
.saaha-portal .oic{ flex:0 0 auto; width:clamp(30px,9.5cqi,46px); height:clamp(30px,9.5cqi,46px); border-radius:50%;
  display:grid; place-items:center; background:linear-gradient(140deg,var(--c),var(--c2));
  box-shadow:0 4px 11px color-mix(in srgb,var(--c) 42%, transparent); }
.saaha-portal .oic svg{ width:56%; height:56%; color:#fff; }
.saaha-portal .otxt{ flex:1 1 auto; min-width:0; text-align:center; }
.saaha-portal .onm{ font-size:clamp(.74rem,3.3cqi,1.12rem); font-weight:800; color:var(--c); line-height:1.2; }
.saaha-portal .ods{ font-size:clamp(.62rem,2.5cqi,.83rem); color:var(--sp-muted); margin-top:3px; line-height:1.35; }
.saaha-portal .ochev{ flex:0 0 auto; color:var(--sp-chev); display:grid; place-items:center; }
.saaha-portal .ochev svg{ width:clamp(15px,4cqi,22px); height:clamp(15px,4cqi,22px); }
.saaha-portal .oside:hover .ochev{ color:#fff; }
@container (max-width:400px){ .saaha-portal .ochev{ display:none; } }
.saaha-portal .oconn{ flex:0 0 clamp(7px,2.6cqi,40px); height:2px; position:relative; align-self:center; }
.saaha-portal .oconn::before{ content:""; position:absolute; inset:0; border-top:2px dashed var(--sp-line); }
.saaha-portal .oconn .cdot{ position:absolute; top:50%; left:50%; width:clamp(7px,2cqi,9px); height:clamp(7px,2cqi,9px);
  border-radius:50%; transform:translate(-50%,-50%); box-shadow:0 0 0 3px var(--sp-panel); }
.saaha-portal .ocenter{ flex:0 0 auto; align-self:center; position:relative; display:grid; place-items:center;
  width:clamp(54px,16cqi,110px); height:clamp(54px,16cqi,110px); }
.saaha-portal .odisc{ width:clamp(44px,13cqi,88px); height:clamp(44px,13cqi,88px); border-radius:50%;
  background:radial-gradient(circle at 36% 30%, var(--sp-discA), var(--sp-discB));
  display:grid; place-items:center; color:#fff; font-weight:800; font-size:clamp(1.05rem,5.2cqi,1.9rem);
  font-family:'AlwiSahafa','ElgharibAlwiSahafa','Cairo',sans-serif; padding-bottom:.08em;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 20px rgba(10,18,40,.3); z-index:2; }
.saaha-portal .ocenter::before{ content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:clamp(48px,14.5cqi,98px); height:clamp(48px,14.5cqi,98px); border-radius:50%; border:2px dashed var(--sp-ring); opacity:.55; }
.saaha-portal .ocenter::after{ content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:clamp(56px,16.5cqi,112px); height:clamp(56px,16.5cqi,112px); border-radius:50%; border:2px dotted var(--sp-ring); opacity:.28; }
/* ============ نهاية شريط أقسام ساحة ============ */
/* ===== حقوق ساحة الموحّدة (خط بعرض الفوتر + سطر الحقوق) ===== */
.saaha-copy-wrap{ border-top:1px solid rgba(150,160,180,.28); margin:5px 0 0; padding-bottom:10px; }
.saaha-copy{ max-width:1100px; margin:0 auto; padding:13px 16px 2px; direction:rtl;
  display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:center; gap:4px 18px;
  font-size:clamp(10px,2.6vw,13px); line-height:1.7; }
.saaha-copy-name{ font-weight:700; }
.saaha-copy-slogan{ opacity:.82; }
@media (max-width:520px){ .saaha-copy{ justify-content:flex-start; } }

/* saaha-copy alignment override — يحاذي بداية محتوى الفوتر */
.saaha-copy{ max-width:none; width:90%; padding:13px 0 2px; }

/* حصر z-index الداخلي لخرائط Leaflet داخل حاويتها حتى ما تطلع فوق الهيدر الثابت (z-index:20) */
.leaflet-container { position: relative; z-index: 0; }
