/* ============================================================
   Site widgets — Gaya weather, WhatsApp button, AI FAQ chatbot
   ============================================================ */

/* ---------- Topbar weather ---------- */
.topbar {
    position: relative;
    z-index: 1110;
    overflow: visible;
}

.mela-date-notice {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #fff7ee;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.35;
}

.mela-date-notice i {
    flex: 0 0 auto;
    color: #ff9a54 !important;
    font-size: .9rem;
}

.topbar-actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 2px !important;
}

.topbar-actions > * {
    position: relative;
    margin: 0;
}

.topbar-actions > * + * {
    border-left: 1px solid rgba(255, 255, 255, .38) !important;
}

.topbar-audio-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.topbar-audio-toggle:hover,
.topbar-audio-toggle:focus-visible {
    color: #ffb57e;
    background: rgba(255, 255, 255, .08);
    outline: 0;
}

.topbar-audio-toggle i {
    color: currentColor !important;
    font-size: 1rem;
    line-height: 1;
}

.topbar-text-action {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .24rem .52rem;
    border: 0;
    border-radius: 3px;
    background: #bf4a17;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.topbar-helpline {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .2rem .65rem;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.topbar-helpline:hover {
    color: #ffb57e;
    background: transparent;
}

.topbar-text-action:hover {
    color: #fff;
    background: #9f3510;
}

.topbar-donate-action {
    background: #2459b8;
}

.topbar-donate-action:hover {
    background: #194593;
}

.topbar-emergency-action {
    background: #c62835;
}

.topbar-emergency-action:hover {
    background: #9f1c27;
}

.topbar-actions .lang-switcher {
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.topbar-actions .lang-switcher:hover,
.topbar-actions .lang-switcher:focus-within {
    background: #9f3510;
    box-shadow: inset 0 -2px 0 #ef711d;
}

.topbar-actions .lang-switcher-select {
    padding-left: .25rem;
}

.topbar-actions .lang-switcher-select option {
    background: #42210d;
    color: #fff;
}

.topbar-actions .lang-switcher-select option:checked {
    background: #d95a13;
    color: #fff;
}

.lang-switcher-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.lang-switcher-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 190px;
    min-height: 28px;
    padding: .34rem 1.55rem .34rem 2.15rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.lang-switcher-menu {
    position: absolute;
    z-index: 2200;
    top: calc(100% + 2px);
    left: .25rem;
    width: max-content;
    min-width: 190px;
    max-height: min(70vh, 520px);
    padding: 4px;
    overflow-y: auto;
    border: 1px solid #d95a13;
    border-radius: 4px;
    background: #42210d;
    box-shadow: 0 16px 35px rgba(24, 10, 4, .34);
}

.lang-switcher-menu[hidden] {
    display: none !important;
}

.lang-switcher-option {
    display: block;
    width: 100%;
    padding: .45rem .65rem;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: .76rem;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.lang-switcher-option:hover,
.lang-switcher-option:focus-visible {
    outline: 0;
    background: #d95a13;
    color: #fff;
}

.lang-switcher-option.active {
    background: #8f2f0d;
    color: #fff4e9;
    font-weight: 700;
}

.topbar-weather {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: transparent;
    border: 0;
    color: #fff;
    border-radius: 0;
    padding: .3rem .8rem;
    font-size: .72rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.topbar-weather:hover {
    background: transparent;
    color: #ffb57e;
}

.topbar-weather i {
    color: #ffd9b0 !important;
    font-size: .9rem;
}

.topbar-weather .tw-temp {
    font-weight: 700;
}

.topbar-weather .tw-desc {
    color: #ffe4cd;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-weather .tw-sep {
    opacity: .5;
}

@media (max-width: 1199.98px) {
    .topbar-weather .tw-desc {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .topbar > .container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .35rem .55rem !important;
    }

    .mela-date-notice {
        grid-column: 1;
        grid-row: 1;
    }

    .topbar-actions {
        display: contents !important;
    }

    .topbar-weather {
        grid-column: 2;
        grid-row: 1;
    }

    .topbar-actions .lang-switcher {
        grid-column: 1;
        grid-row: 2;
        border-left: 0 !important;
    }

    .topbar-actions .topbar-helpline {
        display: inline-flex !important;
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        margin: 0;
    }

    .topbar-actions .topbar-text-action {
        display: none;
    }
}

.mobile-topbar-menu-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    width: 100%;
    margin: .75rem 0 .5rem;
    padding-top: .85rem;
    border-top: 1px solid #eadbd0;
}

.mobile-menu-action {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem .7rem;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.mobile-menu-action:hover,
.mobile-menu-action:focus-visible {
    color: #fff;
    filter: brightness(.92);
}

.mobile-menu-register {
    background: #bf4a17;
}

.mobile-menu-donate {
    background: #2459b8;
}

.mobile-menu-emergency {
    background: #c62835;
}

@media (max-width: 767.98px) {
    .topbar > .container {
        align-items: center !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .3rem 0 !important;
    }

    .mela-date-notice {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: center;
        width: 100%;
        min-height: 30px;
        padding: .15rem .35rem .35rem;
        text-align: center;
    }

    .topbar-actions .lang-switcher {
        grid-column: 1;
        grid-row: 2;
    }

    .topbar-weather {
        grid-column: 2;
        grid-row: 2;
    }

    .topbar-actions .topbar-helpline {
        grid-column: 3;
        grid-row: 2;
        justify-self: stretch;
    }

    .topbar-actions .lang-switcher {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .topbar-actions .lang-switcher-button {
        justify-content: center;
        min-width: 0;
        width: 100%;
        max-width: none;
        min-height: 38px;
        padding: .34rem 1.4rem .34rem 1.7rem;
        text-align: center;
    }

    .topbar-actions .lang-switcher-button > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mela-date-notice {
        font-size: .72rem;
        line-height: 1.4;
    }

    .topbar-weather {
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 38px;
        gap: .3rem;
        padding: .34rem .2rem;
        text-align: center;
    }

    .topbar-actions .topbar-helpline {
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 38px;
        padding: .2rem .25rem;
        text-align: center;
    }
}

@media (max-width: 479.98px) {
    .mela-date-notice i,
    .topbar-weather .tw-loc,
    .topbar-weather .tw-sep {
        display: none;
    }

    .mela-date-notice {
        min-height: 32px;
        font-size: .67rem;
    }

    .topbar-actions .topbar-helpline {
        padding-inline: .35rem;
        font-size: .64rem;
    }

    .topbar-helpline-label,
    .topbar-phone-separator,
    .topbar-secondary-phone {
        display: none;
    }

    .mobile-topbar-menu-actions {
        grid-template-columns: 1fr;
    }
}

/* ---------- Weather modal ---------- */
.weather-modal {
    z-index: 20000;
}

.weather-modal .modal-dialog {
    max-width: 460px;
}

.weather-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(40, 18, 8, .35);
}

.weather-modal .btn-close {
    position: absolute;
    top: .9rem;
    right: 1rem;
    z-index: 5;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.weather-head {
    position: relative;
    padding: 1.7rem 1.6rem 1.4rem;
    color: #fff;
    background: linear-gradient(150deg, #1f70ac 0%, #2b93c9 60%, #63b6dd 100%);
}

.weather-head .wm-loc {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: .95;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.weather-head .wm-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .6rem;
}

.weather-head .wm-icon {
    font-size: 3rem;
    line-height: 1;
}

.weather-head .wm-temp {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.weather-head .wm-desc {
    font-size: .95rem;
    margin-top: .1rem;
    opacity: .95;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    padding: 1.2rem 1.3rem;
    background: #fff;
}

.weather-grid .wm-cell {
    text-align: center;
    padding: .7rem .4rem;
    border-radius: 11px;
    background: #f5f8fb;
    border: 1px solid #e6eef4;
}

.weather-grid .wm-cell i {
    font-size: 1.05rem;
    color: #1f70ac;
}

.weather-grid .wm-cell .wm-val {
    display: block;
    font-weight: 700;
    color: #23384a;
    font-size: .95rem;
    margin-top: .2rem;
}

.weather-grid .wm-cell .wm-label {
    display: block;
    font-size: .68rem;
    color: #7d8b96;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-top: .1rem;
}

.weather-forecast {
    display: flex;
    gap: .5rem;
    padding: 0 1.3rem 1.1rem;
    background: #fff;
}

.weather-forecast .wm-day {
    flex: 1;
    text-align: center;
    padding: .7rem .3rem;
    border-radius: 11px;
    background: #fff8f1;
    border: 1px solid #f0e2d2;
}

.weather-forecast .wm-day .d-name {
    font-size: .72rem;
    font-weight: 700;
    color: #8a5a2b;
}

.weather-forecast .wm-day .d-icon {
    font-size: 1.3rem;
    margin: .25rem 0;
}

.weather-forecast .wm-day .d-temp {
    font-size: .76rem;
    color: #4a352c;
}

.weather-forecast .wm-day .d-temp b {
    color: #23384a;
}

.weather-foot {
    padding: .7rem 1.3rem 1.1rem;
    background: #fff;
    text-align: center;
    font-size: .72rem;
    color: #9aa7b1;
}

.weather-state {
    padding: 2.2rem 1.3rem;
    text-align: center;
    color: #6b7883;
    font-size: .9rem;
    background: #fff;
}

/* ---------- Floating action buttons ---------- */
.float-btn {
    position: fixed;
    left: 20px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
    z-index: 1090;
    transition: transform .18s ease, box-shadow .18s ease;
}

.float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
    color: #fff;
}

.float-whatsapp {
    bottom: 20px;
    background: #25d366;
}

.float-chat {
    bottom: 84px;
    background: linear-gradient(135deg, #ea701d, #b9440c);
}

.float-chat .bi-x-lg {
    display: none;
}

.float-chat.is-open .bi-chat-dots-fill {
    display: none;
}

.float-chat.is-open .bi-x-lg {
    display: inline;
}

/* Keep back-to-top clear of the widget stack (widgets are on the left) */
.back-to-top {
    left: auto !important;
    right: 28px !important;
    bottom: 28px !important;
    z-index: 3000 !important;
}

/* ---------- Chatbot panel ---------- */
.chatbot-panel {
    position: fixed;
    left: 20px;
    bottom: 148px;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 480px;
    max-height: calc(100vh - 180px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(30, 15, 6, .34);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.98);
    transform-origin: bottom left;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 1091;
}

.chatbot-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #7a2420, #b9440c);
}

.chatbot-head .cb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-head .cb-title {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.1;
}

.chatbot-head .cb-status {
    font-size: .72rem;
    opacity: .9;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.chatbot-head .cb-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

.chatbot-head .cb-close {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: .85;
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #fbf6f0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.cb-msg {
    max-width: 82%;
    padding: .6rem .8rem;
    border-radius: 13px;
    font-size: .85rem;
    line-height: 1.45;
    white-space: pre-line;
}

.cb-msg.bot {
    align-self: flex-start;
    background: #fff;
    color: #3d2c23;
    border: 1px solid #eee0d2;
    border-bottom-left-radius: 4px;
}

.cb-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #ea701d, #b9440c);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.cb-msg a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.cb-sources {
    display: grid;
    gap: .3rem;
    margin-top: .65rem;
    padding-top: .55rem;
    border-top: 1px solid #eee0d2;
}

.cb-sources a {
    display: flex;
    align-items: center;
    gap: .25rem;
    width: fit-content;
    color: #a43a12;
    font-size: .75rem;
    text-decoration: none;
}

.cb-sources a:hover { text-decoration: underline; }

.cb-msg .cb-view-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-top: .7rem;
    padding: .55rem .7rem;
    border-radius: 9px;
    background: linear-gradient(135deg, #a62f13, #d65016);
    color: #fff;
    font-size: .78rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(166, 47, 19, .18);
}

.cb-msg.bot.has-results {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
}

.cb-result-list {
    display: grid;
    overflow: hidden;
    border: 1px solid #ead7c5;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(88, 38, 18, .07);
}

.cb-result-card {
    padding: .75rem .8rem;
    background: linear-gradient(90deg, #fff 0%, #fffaf5 100%);
}

.cb-result-card + .cb-result-card { border-top: 1px solid #dfc6b0; }

.cb-result-card > strong {
    display: block;
    margin-bottom: .42rem;
    color: #6f2115;
    font-size: .86rem;
    line-height: 1.3;
}

.cb-result-card dl { margin: 0; }

.cb-result-card dl > div {
    display: grid;
    grid-template-columns: minmax(68px, .7fr) minmax(0, 1.3fr);
    gap: .55rem;
    padding: .28rem 0;
    border-top: 1px solid #f0e3d7;
}

.cb-result-card dt {
    color: #9a705c;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.cb-result-card dd {
    min-width: 0;
    margin: 0;
    color: #38251d;
    font-size: .76rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.cb-msg .cb-view-more:hover { filter: brightness(1.06); }

.cb-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
    padding: .5rem 1rem .3rem;
    background: #fbf6f0;
}

.cb-quick button {
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
}

.cb-quick button {
    font-size: .68rem;
    font-weight: 600;
    color: #b9440c;
    background: #fff;
    border: 1px solid #f0d7bf;
    border-radius: 999px;
    padding: .34rem .4rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.cb-quick button:hover {
    background: #ea701d;
    color: #fff;
    border-color: #ea701d;
}

.chatbot-input {
    display: flex;
    gap: .5rem;
    padding: .7rem;
    border-top: 1px solid #eee0d2;
    background: #fff;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #ead7c4;
    border-radius: 999px;
    padding: .55rem .9rem;
    font-size: .85rem;
    outline: none;
}

.chatbot-input input:focus {
    border-color: #ea701d;
    box-shadow: 0 0 0 .18rem rgba(217, 90, 19, .15);
}

.chatbot-input button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ea701d, #b9440c);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.cb-typing {
    align-self: flex-start;
    display: inline-flex;
    gap: .25rem;
    padding: .7rem .9rem;
    background: #fff;
    border: 1px solid #eee0d2;
    border-radius: 13px;
    border-bottom-left-radius: 4px;
}

.cb-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9a98f;
    animation: cbBlink 1s infinite;
}

.cb-typing span:nth-child(2) {
    animation-delay: .2s;
}

.cb-typing span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes cbBlink {

    0%,
    60%,
    100% {
        opacity: .3;
    }

    30% {
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .chatbot-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 140px;
    }

    .float-btn {
        left: 14px;
    }

    .float-chat {
        bottom: 78px;
    }

    .float-whatsapp {
        bottom: 16px;
    }
}

/* ---------- Sequential floating support stack ---------- */
.floating-action-stack {
    position: fixed;
    left: 20px;
    top: auto;
    bottom: 66px;
    z-index: 1092;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    transform: none;
}

.floating-action-items {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.floating-action-stack.is-collapsed .floating-action-items {
    display: none
}

.floating-stack-toggle {
    position: fixed;
    z-index: 1093;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 50px;
    min-height: 34px;
    padding: 7px 9px;
    border: 2px solid #fff;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #762218, #b74619);
    box-shadow: 0 7px 18px rgba(49, 20, 9, .24);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease
}

.floating-stack-toggle:hover,
.floating-stack-toggle:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(80, 26, 11, .3)
}

.floating-stack-toggle:focus-visible {
    outline: 3px solid rgba(255, 188, 103, .85);
    outline-offset: 2px
}

.floating-stack-toggle[aria-expanded="false"] i {
    font-size: 14px
}

.floating-action-stack .float-btn {
    --action-color: #bf4a16;
    --action-dark: #7d2813;
    position: relative;
    left: auto;
    bottom: auto;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    padding: 0;
    overflow: visible;
    border: 3px solid #fff;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.35rem;
    z-index: auto;
    isolation: isolate;
    background: linear-gradient(145deg, var(--action-color), var(--action-dark));
    box-shadow: 0 8px 20px rgba(49, 20, 9, .24), 0 0 0 1px rgba(71, 29, 13, .13);
    text-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease
}

.floating-action-stack .float-btn::before {
    content: "";
    position: absolute;
    inset: 5px;
    height: auto;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

.floating-action-stack .float-btn > i {
    color: #fff;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2));
    line-height: 1
}

.floating-action-stack .float-btn:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 12px 25px color-mix(in srgb, var(--action-color) 38%, transparent), 0 0 0 1px rgba(71, 29, 13, .12);
}

.floating-action-stack .float-btn:focus-visible {
    outline: 3px solid rgba(255, 188, 103, .85);
    outline-offset: 3px
}

.floating-action-stack .float-audio {
    --action-color: #dd641f;
    --action-dark: #96340f
}

.floating-action-stack .float-chat {
    --action-color: #b75b1f;
    --action-dark: #743011
}

.floating-action-stack .float-sos {
    --action-color: #df3642;
    --action-dark: #94141e;
    animation: sosIconPulse 1.8s ease-in-out infinite;
}

.floating-action-stack .float-map {
    --action-color: #238bad;
    --action-dark: #12536e
}

/* Sacred pilgrimage route map popup */
.pilgrimage-map-modal {
    z-index: 1300
}

body:has(.pilgrimage-map-modal.show) .modal-backdrop {
    z-index: 1290
}

.pilgrimage-map-modal .modal-dialog {
    width: min(1180px, calc(100% - 1.5rem));
    max-width: 1180px
}

.pilgrimage-map-modal .modal-content {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #fffaf4;
    box-shadow: 0 28px 90px rgba(23, 17, 13, .38)
}

.pilgrimage-map-head {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    color: #fff;
    background: linear-gradient(110deg, #5a1913, #8b2b18 58%, #b54c1b)
}

.pilgrimage-map-heading-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    font-size: 1.25rem
}

.pilgrimage-map-head span {
    display: block;
    margin-bottom: 2px;
    color: #ffc18e;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase
}

.pilgrimage-map-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem)
}

.pilgrimage-map-head p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: .75rem
}

.pilgrimage-map-head .btn-close {
    opacity: 1;
    filter: invert(1)
}

.pilgrimage-map-layout {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr);
    height: min(58vh, 545px);
    min-height: 430px
}

.pilgrimage-map-stops {
    padding: 14px 16px;
    overflow-y: hidden;
    border-right: 1px solid #decfc4;
    background: linear-gradient(180deg, #fff8f1, #f2e8df)
}

.pilgrimage-map-stops>strong {
    display: block;
    margin-bottom: 8px;
    color: #672016;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase
}

.pilgrimage-map-stops ol {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: route-stop
}

.pilgrimage-map-stops li {
    position: relative;
    min-height: 36px;
    padding: 3px 0 7px 35px;
    color: #503b31;
    font-size: .72rem;
    font-weight: 700;
    counter-increment: route-stop
}

.pilgrimage-stop-button {
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer
}

.pilgrimage-map-stops li:hover,
.pilgrimage-map-stops li.is-active {
    color: #b83f12
}

.pilgrimage-map-stops li.is-active::before {
    background: #74231a;
    box-shadow: 0 0 0 4px rgba(200, 79, 27, .16)
}

.pilgrimage-stop-button:focus-visible {
    outline: 2px solid #c84f1b;
    outline-offset: 3px;
    border-radius: 2px
}

.pilgrimage-map-stops li::before {
    content: counter(route-stop);
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #c84f1b;
    font-size: .62rem
}

.pilgrimage-map-stops li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    bottom: -1px;
    left: 12px;
    width: 1px;
    background: #dca47e
}

.pilgrimage-map-frame {
    position: relative;
    min-width: 0;
    background: #e8eee9
}

.pilgrimage-map-frame iframe {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #e8eee9
}

.pilgrimage-route-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #e8eee9
}

.pilgrimage-route-marker {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 8px;
    color: #fff;
    background: #bf4518;
    box-shadow: 0 5px 13px rgba(71, 25, 11, .3);
    font-size: .7rem;
    font-weight: 900;
    transform: rotate(-45deg)
}

.pilgrimage-route-marker>span { transform: rotate(45deg) }
.route-fare-popup h3 { margin: 0 0 7px; color: #6b2118; font-size: .95rem }
.route-fare-row { padding: 6px 0; border-top: 1px solid #eadbd1 }
.route-fare-row strong, .route-fare-row span, .route-fare-row small { display: block }
.route-fare-row strong { color: #3f2b24; font-size: .75rem }
.route-fare-row span { color: #75645b; font-size: .67rem }
.route-fare-row small { margin-top: 2px; color: #a43c18; font-size: .69rem; font-weight: 800 }
.route-fare-popup em { display: block; margin-top: 6px; color: #88746a; font-size: .6rem }

.pilgrimage-map-loading {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #6d291b;
    background: linear-gradient(135deg, #f7f2ea, #e8f0ed);
    transition: opacity .25s, visibility .25s
}

.pilgrimage-map-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.pilgrimage-map-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-top: 1px solid #ead8ca;
    color: #69564c;
    font-size: .75rem;
    font-weight: 700
}

.pilgrimage-fare-panel {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 286px;
    padding: 11px;
    border: 1px solid rgba(112, 49, 27, .18);
    border-radius: 13px;
    background: rgba(255, 252, 248, .96);
    box-shadow: 0 10px 30px rgba(58, 27, 15, .22);
    backdrop-filter: blur(8px)
}

.pilgrimage-fare-heading { margin-bottom: 7px; padding-right: 2px }
.pilgrimage-fare-heading span { color: #c14a18; font-size: .5rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase }
.pilgrimage-fare-heading h3 { margin: 1px 0 0; overflow: hidden; color: #632017; font-size: .86rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap }
.pilgrimage-fare-heading h3 span { color: inherit; font-size: inherit; letter-spacing: normal; text-transform: none }
.selected-site-fares { display: grid; gap: 6px }
.selected-fare-card { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 7px; padding: 7px; border: 1px solid #ead9ce; border-radius: 9px; background: #fff }
.selected-fare-station { display: flex; align-items: center; gap: 7px; min-width: 0 }
.selected-fare-station>i { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #852719, #c74d18); font-size: .76rem }
.selected-fare-station strong, .selected-fare-station small { display: block }
.selected-fare-station strong { overflow: hidden; color: #4c2c23; font-size: .61rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap }
.selected-fare-station small { margin-top: 1px; color: #8b776c; font-size: .52rem }
.selected-fare-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px }
.selected-fare-options>span { padding: 4px 3px; border-radius: 6px; color: #7c675d; background: #fff2e9; font-size: .49rem; text-align: center; white-space: nowrap }
.selected-fare-options strong { display: block; margin-top: 1px; color: #a53a17; font-size: .66rem }
.selected-fare-options b { font-weight: 800 }
.pilgrimage-fare-panel>p { margin: 6px 1px 0; color: #8a776c; font-size: .49rem }

.pilgrimage-map-foot span i {
    margin-right: 6px;
    color: #c64d17
}

.pilgrimage-map-foot .btn {
    padding: .55rem .8rem;
    font-size: .72rem
}

.floating-action-stack .float-whatsapp {
    --action-color: #25d366;
    --action-dark: #128c4a
}

.float-chat.is-open .support-open-icon {
    display: none;
}

.float-caption {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    min-width: max-content;
    padding: 7px 11px;
    border: 1px solid rgba(111, 39, 19, .12);
    border-radius: 999px;
    color: var(--action-dark);
    background: #fff;
    box-shadow: 0 7px 20px rgba(52, 19, 8, .17);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .015em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(6px, -50%);
    animation: none;
}

.float-caption::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    border: 5px solid transparent;
    border-right-color: #fffaf4;
    transform: translateY(-50%);
}

.floating-action-stack .float-btn:hover .float-caption,
.floating-action-stack .float-btn:focus-visible .float-caption {
    animation: none;
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

@keyframes floatingCaptionSequence {
    0%, 2%, 18%, 100% { opacity: 0; visibility: hidden; transform: translate(6px, -50%); }
    4%, 7%, 11%, 15% { opacity: 1; visibility: visible; transform: translate(0, -50%); }
    6%, 9%, 13% { opacity: .48; visibility: visible; transform: translate(0, -50%); }
}

@keyframes sosIconPulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(130, 18, 22, .26); }
    50% { box-shadow: 0 8px 22px rgba(130, 18, 22, .32), 0 0 0 7px rgba(218, 39, 45, .12); }
}

.chatbot-panel {
    left: 84px;
    bottom: 18px;
    max-height: calc(100vh - 36px);
}

@media (min-width: 576px) {
    .floating-action-stack,
    .floating-action-items {
        gap: 7px
    }

    .floating-action-stack .float-btn {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-width: 2px;
        border-radius: 12px;
        font-size: 1.1rem
    }

    .floating-action-stack .float-btn::before {
        inset: 4px;
        border-radius: 8px
    }
}

@media (max-width: 575.98px) {
    .floating-action-stack {
        left: 12px;
        top: auto;
        bottom: 56px;
        gap: 7px;
        align-items: flex-start;
        transform: none;
    }

    .floating-action-items { gap: 7px }

    .floating-action-stack .float-btn {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 1.15rem;
    }

    .floating-stack-toggle {
        left: 12px;
        bottom: 12px;
        min-width: 44px;
        min-height: 32px;
        padding: 6px 8px
    }

    .float-caption {
        left: calc(100% + 8px);
        padding: 6px 9px;
        font-size: 10px;
    }

    .chatbot-panel {
        left: 68px;
        right: 10px;
        bottom: 12px;
        width: auto;
        height: min(480px, calc(100vh - 24px));
        max-height: calc(100vh - 24px);
    }

    .pilgrimage-map-modal .modal-dialog {
        width: calc(100% - 1rem);
        margin: .5rem
    }

    .pilgrimage-map-head {
        grid-template-columns: 40px minmax(0, 1fr) 30px;
        gap: 10px;
        padding: 13px
    }

    .pilgrimage-map-heading-icon {
        width: 40px;
        height: 40px
    }

    .pilgrimage-map-head p {
        display: none
    }

    .pilgrimage-map-frame {
        min-height: 250px
    }

    .pilgrimage-map-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0
    }

    .pilgrimage-map-stops {
        display: block;
        padding: 9px 11px;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid #decfc4
    }

    .pilgrimage-map-stops>strong { margin-bottom: 6px; font-size: .58rem }
    .pilgrimage-map-stops ol { display: flex; gap: 7px; width: max-content }
    .pilgrimage-map-stops li { min-height: 0; padding: 0 }
    .pilgrimage-map-stops li::before, .pilgrimage-map-stops li::after { display: none }
    .pilgrimage-stop-button {
        width: auto;
        padding: 7px 10px;
        border: 1px solid #dfc4b3;
        border-radius: 999px;
        white-space: nowrap;
        background: #fff;
        font-size: .66rem
    }
    .pilgrimage-map-stops li.is-active .pilgrimage-stop-button {
        color: #fff;
        border-color: #a93618;
        background: #a93618
    }

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

    .pilgrimage-fare-panel { top: 8px; right: 8px; width: 238px; padding: 8px }
    .pilgrimage-fare-heading { margin-bottom: 5px }
    .selected-fare-card { grid-template-columns: minmax(0, 1fr) 96px; padding: 5px }
    .selected-fare-station>i { display: none }
    .selected-fare-options>span { padding: 3px 2px }
    .pilgrimage-fare-panel>p { display: none }

    .pilgrimage-map-foot .btn {
        justify-content: center
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-caption,
    .float-sos {
        animation: none;
    }
}
