/*
 * Da Vat Hy Lures — Phase 23C.4
 * Waters Workflow Simplification
 *
 * Selected water → change/add or Fish Here → compare.
 * Existing water data/services remain unchanged.
 */

body.dvh21p2-returning:not(.dvh23b7-fi-focused) #my-waters:target{
  display:block!important;
}

/* Broad warm section: closer to the Home page rhythm, without card stacking. */
body.dvh23b2-pocket-shell .dvh23c4-waters{
  display:grid;
  gap:16px;
  padding:26px max(28px,calc((100vw - 1740px)/2 + 28px));
  border:0;
  border-radius:0;
  background:#f5f0e5;
  color:#0b392d;
  box-shadow:none;
}

body.dvh23b2-pocket-shell .dvh23c4-waters-head{
  display:block;
}

body.dvh23b2-pocket-shell .dvh23c4-waters-head .eyebrow{
  color:#c88713;
}
body.dvh23b2-pocket-shell .dvh23c4-waters-head h3{
  margin:4px 0 5px;
  color:#0b392d;
  font-family:Georgia,serif;
  font-size:clamp(1.55rem,2.2vw,2.35rem);
  line-height:1.04;
}
body.dvh23b2-pocket-shell .dvh23c4-waters-head p{
  max-width:760px;
  color:#68756f;
  font-size:.78rem;
  line-height:1.45;
}

/* One selected-water bar owns the change/add + Fish Here decisions. */
body.dvh23b2-pocket-shell .dvh23c4-current-water{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:14px 0;
  border-top:1px solid rgba(12,47,37,.12);
  border-bottom:1px solid rgba(12,47,37,.12);
}

body.dvh23b2-pocket-shell .dvh23c4-current-water>div{
  display:grid;
  gap:2px;
}
body.dvh23b2-pocket-shell .dvh23c4-current-water small,
body.dvh23b2-pocket-shell .dvh23c4-saved-preview>small{
  color:#b77b12;
  font-size:.60rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.dvh23b2-pocket-shell .dvh23c4-current-water strong{
  color:#0b392d;
  font-size:1.08rem;
  line-height:1.2;
}
body.dvh23b2-pocket-shell .dvh23c4-current-water span{
  color:#68756f;
  font-size:.67rem;
}

body.dvh23b2-pocket-shell .dvh23c4-current-water nav{
  display:flex;
  gap:7px;
  align-items:center;
}
body.dvh23b2-pocket-shell .dvh23c4-current-water nav a{
  min-height:39px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border:1px solid rgba(12,47,37,.18);
  border-radius:4px;
  background:#fffdf8;
  color:#0b4938;
  font-size:.68rem;
  font-weight:900;
  text-decoration:none;
}
body.dvh23b2-pocket-shell .dvh23c4-current-water nav a.is-primary{
  border-color:#06452f;
  background:#06452f;
  color:#fff;
}

/* Saved waters are context, not another set of competing CTAs. */
body.dvh23b2-pocket-shell .dvh23c4-saved-preview{
  display:grid;
  gap:7px;
}
body.dvh23b2-pocket-shell .dvh23c4-saved-preview .dvh23b5-water-chips{
  gap:6px;
}
body.dvh23b2-pocket-shell .dvh23c4-saved-preview .dvh23b5-water-chips span{
  padding:6px 9px;
  border:1px solid rgba(12,47,37,.14);
  border-radius:4px;
  background:#fffdf8;
  color:#0b4938;
  font-size:.67rem;
}
body.dvh23b2-pocket-shell .dvh23c4-no-waters{
  color:#68756f;
}

/* One decision row replaces the old three-card action stack. */
body.dvh23b2-pocket-shell .dvh23c4-compare{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:66px;
  padding:12px 14px;
  border-top:1px solid rgba(12,47,37,.12);
  border-bottom:3px solid #e6a821;
  background:#fffdf8;
  color:#0b392d;
  text-decoration:none;
}
body.dvh23b2-pocket-shell .dvh23c4-compare span{
  display:grid;
  gap:2px;
}
body.dvh23b2-pocket-shell .dvh23c4-compare small{
  color:#b77b12;
  font-size:.58rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.dvh23b2-pocket-shell .dvh23c4-compare strong{
  font-size:.92rem;
}
body.dvh23b2-pocket-shell .dvh23c4-compare em{
  color:#68756f;
  font-size:.64rem;
  font-style:normal;
  line-height:1.35;
}
body.dvh23b2-pocket-shell .dvh23c4-compare b{
  font-size:1rem;
}
body.dvh23b2-pocket-shell .dvh23c4-compare.is-add{
  border-bottom-color:rgba(12,47,37,.18);
}

/* ---------------------------------------------------------------
   Manager-only mode
   The old manager lives inside Fishing Conditions. When opened from
   Waters, suppress the unrelated Fishing Conditions content.
   --------------------------------------------------------------- */
body.dvh23c4-water-manager-open details[data-y1-detail="fishing"]{
  display:block!important;
  margin-top:0!important;
  border:0!important;
  background:#f5f0e5!important;
}
body.dvh23c4-water-manager-open details[data-y1-detail="fishing"]>summary{
  display:none!important;
}
body.dvh23c4-water-manager-open details[data-y1-detail="fishing"] .dvh21y1-fishing-wrap{
  padding:0!important;
}
body.dvh23c4-water-manager-open [data-fishing-conditions]{
  padding:0!important;
  border:0!important;
  background:#f5f0e5!important;
  box-shadow:none!important;
}
body.dvh23c4-water-manager-open [data-fishing-conditions]>*:not([data-location-panel]){
  display:none!important;
}
body.dvh23c4-water-manager-open [data-location-panel]{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:24px max(28px,calc((100vw - 1500px)/2 + 28px))!important;
  border:0!important;
  border-radius:0!important;
  background:#f5f0e5!important;
  box-shadow:none!important;
}

/* Cleaner manager tabs/cards, still the existing functional manager. */
body.dvh23c4-water-manager-open .dvh21n-location-head{
  margin-bottom:8px!important;
}
body.dvh23c4-water-manager-open .dvh21n4-location-tabs{
  margin-top:12px!important;
  border-radius:5px!important;
}
body.dvh23c4-water-manager-open .dvh21n4-location-tabs button{
  border-radius:4px!important;
}
body.dvh23c4-water-manager-open .dvh21n4-water-card{
  border-radius:5px!important;
  box-shadow:none!important;
}

/* Comparison empty-state "Manage Fishing Waters" will now use the same manager flow. */
body.dvh23b2-pocket-shell .dvh21p3-empty a{
  cursor:pointer;
}

@media(max-width:760px){
  body.dvh23b2-pocket-shell .dvh23c4-waters{
    gap:13px;
    padding:18px 16px 20px;
  }

  body.dvh23b2-pocket-shell .dvh23c4-waters-head h3{
    font-size:1.36rem;
    white-space:nowrap;
  }
  body.dvh23b2-pocket-shell .dvh23c4-waters-head p{
    font-size:.68rem;
  }

  body.dvh23b2-pocket-shell .dvh23c4-current-water{
    grid-template-columns:1fr;
    gap:10px;
    padding:11px 0;
  }
  body.dvh23b2-pocket-shell .dvh23c4-current-water nav{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  body.dvh23b2-pocket-shell .dvh23c4-current-water nav a{
    min-width:0;
    min-height:38px;
    padding:7px 8px;
    text-align:center;
    font-size:.64rem;
  }
  body.dvh23b2-pocket-shell .dvh23c4-current-water nav a:only-child{
    grid-column:1/-1;
  }

  body.dvh23b2-pocket-shell .dvh23c4-saved-preview .dvh23b5-water-chips{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.dvh23b2-pocket-shell .dvh23c4-saved-preview .dvh23b5-water-chips span{
    min-width:0;
    text-align:center;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  body.dvh23b2-pocket-shell .dvh23c4-compare{
    min-height:60px;
    padding:10px 11px;
  }

  body.dvh23c4-water-manager-open [data-location-panel]{
    padding:16px 12px 20px!important;
  }
}
