/* ===== Branch detail pages — extends styles.css ===== */

.branch-hero,
.branch-contact,
.branch-map-section {
  min-height: auto;
  padding: 80px 0;
}
.branch-hero { padding-top: 150px; }

/* Breadcrumb */
.crumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-low); margin-bottom: 34px;
}
.crumbs a { color: var(--text-mid); transition: color .3s; }
.crumbs a:hover { color: var(--accent-1); }
.crumbs strong { color: var(--text-hi); font-weight: 600; }

/* Hero layout */
.branch-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.branch-address {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--text-hi); font-weight: 500; line-height: 1.6;
  max-width: 520px; margin-bottom: 16px;
}
.branch-intro { color: var(--text-mid); max-width: 520px; line-height: 1.75; margin-bottom: 22px; }
.branch-quote {
  padding: 18px 22px;
  font-style: italic;
  color: var(--text-mid);
  border-left: 3px solid var(--accent-2);
  max-width: 560px;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Photo-posted board */
.photo-board {
  position: relative;
  min-height: 480px;
  perspective: 1000px;
}
.photo-post {
  position: absolute;
  width: 58%;
  padding: 12px 12px 46px;
  background: #fffdf8;
  border: 1px solid rgba(30,30,40,.06);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(30,35,55,.16);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), z-index 0s;
}
.photo-post img {
  width: 100%; height: 190px; object-fit: cover; border-radius: 3px;
  background: #e9e4da;
}
.photo-post figcaption {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-mid);
}
.photo-post .pin {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f07a72, var(--accent-1));
  box-shadow: 0 4px 10px rgba(30,35,55,.3);
}
.post-1 { top: 0; left: 0; transform: rotate(-5deg); z-index: 3; }
.post-2 { top: 120px; right: 0; transform: rotate(4deg); z-index: 2; }
.post-3 { bottom: 0; left: 12%; transform: rotate(-2deg); z-index: 1; }
.photo-post:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.04);
  box-shadow: 0 28px 60px rgba(30,35,55,.22);
  z-index: 5;
}
.board-tape {
  position: absolute; top: 46%; right: -12px;
  transform: rotate(90deg); transform-origin: right center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--text-low);
}

/* Pinned note variant (photo-free branches) */
.note-post {
  position: absolute;
  width: 60%;
  padding: 26px 22px 24px;
  background: #fffdf8;
  border: 1px solid rgba(30,30,40,.06);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(30,35,55,.16);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.note-post .pin {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f07a72, var(--accent-1));
  box-shadow: 0 4px 10px rgba(30,35,55,.3);
}
.note-post .note-kicker {
  display: block;
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent-1); margin-bottom: 10px;
}
.note-post h3 { font-size: 1.05rem; margin-bottom: 8px; }
.note-post p { color: var(--text-mid); font-size: .9rem; line-height: 1.65; }
.note-post .note-big {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem; line-height: 1; color: var(--text-hi);
}
.note-post:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.04);
  box-shadow: 0 28px 60px rgba(30,35,55,.22);
  z-index: 5;
}

/* Team storefront banner */
.branch-team-banner { padding: 20px 0 70px; }
.team-banner {
  position: relative;
  margin: 0; overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(30,35,55,.2);
}
.team-banner img {
  width: 100%; height: clamp(280px, 46vw, 460px); object-fit: cover;
  display: block; transition: transform .6s var(--ease);
}
.team-banner:hover img { transform: scale(1.04); }
.team-banner-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px 38px;
  background: linear-gradient(0deg, rgba(10,12,18,.82) 0%, rgba(10,12,18,.28) 55%, rgba(10,12,18,0) 100%);
  color: #f4f2ee;
}
.team-banner-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-1); margin-bottom: 8px;
}
.team-banner-overlay h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 6px; }
.team-banner-overlay p { color: rgba(244,242,238,.82); font-size: .92rem; max-width: 480px; line-height: 1.6; }

@media (max-width: 640px) {
  .team-banner-overlay { padding: 22px 20px; }
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.info-card {
  padding: 30px 28px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.info-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(30,35,55,.14); }
.info-card h3 { font-size: 1.1rem; margin: 14px 0 16px; }
.info-list { display: grid; gap: 12px; }
.info-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--glass-border);
  font-size: .92rem;
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-list span {
  color: var(--text-low); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .14em; white-space: nowrap;
}
.info-list a, .info-list strong { color: var(--text-hi); font-weight: 600; word-break: break-word; text-align: right; }
.info-list a:hover { color: var(--accent-1); }
.info-text { color: var(--text-mid); line-height: 1.7; font-size: .95rem; }

/* Map */
.map-card {
  overflow: hidden;
  padding: 10px;
}
.map-card iframe {
  width: 100%;
  height: clamp(320px, 52vh, 520px);
  border: 0;
  border-radius: calc(var(--radius) - 10px);
  display: block;
  filter: saturate(.9) contrast(1.02);
}
.map-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-top: 34px;
}

@media (max-width: 980px) {
  .branch-hero-grid { grid-template-columns: 1fr; gap: 90px; }
  .photo-board { min-height: 560px; max-width: 520px; margin: 0 auto; }
  .board-tape { display: none; }
}
@media (max-width: 560px) {
  .photo-post, .note-post { width: 78%; }
  .photo-post img { height: 160px; }
  .post-2 { top: 160px; }
  .photo-board { min-height: 620px; }
}
