.transport-page {
  --transport-blue: #365b73;
  --transport-blue-deep: #2f536a;
  --transport-text: #ffffff;
  --transport-soft: rgba(255, 255, 255, 0.84);
  --transport-bubble: rgba(205, 226, 235, 0.78);

  width: 100%;
  overflow: hidden;
  background: var(--transport-blue);
  color: var(--transport-text);
  font-family: inherit;
}

.transport-section {
  position: relative;
  width: 100%;
}

.transport-section-inner {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 72px));
  margin: 0 auto;
}

/* =========================
   Hero
========================= */

.transport-hero {
  height: 45vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.transport-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.transport-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(37, 138, 204, 0.08) 0%,
      rgba(37, 102, 145, 0.18) 46%,
      rgba(37, 77, 98, 0.38) 100%
    );
}

.transport-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 70px;
}

.transport-hero-en {
  margin-bottom: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.transport-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5.8vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}

/* =========================
   Shared UI
========================= */

.transport-section-heading h2,
.transport-title-box h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
}

.transport-section-heading p {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 900;
  line-height: 1.2;
}

.transport-title-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 34px;
  text-align: center;
}

.transport-title-box span {
  display: block;
  width: 92px;
  height: 1px;
  background: rgba(255, 255, 255, 0.78);
}

.transport-info-card {
  border-radius: 0;
  background: var(--transport-bubble);
  color: #31546a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 28px rgba(0, 0, 0, 0.08);
}

.transport-info-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.transport-feature-pill {
  min-height: 70px;
  padding: 14px 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  background: rgba(48, 86, 108, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.transport-feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.transport-feature-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.transport-feature-text {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: left;
}

/* =========================
   園區及周邊地圖
========================= */

.transport-map-overview {
  position: relative;
  padding: 125px 0 110px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--transport-blue);
  background-image:
    linear-gradient(
      180deg,
      rgba(48, 86, 108, 0.72),
      rgba(48, 86, 108, 0.78)
    ),
    url("../img/wave2.png"),
    url("../img/transport/bg-2.png");
  background-position:
    center top,
    center 72px,
    center top;
  background-size:
    cover,
    100vw auto,
    cover;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat;
}

.transport-map-inner {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 54px;
  align-items: center;
}

.transport-map-overview::before,
.transport-parking::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 210px;
  background: linear-gradient(180deg, var(--transport-blue) 0%, rgba(54, 91, 115, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.transport-map-overview::after,
.transport-parking::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  background: linear-gradient(0deg, var(--transport-blue) 0%, rgba(54, 91, 115, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.transport-section-heading-left {
  text-align: left;
  margin-bottom: 48px;
}

.transport-info-card-left {
  width: min(330px, 100%);
  padding: 28px 32px;
}

.transport-map-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.transport-aerial-card {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.transport-aerial-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   停車指南
========================= */

.transport-parking {
  padding: 70px 0 105px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(48, 86, 108, 0.74), rgba(48, 86, 108, 0.78)),
    url("../img/transport/bg-2.png") center top / cover no-repeat;
}

.transport-parking-map-wrap {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  margin: 0 auto 34px;
  background: rgba(255, 255, 255, 0.08);
}

/* 停車指南：左右淺藍色方格裝飾 */
.transport-parking-deco {
  position: absolute;
  top: 50%;
  height: 76px;
  background: rgba(155, 178, 197, 0.72);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* 左側方格：從地圖左側往螢幕左邊延伸 */
.transport-parking-deco-left {
  right: calc(100% + 42px);
  width: 50vw;
}

/* 右側方格：從地圖右側往螢幕右邊延伸 */
.transport-parking-deco-right {
  left: calc(100% + 42px);
  width: 50vw;
}

.transport-parking-map {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}

.transport-parking-map {
  display: block;
  width: 100%;
  height: auto;
}

.transport-feature-pill-wide {
  display: flex;
  width: min(800px, 100%);
  margin: 0 auto;
}

/* =========================
   大眾交通
========================= */

.transport-route {
  min-height: 820px;
  padding: 90px 0 120px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(40, 76, 98, 0.16), rgba(42, 80, 103, 0.34)),
    url("../img/transport/bg-shore.png") center / cover no-repeat;
}

.transport-route::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 230px;
  background: linear-gradient(180deg, var(--transport-blue) 0%, rgba(54, 91, 115, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.transport-route::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  background: linear-gradient(0deg, var(--transport-blue) 0%, rgba(54, 91, 115, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.transport-public-title {
  position: relative;
  z-index: 3;
  margin-bottom: 54px;
}

.transport-route-stage {
  position: relative;
  z-index: 2;

  width: min(100vw, 1440px);
  aspect-ratio: 1440 / 1490;
  margin: 0 auto;

  overflow: hidden;
  isolation: isolate;

  background-image: none !important;
}

.transport-route-bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center center;

  transform: none;
}

.transport-route-label {
  position: absolute;
  left: 0;
  top: 42px;
  z-index: 4;
  color: #fff;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.26);
}


.transport-route-two {
  margin-top: -80px;
}

/* =========================
   RWD
========================= */

@media (max-width: 1024px) {
  .transport-section-inner,
  .transport-map-inner {
    width: min(860px, calc(100% - 56px));
  }

  .transport-map-inner {
    gap: 38px;
  }

  .transport-route-stage {
    min-height: 560px;
  }
}

@media (max-width: 768px) {
  .transport-hero {
    height: 380px;
    min-height: 380px;
  }

  .transport-hero-content {
    padding-top: 76px;
  }

  .transport-hero-en {
    font-size: 15px;
  }

  .transport-section-inner,
  .transport-map-inner {
    width: calc(100% - 36px);
  }

  .transport-map-overview {
    padding: 95px 0 82px;
  }

  .transport-map-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .transport-section-heading-left {
    text-align: center;
    margin-bottom: 28px;
  }

  .transport-info-card-left {
    width: 100%;
  }

  .transport-aerial-card {
    aspect-ratio: 4 / 3;
  }

  .transport-title-box {
    gap: 12px;
  }

  .transport-title-box span {
    width: 52px;
  }

  .transport-title-box h2 {
    font-size: 34px;
  }

  .transport-parking {
    padding: 70px 0 85px;
  }

  .transport-feature-pill,
  .transport-feature-pill-wide {
    width: 100%;
    padding: 14px 22px;
    border-radius: 28px;
  }

  .transport-feature-text {
    font-size: 14px;
  }

  .transport-route {
    min-height: 640px;
    padding: 72px 0 92px;
  }

  .transport-route-stage {  
    width: 100vw;
    min-height: 480px;
    margin-left: 50%;
    transform: translateX(-50%);
    background-size: cover;
  }

  .transport-route-label {
    top: 28px;
    left: 10px;
  }

  .transport-route-two {
    margin-top: -50px;
  }
}

@media (max-width: 480px) {
  .transport-hero h1,
  .transport-section-heading h2 {
    font-size: 42px;
  }

  .transport-title-box h2 {
    font-size: 30px;
  }

  .transport-title-box span {
    width: 34px;
  }

  .transport-info-card {
    padding: 24px 22px;
  }

  .transport-info-card p {
    font-size: 14px;
    line-height: 1.85;
  }

  .transport-route-stage {
    min-height: 390px;
  }
}

/* =========================
   Transport guide tuning
   園區及周邊地圖 wave2 / 敘述文字放大
========================= */

.transport-map-overview {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* wave2：只出現在「園區及周邊地圖」區塊，不重複 */
.transport-wave {
  position: absolute;
  left: 50%;
  width: 100vw;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  opacity: 0.72;
  z-index: 1;
}

.transport-wave-map {
  top: 110px;
}

/* 保留上下漸淡在 wave 與內容之間，讓背景銜接自然 */
.transport-map-overview::before,
.transport-map-overview::after,
.transport-parking::before,
.transport-parking::after {
  z-index: 2;
}

.transport-map-inner,
.transport-parking .transport-section-inner {
  position: relative;
  z-index: 3;
}

/* 敘述文字放大 */
.transport-info-card p {
  font-size: 18px;
  line-height: 2.05;
  letter-spacing: 0.045em;
}

.transport-feature-text {
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.045em;
}

@media (max-width: 768px) {
  .transport-wave-map {
    top: 150px;
    width: 180vw;
    opacity: 0.62;
  }

  .transport-info-card p,
  .transport-feature-text {
    font-size: 16px;
    line-height: 1.95;
  }
}

@media (max-width: 480px) {
  .transport-wave-map {
    top: 170px;
    width: 230vw;
  }

  .transport-info-card p,
  .transport-feature-text {
    font-size: 15px;
    line-height: 1.9;
  }
}

/* =========================
   Requested tuning 2026-05
   1. 地圖放大 / 地址連結
   2. 停車圖放大
   3. planA / planB 改為背景圖並加入上下漸淡
========================= */

/* 地址 pill 改為可點擊連結，但保留原本視覺 */
.transport-feature-pill-link {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.transport-feature-pill-link:hover {
  transform: translateY(-2px);
  background: rgba(48, 86, 108, 0.78);
  border-color: rgba(255, 255, 255, 0.62);
}

/* 園區及周邊地圖：圖片在原卡片內放大 50% */
.transport-aerial-card img {
  transform: scale(1.5);
  transform-origin: center center;
}

/* 停車圖：容器從 640px 放大到 896px，等同放大 40%，不裁切圖片資訊 */
.transport-parking-map-wrap {
  width: min(896px, 100%);
}

/* plan 圖上下緣漸淡，讓圖面自然融入背景 */
.transport-route-stage::before,
.transport-route-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}

.transport-route-stage::before {
  top: 0;
  height: 18%;
  background: linear-gradient(
    180deg,
    var(--transport-blue) 0%,
    rgba(54, 91, 115, 0.82) 34%,
    rgba(54, 91, 115, 0.36) 68%,
    rgba(54, 91, 115, 0) 100%
  );
}

.transport-route-stage::after {
  bottom: 0;
  height: 18%;
  background: linear-gradient(
    0deg,
    var(--transport-blue) 0%,
    rgba(54, 91, 115, 0.82) 34%,
    rgba(54, 91, 115, 0.36) 68%,
    rgba(54, 91, 115, 0) 100%
  );
}

.transport-route-label {
  z-index: 5;
}

@media (max-width: 768px) {
  .transport-aerial-card img {
    transform: scale(1.35);
  }

  .transport-parking-map-wrap {
    width: min(100%, 896px);
  }

  .transport-route-stage::before,
  .transport-route-stage::after {
    height: 22%;
  }
}

@media (max-width: 480px) {
  .transport-aerial-card img {
    transform: scale(1.25);
  }
  .transport-route-stage {
    width: 100vw;
    min-height: 390px;
  }
  .transport-route-stage::before,
  .transport-route-stage::after {
    height: 20%;
  }
}
