/* ============================================================
   THE EMPIRE BEAUTY BAR — BRANCHES DIRECTORY STYLES
   Scoped styles for the Branches directory page
   ============================================================ */

.branches-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.branches-filter-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(201, 166, 107, 0.05);
  border-radius: 0;
  overflow: hidden;
}

.branches-filter-toggle button {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 14px 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.35s var(--ease-luxury);
}

.branches-filter-toggle button.active {
  background: var(--gold);
  color: var(--plum-deep);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.branches-filter-toggle button:hover:not(.active) {
  background: rgba(201, 166, 107, 0.12);
  color: var(--plum);
}

.branches-count {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.branches-count strong {
  color: var(--plum);
  font-weight: 700;
}

/* ============================================================
   BRANCH DIRECTORY GRID
   ============================================================ */

.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.branch-card {
  position: relative;
  background: #FAF5EC;
  border: 1px solid var(--line);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s var(--ease-luxury),
    transform 0.65s var(--ease-luxury),
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.45s var(--ease-luxury);
}

.branch-card.in {
  opacity: 1;
  transform: translateY(0);
}

.branch-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.45s var(--ease-luxury);
}

.branch-card:hover {
  background: #FFFDF9;
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 20px 48px rgba(43, 22, 32, 0.09);
}

.branch-card:hover::after {
  width: 100%;
}

.branch-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.branch-region-tag {
  font-family: var(--body);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.branch-region-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.branch-status-badge {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
  background: rgba(201, 166, 107, 0.18);
  border: 1px solid var(--line-dim);
  padding: 4px 10px;
  font-weight: 700;
  border-radius: 2px;
}

.branch-card-body {
  flex: 1;
  margin-bottom: 32px;
}

.branch-name {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--plum);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.branch-card:hover .branch-name {
  color: #12090E;
}

.branch-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.branch-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.branch-info-item svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  stroke: var(--gold);
  fill: none;
}

.branch-info-item span {
  flex: 1;
}

.branch-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.branch-btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 22px;
  background: var(--plum-deep);
  color: var(--bone);
  border: 1px solid var(--plum-deep);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-luxury);
}

.branch-btn-view:hover {
  background: var(--gold);
  color: var(--plum-deep);
  border-color: var(--gold);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.branch-btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 22px;
  background: transparent;
  color: var(--plum-deep);
  border: 1px solid var(--gold);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-luxury);
}

.branch-btn-book:hover {
  background: var(--gold-light);
  color: var(--plum-deep);
  box-shadow: 0 4px 14px rgba(201, 166, 107, 0.25);
}

.branch-link-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.branch-link-map:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.branch-link-map svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.3s ease;
}

.branch-link-map:hover svg {
  transform: translate(2px, -2px);
}

/* ============================================================
   EMPTY / LOADING STATES
   ============================================================ */

.branches-loading,
.branches-empty {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  background: #FAF5EC;
}

.branches-loading p,
.branches-empty p {
  font-family: var(--display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 960px) {
  .branches-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .branch-card {
    padding: 36px 30px;
    min-height: auto;
  }

  .branch-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .branches-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .branches-filter-toggle {
    display: flex;
    width: 100%;
  }

  .branches-filter-toggle button {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.64rem;
    text-align: center;
  }

  .branches-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .branch-actions {
    flex-direction: column;
    width: 100%;
  }

  .branch-btn-view,
  .branch-btn-book {
    width: 100%;
  }

  .branch-link-map {
    justify-content: center;
    padding: 8px 0;
  }
}
