
        
/* =========================================================
    Caribbean Map UI — Full CSS
========================================================= */
/* ---- 基本變數（可依品牌微調） -------------------------- */
:root{
--ink: #3b2c1a;                  /* 文字主色（深咖） */
--ink-soft: #5a4631;
--paper-bg: #f3e3c3;             /* 羊皮底色 */
--paper-border: #d1b88a;         /* 羊皮邊線 */
--gold: #b8925a;                 /* 金色點綴 */
--blur: 6px;                     /* 玻璃模糊度 */
--shadow-1: 0 10px 24px rgba(0,0,0,.10);
--shadow-2: 0 16px 36px rgba(0,0,0,.16);
}

/* =========================================================
地圖區：鋪羊皮質感、取消分界
========================================================= */

/* map 容器（你的結構：.map-wrapper > #map-homepage + .map-parchment） */
.map-wrapper{
    position: relative;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Google Map canvas 填滿 */
#map-homepage{
    position: relative;
    z-index: 1;
    background: transparent;
    overflow: hidden;                /* 避免內部元素溢出 */
}

/* 地圖上方鋪一層淡淡羊皮紋理（不擋互動） */
.map-parchment{
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 2;                      /* 在 map 之上、sidebar 之下 */
    background:
        url("/static/assets/img/parchment.png") center/1000px 1000px repeat,
        radial-gradient(60vmax 40vmax at 50% 120%, rgba(0,0,0,.20), transparent 60%),
        radial-gradient(40vmax 30vmax at -10% 30%, rgba(0,0,0,.10), transparent 60%),
        radial-gradient(40vmax 30vmax at 110% 30%, rgba(0,0,0,.10), transparent 60%);
    opacity: .45;                    /* 紋理強度：0.3~0.55 間調整 */
    mix-blend-mode: multiply;        /* 與地圖顏色相融更復古 */
}

/* Google Map 內建控制按鈕淡化 */
.gm-style .gm-control-active,
.gm-style .gm-fullscreen-control{
    filter: sepia(.35) saturate(.7);
}

/* =========================================================
右側探索欄位（你的 DOM：.results-wrapper、#searchPanel、.results）
目標：保留搜尋表單 + 卡片羊皮風格；整體無硬邊界
========================================================= */

/* 容器本身去邊框、陰影，鋪上淺羊皮底（可選） */
.results-wrapper{
    background:
        url("/static/assets/img/parchment.png") center/cover repeat,
        url("/static/assets/img/parchmentBurntEdge.png") right top / 480px auto no-repeat,
        linear-gradient(180deg, rgba(243,227,195,.92), rgba(243,227,195,.86));
    border: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 3;
    padding: 14px 18px 16px;
    color: var(--ink);
}


/* 標題（例如「探索」） */
.results-wrapper h2, .results-wrapper h3, .results-wrapper h4{
    color: var(--ink);
}

/* 搜尋表單：半透明玻璃／淡金色外框 */
#searchPanel{
    background: rgba(255,255,255,.70);
    border: 1px solid var(--paper-border);
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0 14px;
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: var(--shadow-1);
}

#searchPanel input[type="text"] {
    border: 1px solid #d9c39a !important;
    background-color: rgba(255,255,255,.85) !important;
    color: var(--ink-soft) !important;
    border-radius: 8px;
    height: 38px;
}

#searchPanel input[type="date"] {
    border: 1px solid #d9c39a !important;
    background-color: rgba(255,255,255,.85) !important;
    color: var(--ink-soft) !important;
    border-radius: 8px;
    height: 38px;
}

#searchPanel select {
    border: 1px solid #d9c39a !important;
    background-color: rgba(255,255,255,.85) !important;
    color: var(--ink-soft) !important;
    border-radius: 8px;
    height: 38px;
}

#searchPanel .btn{
    border-radius: 10px;
    border: 1px solid var(--gold);
    background: #d9ba79;
    color: #3b2c19;
    font-weight: 700;
}
#searchPanel .btn:hover{
    filter: brightness(.95);
}

/* 結果清單容器：無邊界，讓卡片自我呈現 */
.results{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    /* margin-top: 10px; */
}

/* 你的滾動容器（若有使用 tse 自訂 scrollbar） */
.tse-scrollable{
    background: transparent;
    border: none;
}

/* 每張結果卡片：加上 .result-card 即可吃到樣式
<div class="result-card"> ... </div>
*/
.results .result-card{
    position: relative;
    color: var(--ink);
    background: var(--paper-bg);
    border: 1px solid var(--paper-border);
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    isolation: isolate;
}

/* 卡片上的「燒焦/舊紙」陰影氣氛（不需圖片） */
.results .result-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(20px 16px at top left, rgba(0,0,0,.14), transparent 60%),
        radial-gradient(20px 16px at top right, rgba(0,0,0,.14), transparent 60%),
        radial-gradient(22px 18px at bottom left, rgba(0,0,0,.15), transparent 60%),
        radial-gradient(22px 18px at bottom right, rgba(0,0,0,.15), transparent 60%),
        linear-gradient(to right, rgba(0,0,0,.06), transparent 18% 82%, rgba(0,0,0,.06));
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: .45;
    z-index: -1;
}

.results .result-card:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* 卡片內常見元素（標題、行距、Meta） */
.results .result-card h4{
    margin: 0 0 6px;
    color: var(--ink);
    font-weight: 800;
}
.results .result-card p{
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.results .result-card .meta{
    color: #715d40;
    font-size: .92rem;
}

/* 如果卡片本身就有圖，加柔和圓角與陰影 */
.results .result-card .thumb{
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* 捲軸（WebKit） */
.results-wrapper ::-webkit-scrollbar{
    width: 10px; height: 10px;
}
.results-wrapper ::-webkit-scrollbar-thumb{
    background: #d0b788; border-radius: 10px;
}
.results-wrapper ::-webkit-scrollbar-track{
    background: rgba(0,0,0,.05); border-radius: 10px;
}

@media (max-width: 992px){
    .results-wrapper{
        background:
        url("/static/assets/img/parchment.png") center/cover repeat,
        linear-gradient(180deg, rgba(243,227,195,.95), rgba(243,227,195,.88));
        padding: 12px;
    }
}


.header-compass {
    position: absolute;
    right: 40px;
    top: 80px;
    width: 70px;
    height: 70px;
    background: url("/static/assets/img/compass.png") no-repeat center/contain;
    animation: spinCompass 20s linear infinite;
    pointer-events: none; /* 不影響點擊 */
    z-index: 1000;
}

@keyframes spinCompass {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.header-anchor {
    position: absolute;
    right: 300px; /* 視情況調整位置 */
    top: 280px;
    width: 40px;
    height: 40px;
    background: url("/static/assets/img/anchor.png") no-repeat center/contain;
    animation: anchor 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1000;
}

@keyframes anchor {
    50% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

/* 搜尋按鈕容器 */
.search-btn {
    position: relative; 
    width: 45px;
    height: 45px;
    background-color: #cba35c;  /* 原本的背景 */
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-right: 20px;
}

/* 望遠鏡圖示 */
.search-btn img.spyglass {
    position: absolute;
    width: 75px;   /* 調整大小 */
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg); /* 旋轉一點角度 */
    pointer-events: none; /* 點擊不會擋掉按鈕 */
}

/* other than map */

.toast-with-avatar .toast-message {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.toast-with-avatar .toast-message img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.toast-with-avatar .toast-message .toast-text {
    color: #fff;
    font-size: 15px;
}

.toast-with-avatar .toast-message .dim-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.toast-with-avatar .toast-message .dim-list li {
    color: #e0f7ff;
    font-size: 13px;
    line-height: 1.4;
}

.toast-with-avatar .toast-message .dim-list li span {
    font-weight: 700;
    color: #fff;
    margin-left: 5px;
}


.header-boat {
    position: absolute;
    right: 300px; /* 視情況調整位置 */
    top: 10px;
    width: 120px;
    height: 120px;
    background: url("{% static 'assets/img/boat.png' %}") no-repeat center/contain;
    animation: boat 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1000;
}
@keyframes boat {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
    70% { transform: rotate(0deg); }
}

.rotate {
    animation: spin 12s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.clickable {
    cursor: pointer;
}

.location-status {
    text-align: center;
}

.remember-choice {
    font-size: 14px;
    margin-left: 8px;
    color: #5b4636;
}




        /* ===============================
   🌏 整張焦邊探索卷軸 (外層)
   =============================== */
.treasure-scroll {
    max-height: 85vh;
    overflow-y: auto;
    background:
        url("{% static 'assets/img/burned-edges-mask.png' %}") center/cover no-repeat,
        radial-gradient(circle at center,
            rgba(255, 245, 225, 0.95) 0%,
            rgba(230, 190, 140, 0.9) 55%,
            rgba(150, 100, 50, 0.85) 80%,
            rgba(60, 30, 10, 0.95) 100%),
        url("{% static 'assets/img/parchment-texture.png' %}") repeat;
    background-blend-mode: multiply;
    background-size: cover;
    padding: 32px 26px;
    border-radius: 28px;
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.7),
        0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 180px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 3px solid rgba(60, 30, 10, 0.4);
}

/* 微捲曲陰影效果 (卷軸邊緣光影) */
.treasure-scroll::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 30px;
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* 捲軸滾動條 */
.treasure-scroll::-webkit-scrollbar {
    width: 10px;
}
.treasure-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(80, 55, 25, 0.8);
    border-radius: 6px;
}
.treasure-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(110, 70, 30, 0.9);
}

/* ===============================
   🏷️ 標題
   =============================== */
.treasure-title {
    font-family: "Noto Serif TC", "Times New Roman", serif;
    color: #3c1f00;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    text-shadow:
        0 2px 4px rgba(255, 240, 180, 0.7),
        0 0 20px rgba(255, 210, 130, 0.5);
    margin-bottom: 24px;
}

/* ===============================
   🧾 單一焦邊卡片 (內層)
   =============================== */
.treasure-item {
    background:
        /* url("{% static 'assets/img/burned-edges-mask.png' %}") center/cover no-repeat, */
        radial-gradient(circle at center,
            rgba(250, 235, 205, 0.96) 0%,
            rgba(210, 170, 120, 0.9) 70%,
            rgba(100, 65, 30, 0.85) 100%);
        /* url("{% static 'assets/img/parchment-texture.png' %}") repeat; */
    background-blend-mode: multiply;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 22px;
    border: 1px solid rgba(60, 35, 15, 0.4);
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.55),
        0 5px 15px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.treasure-item:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.6),
        0 6px 18px rgba(0, 0, 0, 0.55);
}

/* ===============================
   📌 內容區文字
   =============================== */
.treasure-name {
    color: #3b200a;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.treasure-desc {
    color: #2f1d0a;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.treasure-address {
    color: #4b2b0a;
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
.treasure-address i {
    color: #8c5e30;
    margin-right: 6px;
}

/* ===============================
   🖼️ 圖片區塊
   =============================== */
.treasure-image {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
    box-shadow:
        inset 0 0 12px rgba(0, 0, 0, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.35);
}

/* ===============================
   🔘 關閉按鈕
   =============================== */
button.close {
    color: #fff6d0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    font-size: 28px;
}
button.close:hover {
    color: #fff8e0;
    opacity: 1;
}



/* ====== 卡片背景 ====== */
.result-card {
  background: rgba(255, 253, 245, 0.9); /* 淺米底 */
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(160, 120, 70, 0.25);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.result-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

/* ====== 標題 ====== */
.result-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #4b2a00; /* 深焦糖棕文字 */
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  line-height: 1.4;
}

/* ====== 內文區 ====== */
.result-card .description {
  color: #5c3d1b; /* 咖啡棕主文字 */
  font-size: 15px;
  line-height: 1.6;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.result-card .description h5 {
  font-size: 14px;
  color: #7a5831; /* 稍淺一階的棕 */
  margin-bottom: 5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.result-card .description h5 i {
  color: #a37940;
  margin-right: 4px;
}

/* ====== 摘要文字 ====== */
.result-card p {
  color: #4a3b27;
  font-size: 15px;
  margin: 4px 0;
}

/* ====== 類別標籤 ====== */
.kind-badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 8px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* ====== 圖片 ====== */
.result-card .image {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* ====== Tags ====== */
.label.label-default {
  display: inline-block;
  background: rgba(120, 85, 40, 0.15);
  color: #4b2a00;
  font-size: 12px;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 3px 4px 0 0;
}

/* ====== 控制按鈕 ====== */
.controls-more li a {
  color: #4b2a00;
  font-weight: 600;
}

.controls-more li a:hover {
  color: #000;
}


/* 整體外觀 */
.modal-item-detail .modal-content {
    background:
        /* url("{% static 'assets/img/burnt-edges-mask.png' %}") center/cover no-repeat, */
        radial-gradient(circle at center,
            rgba(255, 245, 225, 0.95) 0%,
            rgba(230, 190, 140, 0.9) 55%,
            rgba(150, 100, 50, 0.85) 80%,
            rgba(60, 30, 10, 0.95) 100%),
        url("{% static 'assets/img/parchment-texture.png' %}") repeat;
    background-blend-mode: multiply;
    border-radius: 22px;
    border: 2px solid rgba(60, 30, 10, 0.4);
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.7),
        0 20px 60px rgba(0, 0, 0, 0.65);
    color: #f6f0df;
    font-family: "Noto Serif TC", "Times New Roman", serif;
    padding: 10px;
}

/* 標題區 */
.modal-item-detail .modal-header {
    border-bottom: none;
    background: transparent;
    text-align: center;
    position: relative;
    padding-bottom: 5px;
}

.modal-item-detail .modal-header h2 {
    color: #3a1d00;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow:
        0 2px 4px rgba(255, 240, 180, 0.6),
        0 0 10px rgba(255, 230, 160, 0.5);
    margin-bottom: 10px;
}

/* 分類標籤與 ribbon */
.modal-item-detail .modal-header .label {
    background: linear-gradient(180deg, rgba(150, 100, 50, 0.95) 0%, rgba(90, 55, 20, 0.9) 100%);
    color: #fff9e8;
    border-radius: 10px;
    padding: 6px 16px;               /* 內距加大 */
    margin-left: 10px;
    font-size: 18px;                 /* 放大字體 */
    font-weight: 700;                /* 加粗 */
    letter-spacing: 1.2px;           /* 加大字距 */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 0 4px rgba(255, 220, 150, 0.4);
    border: 1px solid rgba(255, 240, 200, 0.4);
    box-shadow:
        inset 0 0 6px rgba(255, 255, 255, 0.2),
        0 3px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.3s;
}

.modal-item-detail .modal-header .label:hover {
    transform: scale(1.05);
    box-shadow:
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.5);
}

.modal-item-detail .modal-header .ribbon {
    position: absolute;
    right: -5px;
    top: 10px;
    background: #9b6b34;
    color: #fff8e0;
    font-weight: bold;
    padding: 5px 16px;
    transform: rotate(5deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* 關閉按鈕 */
.modal-item-detail .close {
    color: #fff6d0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    font-size: 28px;
}
.modal-item-detail .close:hover {
    color: #fff8e0;
    opacity: 1;
}

/* 控制按鈕區 */
.modal-item-detail .controls-more {
    text-align: center;
    margin-top: 8px;
}
.modal-item-detail .controls-more ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 18px;
}
.modal-item-detail .controls-more li a {
    color: #3c1f00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}
.modal-item-detail .controls-more li a:hover {
    color: #000;
}

/* 內容布局 */
.modal-item-detail .modal-body {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 20px;
}

/* 左側 */
.modal-item-detail .left {
    flex: 1 1 45%;
    padding: 10px;
}
.modal-item-detail .gallery {
    margin-bottom: 12px;
}
.modal-item-detail .gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow:
        inset 0 0 15px rgba(0, 0, 0, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.4);
}
.modal-item-detail .map {
    height: 180px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* 右側 */
.modal-item-detail .right {
    flex: 1 1 50%;
    padding: 10px;
}

/* 小節標題 */
.modal-item-detail section h3 {
    color: #5c2a00;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid rgba(80, 45, 20, 0.3);
    padding-bottom: 4px;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* 內文摘要 */
/* ===== 整體 modal 外框，帶焦邊與深色羊皮紙質感 ===== */
.modal-item-detail .modal-content {
    background: radial-gradient(
        circle at center,
        rgba(80, 50, 20, 0.95) 0%,
        rgba(35, 20, 5, 0.98) 100%
    ),
    url("{% static 'assets/img/parchment-texture.png' %}") repeat;
    background-size: cover;
    border-radius: 14px;
    box-shadow:
        0 0 25px rgba(0, 0, 0, 0.8),
        inset 0 0 70px rgba(0, 0, 0, 0.85);
    padding: 22px 26px;
    color: #fff9e8; /* 保險：防止子層沒指定顏色時仍維持可讀 */
}

/* 焦邊強化 + 微內凹陰影 */
.modal-item-detail {
    box-shadow:
        0 0 35px rgba(0, 0, 0, 0.9),
        inset 0 0 80px rgba(0, 0, 0, 0.8);
    border-radius: 18px;
}

/* ===== 內文摘要：保留你的設定 ===== */
.modal-item-detail .read-more p {
    color: #fff9e8;                     /* 象牙白微暖，提亮但不刺眼 */
    font-size: 18px;                    /* 加大字體 */
    line-height: 1.75;                  /* 行距拉開，避免擁擠 */
    font-weight: 600;                   /* 微加粗，提升銳度 */
    letter-spacing: 0.5px;              /* 加一點字距 */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 4px rgba(0, 0, 0, 0.6);
}

/* ===== section 標題 ===== */
.modal-item-detail h3 {
    color: #f8e7b0;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    margin-top: 18px;
    margin-bottom: 8px;
}

/* ===== 表格、列表與一般文字統一風格 ===== */
.modal-item-detail table,
.modal-item-detail td,
.modal-item-detail th,
.modal-item-detail section p {
    color: #fff9e8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ===== 讓整體略微暗角、更聚焦 ===== */
.modal-item-detail .modal-body {
    background: radial-gradient(circle at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 100%);
    border-radius: 10px;
    padding: 10px;
}

/* 向量表格 */
.modal-item-detail table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.modal-item-detail th,
.modal-item-detail td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(90, 50, 20, 0.2);
}
.modal-item-detail th {
    background: rgba(200, 160, 100, 0.4);
    color: #2d1605;
    font-weight: bold;
}
.modal-item-detail td.score {
    text-align: right;
    color: #553000;
    font-weight: 600;
}

/* Tag 標籤 */
.modal-item-detail .tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}
.modal-item-detail .tags li {
    background: rgba(180, 120, 60, 0.85);
    color: #fff6d0;
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 14px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
}
    </style>

    <style>
/* === 航海主題導覽列 === */
.voyage-navbar {
  background: linear-gradient(to bottom, #fffef9, #fdf7ee);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(200,180,140,0.3);
  padding: 6px 0;
  position: relative;
  z-index: 100;
}

.voyage-navbar .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 40px;
  position: relative;
}

/* Logo 區塊 */
.voyage-navbar .brand img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: all 0.3s ease;
}

@media (max-width: 1023px) {
  .voyage-navbar .brand img {
    height: 72px;
    max-width: 240px;
  }
}

/* 主選單 */
.navigation {
  display: flex;
  align-items: flex-start;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-top: 12px;
  position: relative;
}

.navigation li {
  position: relative;
}

.navigation li a {
  font-family: "Noto Sans TC", "Helvetica Neue", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #2a1f0e;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navigation li.active a,
.navigation li a:hover {
  color: #5d2cff;
  transform: translateY(-2px);
}

/* === 語言選單 (點擊展開，不推版) === */
.nav-language {
  position: relative;
}

.nav-language > a.language-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-language .wrapper {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  z-index: 1000;
  background: #fdf9f3;
  border: 2px solid #e2cfa3;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 10px 16px;
  min-width: 180px;
  animation: fadeIn 0.2s ease-in-out;
}

.nav-language.open .wrapper {
  display: block;
}

.nav-language ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-language ul li a {
  color: #3b2f1c;
  font-weight: 700;
  font-size: 17px;
  display: block;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-language ul li a:hover {
  color: #7c4d00;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 右側區塊 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.voyage-log {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0d1b3e;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.voyage-log img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.voyage-log:hover {
  color: #1f3a7a;
  transform: translateY(1px);
}

/* === 中螢幕 (1024–1399px) === */
@media (min-width: 1024px) and (max-width: 1399px) {
  .voyage-navbar .nav-inner {
    align-items: flex-end;
    gap: 45px;
    padding-top: 10px;
  }

  .navigation {
    margin-top: 18px;
  }

  .navigation li a {
    font-size: 19px;
  }

  .voyage-log {
    transform: translateY(2px);
  }
}

/* === 大螢幕 (>1400px) === */
@media (min-width: 1400px) {
  /*
  .voyage-navbar .nav-inner {
    padding: 10px 60px;
  }
  */

  .navigation {
    margin-top: 10px;
  }

  .voyage-log {
    transform: translateY(4px);
  }
}

/* === 小螢幕 (<768px) === */
@media (max-width: 767px) {
  .voyage-navbar {
    padding: 8px 10px;
  }

  .voyage-navbar .brand img {
    height: 80px;
    max-width: 260px;
  }

  .navigation {
    gap: 26px;
    font-size: 18px;
    margin-top: 12px;
  }

  .nav-right {
    gap: 8px;
  }

  .voyage-log {
    font-size: 20px;
  }
}

/* === 小螢幕專用 (<768px) 修正版 === */
@media (max-width: 767px) {
  .voyage-navbar {
    padding: 10px 16px;
    background: linear-gradient(to bottom, #fffef9, #fdf7ee);
  }

  /* 讓 Logo 顯示並放大 */
  .voyage-navbar .brand img {
    display: block;
    height: 88px;
    max-width: 260px;
    margin: 0 auto 6px auto; /* 置中 + 下方留白 */
  }

  /* 主選單置中顯示 */
  .navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 4px;
  }

  .navigation li a {
    font-size: 18px;
    font-weight: 700;
  }

  /* 語言下拉維持浮動 */
  .nav-language .wrapper {
    top: 120%;
    left: 0;
    right: auto;
    min-width: 180px;
  }

  /* 右側航海日誌改第二行 */
  .nav-right {
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    gap: 6px;
  }

  .avatar {
    width: 64px;
    height: 64px;
    border: 2px solid #fff;
  }

  .voyage-log {
    font-size: 20px;
    gap: 6px;
  }

  .voyage-log img {
    width: 26px;
    height: 26px;
  }
}
