/* ==========================================================================
   SUNMAX SOLAR POWER - LOCATION ACCORDION & PUNE SERVICES STYLES
   (Matches exact directory layout with blue header, centered PUNE, 3 columns)
   ========================================================================== */

/* Main Section Wrapper */
.sunmax-location-section {
  max-width: 1240px;
  margin: 35px auto 45px auto;
  padding: 0 20px;
  box-sizing: border-box;
  clear: both;
}

.sunmax-location-container {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 51, 102, 0.09);
  background: #ffffff;
  border: 1px solid #dbe5f0;
  transition: all 0.3s ease;
}

/* Top Blue Header Bar */
.sunmax-loc-header {
  background: #0d6efd;
  color: #ffffff;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.25s ease;
}

.sunmax-loc-header:hover {
  background: #0b5ed7;
}

.sunmax-loc-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sunmax-loc-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #ffffff;
  flex-shrink: 0;
}

.sunmax-loc-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
}

/* Close / Open Toggle Button */
.sunmax-loc-toggle-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.sunmax-loc-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: #ffffff;
}

/* Collapsible Body */
.sunmax-loc-body {
  background: #f8fafc;
  padding: 24px 28px;
  box-sizing: border-box;
  max-height: 1400px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease, 
              padding 0.4s ease;
}

.sunmax-loc-body.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
}

/* Inner Card */
.sunmax-loc-inner-card {
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  padding: 28px 34px;
  box-shadow: 0 2px 12px rgba(0, 50, 100, 0.03);
}

/* Centered City Heading */
.sunmax-loc-city-heading {
  text-align: center;
  margin: 0 0 26px 0;
  font-size: 22px;
  font-weight: 800;
  color: #004488;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

.sunmax-loc-city-heading i {
  color: #0d6efd;
  font-size: 22px;
}

/* 3-Column List Grid */
.sunmax-loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 36px;
  row-gap: 20px;
}

.sunmax-loc-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Single Item Link */
.sunmax-loc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
  transition: all 0.22s ease;
  color: #334155;
  font-family: 'Poppins', sans-serif;
}

.sunmax-loc-item-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.sunmax-loc-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0d6efd;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sunmax-loc-name {
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.sunmax-loc-arrow {
  color: #94a3b8;
  font-size: 15px;
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform 0.22s ease, color 0.22s ease;
  font-weight: bold;
}

/* Hover States */
.sunmax-loc-item:hover {
  background: #f0f7ff;
}

.sunmax-loc-item:hover .sunmax-loc-name {
  color: #0d6efd;
  font-weight: 600;
}

.sunmax-loc-item:hover .sunmax-loc-bullet {
  transform: scale(1.35);
  background: #0052cc;
}

.sunmax-loc-item:hover .sunmax-loc-arrow {
  color: #0d6efd;
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .sunmax-loc-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 14px;
  }
  .sunmax-loc-inner-card {
    padding: 24px 22px;
  }
}

@media (max-width: 640px) {
  .sunmax-loc-section {
    padding: 0 12px;
    margin: 18px auto 25px auto;
  }
  .sunmax-loc-header {
    padding: 12px 16px;
  }
  .sunmax-loc-title {
    font-size: 17px;
  }
  .sunmax-loc-toggle-btn {
    padding: 5px 14px;
    font-size: 12.5px;
  }
  .sunmax-loc-body {
    padding: 16px 12px;
  }
  .sunmax-loc-inner-card {
    padding: 18px 14px;
  }
  .sunmax-loc-city-heading {
    font-size: 19px;
    margin-bottom: 16px;
  }
  .sunmax-loc-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .sunmax-loc-item {
    padding: 10px 8px;
  }
  .sunmax-loc-name {
    font-size: 14px;
  }
}

/* Legacy & Auxiliary Styles */
.location-toggle-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-location-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  color: #002244;
  box-shadow: 0 4px 15px rgba(251, 133, 0, 0.35);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-location-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 133, 0, 0.45);
}

.btn-location-toggle .toggle-icon-arrow {
  transition: transform 0.3s ease;
}

.btn-location-toggle.active .toggle-icon-arrow {
  transform: rotate(180deg);
}

/* Filter pills (All vs Pune) */
.view-switch-pills {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 30px;
  padding: 4px;
}

.view-pill {
  padding: 8px 18px;
  border-radius: 25px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
}

.view-pill.active {
  background: #003366;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.25);
}

/* Expandable Pune Location Grid Container */
.pune-locations-panel {
  max-width: 1280px;
  margin: 15px auto 40px auto;
  padding: 0 20px;
  display: none; /* toggled via JS */
  animation: fadeInDown 0.4s ease forwards;
}

.pune-locations-panel.active {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pune-panel-inner {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.pune-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 2px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 15px;
}

.pune-panel-header h4 {
  font-size: 1.3rem;
  color: #002244;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pune-panel-header h4 i {
  color: #0077b6;
}

.pune-filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pune-tag-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pune-tag-btn:hover,
.pune-tag-btn.active {
  background: #0077b6;
  border-color: #0077b6;
  color: #fff;
}

/* 12 Location Cards Grid */
.pune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.pune-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pune-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 51, 102, 0.15);
  border-color: #0077b6;
  background: #ffffff;
}

.pune-card-img-wrapper {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #e2e8f0;
}

.pune-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pune-card:hover .pune-card-img-wrapper img {
  transform: scale(1.08);
}

.pune-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(2, 26, 48, 0.85);
  backdrop-filter: blur(4px);
  color: #ffb703;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pune-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pune-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #002244;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.pune-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.pune-card-title a:hover {
  color: #0077b6;
}

.pune-card-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.pune-card-areas {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #0a3d62;
  font-weight: 500;
  margin-bottom: 15px;
  background: #e6f4ea;
  padding: 6px 10px;
  border-radius: 6px;
}

.pune-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #003366;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.25s ease;
  margin-top: auto;
}

.pune-card-btn:hover {
  background: #ffb703;
  color: #002244;
}

/* Floating Location Quick Toggle Button - Disabled */
.floating-location-btn {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .location-toggle-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }
  .location-toggle-actions {
    width: 100%;
    justify-content: space-between;
  }
  .btn-location-toggle {
    width: 100%;
    justify-content: center;
  }
  .pune-panel-inner {
    padding: 20px 16px;
  }
  .pune-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== HERO TOP-LEFT URL BREADCRUMBS ==================== */
.hero-breadcrumb-top-left {
  position: absolute;
  top: 16px;
  left: max(20px, 4vw);
  z-index: 5;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  max-width: 90%;
  pointer-events: auto;
}

.hero-breadcrumb-top-left .breadcrumb-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.hero-breadcrumb-top-left a {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.hero-breadcrumb-top-left a:hover {
  color: #ffb703;
}

.hero-breadcrumb-top-left .separator {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

.hero-breadcrumb-top-left .current-slug {
  color: #ffb703;
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-breadcrumb-top-left {
    top: 10px;
    left: 12px;
    font-size: 11.5px;
  }
  .hero-breadcrumb-top-left .breadcrumb-inner {
    padding: 4px 10px;
    gap: 5px;
  }
}

/* ==================== LOCATION PAGE FLEXIBLE HERO ==================== */
/* Height grows when text is added and shrinks when text is removed */
.hero.location-hero {
  min-height: unset !important;
  height: auto !important;
  padding: 65px 20px 85px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #071b2f 0%, #0d4a55 50%, #0a3d62 100%) !important;
}

.hero.location-hero::before {
  display: none !important;
}

.hero.location-hero .hero-content {
  margin: 15px auto !important;
  width: 100% !important;
  max-width: 920px !important;
  position: relative !important;
  z-index: 2 !important;
}

.hero.location-hero h1 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}

.hero.location-hero .divider {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  line-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.hero.location-hero .divider-shape {
  height: 50px !important;
  display: block !important;
  fill: #ffffff !important;
}

@media (max-width: 768px) {
  .hero.location-hero {
    padding: 55px 15px 65px 15px !important;
  }
  .hero.location-hero .hero-content {
    margin: 10px auto !important;
  }
  .hero.location-hero .divider-shape {
    height: 38px !important;
  }
}

