/* Map legend */
.fti-map-legend {
  margin-top: 8px;
  font-size: 14px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.fti-map-legend span {
  display: inline-flex;
  align-items: center;
}

.fti-map-legend img {
  width: 12px;
  height: auto;
  vertical-align: middle;
  margin-right: 4px;
}

/* Optional: hide legend on small screens */
@media (max-width: 600px) {
  .fti-map-legend {
    display: none;
  }
}


.fti-fisherman-icon svg {
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}

.fti-map-legend{
  margin-top:8px;
  font-size:14px;
  display:flex;
  gap:18px;
  align-items:center;
}
.fti-legend-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.fti-legend-icon{
  width:22px;
  height:22px;
  display:inline-block;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}

/* Inline SVG fisherman (same silhouette as your marker) */
.fti-legend-icon::before{
  content:"";
  display:block;
  width:22px;
  height:22px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

/* Bay (blue) */
.fti-legend-bay::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='%231e88e5'><circle cx='22' cy='16' r='6'/><path d='M14 58c0-10 2-20 6-27 2-4 6-6 10-6s8 2 10 6c4 7 6 17 6 27h-8c0-8-1-15-3-20-1-3-3-4-5-4s-4 1-5 4c-2 5-3 12-3 20h-8z'/><path d='M28 24c10-10 22-15 34-16 1 0 2 1 2 2s-1 2-2 2c-11 1-22 6-31 15-1 1-2 1-3 0s-1-2 0-3z'/><path d='M60 12c0 14-10 20-10 28 0 6 4 8 4 10 0 2-2 4-5 4-3 0-6-2-6-6 0-2 2-4 4-4 1 0 2 1 2 2 0 2 1 3 2 3s2-1 2-2c0-2-4-4-4-11 0-10 11-16 11-26 0-1 1-2 2-2s2 1 2 2z'/></g></svg>");
}

/* Surf (orange) */
.fti-legend-surf::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='%23fb8c00'><circle cx='22' cy='16' r='6'/><path d='M14 58c0-10 2-20 6-27 2-4 6-6 10-6s8 2 10 6c4 7 6 17 6 27h-8c0-8-1-15-3-20-1-3-3-4-5-4s-4 1-5 4c-2 5-3 12-3 20h-8z'/><path d='M28 24c10-10 22-15 34-16 1 0 2 1 2 2s-1 2-2 2c-11 1-22 6-31 15-1 1-2 1-3 0s-1-2 0-3z'/><path d='M60 12c0 14-10 20-10 28 0 6 4 8 4 10 0 2-2 4-5 4-3 0-6-2-6-6 0-2 2-4 4-4 1 0 2 1 2 2 0 2 1 3 2 3s2-1 2-2c0-2-4-4-4-11 0-10 11-16 11-26 0-1 1-2 2-2s2 1 2 2z'/></g></svg>");
}

/* Jetty (slate/grey) */
.fti-legend-jetty::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='%23546e7a'><circle cx='22' cy='16' r='6'/><path d='M14 58c0-10 2-20 6-27 2-4 6-6 10-6s8 2 10 6c4 7 6 17 6 27h-8c0-8-1-15-3-20-1-3-3-4-5-4s-4 1-5 4c-2 5-3 12-3 20h-8z'/><path d='M28 24c10-10 22-15 34-16 1 0 2 1 2 2s-1 2-2 2c-11 1-22 6-31 15-1 1-2 1-3 0s-1-2 0-3z'/><path d='M60 12c0 14-10 20-10 28 0 6 4 8 4 10 0 2-2 4-5 4-3 0-6-2-6-6 0-2 2-4 4-4 1 0 2 1 2 2 0 2 1 3 2 3s2-1 2-2c0-2-4-4-4-11 0-10 11-16 11-26 0-1 1-2 2-2s2 1 2 2z'/></g></svg>");
}

/* Best Spots Today glow ring */
.fti-best-today {
  position: relative;
}

.fti-best-today::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -60%);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.35), 0 0 18px rgba(255, 215, 0, 0.85);
  pointer-events: none;
}

.fti-best-today::after {
  content: "BEST";
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.95);
  color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  pointer-events: none;
}

/* Keep your SVG crisp */
.fti-fisherman-icon svg {
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}

/* Why it's best tooltip */
.leaflet-tooltip.fti-why-best-tooltip {
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 13px;
  line-height: 1.35;
}

.leaflet-tooltip.fti-why-best-tooltip strong {
  font-weight: 700;
}

.fti-gear-list { margin-top: 6px; }
.fti-gear-row { margin-top: 6px; }
.fti-gear-title { font-weight: 600; display:flex; gap:8px; align-items:baseline; }
.fti-gear-title a { text-decoration: underline; }
.fti-gear-note { font-size: 12px; opacity: 0.85; margin-top: 2px; }

.fti-you-dot{
  width:14px;
  height:14px;
  border-radius:999px;
  background:#1e88e5;
  box-shadow:0 0 0 4px rgba(30,136,229,.25);
  border:2px solid #fff;
}

.fti-nearest-banner{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid #e6e6e6;
  border-radius:12px;
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  font-size:14px;
}

.fti-nearest-banner a{
  font-weight:700;
  text-decoration: underline;
}

.fti-nearest-banner .fti-nearest-muted{
  opacity:.75;
  font-weight:500;
  margin-left:6px;
}

/*---------*/
.fti-closest-spots{
  margin-top:10px;
  padding:12px;
  border:1px solid #e6e6e6;
  border-radius:12px;
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

.fti-closest-title{
  font-weight:800;
  margin-bottom:8px;
  font-size:14px;
}

.fti-closest-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.fti-closest-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:14px;
  line-height:1.25;
}

.fti-closest-item a{
  font-weight:700;
  text-decoration: underline;
}

.fti-closest-dist{
  opacity:.75;
  white-space:nowrap;
}

.fti-gulf-map,
.fti-gulf-map .leaflet-container {
  width: 100% !important;
  height: 60vh !important;
  min-height: 340px !important;
  outline: 4px solid red !important; background: #eee !important;
}

/* ------------------------------------------------------------
   Fishing Game Plan Loading Overlay
   8/22/26
   ------------------------------------------------------------ */

#fti-loading-overlay {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);

    z-index: 999999;
}

.fti-loading-box {
    width: calc(100% - 40px);
    max-width: 420px;

    padding: 30px 35px;

    background: #ffffff;
    border-radius: 12px;

    text-align: center;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.30);
}

.fti-spinner {
    width: 48px;
    height: 48px;

    margin: 0 auto 18px;

    border: 5px solid #dddddd;
    border-top-color: #28a745;
    border-radius: 50%;

    animation: fti-spin 0.8s linear infinite;
}

@keyframes fti-spin {
    to {
        transform: rotate(360deg);
    }
}

.fti-loading-title {
    margin-bottom: 8px;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;

    color: #222222;
}

.fti-loading-message {
    font-size: 15px;
    line-height: 1.5;

    color: #555555;
}