:root {
    --brand: #906cdc;
    --brand-d: #7a57cb;
    --muted: #6b7280;
    --bg: #f9f9fb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {

    body,
    select,
    textarea,
    .btn,
    input {
        font-size: 18px !important;
    }

    h2 {
        font-size: 24px !important;
    }
}


.btn-success {
    background: #00b70b !important;
    color: #ffffff !important;
    border: 2px solid #00b70b !important;
}

.btn-success:hover {
    background: transparent !important;
    color: #00b70b !important;
    border: 2px solid #00b70b !important;
}

.btn-disabled {
    background: transparent !important;
    color: #ed0000 !important;
    border: 2px solid #ed0000 !important;
}

.btn-disabled:hover {
    background: #ed0000 !important;
    color: #fff !important;
}

.partnerIsGold {
    border: 8px solid #b68c00;
}

.main-div {
    overflow-y: auto;
    /* For Firefox */
    scrollbar-width: none;
}

/* For Chrome, Safari, and other WebKit-based browsers */
.main-div::-webkit-scrollbar {
    display: none;
}

body>div:not(.toastify, .signin-container) {
    overflow-y: auto;
    /* For Firefox */
    scrollbar-width: none;
}

body>div:not(.toastify, .signin-container)::-webkit-scrollbar {
    display: none;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: #111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* === Mobile Navbar (Bottom) === */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
    z-index: 100;
}

.navbar a {
    flex: 1;
    /* all links take equal space except profile */
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
}

.navbar a i {
    font-size: 24px;
    margin-bottom: 2px;
    color: var(--brand-d);
}

.navbar .profile-btn {
    flex: 0 0 64px;
    /* fixed width, no flex grow */
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand);
    position: relative;
    top: -25px;
    border: 2px solid var(--brand);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    /* center in flex container */
}

.navbar .profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* ensure perfect circle */
}

/* === Desktop Navbar (Top) === */
.topbar {
    display: none;
}

.font-size-10-px {
    font-size: 10px;
}

.font-size-18-px {
    font-size: 18px;
}

.font-size-20-px {
    font-size: 20px;
}

.font-size-25-px {
    font-size: 25px;
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.logo {
    max-width: 180px;
    height: auto
}

@media(max-width: 767px) {
    .main-div {
        position: absolute;
        left: 0;
        top: 0;
        box-sizing: border-box;
        width: 100%;
        height: CALC(100% + 1px);
        overflow-x: hidden;
    }

    body>div:not(.toastify, .signin-container) {
        position: absolute;
        left: 0;
        top: 0;
        box-sizing: border-box;
        width: 100%;
        height: CALC(100% + 1px);
        overflow-x: hidden;
    }

    .toastify {
        max-width: 92% !important;
    }
}

@media(min-width: 768px) {
    .navbar {
        display: none;
    }

    /* hide bottom nav */

    .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        padding: 0.75rem 2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    }

    .topbar .logo {
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--brand);
    }

    .topbar .links {
        display: flex;
        gap: 1.5rem;
    }

    .topbar .links a {
        text-decoration: none;
        color: var(--muted);
        font-weight: 500;
        transition: color 0.2s;
    }

    .topbar .links a:hover {
        color: var(--brand);
    }

    .topbar .profile {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--brand);
    }

    .topbar .profile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}





/* Hero / Event Section */
.hero {
    padding: 2rem 1.5rem 6rem;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.hero p.subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero .map {
    width: 100%;
    height: 220px;
    background: #e5e7eb;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero .text {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.hero .text h2 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
    color: var(--brand-d);
}

.hero .text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

@media(min-width: 768px) {
    .hero {
        padding: 5rem 3rem 3rem;
        text-align: left;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p.subtitle {
        font-size: 1.2rem;
    }

    .hero .map {
        height: 300px;
        margin: 2rem 0;
    }
}









/* Tour Overview */
.tour-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

.tour-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.tour-card h2 {
    color: var(--brand-d);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tour-card p {
    color: #444;
    line-height: 1.6;
}

.tour-card a.btn {
    align-self: flex-start;
    background: var(--brand);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.tour-card a.btn:hover {
    background: var(--brand-d);
}


.tour-card .info {
    display: flex;
    flex-direction: column;
}

.tour-card .info p {
    flex-grow: 1;
}

.tour-card .info .btn {
    margin-top: 1rem;
    align-self: flex-start;
    white-space: nowrap;
}

@media(min-width: 768px) {
    .media-container {
        width: 700px;
    }
    
    .tour-card {
        flex-direction: row;
    }

    .tour-card a {
        width: 40%;
        height: auto;
    }

    .tour-card img {
        width: 100%;
        height: auto;
    }

    .tour-card .info {
        flex: 1;
        padding-left: 1.5rem;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .tour-card .info p {
        flex-grow: 1;
    }
}













.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.instagram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.instagram-btn:hover::before {
    left: 100%;
}

.instagram-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Tablet and up */
@media (min-width: 768px) {
    .instagram-btn {
        padding: 15px 30px;
        font-size: 16px;
        gap: 12px;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .instagram-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
}

/* Solid white Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    /* white solid background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Spinner using brand color */
.spinner {
    border: 6px solid rgba(144, 108, 220, 0.2);
    /* semi-transparent brand */
    border-top: 6px solid var(--brand);
    /* solid brand */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    gap: 1.5rem;
}

/* Partner Card */
.partner-card {
    position: relative;
    border-radius: 1rem;
    width: 200px;
    overflow: hidden;
    /* image respects card rounding */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    padding: 0;
    /* remove padding so image fills */
    aspect-ratio: 1;
    /* This makes the card a perfect square */
}

.partner-card img {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    object-fit: contain;
    /* This will make sure the whole image is visible, preventing the zoom. */
    display: block;
}

/* Background variants */
.partner-bg-dark {
    background: #111;
    /* dark mode */
}

.partner-bg-light {
    background: #fff;
    /* light mode */
}

.partner-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

@media(max-width: 767px) {
    /* .partners-grid {
        margin-bottom: 5rem;
    } */

    .partner-card {
        width: 150px;
    }
}

/* Desktop Enhancements */
@media(min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 2rem;
    }
}