/* ============================================================
   LEMON TREE RESTAURANT — css/branches.css
   Styles for branches.html only.
   10 branches displayed in a modern accordion grid layout.
   ============================================================ */


/* ── HERO SECTION  BACKGROUND IMAGE ── */
.page-hero {
  background-image: url("../images/branches/branches-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 100px 20px;
  text-align: center;
  color: white;

  position: relative;
}


.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}


/* ── HERO SECTION  FONT COLOR ── */
body[data-page="branches"] .page-hero {
  --green: #e6e600;
}


body[data-page="branches"] .page-hero h1,
body[data-page="branches"] .page-hero p,
body[data-page="branches"] .page-hero{
  color: #ffffff;
}



/* ── BRANCH COUNT BADGE ── */
.branch-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 32px;
}


/* ── BRANCHES ACCORDION LAYOUT ── */
.branches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-item {
  border: 1.5px solid var(--border-c);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.branch-item:hover {
  border-color: var(--lemon);
}

.branch-item.open {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}


/* ── ACCORDION HEADER (always visible) ── */
.branch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.branch-header:hover {
  background: var(--lemon-soft);
}

.branch-item.open .branch-header {
  background: var(--lemon-soft);
}

.branch-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Branch number pill */
.branch-number {
  background: var(--lemon);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 10px;
  flex-shrink: 0;
  min-width: 44px;
  text-align: center;
}

.branch-header-info {}

.branch-header-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.branch-header-area {
  font-size: 12px;
  color: var(--text-soft);
}

/* Status + arrow on right side */
.branch-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.branch-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 10px;
  border-radius: 8px;
}

.branch-arrow {
  font-size: 12px;
  color: var(--text-soft);
  transition: transform 0.3s ease;
}

.branch-item.open .branch-arrow {
  transform: rotate(180deg);
}


/* ── ACCORDION BODY (hidden by default) ── */
.branch-body {
  display: none;
  border-top: 1px solid var(--border-c);
}

.branch-item.open .branch-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}


/* Left column: branch photo */
.branch-photo {
  height: 220px;
  border-radius: 0;
  /* Remove radius since it's inside a card */
}

.branch-photo .img-frame {
  height: 100%;
  border-radius: 0;
}


/* Right column: branch details */
.branch-details {
  padding: 24px;
  background: var(--lemon-soft);
}

.branch-details-address {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Info pills (hours, phone, parking) */
.branch-details-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detail-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-mid);
  background: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-c);
}

/* Pill icon images */
.detail-pill-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Action buttons */
.branch-details-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .branch-item.open .branch-body {
    grid-template-columns: 1fr;
  }

  .branch-photo {
    height: 180px;
  }

  .branch-header {
    padding: 16px 18px;
  }
}

@media (max-width: 600px) {
  .branch-header-right .branch-status {
    display: none; /* hide status on very small screens */
  }

  .branch-header-name {
    font-size: 14px;
  }

  .branch-details-btns .btn {
    flex: 1;
    justify-content: center;
  }
}
