/* =========================================================
   TOP BAR LAYOUT: DEP (left) + Controls (right, 3 rows)
   ========================================================= */

.wellpads-topbar.map-view-active .wellpads-topbar-right {
  flex: 0 0 100%;
}

.wellpads-topbar {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto 25px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 0 15px;
}

.wellpads-topbar-left {
  flex: 0 0 48%;
}

.wellpads-topbar-right {
  flex: 0 0 52%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 0;
}

.topbar-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.topbar-row button {
	margin: 0 !important;
}
.topbar-row-filters .filter-item {
  min-width: 220px;
}

.topbar-row-filters h2 {
  font-size: 16px;
  margin: 0 0 6px 5px;
  font-weight: 600;
}

.topbar-row-filters select {
  background-color: #03384F;
  border: none;
  height: 50px;
  width: 220px;
  padding-left: 10px;
  font-size: 14px;
  color: #fff;
  letter-spacing: 1px;
  border-radius: 4px;
  margin: 0;
	text-align: center;
}

.topbar-row-buttons a.button,
.topbar-row-buttons button,
.topbar-row-toggle button {
  appearance: none;
  -webkit-appearance: none;

  height: 50px;
  line-height: 50px;
  padding: 0 20px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: none;

  background-color: #03384f;
  color: #fff;
  border: none;
  border-radius: 4px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  min-width: 220px;
  cursor: pointer;
}

/* Toggles can be narrower if you want */
.topbar-row-toggle button {
  min-width: 120px;
}

/* Active/hover (same as before) */
#toggleGrid.active,
#toggleMap.active {
  background-color: #168BBD;
}

#toggleGrid:hover,
#toggleMap:hover {
  background-color: #106488;
}


/* =========================================================
   DEP PINNED CARD STYLING (match grid card)
   ========================================================= */

.wellpads-dep ul {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.wellpads-dep .wellpad-dep-item {
  width: 436px;              
  margin: 15px;              
  position: relative;        
  border-radius: 25px;       
  background-color: #FEF3E3; 
  font-size: 16px;           
  z-index: 600;
  overflow: hidden;          
  border: none;              
}


.wellpads-dep .featured-thumb,
.wellpads-dep .featured-thumb.clearfix {
  padding: 0 !important;
  margin: 0 !important;
}

.wellpads-dep img {
  width: 100%;
  height: 260px;             
  object-fit: cover;
  object-position: right;
  display: block;
  border-radius: 25px 25px 0 0; 
}

.wellpads-dep .wellpadsimg {
  position: relative; 
}
.wellpads-dep .status {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 200px;
  height: 44px;
  background: #FEF3E3;       
  border-radius: 12px 0 0 0;
  clip-path: path('M 0 0 L 160 0 C 185 2, 175 35, 200 39 L 0 40 z');
  font-size: 14px;           
  padding: 14px 30px 4px 20px;
  font-weight: 700;         
}
.wellpads-dep .wellpadstext {
  padding: 20px;
  line-height: 32px;
}
.wellpads-dep h2 {
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 2px;
}

/* =========================================================
   MAIN WELL PADS GRID
   ========================================================= */

.wellpads {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto 80px;
  position: relative;
  z-index: 200;
}

.wellpads ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style-type: none !important;
}

.wellpads li {
  display: inline-block;
  width: 436px;
  margin: 15px;
  position: relative;
  border-radius: 25px;
  background-color: #EDF5F9;
  font-size: 16px;
  z-index: 600;
}

.comingsoon {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 700;
}

.wellpads h2 {
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 2px;
}

.wellpads h2 span {
  font-size: 22px;
}
.wellpads img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: right;
  display: block;
  border-radius: 25px 25px 0 0;
}

.wellpadsimg {
  position: relative;
}

.wellpadstext {
  padding: 20px;
  line-height: 32px;
}

.wellpadstext a.green {
  font-weight: 700;
}

.wellpads .status {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 200px;
  height: 44px;
  background: #EDF5F9;
  border-radius: 12px 0 0 0;
  clip-path: path('M 0 0 L 160 0 C 185 2, 175 35, 200 39 L 0 40 z');
  font-size: 14px;
  padding: 14px 30px 4px 20px;
  font-weight: 700;
}


/* =========================================================
   SINGLE WELL PAD PAGE
   ========================================================= */

.wellsingle {
  max-width: 1200px;
  width: 100%;
  margin: 25px auto 0;
}

.wellsingleimg {
  margin: 50px auto;
}

.wellsingleimg img {
  max-height: 400px;
  height: 100%;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.wellssinglebtm {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.wellssinglebtm h2 {
  font-size: 18px;
  margin-bottom: 2px;
  text-decoration: underline;
  text-transform: none !important;
}

.wellstrips a {
  display: block;
}

.wellssinglebtm .featured-thumb {
  display: none !important;
}

.wellssinglebtm .blog-entry-title {
  display: none !important;
}


/* =========================================================
   GOOGLE MAP + INFO WINDOW
   ========================================================= */

.gm-style-iw img {
  width: 100px;
  height: auto;
  margin-top: 10px;
}

.gm-style-iw a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.gm-style-iw a:hover {
  text-decoration: underline;
}

.gm-style-iw .disabled-link {
  color: #8e9aa3;
  opacity: .8;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

@keyframes jump {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.marker-hover {
  animation: jump 0.5s ease-in-out;
}

/* Map stacking */
#wellpadMap {
  position: relative;
  z-index: 1;
}

.wellmapsize {
  height: 800px;
  max-width: 1400px;
  margin: 0 auto 100px;
}


/* =========================================================
   COMING SOON STYLING
   ========================================================= */

.wellpads li.is-coming-soon {
  filter: none;
  opacity: 1;
}

.wellpads li.is-coming-soon a {
  pointer-events: none;
  cursor: default;
}

.wellpads li.is-coming-soon .comingsoon {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 700;
  border-radius: 25px;
  background: rgba(255,255,255,0.6);
  display: none !important;
}

.wellpads li.is-coming-soon .disabled-link {
  color: #8e9aa3;
  opacity: .8;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  font-weight: 600;
}

.wellpadstext .disabled-link.green {
  font-weight: 700;
}


/* =========================================================
   MAP LEGEND
   ========================================================= */

.map-legend {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.3;
  margin: 10px;
}

.map-legend .legend-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.map-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  user-select: none;
}

.map-legend .legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.2);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .wellpads-topbar {
    flex-direction: column;
  }

  .wellpads-topbar-left,
  .wellpads-topbar-right {
    flex: 1 1 100%;
    padding-right: 0;
  }

  .topbar-row {
    justify-content: flex-start;
  }

  .topbar-row-filters .filter-item,
  .topbar-row-buttons a.button,
  .topbar-row-buttons button,
  .topbar-row-toggle button {
    min-width: 100%;
    width: 100%;
  }
}
