/* 空拍費用試算頁（aerial-pricing.html）專用樣式
 * 原本是該頁約 200 行的頁內 <style>（CLAUDE.md：頁內 <style> 不超過約 30 行），2026-10-26 抽成獨立檔。
 * 只有這一頁用得到，所以不放進全站共用的 style.css；載入順序在 style.css／responsive.css 之後，
 * 與原本頁內 <style> 的層疊位置相同。
 * 搬出來時順手刪掉三組與 style.css 逐項相同的重複規則：.faq-item*、.bottom-block（含 768px 斷點）、
 * .long-section*（style.css 的 .work-area.long-section 已涵蓋，該區塊同時帶 work-area）。
 * 色碼：與全站 token 同值者取 token（--text-white、--hairline、--glass-bg…）；行銷頁共用的半透明階取 --mk-*
 * （tokens.css）；這頁專有的值放在下面 --pr-*。 */
:root {
    --pr-search-bg: rgba(10, 20, 35, 0.88);        /* 地址搜尋框外殼：比 --bar-glass-bg 更深更藍的歷史值 */
    --pr-primary-tint: rgba(254, 238, 165, 0.08);  /* 被選中的選項／合計卡的淡黃底（Vis Vis 8%） */
    --pr-white-45: rgba(255, 255, 255, 0.45);      /* 合計明細小字 */
    --pr-pin-glow: rgba(254, 238, 165, 0.7);       /* 定位針光暈（Vis Vis 70%） */
    /* 空域結果徽章：四種結果各一組「淡底／框線／文字」。
     * 底色與框線是狀態色的透明版（色相相同、alpha 不同），CSS 沒辦法從 token 取 alpha，
     * 所以保留成這組值；文字色能取 token 的已取 token（紅＝--status-danger、黃＝--status-warn）。 */
    --pr-ok-line: rgba(39, 174, 96, 0.4);
    --pr-ok-text: #27ae60;                         /* 一般空域（綠區）文字；與 --status-ok 不同的歷史值 */
    --pr-danger-line: rgba(231, 76, 60, 0.4);
    --pr-warn-tint: rgba(240, 185, 11, 0.12);
    --pr-warn-line: rgba(240, 185, 11, 0.4);
    /* 藍區＝--zone-blue (#4DA6FF) 的透明版與亮化文字色 */
    --pr-zone-blue-tint: rgba(77, 166, 255, 0.14);
    --pr-zone-blue-line: rgba(77, 166, 255, 0.45);
    --pr-zone-blue-text: #7CC0FF;
}

/* Search bar */
.pricing-search-wrap {
    background: var(--pr-search-bg);
    border: 1px solid var(--mk-white-20);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
}
/* 搜尋框樣式改用共用元件 /assets/css/searchbar.css 的 .search-inner（全站統一為 powerline 那款） */
@media (max-width: 576px) {
    .pricing-search-wrap { padding: 20px 18px; }
}

/* Step 1 的說明段落（原 <p style="...">） */
.pricing-lead {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 28px;
    text-align: center;
}

/* Map */
#pricing-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin-bottom: 20px;
    display: none;
}
#pricing-map {
    height: 320px;
    width: 100%;
}

/* Airspace result badge */
#airspace-badge {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid;
    margin-bottom: 32px;
    font-size: 14px;
}
#airspace-badge.green  { background: var(--mk-ok-tint); border-color: var(--pr-ok-line); color: var(--pr-ok-text); }
#airspace-badge.red    { background: var(--mk-danger-tint);  border-color: var(--pr-danger-line);  color: var(--status-danger); }
#airspace-badge.yellow { background: var(--pr-warn-tint); border-color: var(--pr-warn-line); color: var(--status-warn); }
#airspace-badge.gray   { background: var(--pr-zone-blue-tint);border-color: var(--pr-zone-blue-line);color: var(--pr-zone-blue-text); }
#airspace-badge i { font-size: 22px; flex-shrink: 0; }
#airspace-badge .badge-text b { display: block; font-size: 15px; font-weight: 700; color: var(--text-white); margin-bottom: 2px; }
#airspace-badge .badge-text small { color: var(--mk-white-55); font-size: 12px; }
#zone-list { color: var(--text-secondary); font-size: 12px; margin-top: 6px; line-height: 1.6; }

/* Pricing calculator */
#pricing-section { display: none; }

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--mk-white-12);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}
.pricing-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.pricing-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}
.pricing-card p {
    font-size: 13px;
    color: var(--mk-white-55);
    margin-bottom: 16px;
    line-height: 1.6;
}
.pricing-card-amount {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
}
.pricing-card-amount small {
    font-size: 13px;
    color: var(--mk-white-50);
    font-weight: 400;
    margin-left: 4px;
}

/* Radio options */
.radio-opts { display: flex; flex-direction: column; gap: 8px; }
.radio-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--mk-white-12);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.radio-opt:hover { border-color: var(--primary); }
.radio-opt.selected { border-color: var(--primary); background: var(--pr-primary-tint); }
.radio-opt input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.radio-opt span { color: var(--text-white); font-size: 14px; }
.radio-opt .opt-price { margin-left: auto; color: var(--primary); font-size: 13px; font-weight: 700; }

/* Hours select */
.hours-select {
    width: 100%;
    background: var(--mk-white-08);
    border: 1px solid var(--mk-white-18);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-white);
    font-size: 14px;
    font-family: 'Noto Sans TC', sans-serif;
    outline: none;
    cursor: pointer;
    appearance: none;
    /* 下拉箭頭是 SVG data URI：URI 內的 stroke 讀不到 CSS 變數，這個 40% 白（= --text-decorative）是全檔唯一保留的字面 rgba */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.hours-select option { background: var(--bg-dark); color: var(--text-white); }
.hours-select:focus { border-color: var(--primary); }

/* Total card */
.total-card {
    background: var(--pr-primary-tint);
    border: 1px solid var(--mk-primary-30);
    border-radius: 20px;
    padding: 36px 40px;
    text-align: center;
    margin-top: 32px;
}
.total-card .total-label {
    font-size: 13px;
    color: var(--mk-white-55);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.total-card .total-amount {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    color: var(--text-white);
}
.total-card .total-amount span { color: var(--primary); }
.total-card .total-breakdown {
    font-size: 13px;
    color: var(--pr-white-45);
    margin-top: 10px;
    line-height: 1.8;
}

/* Notes */
.notes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.note-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--mk-white-04);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 14px 18px;
    flex: 1 1 240px;
}
.note-item i { color: var(--primary); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.note-item p { color: var(--mk-white-70); font-size: 13px; margin: 0; line-height: 1.6; }

@media (max-width: 768px) {
    .total-card { padding: 28px 20px; }
}

/* 地圖上的定位針（Leaflet divIcon 內層）。原本是 JS 字串裡的 style=""，色碼寫死。
 * 14px 實心圓＋白框＋淡黃光暈；iconSize 由 JS 的 [14, 14] 決定。 */
.pricing-pin {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 2px solid var(--text-white);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--pr-pin-glow);
}
