/* Ohalik unified alert + loader styles */

:root {
    --oa-gold: var(--silk-gold, #D4AF37);
    --oa-orange: var(--spice-orange, #E67E22);
    --oa-night: var(--night-blue, #1A1F3A);
    --oa-green: var(--oasis-green, #2C5F2D);
    --oa-red: #C0392B;
}

/* ---- Toast stack ---- */
#ohalik-alert-stack {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: min(380px, calc(100vw - 48px));
}

.oa-toast {
    pointer-events: auto;
    background: #fff;
    color: var(--oa-night);
    border-radius: 12px;
    border-left: 4px solid var(--oa-gold);
    box-shadow: 0 12px 32px rgba(26, 31, 58, 0.18), 0 2px 6px rgba(26, 31, 58, 0.08);
    padding: 14px 18px 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    font-size: 0.92rem;
    line-height: 1.45;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.oa-toast.oa-in {
    transform: translateX(0);
    opacity: 1;
}

.oa-toast.oa-out {
    transform: translateX(120%);
    opacity: 0;
}

.oa-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--oa-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 1px;
}

.oa-toast-body {
    flex: 1;
    min-width: 0;
}

.oa-toast-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--oa-night);
    margin: 0 0 2px;
}

.oa-toast-msg {
    margin: 0;
    color: #4a5168;
}

.oa-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9aa0b2;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    margin: -2px -4px 0 0;
    transition: color 0.15s;
}

.oa-toast-close:hover { color: var(--oa-night); }

.oa-toast.oa-success { border-left-color: var(--oa-green); }
.oa-toast.oa-success .oa-toast-icon { background: var(--oa-green); }
.oa-toast.oa-error { border-left-color: var(--oa-red); }
.oa-toast.oa-error .oa-toast-icon { background: var(--oa-red); }
.oa-toast.oa-warning { border-left-color: var(--oa-gold); }
.oa-toast.oa-warning .oa-toast-icon { background: var(--oa-gold); }
.oa-toast.oa-info { border-left-color: var(--oa-night); }
.oa-toast.oa-info .oa-toast-icon { background: var(--oa-night); }

/* ---- Confirm modal ---- */
.oa-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 40, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.oa-confirm-backdrop.oa-in { opacity: 1; }

.oa-confirm {
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 22px;
    width: min(440px, 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(12px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}

.oa-confirm-backdrop.oa-in .oa-confirm {
    transform: translateY(0) scale(1);
}

.oa-confirm-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.35rem;
    color: var(--oa-night);
    margin: 0 0 8px;
}

.oa-confirm-msg {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4a5168;
    margin: 0 0 22px;
}

.oa-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.oa-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.oa-btn-cancel {
    background: transparent;
    color: var(--oa-night);
    border: 1px solid #d8dce6;
}

.oa-btn-cancel:hover { background: #f3f5fa; }

.oa-btn-confirm {
    background: var(--oa-gold);
    color: #fff;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.oa-btn-confirm:hover { transform: translateY(-1px); }

.oa-btn-confirm.oa-danger {
    background: var(--oa-red);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.35);
}

/* ---- Page loader ---- */
#ohalik-loader {
    position: fixed;
    inset: 0;
    background: var(--oa-night);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#ohalik-loader.is-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ohalik-loader-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.ohalik-loader-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ffffff;
    animation: oa-spin 1.1s linear infinite;
}

/* Traveler reaching destination — curved itinerary */
.ohalik-journey {
    position: relative;
    width: 240px;
    height: 90px;
}

.ohalik-journey-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ohalik-journey-path {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 4 6;
    fill: none;
}

.ohalik-journey-start {
    fill: #ffffff;
    opacity: 0.85;
}

.ohalik-journey-pin {
    position: absolute;
    /* matches end of svg path (230,18) within 240x90 viewBox */
    left: calc(230 / 240 * 100%);
    top: calc(18 / 90 * 100%);
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -18px;
    background: var(--silk-gold, #D4AF37);
    border-radius: 50% 50% 50% 0;
    rotate: -45deg;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.ohalik-journey-pin::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: var(--oa-night, #1A1F3A);
    border-radius: 50%;
}

.ohalik-journey-traveler {
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 6px 14px rgba(0, 0, 0, 0.4);
    offset-path: path("M10,70 C50,10 90,110 130,40 S210,40 230,18");
    offset-rotate: 0deg;
    animation: oa-journey 2.8s cubic-bezier(0.45, 0.05, 0.5, 0.95) infinite;
}

@keyframes oa-journey {
    0%   { offset-distance: 0%;   opacity: 0; transform: scale(1); }
    8%   { opacity: 1; }
    85%  { offset-distance: 100%; opacity: 1; transform: scale(1); }
    95%  { offset-distance: 100%; opacity: 0; transform: scale(0.4); }
    100% { offset-distance: 0%;   opacity: 0; transform: scale(1); }
}

.ohalik-loader-word {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.4rem;
    letter-spacing: 0.55em;
    color: #ffffff;
    padding-left: 0.55em;
}

@keyframes oa-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ohalik-loader-ring { animation-duration: 2.2s; }
    .oa-toast { transition: opacity 0.3s ease; transform: none; }
}

/* ---- Skeleton placeholders for hydrating sections ---- */
.oa-skeleton {
    position: relative;
    overflow: hidden;
    background: #ebeef3;
    border-radius: 8px;
}
.oa-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: translateX(-100%);
    animation: oa-shimmer 1.4s ease-in-out infinite;
}
@keyframes oa-shimmer { to { transform: translateX(100%); } }

.tour-card.is-skeleton { pointer-events: none; }
.tour-card.is-skeleton .tour-card-image,
.tour-card.is-skeleton .sk-line {
    background: #ebeef3;
    position: relative;
    overflow: hidden;
}
.tour-card.is-skeleton .tour-card-image::after,
.tour-card.is-skeleton .sk-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: translateX(-100%);
    animation: oa-shimmer 1.4s ease-in-out infinite;
}
.tour-card.is-skeleton .sk-line {
    height: 14px;
    border-radius: 4px;
    margin: 8px 0;
}
.tour-card.is-skeleton .sk-line.sk-title { height: 20px; width: 75%; }
.tour-card.is-skeleton .sk-line.sk-meta { width: 55%; }
.tour-card.is-skeleton .sk-line.sk-price { width: 35%; }
