.sucursales-area {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.find-nearest-section {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

.find-nearest-section h3 {
  color: #333;
  margin-bottom: 15px;
  font-weight: 500;
}

.branch-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.branch-card.nearest {
  border: 3px solid #ff6b35;
  transform: translateY(-5px);
}

.branch-header {
  padding: 25px 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.branch-header:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.branch-card.nearest .branch-header {
  background: linear-gradient(135deg, #fff5f3 0%, #ffe8e1 100%);
}

.branch-header h4 {
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: 1.2rem;
}

.branch-card.nearest .branch-header h4 {
  color: #ff6b35;
}

.branch-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.distance-badge {
  background: #ff6b35;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.toggle-icon {
  color: #666;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.branch-card.nearest .toggle-icon {
  color: #ff6b35;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

.branch-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.branch-content.expanded {
  max-height: none;
}

.branch-details {
  padding: 30px;
}

.branch-details p {
  margin-bottom: 20px;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.branch-map {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.map-iframe {
  border: 0;
}

.btn-outline-primary {
  border: 2px solid #ff6b35;
  color: #ff6b35;
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-primary:hover {
  background: #ff6b35;
  color: white;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  padding: 15px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

#locationStatus {
  min-height: 20px;
}

/* Schedule Styles */
.schedule-section {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}

.schedule-title {
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.schedule-block {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  border: 1px solid #e9ecef;
}

.dance-type {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 0 0 15px 0;
}

.salsa-type {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
}

.bachata-type {
  background: linear-gradient(135deg, #f26532 0%, #eb8b1c 100%);
  color: white;
}

.schedule-item {
  background: white;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  border-left: 3px solid #ff6b35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.schedule-item:last-child {
  margin-bottom: 0;
}

.schedule-days {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.schedule-time {
  color: #666;
  font-size: 0.85rem;
  margin-top: 2px;
}

.alert {
  padding: 12px 20px;
  border-radius: 8px;
  margin: 10px 0;
}

.alert-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Footer link styling override */
.footer-area .single-footer-widget ul li a {
  font-weight: normal;
}

.footer-area .footer-text a {
  font-weight: normal;
}

@media (max-width: 768px) {
  .branch-header {
    padding: 20px;
  }

  .branch-details {
    padding: 20px;
  }

  .find-nearest-section {
    padding: 30px 20px;
  }

  .branch-content.expanded {
    max-height: none;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .schedule-block {
    padding: 12px;
  }

  .distance-badge {
    font-size: 0.7rem;
  }

  .branch-details p {
    font-size: 1rem;
  }
  .sucursales-area .col-lg-12 {
    padding-left: 2px;
    padding-right: 2px;
  }
}
