:root {
  --port-blue: #0466c8;
  --port-blue-dark: #023e7d;
  --wave-cyan: #00b4d8;
  --sun: #ffb703;
  --coral: #ff6b35;
  --leaf: #2a9d8f;
  --ink: #17202a;
  --muted: #5c6f82;
  --paper: #fffdf7;
  --mist: #eef9fb;
  --line: rgba(23, 32, 42, 0.1);
  --shadow: 0 18px 50px rgba(2, 62, 125, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: "Noto Sans TC", "Segoe UI", Arial, sans-serif;
  background: var(--paper);
}

a {
  text-decoration: none;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 32px rgba(2, 62, 125, 0.1);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  color: var(--port-blue-dark);
  line-height: 1;
}

.navbar-brand small {
  display: block;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--port-blue), var(--leaf));
  border-radius: 50%;
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--port-blue);
}

.language-select {
  width: 82px;
  border-color: rgba(4, 102, 200, 0.25);
  color: var(--port-blue-dark);
  font-weight: 800;
}

.btn {
  border-radius: 999px;
  font-weight: 800;
}

.btn-sun {
  color: #2a1a00;
  background: var(--sun);
  border-color: var(--sun);
  box-shadow: 0 12px 26px rgba(255, 183, 3, 0.28);
}

.btn-sun:hover,
.btn-sun:focus {
  color: #2a1a00;
  background: #ffc72c;
  border-color: #ffc72c;
}

.btn-outline-port {
  color: var(--port-blue-dark);
  border-color: rgba(4, 102, 200, 0.35);
  background: #fff;
}

.btn-outline-port:hover,
.btn-outline-port:focus,
.btn-outline-port.active {
  color: #fff;
  background: var(--port-blue);
  border-color: var(--port-blue);
}

.hero-section {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/%E6%A3%A7%E4%BA%8C%E5%BA%AB.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 62, 125, 0.88), rgba(4, 102, 200, 0.55) 48%, rgba(255, 107, 53, 0.36)),
    linear-gradient(0deg, rgba(23, 32, 42, 0.74), rgba(23, 32, 42, 0.04) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-section h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 1.04;
  font-weight: 950;
  margin: 1rem 0;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.arrival-panel {
  margin-left: auto;
  max-width: 430px;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.arrival-head {
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quick-tile {
  display: grid;
  gap: 0.5rem;
  min-height: 118px;
  place-items: center;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.quick-tile:hover,
.quick-tile:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}

.quick-tile i {
  color: var(--sun);
  font-size: 1.8rem;
}

.section-band {
  padding: 1.35rem 0;
}

.stats-band {
  background: var(--port-blue-dark);
}

.stat-item {
  display: grid;
  gap: 0.2rem;
  min-height: 94px;
  place-items: center;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-item strong {
  color: var(--sun);
  font-size: 2rem;
  line-height: 1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.section-padding {
  padding: 6rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.detail-panel h2,
.media-section h2,
.feedback-section h2 {
  color: var(--port-blue-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
  margin: 0.45rem 0 0.65rem;
}

.section-heading p,
.detail-panel p,
.media-section p,
.feedback-section p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.6rem;
}

.shop-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.filter-box,
.feedback-form,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-box {
  padding: 1.2rem;
}

.filter-box h3 {
  color: var(--port-blue-dark);
  font-size: 1.2rem;
  font-weight: 950;
  margin-bottom: 1rem;
}

.filter-group {
  display: grid;
  gap: 0.65rem;
}

.filter-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.9rem;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(4, 102, 200, 0.16);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.filter-pill i {
  color: var(--port-blue);
}

.filter-pill.active {
  color: #fff;
  background: var(--port-blue);
  border-color: var(--port-blue);
}

.filter-pill.active i {
  color: var(--sun);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.result-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--port-blue-dark);
  font-weight: 900;
}

.search-box {
  max-width: 360px;
}

.search-box .input-group-text,
.search-box .form-control {
  border-color: rgba(4, 102, 200, 0.16);
}

.shop-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(2, 62, 125, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover {
  box-shadow: 0 22px 52px rgba(2, 62, 125, 0.18);
  transform: translateY(-5px);
}

.shop-image {
  position: relative;
  min-height: 196px;
  background-position: center;
  background-size: cover;
}

.shop-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.02) 58%);
}

.shop-distance {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 1;
  color: #fff;
  background: rgba(4, 102, 200, 0.92);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.shop-body {
  padding: 1.1rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--port-blue-dark);
  background: var(--mist);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.shop-body h3 {
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 950;
  margin: 0.9rem 0 0.4rem;
}

.coupon-line {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: #9a4a00;
  font-weight: 900;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.service-row span,
.service-icons span,
.video-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 32px;
  color: var(--port-blue-dark);
  border: 1px solid rgba(4, 102, 200, 0.14);
  border-radius: 999px;
  background: #f8fdff;
  padding: 0.24rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.map-section {
  background:
    linear-gradient(180deg, #eef9fb 0%, #fffdf7 100%);
}

.map-heading {
  align-items: center;
}

.map-actions,
.map-toolbar,
.map-layer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.location-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  color: var(--port-blue-dark);
  border: 1px solid rgba(4, 102, 200, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.location-status.success {
  color: #116149;
  border-color: rgba(42, 157, 143, 0.28);
  background: rgba(42, 157, 143, 0.12);
}

.location-status.warning {
  color: #8a4b00;
  border-color: rgba(255, 183, 3, 0.36);
  background: rgba(255, 183, 3, 0.18);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.3rem;
  align-items: stretch;
}

.map-shell,
.map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-shell {
  overflow: hidden;
}

.map-toolbar {
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.map-layer-btn {
  min-height: 38px;
  color: var(--port-blue-dark);
  border: 1px solid rgba(4, 102, 200, 0.16);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.78rem;
  font-weight: 900;
}

.map-layer-btn.active {
  color: #fff;
  background: var(--port-blue);
  border-color: var(--port-blue);
}

.interactive-map {
  min-height: 560px;
  width: 100%;
  background: #dff3f8;
}

.leaflet-container {
  font-family: "Noto Sans TC", "Segoe UI", Arial, sans-serif;
}

.map-marker-pin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.28);
  transform: rotate(-45deg);
}

.map-marker-pin i {
  transform: rotate(45deg);
}

.map-marker-pin.shop {
  background: var(--coral);
}

.map-marker-pin.attraction {
  background: var(--port-blue);
}

.map-marker-pin.user {
  background: var(--leaf);
}

.map-marker-pin.active {
  background: var(--sun);
  color: #2a1a00;
  transform: rotate(-45deg) scale(1.14);
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  min-height: 560px;
}

.selected-place-card {
  padding: 1rem;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(2, 62, 125, 0.95), rgba(42, 157, 143, 0.88));
}

.selected-place-card h3 {
  font-size: 1.35rem;
  font-weight: 950;
  margin: 0.45rem 0;
}

.selected-place-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.selected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.selected-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.nearby-panel-head h3 {
  color: var(--port-blue-dark);
  font-size: 1.28rem;
  font-weight: 950;
  margin: 0.4rem 0 0;
}

.nearby-list {
  display: grid;
  gap: 0.75rem;
  overflow: auto;
}

.nearby-item {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(4, 102, 200, 0.12);
  border-radius: 8px;
  background: #f8fdff;
}

.nearby-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.nearby-item h4 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  margin: 0;
}

.nearby-distance {
  color: var(--coral);
  white-space: nowrap;
  font-weight: 950;
}

.nearby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail-section {
  padding: 5rem 0;
  background:
    linear-gradient(90deg, rgba(238, 249, 251, 0.95), rgba(255, 253, 247, 0.92)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Kaohsiung%20Liuhe%20Night%20Street%20Market%202.jpg") center/cover fixed;
}

.detail-photo {
  min-height: 520px;
  height: 100%;
  border-radius: 8px;
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Kaohsiung%20Liuhe%20Night%20Street%20Market%202.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.detail-panel {
  height: 100%;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.detail-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.detail-list div {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--ink);
  font-weight: 850;
}

.detail-list i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #fff;
  border-radius: 50%;
  background: var(--coral);
}

.service-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.attractions-section {
  background: #fff;
}

.attraction-card {
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.attraction-photo {
  min-height: 230px;
  background-position: center;
  background-size: cover;
}

.attraction-body {
  padding: 1.15rem;
}

.attraction-body h3 {
  color: var(--port-blue-dark);
  font-size: 1.25rem;
  font-weight: 950;
}

.nearby-shop {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed rgba(255, 107, 53, 0.42);
}

.nearby-shop strong {
  display: block;
  color: var(--coral);
}

.media-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(2, 62, 125, 0.95), rgba(42, 157, 143, 0.9)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Sizihwan%20sunset%202.JPG") center/cover;
}

.media-section h2,
.media-section p {
  color: #fff;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.video-tags span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feedback-section {
  background: linear-gradient(180deg, #fffdf7 0%, #eef9fb 100%);
}

.reward-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  color: #2a1a00;
  border-radius: 8px;
  background: rgba(255, 183, 3, 0.34);
  font-weight: 900;
}

.feedback-form {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.form-control,
.form-select {
  min-height: 46px;
  border-radius: 8px;
}

.form-label {
  font-weight: 900;
}

.site-footer {
  padding: 2.2rem 0;
  color: #fff;
  background: var(--port-blue-dark);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0.35rem 0 0;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.7);
}

.coupon-modal {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.qr-box {
  display: grid;
  place-items: center;
  width: min(260px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  color: var(--port-blue-dark);
  border: 10px solid #fff;
  outline: 1px solid rgba(4, 102, 200, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(45deg, #fff 25%, transparent 25% 50%, #fff 50% 75%, transparent 75%) 0 0 / 24px 24px,
    var(--mist);
}

.qr-box i {
  font-size: 7rem;
}

.coupon-modal h3 {
  color: var(--port-blue-dark);
  font-size: 1.4rem;
  font-weight: 950;
}

.coupon-code {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  color: #2a1a00;
  background: var(--sun);
  border-radius: 999px;
  font-weight: 950;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding-top: 7.5rem;
  }

  .hero-section h1 {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .arrival-panel {
    max-width: none;
    margin-top: 2.2rem;
  }

  .shop-layout {
    display: block;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    max-width: none;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-actions {
    width: 100%;
  }

  .map-actions .btn {
    flex: 1 1 210px;
  }

  .interactive-map,
  .map-panel {
    min-height: 460px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand strong {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .language-select {
    width: 70px;
  }

  .hero-actions .btn,
  .shop-actions .btn {
    width: 100%;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .map-layer-controls,
  .map-toolbar .btn,
  .nearby-actions .btn {
    width: 100%;
  }

  .map-layer-btn {
    flex: 1 1 auto;
  }

  .interactive-map {
    min-height: 380px;
  }

  .detail-photo {
    min-height: 320px;
  }
}
