:root {
    /* Colors extracted directly from the "Ayubo Sri Lanka" Logo */
    --wr-blue: #0088ff;
    --wr-blue-dark: #0066cc;
    --wr-blue-deep: #004b99;
    --wr-green: #049701;
    --wr-green-dark: #037a01;
    --wr-green-light: #2ecc71;
    --wr-accent-coral: #ff4757;
    --wr-accent-yellow: #f1c40f;
    --wr-dark: #0f172a;
    --wr-text-muted: #64748b;
    --wr-bg-light: #f4f8fc;
    --wr-border: #e2e8f0;
    --wr-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--wr-font);
    color: var(--wr-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Navbar */
.navbar-weroad {
    background: #ffffff;
    border-bottom: 2px solid #eef2f6;
    transition: all 0.3s ease;
}

.brand-logo-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.brand-text-main {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    color: var(--wr-blue);
    line-height: 1;
}

.brand-text-sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--wr-green);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.brand-badge {
    background: linear-gradient(135deg, var(--wr-blue) 0%, var(--wr-blue-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 136, 255, 0.25);
}

.brand-badge:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--wr-blue-dark) 0%, var(--wr-blue-deep) 100%);
}

.btn-weroad {
    background: linear-gradient(135deg, var(--wr-green) 0%, var(--wr-green-dark) 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 24px;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(4, 151, 1, 0.3);
}

.btn-weroad:hover {
    background: linear-gradient(135deg, var(--wr-green-light) 0%, var(--wr-green) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(4, 151, 1, 0.4);
}

.btn-weroad-blue {
    background: linear-gradient(135deg, var(--wr-blue) 0%, var(--wr-blue-dark) 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 24px;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 136, 255, 0.3);
}

.btn-weroad-blue:hover {
    background: linear-gradient(135deg, #1aa3ff 0%, var(--wr-blue) 100%);
    color: #fff;
    transform: translateY(-1px);
}

.btn-weroad-outline {
    background: transparent;
    color: var(--wr-dark);
    border: 2px solid var(--wr-border);
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 20px;
    transition: all 0.2s;
}

.btn-weroad-outline:hover {
    border-color: var(--wr-blue);
    color: var(--wr-blue);
    background: #f0f7ff;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(0, 51, 102, 0.85) 100%),
                url('../images/hero-srilanka.jpg') center/cover no-repeat;
    color: #ffffff;
    border-radius: 0 0 32px 32px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-search-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    margin-top: 30px;
}

/* Vibe Pills */
.vibe-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1.5px solid var(--wr-border);
    border-radius: 999px;
    font-weight: 600;
    color: var(--wr-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vibe-pill:hover, .vibe-pill.active {
    border-color: var(--wr-blue);
    background-color: #f0f7ff;
    color: var(--wr-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.15);
}

/* Trip Cards */
.trip-card {
    border: 1px solid var(--wr-border);
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.trip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 136, 255, 0.18);
    border-color: rgba(0, 136, 255, 0.4);
}

.trip-card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.trip-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trip-card:hover .trip-card-img {
    transform: scale(1.05);
}

.badge-age {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-vibe {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: #ffffff;
    color: var(--wr-dark);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.trip-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trip-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--wr-dark);
}

.price-tag {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--wr-blue-dark);
}

.price-sub {
    font-size: 0.8rem;
    color: var(--wr-text-muted);
}

/* Departure Status Badges */
.badge-status-almost_full {
    background-color: #fee2e2;
    color: #ef4444;
    font-weight: 700;
}

.badge-status-guaranteed {
    background-color: #dcfce7;
    color: var(--wr-green-dark);
    font-weight: 700;
}

.badge-status-available {
    background-color: #e0f2fe;
    color: var(--wr-blue);
    font-weight: 700;
}

/* Trust Bar */
.trust-bar {
    padding: 30px 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--wr-border);
}

/* Coordinator Avatar */
.coordinator-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--wr-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Itinerary Timeline */
.timeline-item {
    position: relative;
    padding-left: 36px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: -20px;
    width: 2px;
    background: #dbeafe;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wr-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 136, 255, 0.4);
}

/* Footer */
footer {
    background: #091e36;
    color: #94a3b8;
    padding: 70px 0 30px;
    border-top: 4px solid var(--wr-green);
}

/* Extra Sections Styling */
.destination-pill-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 260px;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-pill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 136, 255, 0.25);
}

.destination-pill-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-pill-card:hover img {
    transform: scale(1.08);
}

.destination-pill-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(9, 30, 54, 0.9) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.faq-accordion .accordion-item {
    border: 1px solid var(--wr-border);
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 18px 24px;
    background: #fff;
    color: var(--wr-dark);
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--wr-blue);
    background: #f0f7ff;
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--wr-blue);
}

.ig-feed-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    display: block;
}

.ig-feed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ig-feed-item:hover img {
    transform: scale(1.1);
}

.ig-feed-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 136, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ig-feed-item:hover .ig-feed-overlay {
    opacity: 1;
}

/* The WeRoad Formula Section */
.formula-section {
    position: relative;
    background: linear-gradient(180deg, rgba(9, 30, 54, 0.88) 0%, rgba(9, 30, 54, 0.94) 100%),
                url('../images/hero-srilanka.jpg') center/cover no-repeat fixed;
    color: #ffffff;
}

.formula-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease;
}

.formula-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(0, 136, 255, 0.5);
}

.formula-card p {
    color: #cbd5e1 !important;
}

/* Reviews Section with Background */
.reviews-section {
    position: relative;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(240, 247, 255, 0.95) 100%),
                url('../images/mirissa.jpg') center/cover no-repeat fixed;
}

/* Coordinators Section with Background */
.coordinators-section {
    position: relative;
    background: linear-gradient(180deg, rgba(244, 248, 252, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%),
                url('../images/yala-safari.jpg') center/cover no-repeat fixed;
}

/* Countdown & Urgent Departure Banner with Custom Image */
.countdown-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(9, 30, 54, 0.9) 0%, rgba(0, 75, 153, 0.88) 100%),
                url('../images/hero-srilanka.jpg') center/cover no-repeat;
    color: #fff;
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0, 75, 153, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Community WhatsApp Section Background */
/* ===================================================
   LOGO PRELOADER STYLING & ANIMATIONS
   =================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0e2a4a 0%, #061527 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.preloader-logo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.preloader-logo-img {
    width: 90px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: preloaderPulse 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 16px rgba(0, 136, 255, 0.6));
}

/* Pulsing radar rings behind the logo */
.preloader-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid rgba(0, 136, 255, 0.5);
    animation: preloaderRipple 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.preloader-ring:nth-child(2) {
    animation-delay: 0.6s;
    border-color: rgba(4, 151, 1, 0.5);
}

.preloader-ring:nth-child(3) {
    animation-delay: 1.2s;
    border-color: rgba(0, 136, 255, 0.3);
}

.preloader-text-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.preloader-text-brand span {
    color: var(--wr-blue);
}

.preloader-text-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2ecc71;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* Slim progress bar line */
.preloader-bar-wrap {
    width: 180px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.preloader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #0088ff, #2ecc71);
    border-radius: 999px;
    animation: preloaderBar 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0% { transform: scale(0.96); filter: drop-shadow(0 0 10px rgba(0, 136, 255, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 24px rgba(0, 136, 255, 0.8)); }
    100% { transform: scale(0.96); filter: drop-shadow(0 0 10px rgba(0, 136, 255, 0.4)); }
}

@keyframes preloaderRipple {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes preloaderBar {
    0% { left: -40%; width: 30%; }
    50% { width: 50%; }
    100% { left: 100%; width: 30%; }
}
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(4, 151, 1, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(4, 151, 1, 0); }
    100% { box-shadow: 0 0 0 0 rgba(4, 151, 1, 0); }
}

.float-hover:hover {
    animation: floatAnimation 3s ease-in-out infinite;
}

.pulse-badge {
    animation: pulseGlow 2s infinite;
}

/* Card hover animation enhancements */
.trip-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trip-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 38px -10px rgba(0, 136, 255, 0.25);
}

.vibe-pill {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-weroad, .btn-weroad-blue {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-weroad:hover, .btn-weroad-blue:hover {
    transform: translateY(-2px) scale(1.02);
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--wr-blue);
}

/* Admin Styling */
.admin-sidebar {
    min-height: 100vh;
    background: #091e36;
    color: #fff;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 4px;
    font-weight: 600;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(0, 136, 255, 0.2);
}
