﻿/* Discover page: search bar, colour-coded areas, integrated area map */
.disc-tools {
  margin-bottom: 18px;
}
.disc-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #ded5bd;
  border-radius: 999px;
  padding: 4px 8px 4px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: border-color .15s, box-shadow .15s;
}
.disc-search:focus-within {
  border-color: #117a82;
  box-shadow: 0 0 0 4px rgba(17, 122, 130, .12);
}
.disc-search svg {
  flex: none;
  color: #8a9ba0;
}
.disc-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 10px;
  font-size: 15px;
  min-width: 0;
}
.disc-clear {
  border: 0;
  background: #f1ece0;
  color: #6b6353;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.disc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 6px;
}
.disc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e2dac4;
  background: #fffdf6;
  color: #3d3a30;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .15s;
}
.disc-chip:hover {
  border-color: #b9ad8c;
}
.disc-chip.is-on {
  border-color: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
  font-weight: 600;
}
.disc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.disc-chip .disc-n {
  color: #9a917e;
  font-size: 12px;
}
.disc-hint {
  color: #7d7563;
  font-size: 12.5px;
  margin: 2px 0 0;
}
.disc-status {
  font-size: 13px;
  color: #7d7563;
  margin: 4px 0 0;
}
.disc-none {
  border: 1px dashed #d8cdb2;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  color: #7d7563;
  background: #fffdf6;
}

/* map card */
.disc-map {
  position: relative;
  border: 1px solid #e4dbc3;
  border-radius: 20px;
  background: linear-gradient(160deg, #fdf9ee, #f0f7f2 70%, #e7f2ee);
  padding: 16px 16px 12px;
  margin: 18px 0 26px;
  overflow: hidden;
}
.disc-map-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  color: #0c5b63;
  font-size: 15px;
  margin-bottom: 6px;
}
.disc-map-head small {
  font-weight: 500;
  color: #7d7563;
  font-size: 12px;
}
.disc-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.dm-sea {
  fill: none;
  stroke: #cfe0dc;
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  opacity: .8;
}
.dm-isle {
  fill: #fbf2dc;
  stroke: #cdbb93;
  stroke-width: 2.5;
}
.dm-inner {
  fill: #f4ead2;
  stroke: none;
}
.dm-area {
  cursor: pointer;
}
.dm-area circle.pin {
  stroke: #fff;
  stroke-width: 2.5;
}
.dm-area text {
  font-size: 13px;
  font-weight: 700;
  fill: #33414b;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .92);
  stroke-width: 3px;
}
.dm-area .dm-soft {
  fill: #ffffff;
  opacity: 0;
  transition: opacity .15s;
}
.dm-area:hover .dm-soft,
.dm-area.is-on .dm-soft {
  opacity: .55;
}
.dm-area.is-on circle.pin {
  stroke-width: 4px;
}
.dm-label-line {
  stroke: #9fb0a8;
  stroke-width: 1;
  opacity: .7;
}

/* colour-coded cards */
.sd-card[data-area] {
  border-left: 4px solid transparent;
  transition: transform .15s, box-shadow .15s;
}
.sd-card[data-area]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}
.area-haikou { --area: #2E86AB; }
.area-wanning { --area: #D9A03C; }
.area-sanya { --area: #1E9E8E; }
.area-houhai { --area: #E2703A; }
.sd-card.area-haikou { border-left-color: #2E86AB; }
.sd-card.area-wanning { border-left-color: #D9A03C; }
.sd-card.area-sanya { border-left-color: #1E9E8E; }
.sd-card.area-houhai { border-left-color: #E2703A; }


/* discover compact map banner + card colour-code tags (2026-09) */
.disc-minimap {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e4dbc3;
  border-radius: 16px;
  background: linear-gradient(120deg, #fdf9ee, #f0f7f2);
  padding: 8px 16px 8px 6px;
  margin: 0 0 20px;
}
.disc-minimap svg {
  width: 150px;
  height: auto;
  flex: none;
}
.disc-minimap-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.disc-minimap-txt strong {
  color: #0c5b63;
  font-size: 15px;
}
.disc-minimap-txt span {
  color: #7d7563;
  font-size: 12.5px;
}
.disc-minimap-txt a {
  color: #117a82;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 3px;
}
.disc-minimap-txt a:hover {
  text-decoration: underline;
}
.sd-card .card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tag);
  border: 1px solid var(--tag);
  background: #fffdf6;
  border-radius: 999px;
  padding: 3px 9px;
  margin: 0 0 7px;
}
.sd-card .card-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
@media (max-width: 640px) {
  .disc-minimap svg { display: none; }
}


/* provided Hainan map with area pins (2026-09) */
.disc-mapimg-wrap {
  border: 1px solid #e4dbc3;
  border-radius: 18px;
  background: #fffdf6;
  padding: 12px;
  margin: 0 0 22px;
}
.disc-mapimg-head {
  font-weight: 700;
  color: #0c5b63;
  font-size: 14.5px;
  margin-bottom: 8px;
}
.disc-mapimg {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}
.disc-mapimg img {
  width: 100%;
  height: auto;
  display: block;
}
.dm-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
}
.dm-pin i {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .18), 0 3px 8px rgba(0, 0, 0, .25);
  transition: box-shadow .15s, transform .15s;
}
.dm-pin:hover i,
.dm-pin.is-on i {
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .22), 0 4px 10px rgba(0, 0, 0, .3);
}
.dm-pin span {
  display: block;
  margin-top: 3px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d9d2bf;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #3a3а2e;
  padding: 1px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.disc-map-foot {
  margin: 10px 2px 0;
  font-size: 12.5px;
  text-align: right;
}
.disc-map-foot a {
  color: #117a82;
  font-weight: 600;
  text-decoration: none;
}
.disc-map-foot a:hover {
  text-decoration: underline;
}


/* discover map: detailed Hainan map as a wide banner (2026-09) */
.disc-banner {
  display: flex;
  gap: 0;
  border: 1px solid #e4dbc3;
  border-radius: 20px;
  overflow: hidden;
  background: #e9f2ef;
  margin: 0 0 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}
.disc-stage {
  position: relative;
  flex: 1.35;
  min-width: 0;
  background: #dfece8;
}
.disc-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.dm-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
}
.dm-pin i {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .18), 0 3px 8px rgba(0, 0, 0, .25);
  transition: box-shadow .15s, transform .15s;
}
.dm-pin:hover i,
.dm-pin.is-on i {
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .22), 0 4px 10px rgba(0, 0, 0, .3);
}
.dm-pin span {
  display: block;
  margin-top: 3px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d9d2bf;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #3a3a2e;
  padding: 1px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.disc-side {
  flex: 1;
  min-width: 280px;
  background: linear-gradient(150deg, #fdf9ee, #eef5f1);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.disc-side-kicker {
  color: #117a82;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.disc-side-title {
  margin: 6px 0 8px;
  color: #0c5b63;
  font-size: 26px;
  letter-spacing: -.02em;
}
.disc-side-txt {
  color: #4f6b63;
  font-size: 14px;
  margin: 0 0 14px;
}
.dm-legend-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dm-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: #fffdf6;
  color: #3d3a30;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.dm-legend:hover {
  border-color: var(--c, #ccc);
}
.dm-legend.is-on {
  border-color: var(--c, #ccc);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
  font-weight: 600;
}
.dm-legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dm-legend .dm-n {
  margin-left: auto;
  color: #9a917e;
  font-size: 12px;
}
.disc-map-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  text-align: right;
}
.disc-map-foot a {
  color: #117a82;
  font-weight: 600;
  text-decoration: none;
}
.disc-attrib {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: #9a917e;
}
@media (max-width: 860px) {
  .disc-banner { flex-direction: column; }
  .disc-side { padding: 20px; }
}
