/* ===========================================================
   ملف: app/www/css/offices.css
   القسم: 9 — قائمة المكاتب
   الغرض: اللوحة العلوية وبطاقات المكاتب
   يرتبط بـ: offices.html · favorites.html
   =========================================================== */

.panel {
  background: var(--card);
  border-radius: 0 0 28px 28px;
  padding: 18px 20px 16px;
  box-shadow: var(--sh-card);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel__title h1 {
  font-size: 26px;
  font-weight: 700;
}

.panel .field {
  margin-top: 14px;
}

.sort-label {
  margin: 0;
  padding: 14px 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px -20px 0;
  padding: 0 20px 6px;
  scrollbar-width: none;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 20px 0;
}

.office-card {
  padding: 14px;
}

.office-card__top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* مربع الحرف: مسطّح بلا تدرّج ولا ظل مجسّم، بخلفية فاتحة وحد هادئ يطابق الأزرار */
.mono {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  flex: none;
}

.mono--0 {
  background: var(--navy-soft);
  border-color: var(--navy-soft-line);
  color: var(--navy);
}

.mono--1 {
  background: var(--info-box);
  border-color: var(--navy-soft-line);
  color: var(--blue);
}

.mono--2 {
  background: var(--teal-light);
  border-color: var(--teal-soft-line);
  color: var(--teal-text);
}

.mono--3 {
  background: var(--teal-light);
  border-color: var(--teal-soft-line);
  color: var(--teal-deep);
}

.office-card__top>div:not(.mono) {
  flex: 1;
  min-width: 0;
}

.office-card [data-open] {
  color: inherit;
  text-decoration: none;
}

.office-card h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.office-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* الأزرار تتقاسم عرض البطاقة بالتساوي: زر = كامل العرض، زران = نصف ونصف، ثلاثة = أثلاث */
.office-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* أزرار التواصل الهادئة: أيقونة فقط، بلا ظل مجسّم، بحد فاتح واضح، وبمساحة لمس 46px */
.act {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid;
  background: var(--info-box);
  color: var(--navy);
  text-decoration: none;
  transition: transform .12s ease, background-color .12s ease;
}

.act:active {
  transform: scale(.96);
}

.act .ico {
  width: 22px;
  height: 22px;
}

.act__img {
  width: 25px;
  height: 25px;
}

.act--wa {
  background: var(--wa-soft);
  border-color: var(--wa-soft-line);
  color: var(--wa);
}

.act--call {
  background: var(--navy-soft);
  border-color: var(--navy-soft-line);
  color: var(--navy);
}

.act--map {
  background: var(--card);
  border-color: var(--neutral-soft-line);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 10px;
}

.fav.is-on {
  color: var(--blue);
  background: var(--navy-soft);
}