/* Branches page styles */
/* Color variables for theme */
:root {
  --primary: #7a0649;
  --primary-dark: #5a0336;
}
.branches-hero{
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background:
    radial-gradient(circle at 14% 22%, rgba(242, 201, 76, 0.25), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(212, 203, 196, 0.12), transparent 28%),
    linear-gradient(125deg, #5a0336 0%, #7a0649 55%, #8d1459 100%);
  color: #fff;
}

.branches-hero::before,
.branches-hero::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.branches-hero .hero-bg-icons{
  z-index: 1;
}

.branches-hero::before{
  width: 320px;
  height: 320px;
  right: -120px;
  top: -110px;
  background: rgba(242, 201, 76, 0.22);
}

.branches-hero::after{
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -120px;
  background: rgba(212, 203, 196, 0.1);
}

.branches-hero .container{
  position: relative;
  z-index: 2;
}

.branches-hero-content{
  max-width: 700px;
  padding: 12px 0;
}

.branches-hero-content h1{
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.branches-hero-content p{
  font-size: 17px;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
}

.branches-hero-carousel{
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: 0 14px 28px rgba(0,0,0,0.24);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.branch-slide-link{
  display: block;
  position: relative;
}

.branch-slide-link img{
  height: 250px;
  object-fit: cover;
  filter: saturate(1.05);
}

.branch-slide-link::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.52), rgba(0,0,0,0.08));
}

.branch-slide-label{
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  background: rgba(212, 203, 196, 0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(3px);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
}

.branches-hero-carousel .carousel-indicators{
  margin-bottom: 10px;
}

.branches-hero-carousel .carousel-indicators [data-bs-target]{
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.branches-hero-carousel .carousel-control-prev,
.branches-hero-carousel .carousel-control-next{
  width: 42px;
}

.branches-hero-carousel .carousel-control-prev-icon,
.branches-hero-carousel .carousel-control-next-icon{
  background-color: rgba(0,0,0,0.35);
  border-radius: 50%;
  background-size: 58% 58%;
}

.branches-intro{
  padding: 80px 0;
  background: #D4CBC4;
}

.branches-intro-grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.branches-intro-image{
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.branches-intro-image img{
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.branch-benefits{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.branch-benefit-box{
  background: #D4CBC4;
  border: 1px solid rgba(122, 6, 73, 0.08);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.branch-benefit-box:hover{
  transform: translateY(-6px);
  box-shadow: var(--gold-glow);
}

.branch-benefit-icon{
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 24px;
}

.branch-benefit-box h4{
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.branch-filter-section{
  padding: 80px 0;
  background: linear-gradient(to bottom, #D4CBC4, #D4CBC4);
}

.branch-filter-tabs{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.branch-filter-btn{
  border: 1px solid rgba(122, 6, 73, 0.12);
  background: #D4CBC4;
  color: var(--primary);
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.branch-filter-btn:hover,
.branch-filter-btn.active{
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.branch-card-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.branch-card{
  background: #D4CBC4;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(122, 6, 73, 0.08);
  transition: var(--transition);
}

.branch-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--gold-glow);
}

.branch-card-image,
.branch-card-media{
  overflow: hidden;
}

.branch-card-image img,
.branch-card-media img{
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.branch-card:hover .branch-card-image img,
.branch-card:hover .branch-card-media img{
  transform: scale(1.05);
}

.branch-card-body{
  padding: 24px;
}

.branch-city-tag{
  display: inline-block;
  background: #D4CBC4;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 40px;
  margin-bottom: 14px;
}

.branch-card h3{
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.branch-address,
.branch-meta{
  margin-bottom: 16px;
}

.branch-meta li{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 15px;
}

.branch-meta i{
  color: var(--primary);
  font-size: 16px;
}

.branch-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-branch-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-branch-outline:hover{
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 991px){
  .branch-slide-link img{
    height: 220px;
  }
}

@media (max-width: 767px){
  .branches-hero-carousel{
    margin-top: 18px;
  }

  .branch-slide-link img{
    height: 190px;
  }

  .branch-slide-label{
    left: 12px;
    bottom: 10px;
    font-size: 13px;
    padding: 6px 12px;
  }
}

.branch-locator-section{
  padding: 80px 0;
  background: #D4CBC4;
}

.branch-locator-box{
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 30px;
  text-align: center;
  padding: 60px 30px;
  box-shadow: var(--shadow-lg);
}

.branch-locator-box h2{
  color: #fff;
  margin-bottom: 12px;
  font-size: 38px;
}

.branch-locator-box p{
  color: rgba(255,255,255,0.92);
  margin-bottom: 24px;
  font-size: 16px;
}

@media (max-width: 1199px){
  .branches-hero-content h1{
    font-size: 44px;
  }

  .branch-benefits{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px){
  .branches-intro-grid,
  .branch-card-grid{
    grid-template-columns: 1fr;
  }

  .branches-intro-image img{
    height: 400px;
  }

  .branches-hero-content h1{
    font-size: 36px;
  }
}

@media (max-width: 767px){
  .branches-hero-content h1{
    font-size: 28px;
  }

  .branch-card-image img{
    height: 220px;
  }

  .branch-card-body{
    padding: 20px;
  }

  .branch-actions{
    flex-direction: column;
  }

  .btn-branch-outline,
  .branch-actions .btn{
    width: 100%;
    justify-content: center;
  }

  .branch-locator-box h2{
    font-size: 28px;
  }
}

@media (max-width: 991px){
  .branches-intro,
  .branch-filter-section,
  .branch-locator-section{
    padding: 56px 0;
  }

  .branch-filter-tabs{
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .branch-filter-tabs::-webkit-scrollbar{
    display:none;
  }

  .branch-filter-btn{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 575px){
  .branches-hero,
  .branches-intro,
  .branch-filter-section,
  .branch-locator-section{
    padding: 40px 0;
  }

  .branches-intro-image img,
  .branch-card-image img{
    height: 190px;
  }

  .branch-card h3{
    font-size: 20px;
  }

  .branch-meta li{
    align-items: flex-start;
    font-size: 14px;
  }

  .branch-locator-box{
    padding: 34px 18px;
    border-radius: 20px;
  }
}

/* Final simple 3D branch location view */
html,
body,
.branch-list-section,
.branches-intro,
.branch-locator-section {
  background: #D4CBC4 !important;
  background-color: #D4CBC4 !important;
}

.branch-list-section {
  padding: 70px 0 58px !important;
}

.branch-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.branch-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e6ddd6 0%, #D4CBC4 60%, #b9a89f 100%) !important;
  border: 2px solid #5a0336 !important;
  border-radius: 16px !important;
  box-shadow:
    7px 8px 0 rgba(90, 3, 54, 0.22),
    0 18px 30px rgba(90, 3, 54, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, border-color 0.3s ease !important;
}

.branch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 44%, rgba(242, 201, 76, 0.2));
  pointer-events: none;
  z-index: 1;
}

.branch-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #5a0336 0%, #D4CBC4 48%, #f2c94c 100%);
  box-shadow: 0 -5px 14px rgba(90, 3, 54, 0.18);
  z-index: 2;
}

.branch-card:hover {
  transform: translateY(-9px) rotateX(4deg) rotateY(-3deg) !important;
  filter: brightness(1.04);
  border-color: #7a0649 !important;
  box-shadow:
    10px 12px 0 rgba(90, 3, 54, 0.28),
    0 24px 38px rgba(90, 3, 54, 0.22),
    inset 1px 1px 0 rgba(255, 255, 255, 0.58) !important;
}

.branch-card-image,
.branch-card-media {
  position: relative;
  z-index: 0;
  border-bottom: 2px solid #5a0336;
  background: #5a0336;
}

.branch-card-image img,
.branch-card-media img {
  height: 150px !important;
  filter: saturate(0.96) contrast(1.02);
}

.branch-card:hover .branch-card-image img,
.branch-card:hover .branch-card-media img {
  transform: scale(1.04) !important;
}

.branch-card-body {
  position: relative;
  z-index: 2;
  padding: 20px 18px 24px !important;
}

.branch-city-tag {
  background: linear-gradient(145deg, #7a0649, #5a0336) !important;
  color: #fff !important;
  border: 1px solid #f2c94c;
  box-shadow: 3px 4px 0 rgba(90, 3, 54, 0.18);
}

.branch-card h3 {
  color: #5a0336 !important;
  font-size: 20px !important;
  line-height: 1.25;
}

.branch-address,
.branch-meta li {
  color: #3a2631 !important;
}

.branch-meta i {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #7a0649, #5a0336);
  color: #fff !important;
  border: 1px solid #f2c94c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 4px 0 rgba(90, 3, 54, 0.18);
}

.branch-actions .btn,
.btn-branch-outline {
  border: 2px solid #f2c94c !important;
  box-shadow: 4px 5px 0 rgba(42, 1, 25, 0.24), 0 10px 18px rgba(90, 3, 54, 0.16) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease !important;
}

.branch-actions .btn:hover,
.btn-branch-outline:hover {
  transform: translateY(-4px) !important;
  box-shadow: 6px 7px 0 rgba(42, 1, 25, 0.3), 0 14px 24px rgba(90, 3, 54, 0.22) !important;
}

@media (max-width: 1199px) {
  .branch-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .branch-list-section {
    padding: 52px 0 42px !important;
  }

  .branch-card-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .branch-card {
    box-shadow:
      5px 6px 0 rgba(90, 3, 54, 0.2),
      0 14px 24px rgba(90, 3, 54, 0.14),
      inset 1px 1px 0 rgba(255, 255, 255, 0.45) !important;
  }

  .branch-card:hover {
    transform: translateY(-6px) rotateX(3deg) !important;
  }

  .branch-card-image img,
  .branch-card-media img {
    height: 135px !important;
  }
}

/* Final full branches page 3D motion layer */
.branches-hero {
  box-shadow: 0 10px 0 rgba(90, 3, 54, 0.22), 0 24px 38px rgba(90, 3, 54, 0.18);
}

.branches-hero-content {
  transform-style: preserve-3d;
  animation: branchHeroFloat 5.6s ease-in-out infinite;
}

@keyframes branchHeroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.branches-intro-image,
.branch-benefit-box,
.branch-locator-box {
  position: relative;
  overflow: hidden;
  border: 2px solid #5a0336 !important;
  box-shadow:
    8px 10px 0 rgba(90, 3, 54, 0.22),
    0 22px 36px rgba(90, 3, 54, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important;
}

.branches-intro-image {
  border-radius: 18px !important;
  background: #5a0336;
}

.branches-intro-image::after,
.branch-benefit-box::after,
.branch-locator-box::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #5a0336 0%, #D4CBC4 48%, #f2c94c 100%);
  box-shadow: 0 -5px 14px rgba(90, 3, 54, 0.18);
  pointer-events: none;
  z-index: 2;
}

.branches-intro-image img {
  transition: transform 0.55s ease, filter 0.3s ease !important;
}

.branches-intro-image:hover,
.branch-benefit-box:hover,
.branch-locator-box:hover {
  transform: translateY(-9px) rotateX(4deg) rotateY(-3deg) !important;
  filter: brightness(1.04);
  box-shadow:
    11px 13px 0 rgba(90, 3, 54, 0.28),
    0 28px 44px rgba(90, 3, 54, 0.22),
    inset 1px 1px 0 rgba(255, 255, 255, 0.58) !important;
}

.branches-intro-image:hover img {
  transform: scale(1.04);
}

.branch-benefit-box {
  background: linear-gradient(145deg, #e6ddd6 0%, #D4CBC4 60%, #b9a89f 100%) !important;
  border-radius: 16px !important;
}

.branch-benefit-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 44%, rgba(242, 201, 76, 0.2));
  pointer-events: none;
}

.branch-benefit-box > * {
  position: relative;
  z-index: 1;
}

.branch-benefit-icon {
  border-radius: 16px !important;
  background: linear-gradient(145deg, #7a0649, #5a0336) !important;
  border: 2px solid #f2c94c;
  box-shadow:
    4px 5px 0 rgba(90, 3, 54, 0.24),
    0 12px 22px rgba(90, 3, 54, 0.22),
    inset 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.branch-benefit-box:hover .branch-benefit-icon {
  transform: translateY(-4px) translateZ(16px) scale(1.06);
  box-shadow:
    6px 7px 0 rgba(90, 3, 54, 0.3),
    0 16px 28px rgba(90, 3, 54, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.branch-locator-box {
  border-color: #f2c94c !important;
}

.branch-locator-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(242, 201, 76, 0.2), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 48%);
  pointer-events: none;
}

.branch-locator-box > * {
  position: relative;
  z-index: 1;
}

.branch-locator-box .btn {
  border: 2px solid #f2c94c !important;
  box-shadow: 5px 6px 0 rgba(42, 1, 25, 0.28), 0 12px 22px rgba(90, 3, 54, 0.2) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease !important;
}

.branch-locator-box .btn:hover {
  transform: translateY(-4px) !important;
  box-shadow: 7px 8px 0 rgba(42, 1, 25, 0.32), 0 16px 28px rgba(90, 3, 54, 0.26) !important;
}

@media (max-width: 767px) {
  .branches-hero-content {
    animation: none;
  }

  .branches-intro-image,
  .branch-benefit-box,
  .branch-locator-box {
    box-shadow:
      5px 6px 0 rgba(90, 3, 54, 0.2),
      0 14px 24px rgba(90, 3, 54, 0.14),
      inset 1px 1px 0 rgba(255, 255, 255, 0.45) !important;
  }

  .branches-intro-image:hover,
  .branch-benefit-box:hover,
  .branch-locator-box:hover {
    transform: translateY(-6px) rotateX(3deg) !important;
  }
}
