/* ============================================================
   Egypt Property Expo Online — BackYard Real Estate
   Brand palette:
   --sage #7A8B6F  --amber #FAA61A  --ivory #FFFFF0
   --ink  #231F20  --teal  #1F5F5B
   Brand font: Poppins CF (drop the font files in /fonts — see below).
   Falls back to Google "Poppins" until the brand files are present.
   ============================================================ */

/* Place your licensed Poppins CF files in a "fonts" folder next to this CSS.
   Expected names (rename yours to match, or edit the urls here): */
@font-face { font-family: "Poppins CF"; src: url("fonts/PoppinsCF-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins CF"; src: url("fonts/PoppinsCF-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins CF"; src: url("fonts/PoppinsCF-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins CF"; src: url("fonts/PoppinsCF-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins CF"; src: url("fonts/PoppinsCF-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --sage:  #7A8B6F;
  --amber: #FAA61A;
  --ivory: #FFFFF0;
  --ink:   #231F20;
  --teal:  #1F5F5B;

  --busy:  #d64545;   /* red  = agent busy   */
  --free:  #4c9a5b;   /* green = agent free  */

  --card:  #ffffff;
  --line:  rgba(35, 31, 32, .10);
  --shadow: 0 1px 2px rgba(35,31,32,.05), 0 10px 30px -12px rgba(35,31,32,.18);

  --radius: 18px;
  --maxw: 1400px;

  --font-display: "Poppins CF", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins CF", "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }

/* Brand rule: never italic, never underline */
* { font-style: normal !important; }
a { text-decoration: none; color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(122,139,111,.12), transparent 60%),
    radial-gradient(900px 400px at -5% 10%, rgba(31,95,91,.08), transparent 55%),
    var(--ivory);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============ BANNER ============ */
.banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--teal) 0%, #184b48 55%, var(--ink) 100%);
  color: var(--ivory);
  border-bottom: 4px solid var(--amber);
}
.banner__pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,240,.18) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .5;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.banner__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* faint BackYard watermark (developer banner) — the real logo, blended */
.banner__watermark {
  position: absolute; z-index: 0; pointer-events: none;
  right: -20px; top: 50%; transform: translateY(-50%);
  height: 200%; width: auto;
  opacity: .55; mix-blend-mode: multiply;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo {
  height: 58px; width: auto; flex: none; display: block;
  border-radius: 14px;
}
.brand__logo--svg {
  width: 66px; height: 66px;
  background: var(--ivory);
  padding: 6px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.4);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.5rem; letter-spacing: .5px; }
.brand__tag  { font-size: .72rem; letter-spacing: 4px; color: var(--amber); font-weight: 700; margin-top: 4px; }

.banner__title { text-align: center; flex: 1 1 340px; }
.banner__eyebrow {
  display: inline-block;
  font-size: .72rem; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,240,.7); font-weight: 700; margin-bottom: 6px;
}
.banner__title h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.5px;
}
.banner__title h1 span { color: var(--amber); }
.banner__edition {
  display: inline-block; margin-top: 10px;
  font-weight: 700; font-size: .82rem; letter-spacing: 2px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(250,166,26,.16);
  border: 1px solid rgba(250,166,26,.5);
  color: var(--amber);
}
.banner__edition sup { font-size: .6em; }

.banner__status {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .82rem; letter-spacing: .5px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,240,.16);
  flex: none;
}

.live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5b5b; position: relative; flex: none;
  box-shadow: 0 0 0 0 rgba(255,91,91,.6);
  animation: pulse 1.8s infinite;
}
.live-dot--sm { width: 8px; height: 8px; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,91,91,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255,91,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,91,91,0); }
}

/* ============ LAYOUT ============ */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(20px, 2.5vw, 40px);
  align-items: start;
}

/* ============ SECTION HEAD ============ */
.section-head { margin-bottom: 22px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--teal);
  letter-spacing: -.5px;
}
.section-head p { color: rgba(35,31,32,.62); margin-top: 4px; font-size: .95rem; }
.legend { display: flex; gap: 18px; margin-top: 14px; font-size: .82rem; font-weight: 600; }
.legend__item { display: flex; align-items: center; gap: 7px; color: rgba(35,31,32,.7); }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--free { background: var(--free); }
.dot--busy { background: var(--busy); }

/* ============ DEVELOPERS GRID ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dev {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: rise .5s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.dev:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(31,95,91,.4);
  border-color: rgba(250,166,26,.6);
}
.dev::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(250,166,26,.07), transparent 40%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.dev:hover::before { opacity: 1; }

.dev__logo {
  width: 88px; height: 88px; border-radius: 14px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  overflow: hidden; padding: 8px;
}
.dev__logo svg { width: 100%; height: 100%; }
.dev__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.dev__name {
  font-weight: 700; font-size: .92rem; color: var(--ink);
  line-height: 1.15; letter-spacing: -.2px;
}

.dots {
  display: flex; gap: 6px; margin-top: 2px;
}
.dots .dot { width: 10px; height: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }

.dev__meta {
  font-size: .72rem; color: rgba(35,31,32,.55); font-weight: 600;
}
.dev__meta b { color: var(--free); }

.dev__enter {
  margin-top: 6px;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700; font-size: .8rem;
  color: var(--teal);
  background: rgba(31,95,91,.06);
  border: 1px solid rgba(31,95,91,.18);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.dev__enter:hover {
  background: var(--teal);
  color: var(--ivory);
  border-color: var(--teal);
}

/* ============ ALWAYS-ON CHAT ============ */
.chat {
  position: fixed; top: calc(var(--topstack-h, 20px) + 14px);
  right: calc(max((100vw - var(--maxw)) / 2, 0px) + clamp(18px, 4vw, 48px));
  width: 320px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: calc(100vh - var(--topstack-h, 20px) - 34px);
  max-height: 660px;
}

/* --- top bar --- */
.chat__topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  background: linear-gradient(120deg, var(--teal), #1a524f);
  color: var(--ivory);
}
.chat__avatar { position: relative; width: 46px; height: 46px; flex: none; }
.chat__avatar svg { width: 46px; height: 46px; border-radius: 50%; display: block; }
.chat__photo {
  position: absolute; inset: 0;
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,240,.7);
}
.chat__online {
  position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--free); border: 2px solid #fff;
}
.chat__who { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.chat__name { font-size: 1.02rem; font-weight: 800; }
.chat__status { font-size: .72rem; color: rgba(255,255,240,.85); display: flex; align-items: center; gap: 6px; }
.chat__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--free); display: inline-block; }
.chat__livetag {
  display: flex; align-items: center; gap: 6px;
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  background: rgba(0,0,0,.2); padding: 5px 9px; border-radius: 999px; flex: none;
}

/* --- messages --- */
.chat__body {
  flex: 1; overflow-y: auto;
  padding: 16px 14px;
  background:
    radial-gradient(circle at 1px 1px, rgba(35,31,32,.045) 1px, transparent 0) 0 0 / 18px 18px,
    var(--ivory);
  display: flex; flex-direction: column; gap: 10px;
}
.chat__day {
  align-self: center;
  font-size: .68rem; font-weight: 700; color: rgba(35,31,32,.45);
  background: rgba(35,31,32,.06); padding: 4px 12px; border-radius: 999px;
  margin-bottom: 4px;
}
.msg { display: flex; flex-direction: column; max-width: 84%; }
.msg--in  { align-self: flex-start; align-items: flex-start; }
.msg--out { align-self: flex-end;   align-items: flex-end; }
.msg__bubble { padding: 10px 13px; font-size: .86rem; line-height: 1.4; border-radius: 16px; }
.msg--in  .msg__bubble { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg--out .msg__bubble { background: var(--teal); color: var(--ivory); border-bottom-right-radius: 5px; }
.msg__time { font-size: .64rem; color: rgba(35,31,32,.42); margin-top: 3px; padding: 0 4px; }

/* --- typing dots --- */
.chat__typing {
  align-self: flex-start;
  display: flex; gap: 4px; padding: 11px 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; border-bottom-left-radius: 5px;
}
.chat__typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
  animation: typing 1.2s infinite;
}
.chat__typing span:nth-child(2) { animation-delay: .2s; }
.chat__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%,60%,100% { transform: translateY(0); opacity: .45; }
  30%         { transform: translateY(-4px); opacity: 1; }
}

/* --- input --- */
.chat__input {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat__input input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px; font-family: var(--font-body); font-size: .86rem;
  outline: none; background: var(--ivory); color: var(--ink);
}
.chat__input input:focus { border-color: var(--sage); }
.chat__input button {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--amber); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .15s, background .15s;
}
.chat__input button:hover { transform: scale(1.06); background: #ffb43a; }

/* ============ FOOTER ============ */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 48px);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: .8rem; color: rgba(35,31,32,.5); font-weight: 600;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .chat { position: static; width: auto; right: auto; height: 520px; max-height: 70vh; }
  .banner__inner { justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .banner__status { display: none; }
}

/* ============================================================
   DEVELOPER PAGE (developer.html)
   ============================================================ */

/* --- banner: organizer + developer identity --- */
.banner__org { display: flex; align-items: center; gap: 10px; flex: none; }
.banner__org small {
  font-size: .62rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,240,.7); font-weight: 700; line-height: 1.3;
  max-width: 74px;
}

.banner__dev { display: flex; align-items: center; gap: 16px; flex: 1 1 340px; justify-content: center; }
.banner__devchip {
  background: var(--ivory); border-radius: 12px;
  padding: 7px 12px; height: 58px; display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); flex: none;
}
.banner__devchip img { max-height: 44px; max-width: 130px; width: auto; height: auto; object-fit: contain; display: block; }
.banner__devtext { display: flex; flex-direction: column; text-align: left; line-height: 1.05; }
.banner__devname {
  font-family: var(--font-display); font-weight: 700; color: var(--ivory);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -.5px;
}

/* --- sub-navigation: Destinations / Projects --- */
.subnav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 48px) 4px;
  display: flex; flex-direction: column; gap: 12px;
}
.subnav__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.subnav__label {
  font-family: var(--font-display); font-weight: 700; color: var(--teal);
  font-size: 1rem; min-width: 104px;
}
.chip {
  font-size: .8rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.chip:hover { background: var(--teal); color: var(--ivory); border-color: var(--teal); transform: translateY(-1px); }
.chip--dest { border-color: rgba(31,95,91,.35); color: var(--teal); }
.chip--dest:hover { background: var(--teal); color: var(--ivory); }
.chip--active { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* --- agent (online meeting) cards --- */
.agent {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: rise .5s both;
}
.agent:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(31,95,91,.4);
  border-color: rgba(250,166,26,.6);
}
.agent__thumb { position: relative; aspect-ratio: 16 / 10; background: #0f3b38; overflow: hidden; }
.agent__thumb svg { width: 100%; height: 100%; display: block; }
.agent--busy .agent__thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(15,59,56,.55); pointer-events: none;
}
.agent__badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  font-size: .62rem; font-weight: 700; letter-spacing: .3px;
  padding: 4px 9px; border-radius: 999px; color: #fff;
}
.agent__badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.agent__badge--free { background: rgba(76,154,91,.92); }
.agent__badge--busy { background: rgba(214,69,69,.92); }
.agent__live {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: .58rem; font-weight: 800; letter-spacing: 1px;
  color: #fff; background: rgba(0,0,0,.35);
  padding: 3px 8px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
}
.agent__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff5b5b; }

.agent__body { padding: 12px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.agent__name { font-weight: 700; font-size: .95rem; color: var(--ink); }
.agent__join {
  width: 100%; border: none; border-radius: 10px; padding: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .15s, background .15s;
}
.agent__join--active { background: var(--amber); color: var(--ink); cursor: pointer; box-shadow: 0 8px 18px -8px rgba(250,166,26,.8); }
.agent__join--active:hover { transform: translateY(-1px); background: #ffb43a; }
.agent__join--inactive { background: #ececec; color: #9a9a9a; cursor: not-allowed; }

@media (max-width: 760px) {
  .banner__dev { order: 3; }
  .subnav__label { min-width: 100%; }
}

/* ============================================================
   MANAGER / AGENT / MANAGERIAL PAGES
   ============================================================ */

/* team grouping (managerial) */
.team-block { margin-bottom: 34px; }
.team-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.team-head h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--teal); font-weight: 700; white-space: nowrap; }
.team-head .team-meta { font-size: .76rem; color: rgba(35,31,32,.55); font-weight: 600; white-space: nowrap; }
.team-head .team-live {
  font-size: .66rem; font-weight: 700; color: #3c8a53;
  background: rgba(76,154,91,.14); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.team-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 640px) {
  .team-head { flex-wrap: wrap; gap: 6px 10px; }
  .team-head .team-meta, .team-head .team-live { white-space: normal; }
  .team-head h3 { width: 100%; }
  .team-head::after { display: none; }
}

/* meeting monitor grid */
.mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 16px;
  min-width: 0;
}

/* managerial: each team's cards as a horizontal CAROUSEL (not stacked) */
.content { min-width: 0; }
.team-block { min-width: 0; }
.team-block .mgrid {
  display: flex;
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(35,31,32,.25) transparent;
}
.team-block .mgrid > .mcard {
  flex: 0 0 clamp(214px, 74vw, 224px);
  scroll-snap-align: start;
}
.team-block .mgrid::-webkit-scrollbar { height: 8px; }
.team-block .mgrid::-webkit-scrollbar-thumb { background: rgba(35,31,32,.2); border-radius: 999px; }
.team-block .mgrid::-webkit-scrollbar-track { background: transparent; }

/* meeting card */
.mcard {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative; animation: rise .5s both;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(31,95,91,.4); border-color: rgba(250,166,26,.55); }

.mcard__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mcard__online { display: flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; }
.mcard__online i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mcard__online--on  { color: #3c8a53; }
.mcard__online--on i { background: var(--free); box-shadow: 0 0 0 3px rgba(76,154,91,.2); }
.mcard__online--off { color: rgba(35,31,32,.4); }
.mcard__online--off i { background: #c9c9c9; }

.mcard__live {
  font-size: .64rem; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
}
.mcard__live--on  { background: rgba(76,154,91,.14); color: #3c8a53; }
.mcard__live--on i { width: 6px; height: 6px; border-radius: 50%; background: #ff5b5b; animation: pulse 1.6s infinite; }
.mcard__live--off { background: rgba(35,31,32,.06); color: rgba(35,31,32,.45); }

.mcard__logo { width: 74px; height: 74px; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 8px; display: grid; place-items: center; }
.mcard__logo img { width: 100%; height: 100%; object-fit: contain; }
.mcard__dev { font-weight: 700; font-size: .82rem; color: var(--ink); }

.mcard__rows { width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.mrow { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; background: var(--ivory); border-radius: 10px; text-align: left; border: 1px solid var(--line); }
.mrow small { font-size: .58rem; text-transform: uppercase; letter-spacing: .6px; color: rgba(35,31,32,.45); font-weight: 700; }
.mrow b { font-size: .82rem; color: var(--ink); font-weight: 700; }
.mrow--client { background: rgba(31,95,91,.06); border-color: rgba(31,95,91,.18); }
.mrow--client b { color: var(--teal); }

/* ---------- CHAT LIST (right aside) ---------- */
.clist {
  position: fixed; top: calc(var(--topstack-h, 20px) + 14px);
  right: calc(max((100vw - var(--maxw)) / 2, 0px) + clamp(18px, 4vw, 48px));
  width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  height: calc(100vh - var(--topstack-h, 20px) - 34px);
  max-height: calc(100vh - var(--topstack-h, 20px) - 34px);
}
.clist__head {
  padding: 14px 16px; background: linear-gradient(120deg, var(--teal), #1a524f);
  color: var(--ivory); display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.clist__head h3 { font-size: 1rem; font-weight: 800; }
.clist__count { font-size: .64rem; background: rgba(0,0,0,.22); padding: 4px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.clist__scroll { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }

.clist__row { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; cursor: pointer; position: relative; transition: background .15s; }
.clist__row:hover { background: var(--ivory); }
.clist__logo { width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 5px; flex: none; display: grid; place-items: center; }
.clist__logo img { width: 100%; height: 100%; object-fit: contain; }
.clist__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.clist__name { font-weight: 700; font-size: .86rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clist__sub { font-size: .7rem; color: rgba(35,31,32,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clist__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.clist__dot--on { background: var(--free); box-shadow: 0 0 0 3px rgba(76,154,91,.18); }
.clist__dot--off { background: #c9c9c9; }

/* hover popup — opens to the LEFT of the list */
.clist__pop {
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%) scale(.96); transform-origin: right center;
  width: 214px; background: var(--ink); color: var(--ivory);
  border-radius: 12px; padding: 13px 15px;
  box-shadow: 0 18px 44px -12px rgba(0,0,0,.55); z-index: 30;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.clist__row:hover .clist__pop { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.clist__pop::after { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--ink); border-radius: 2px; }
.clist__poprow { display: flex; flex-direction: column; gap: 1px; }
.clist__poprow + .clist__poprow { margin-top: 8px; }
.clist__poprow small { font-size: .58rem; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,240,.5); font-weight: 700; }
.clist__poprow b { font-size: .82rem; font-weight: 700; }
.clist__poprow b.clist__dur { color: var(--amber); }

/* ---------- FLOATING CHAT WINDOW ---------- */
.chatwin {
  position: fixed; right: 24px; bottom: 24px;
  width: 340px; height: 520px; max-height: 80vh;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55);
  display: flex; flex-direction: column; overflow: hidden; z-index: 70;
  transform: translateY(18px) scale(.98); opacity: 0; visibility: hidden;
  transition: transform .22s ease, opacity .22s ease, visibility .22s;
}
.chatwin.open { transform: none; opacity: 1; visibility: visible; }
.chatwin__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(120deg, var(--teal), #1a524f); color: var(--ivory); }
.chatwin__logo { width: 38px; height: 38px; border-radius: 9px; background: #fff; padding: 5px; display: grid; place-items: center; flex: none; }
.chatwin__logo img { width: 100%; height: 100%; object-fit: contain; }
.chatwin__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.chatwin__who strong { font-size: .95rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatwin__sub { font-size: .68rem; color: rgba(255,255,240,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatwin__close { flex: none; background: rgba(0,0,0,.22); color: #fff; border: none; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: .8rem; }
.chatwin__close:hover { background: rgba(0,0,0,.38); }
.chatwin__info { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; background: var(--ivory); border-bottom: 1px solid var(--line); font-size: .74rem; color: rgba(35,31,32,.7); }
.chatwin__info b { color: var(--ink); }
.chatwin__dur { color: #c8791a; font-weight: 700; }
.chatwin__body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; background: radial-gradient(circle at 1px 1px, rgba(35,31,32,.045) 1px, transparent 0) 0 0 / 18px 18px, #fff; }

@media (max-width: 1200px) { .chatwin { right: 20px; } }
@media (max-width: 900px) {
  .chatwin { right: 12px; left: 12px; width: auto; }
  .clist { position: static; width: auto; right: auto; height: auto; max-height: 60vh; }
  .clist__pop { right: auto; left: 0; top: calc(100% + 8px); transform: scale(.96); transform-origin: left top; }
  .clist__row:hover .clist__pop { transform: scale(1); }
  .clist__pop::after { display: none; }
}

/* meeting card — Join Now button */
.mcard__join {
  width: 100%; border: none; border-radius: 10px; padding: 10px; margin-top: 2px;
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .15s, background .15s;
}
.mcard__join--active { background: var(--amber); color: var(--ink); cursor: pointer; box-shadow: 0 8px 18px -8px rgba(250,166,26,.8); }
.mcard__join--active:hover { transform: translateY(-1px); background: #ffb43a; }
.mcard__join--inactive { background: #ececec; color: #9a9a9a; cursor: not-allowed; }

/* ============================================================
   HOMEPAGE (homepage.html)
   ============================================================ */
.home__top {
  display: flex; align-items: center; gap: 14px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: linear-gradient(120deg, var(--teal) 0%, #184b48 55%, var(--ink) 100%);
  color: var(--ivory); border-bottom: 4px solid var(--amber);
}
.home__top .brand__logo { height: 56px; }
.home__toptext { display: flex; flex-direction: column; line-height: 1.15; }
.home__toptext strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.home__toptext strong span { color: var(--amber); }
.home__toptext small { font-size: .66rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,240,.7); font-weight: 600; margin-top: 3px; }

.home { padding: clamp(26px, 5vw, 60px) clamp(18px, 4vw, 48px); }
.home__intro { text-align: center; margin-bottom: 30px; }
.home__intro h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--teal); font-weight: 700; }
.home__intro p { color: rgba(35,31,32,.6); margin-top: 6px; font-size: .95rem; }

.home__cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px; max-width: 980px; margin: 0 auto; align-items: start;
}
.hcard {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 24px; box-shadow: var(--shadow);
}
.hcard__title { font-family: var(--font-display); text-align: center; font-size: 1.5rem; color: var(--teal); font-weight: 700; }
.hcard__hint { text-align: center; font-size: .8rem; color: rgba(35,31,32,.55); margin-top: 4px; margin-bottom: 20px; }

/* developer icons */
.dev-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dev-icon { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.dev-icon__logo {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.dev-icon__logo img {
  position: absolute; inset: 10px;
  width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: contain;
}
.dev-icon:hover .dev-icon__logo { transform: translateY(-3px); border-color: rgba(250,166,26,.6); box-shadow: 0 10px 22px -12px rgba(31,95,91,.5); }
.dev-icon span { font-size: .68rem; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.15; }

/* destination groups */
.dest-group { margin-bottom: 18px; }
.dest-group:last-child { margin-bottom: 0; }
.dest-head { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.dest-head span { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--amber); white-space: nowrap; letter-spacing: .5px; }
.dest-head::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(250,166,26,.55), transparent); }
.dest-items { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 720px) {
  .home__cards { grid-template-columns: 1fr; }
}

/* Framed developers section (index) — light-gray border like the chat column */
.content--framed {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow);
}

/* ---------- Homepage 2: collapsible cards (accordion) ---------- */
.hcard--toggle { padding: 0; overflow: hidden; align-self: start; }
.hcard__header {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 22px 24px; font-family: inherit;
}
.hcard__htext { display: flex; flex-direction: column; gap: 4px; }
.hcard__header .hcard__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--teal); }
.hcard__header .hcard__hint { font-size: .8rem; color: rgba(35,31,32,.55); }
.hcard__chev {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--teal);
  background: rgba(31,95,91,.08);
  transition: transform .3s ease, background .2s, color .2s;
}
.hcard--toggle.open .hcard__chev { transform: rotate(180deg); background: rgba(250,166,26,.2); color: #c8791a; }
.hcard--toggle:hover .hcard__chev { background: rgba(31,95,91,.14); }

.hcard__panel { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.hcard--toggle.open .hcard__panel { max-height: 760px; }
.hcard__panelInner { padding: 4px 24px 24px; }

/* ============================================================
   FIXED HEADER + AUTO-ROTATING ADS BAR
   ============================================================ */
.topstack {
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 6px 20px -12px rgba(35,31,32,.4);
}

.adbar {
  position: relative; height: 42px; overflow: hidden;
  background: var(--ink); color: var(--ivory);
  border-bottom: 3px solid var(--amber);
}
.adbar__track { position: relative; height: 100%; max-width: var(--maxw); margin: 0 auto; }
.adbar__item {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 clamp(16px, 5vw, 60px);
  font-size: .82rem; font-weight: 600; text-align: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .55s ease, transform .55s ease;
  white-space: nowrap; pointer-events: none;
}
.adbar__item.is-active { opacity: 1; transform: none; }
.adbar__tag {
  flex: none; font-size: .62rem; font-weight: 800; letter-spacing: .5px;
  background: var(--amber); color: var(--ink);
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
@media (max-width: 640px) {
  .adbar { height: 54px; }
  .adbar__item { font-size: .72rem; white-space: normal; line-height: 1.2; }
  .adbar__tag { display: none; }
}

/* Developer sub-nav: Destinations / Projects as plain black TEXT (not buttons, not clickable) */
.subnav__row { gap: 18px; }
.subnav .chip {
  background: none; border: none; border-radius: 0; padding: 2px 0;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 600; color: var(--ink);
  cursor: default; pointer-events: none; white-space: nowrap;
}
.subnav .chip::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber); flex: none;
}
.subnav .chip--dest { color: var(--ink); font-weight: 600; }

/* Mobile: make the Destinations / Projects list compact */
@media (max-width: 640px) {
  .subnav { padding: 12px clamp(14px, 4vw, 48px) 0; gap: 6px; }
  .subnav__row { gap: 7px 14px; }
  .subnav__label { font-size: .8rem; }
  .subnav .chip { font-size: .76rem; gap: 6px; padding: 1px 0; }
  .subnav .chip::before { width: 4px; height: 4px; }
}

/* ============================================================
   HEADER THEME — brand ORANGE header + GREEN underline (all pages)
   ============================================================ */
.banner {
  background: linear-gradient(120deg, var(--amber) 0%, #f2960f 55%, #e07d0a 100%);
  color: var(--ink);
  border-bottom: 4px solid var(--teal);
}
.banner__pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(35,31,32,.14) 1px, transparent 0);
}
.banner__eyebrow { color: rgba(35,31,32,.72); }
.banner__title h1 span { color: var(--teal); }
.banner__edition {
  background: rgba(31,95,91,.14);
  border: 1px solid rgba(31,95,91,.5);
  color: var(--teal);
}
.banner__status {
  background: rgba(35,31,32,.9);
  border: 1px solid rgba(255,255,240,.16);
  color: var(--ivory);
}
.banner__devname { color: var(--ink); }

.home__top {
  background: linear-gradient(120deg, var(--amber) 0%, #f2960f 55%, #e07d0a 100%);
  color: var(--ink);
  border-bottom: 4px solid var(--teal);
}
.home__toptext strong span { color: var(--teal); }
.home__toptext small { color: rgba(35,31,32,.6); }

/* line under the header stays green on the ad pages too */
.adbar { border-bottom: 3px solid var(--teal); }

/* Palm Hills chip a touch more transparent on the header */
.banner__devchip { background: rgba(255,255,240,.82); opacity: .9; }

/* Desktop: nudge the side chat / chat-list a little to the right */
@media (min-width: 1440px) {
  .chat, .clist { right: calc(max((100vw - var(--maxw)) / 2, 0px) + clamp(18px, 4vw, 48px) - 48px); }
}

/* developer.html: header is a touch shorter — drop the chat to match index's level */
.subnav + .layout .chat {
  top: calc(var(--topstack-h, 20px) + 44px);
  height: calc(100vh - var(--topstack-h, 20px) - 64px);
}

