/**
 * StreetWhip - Main Styles
 */

/* Base styles */

@font-face {
    font-family: 'Graphik';
    src: url('fonts/graphik/Graphik-Light.woff2') format('woff2'),
        url('fonts/graphik/Graphik-Light.woff') format('woff'),
        url('fonts/graphik/Graphik-Light.ttf') format('truetype');
    font-weight: 300;
    /* Light */
    font-style: normal;
}

@font-face {
    font-family: 'Graphik';
    src: url('fonts/graphik/Graphik-Medium.woff2') format('woff2'),
        url('fonts/graphik/Graphik-Medium.woff') format('woff'),
        url('fonts/graphik/Graphik-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik';
    src: url('fonts/graphik/Graphik-Regular.woff2') format('woff2'),
        url('fonts/graphik/Graphik-Regular.woff') format('woff'),
        url('fonts/graphik/Graphik-Regular.ttf') format('truetype');
    font-weight: 400;
    /* Regular */
    font-style: normal;
}


@font-face {
    font-family: 'Graphik';
    src: url('fonts/graphik/Graphik-Semibold.woff2') format('woff2'),
        url('fonts/graphik/Graphik-Semibold.woff') format('woff'),
        url('fonts/graphik/Graphik-Semibold.ttf') format('truetype');
    font-weight: 600;
    /* Semibold */
    font-style: normal;
}

body {
    font-family: 'Graphik', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f9fa;
    color: #333;
}

/* Navbar styles */
.sw-navbar {
    background-color: #111;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sw-logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sw-logo span {
    color: #3498db;
}

/* Main container */
.sw-container {
    display: flex;
    height: calc(100vh);
    overflow: hidden;
    position: relative;
}

/* Street View container */
.sw-map-container {
    flex: 3;
    height: 100%;
    position: relative;
}

#sw-street-view {
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sw-sidebar {
    flex: 1;
    padding: 20px;
    /* background-color: rgba(0, 0, 0, 0.3); */
    /* background-color:rgba(0, 0, 0, 0.18); */
    overflow-y: auto;
    /* box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); */
    /* max-width: 450px; */
    /* min-width: 320px; */
    /* width: 360px; */
    width: 300px;
    position: absolute;
    right: 0;
    height: 100%;
    overflow-y: scroll;
    z-index: 1;
    padding-top:18px;
}

/* Current location card */
.sw-location-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.sw-location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sw-location-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.sw-featured-badge {
    background-color: #ffc107;
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.sw-location-desc {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Mini map */
.sw-mini-map {
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tour header and content */
.sw-tour-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    background: linear-gradient(135deg, #6c5ce7, #8e44ad);
    color: white;
    padding: 15px 20px;
    border-bottom: none;
}

.sw-tour-icon {
    font-size: 22px;
    background: rgba(255, 255, 255, 0.2);
    height: 42px;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    color: white;
}

.sw-tour-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.sw-tour-guide {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    /* padding: 20px; */
}

/* Action buttons */
.sw-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sw-button {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sw-primary-button {
    background-color: #3498db;
    color: white;
}

.sw-primary-button:hover {
    background-color: #2980b9;
}

.sw-success-button {
    background-color: #2ecc71;
    color: white;
}

.sw-success-button:hover {
    background-color: #27ae60;
}

.sw-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Visited places section */
.sw-visited-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sw-visited-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sw-visited-icon {
    font-size: 20px;
    margin-right: 10px;
    color: #e74c3c;
}

.sw-visited-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.sw-visited-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sw-visited-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.sw-visited-list li:last-child {
    border-bottom: none;
}

.sw-visited-list a {
    color: #3498db;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.sw-visited-list a:hover {
    color: #2980b9;
}

.sw-visited-list small {
    color: #999;
    font-size: 12px;
}

/* Loading overlay */
.sw-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.sw-loading-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.sw-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notification */
.sw-toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.sw-toast-visible {
    opacity: 1;
}

/* Analyze button */
.sw-analyze-button {
    background: linear-gradient(135deg, #6c5ce7, #8e44ad);
    color: white;
    margin: -5px 20px 20px 20px;
    width: 100%;
    display: block;
    padding: 14px;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
}

.sw-analyze-button:hover {
    background-color: #5344c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
}

.sw-analyze-button:disabled {
    background-color: #a29fdc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sw-analyze-button i {
    margin-right: 8px;
}

/* History section */
.sw-history-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sw-history-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sw-history-icon {
    font-size: 20px;
    margin-right: 10px;
    color: #3498db;
}

.sw-history-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.sw-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.sw-history-list li {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.sw-history-list li:last-child {
    border-bottom: none;
}

.sw-history-link {
    color: #3498db;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 13px;
}

.sw-history-link:hover {
    color: #2980b9;
}

.sw-history-list small {
    color: #999;
    font-size: 11px;
}

/* Login overlay */
.sw-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3246d3, #7969ff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sw-login-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sw-login-card h2 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.sw-login-card label {
    display: block;
    margin: 0.5rem 0 0.2rem;
    font-weight: 500;
}

.sw-login-card input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.sw-login-card button {
    width: 100%;
    padding: 0.6rem;
    background-color: #3246d3;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.sw-login-card button:hover {
    background-color: #424edb;
}

.sw-login-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-style: italic;
}

/* Tour content */
.sw-tour-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sw-tour-title-text {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #333;
    line-height: 1.3;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.sw-tour-intro {
    font-size: 16px;
    line-height: 1.5;
    color: #444;
    border-left: 3px solid #6c5ce7;
    padding-left: 15px;
    margin-bottom: 20px;
}

.sw-insights-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tour section */
.sw-tour-section {
    background-color: transparent;
    border-radius: 14px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Insight items */
.sw-insight-item {
    /* display: flex; */
    /* background-color: rgba(30, 30, 30, 0.85); */
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
    /* border: 1px solid #eaeaea; */
    margin-bottom: 18px;
    /* box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); */
    position: relative;
    display: none;

    margin-left: -16px;
    margin-right: -17px;

    background: rgb(0, 0, 0, 48%);
}
.sw-insight-item {
    transition: transform .45s ease-out, opacity .45s ease-out;
}

.sw-slide-init {
    /* starting pose */
    opacity: 0;
    transform: translateY(40px);
    /* slide up 40 px */
}
.sw-insight-emoji {
    font-size: 24px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(52, 152, 219, 0.15);
    padding: 20px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-insight-content {
    /* flex: 1; */
    padding: 18px 20px;
}

.sw-insight-content h4 {
    margin: 0 0 0px 0;
        font-size: 17px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.81);
        letter-spacing: -0.4px;
}

.sw-insight-content p {
    margin: 0;
    margin-top:10px;
    font-size: 15px;
    line-height: 1.65;
    color: #e0e0e0;
}

/* Shine Effect */
.sw-insight-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 80%);
    transform: skewX(-25deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.sw-insight-item.apply-shine::after {
    animation: shineEffect 2.0s ease-in-out 0.3s forwards;
}

/* Loading and error states */
.sw-tour-loading {
    text-align: center;
    padding: 25px 0;
    color: #666;
}

.sw-tour-loading i {
    font-size: 28px;
    color: #6c5ce7;
    margin-bottom: 15px;
    display: block;
}

.sw-tour-loading p {
    margin: 0;
    font-size: 14px;
}

.sw-error {
    text-align: center;
    padding: 25px 0;
    color: #e74c3c;
}

.sw-error i {
    font-size: 28px;
    margin-bottom: 15px;
    display: block;
}

.sw-error p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.sw-no-insights {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.sw-tour-guide-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    text-align: center;
    color: #e0e0e0;
}

.sw-loading-pin-animation {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
    animation: pulsePin 1.5s infinite ease-in-out, waveEffect 2s infinite linear;
    display: inline-block;
}

.sw-tour-guide-loading p {
    font-size: 15px;
    font-style: italic;
    max-width: 80%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sw-insight-item:nth-child(1) { animation-delay: 0.1s; }
.sw-insight-item:nth-child(2) { animation-delay: 0.2s; }
.sw-insight-item:nth-child(3) { animation-delay: 0.3s; }
.sw-insight-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@keyframes shineEffect {
    0% {
        left: -150%;
        opacity: 0;
    }
    20% {
        left: -150%;
        opacity: 0.6;
    }
    50% {
        left: 150%;
        opacity: 0.6;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

@keyframes pulsePin {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes waveEffect {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(-5deg);
    }
    75% {
        transform: translateY(3px) rotate(5deg);
    }
}

.fa-pulse {
    animation: pulse 1.5s infinite;
}

/* Category modal styling */
.sw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.87);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: auto;
}



.sw-close-modal {
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.sw-close-modal:hover {
    color: #3498db; /* Light blue on hover */
}

.sw-modal-search {
    display: flex;
    margin-bottom: 30px;
}

.sw-modal-search input {
    flex-grow: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: #fff;
}

.sw-modal-search button {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.sw-modal-search button:hover {
    background-color: #2980b9;
}

.sw-modal-results h2,
.sw-modal-categories h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #fff; /* Light text on dark background */
    font-weight: 500;
}

.sw-search-results-container {
    margin-bottom: 30px;
}

#sw-tour-guide .sw-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #243654; /* Darker blue for result items */
    border-radius: 8px;
    margin-bottom: 10px;
}

.sw-search-result:last-child {
    margin-bottom: 0;
}

.sw-result-info {
    flex: 1;
}

.sw-result-location {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.sw-result-description {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 4px;
}

.sw-result-coords {
    color: #95a5a6;
    font-size: 13px;
}

.sw-result-tags {
    color: #3498db;
    font-size: 13px;
    margin-top: 4px;
}

.sw-result-btn {
    padding: 8px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 0px;
    margin-top: 5px;
    margin-bottom: 20px;
}

.sw-result-btn:hover {
    background-color: #2980b9;
}

.sw-no-results {
    padding: 20px;
    text-align: center;
    color: #bdc3c7;
    background-color: #243654; /* Darker blue for empty results */
    border-radius: 8px;
}

.sw-category-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.sw-category-btn {
    padding: 15px 25px;
    background-color: #243654; /* Darker blue for category buttons */
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    min-width: 150px;
    transition: all 0.2s ease;
}

.sw-category-btn:hover {
    background-color: #3498db;
    transform: translateY(-2px);
}

.sw-modal-lucky {
    text-align: center;
}

#sw-feeling-lucky-btn {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    min-width: 200px;
    transition: all 0.2s ease;
}

#sw-feeling-lucky-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.sw-search-loading {
    text-align: center;
    padding: 20px;
    background-color: #243654; /* Darker blue for loading state */
    border-radius: 8px;
    color: #fff;
}

.sw-search-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 0 auto 10px;
}

.sw-embed-note {
    background-color: #243654;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #bdc3c7;
    border-left: 4px solid #3498db;
}

/* Category grid */
.sw-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.sw-category-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sw-category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.sw-category-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #6c5ce7;
}

.sw-category-name {
    font-weight: 500;
    font-size: 14px;
}
#sw-bottom-bar {
    font-size: 14px;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        /* transform: translateX(-20%); */
        
        width: 55%;
        max-width: 1200px;
        background: linear-gradient(to bottom, rgba(34, 34, 34, 0.7), rgba(17, 17, 17, 0.7));
        background-color: rgba(17, 17, 17, 0.4);
        color: #fff;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        z-index: 1;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
}

#sw-category-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    position: relative;
    padding-right: 15px;
    margin-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

#sw-search-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 15px;
    margin-right: 15px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}
#sw-bottom-search-btn {
    background: #aa3dbc;
    font-family: 'Graphik', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    color: #fff;
    line-height: 1.6em;
    max-width: 120px;
}

#sw-shuffle-btn {
    line-height: 1.5em;
    position: relative;
    /* Needed for positioning the shine pseudo-element */
    overflow: hidden;
    /* Keeps the shine effect within the button bounds */
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    /* Smooth transition for click */
}

@keyframes explore-btn-shine {
    0% {
        transform: translateX(-110%) skewX(-20deg);
        /* Start off-screen left */
    }

    /* CHANGE: Make movement take 50% of the duration */
    50% {
        transform: translateX(180%) skewX(-20deg);
        /* Move across to off-screen right */
    }

    /* CHANGE: Pause off-screen right for the remaining 50% */
    100% {
        transform: translateX(180%) skewX(-20deg);
        /* Stay off-screen right */
    }
}

#sw-shuffle-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* Width of the shine element */
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            /* Adjust opacity for subtlety */
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-110%) skewX(-20deg);
    /* Initial position */
    /* No change needed here, the timing is controlled by the keyframes now */
    animation: explore-btn-shine 4s infinite linear 2s;
    /* name duration iteration timing delay */
    pointer-events: none;
    /* Ensure it doesn't block clicks */
    z-index: 1;
    /* Place above the button background but below text */
}

/* --- Click Burst Animation --- */

@keyframes explore-btn-burst {
    0% {
        transform: scale(1);
        /* Start with a subtle glow matching the button */
        box-shadow: 0 0 5px 2px rgba(41, 128, 185, 0.5);
    }

    50% {
        transform: scale(1.03);
        /* Slightly pop the button */
        /* Expand a brighter, multi-colored shadow quickly */
        box-shadow: 0 0 10px 15px rgba(41, 128, 185, 0),
            /* Base color fades out */
            0 0 8px 12px rgba(255, 255, 255, 0.5),
            /* White inner glow */
            0 0 6px 8px rgba(52, 152, 219, 0.3);
        /* Lighter blue outer glow */
    }

    100% {
        transform: scale(1);
        /* Fade back to the subtle glow */
        box-shadow: 0 0 5px 2px rgba(41, 128, 185, 0.5);
    }
}

/* Class added via JS on click */
#sw-shuffle-btn.explore-btn-clicked {
    animation: explore-btn-burst 0.4s ease-out forwards;
    /* name duration timing fill-mode */
    /* Optionally hide the shine during the click animation */
    /* &::after { animation: none; opacity: 0; } */
}

/* Ensure button text is above the shine */
#sw-shuffle-btn span,
#sw-shuffle-btn i {
    position: relative;
    z-index: 2;
}

#sw-bottom-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.05));
}

#sw-bottom-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.05),
            transparent);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    pointer-events: none;
}

#sw-bottom-bar span {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
/* Welcome message and fun fact */
#sw-welcome-message, #sw-fun-fact {
    color: #fff;
    font-weight: 300;

    
}
#sw-fun-fact {
    font-size: 18px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 0.9px;
    padding-bottom: 20px;
    background: #6700ac;
    padding: 15px;
    /* margin-left: -16px; */
    /* margin-right: -17px; */
    margin-bottom: 30px;
    margin-top: 10px;
    border-radius: 5px;
    border-left: 6px solid #a57aec;
}

/* Collapsible section */
.collapsible-section h3:hover {
    text-decoration: underline;
    color: #3498db;
}

/* Nav search */
.sw-nav-search {
    display: flex;
    margin-bottom: 20px;
}

#sw-history-trigger {
    position: relative;
    display: inline-block;
    /* or inline-flex, etc. */
    cursor: pointer;
    padding: 6px;
    /* some spacing around the icon */
}

.sw-history-popover {
position: absolute;
    bottom: 120%;
    /* place it above the icon */
    left: 50%;
    /* center horizontally relative to icon */
    transform: translateX(-50%);

    min-width: 220px;
    max-width: 300px;
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;

    z-index: 9999;
    /* so it appears on top */
}
.sw-history-popover::before {
  content: "";
  position: absolute;
  top: 100%;      /* position arrow at bottom of popover */
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.sw-history-row {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size:12px;
}

.sw-history-row a {
    text-decoration: none;
    color: #3498db;
    /* a nice link color */
}

.sw-history-row a:hover {
    text-decoration: underline;
}

.sw-history-row small {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #999;
}

.sw-welcome-section {
    /* background: rgb(0 7 108 / 79%); */
    background: rgb(3,0,53, 79%);
    background: none;
    /* padding: 40px; */
    /* padding: 23px; */
    padding: 0px;
    border-radius: 20px;
}

.welcome-details-container {
    padding: 16px;
    padding-bottom: 0px;
}

.sw-more-details-section {
    /* background: rgb(53, 0, 39, 87%); */
    padding: 10px;
    border-radius: 20px;
    margin-top: 20px;
}

.sw-sidebar-desc {
    font-size: 18px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 0.9px;
    padding-bottom: 20px;
    background: rgb(0,0,0,48%);
    padding: 15px;
    margin-left: -16px;
    margin-right: -17px;
    margin-bottom: 40px;
    margin-top: 20px;
    line-height: 1.5;

}

.sw-sidebar-desc u {
text-decoration: none;
    border-bottom: 3px solid #e5187b;
}

.sw-sidebar-latlng {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    
}


.sw-sidebar-title {
    font-size: 23px;
    color: #c6d2ff;
    padding-top: 15px;
    font-weight: 600;
    padding-bottom: 10px;
}

.sw-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sw-category-pill {
    padding: 4px 10px;
    /* background-color: #f1f1f1; */
    background-color: #665959;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sw-category-pill:hover {
    background-color: #6c8190;
}

.sw-category-active {
    background-color: #2980b9;
    color: white;
}


#sw-more-categories-btn {
    opacity: 0.7;
}

#sw-more-categories-btn:hover {
    opacity: 1;
}


/* Optional: Subtle fade-in animation for the login modal */
#sw-login-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#sw-login-modal.sw-modal-show {
    display: block;
    opacity: 1;
}

.sw-close-login-modal {
    float: right;
    font-size: 28px;
    cursor: pointer;
    margin-top: -10px;
}

#sw-login-email {
    width: 95%;
    padding: 10px;
    font-size: 16px;
}
/* Upgrade Modal Styles */
.sw-plan-option {
    transition: all 0.3s ease;
}

.sw-plan-option:hover,
.sw-plan-option.selected {
    border-color: #2980b9 !important;
    background-color: #f0f7ff;
}

.sw-close-upgrade-modal {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sw-close-upgrade-modal:hover {
    color: #e74c3c;
}

#sw-checkout-btn {
    transition: all 0.3s ease;
}

#sw-checkout-btn:hover {
    background-color: #3498db !important;
}


.sw-sidebar-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}


.logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    position: fixed;
    left: 30px;
}

/* Base styles for both text elements */
.logo-text {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: 25px;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    letter-spacing: -2.5px;
    z-index: 2;
    
}

/* Specific styles for each part */
.street {
    color: #ffdd10;
    margin-right: 1px;
    /* Tight spacing between words */
}

.whip {
    color: #c6d2ff;
    font-size: 34px;
    letter-spacing: -3px;
}

/* Splash elements (one for each word) */
.splash {
    position: absolute;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: 100% 100%;
transform: rotate(-5deg) scale(1.6);
}

/* Street splash */
.splash-street {
    width: 150%;
        height: 95%;
        left: -5%;
        top: -3%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' width='100' height='30'%3E%3Cpath d='M10,15 C20,5 30,25 50,15 C70,5 80,25 90,15' stroke='%239932CC' stroke-width='20' stroke-linecap='round' fill='none' opacity='0.7'/%3E%3C/svg%3E");
}

/* Whip splash */
.splash-whip {
    width: 50%;
        height: 115%;
        left: 5%;
        transform: rotate(-5deg) scale(4);
        top: 0;
        margin-left: 30px;
        margin-top: -6px;
        z-index: 1;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' width='100' height='30'%3E%3Cpath d='M15,15 C25,8 40,22 55,15 C65,8 70,22 75,15' stroke='%232b3a96' stroke-width='20' stroke-linecap='round' fill='none' opacity='0.7'/%3E%3C/svg%3E");
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' width='100' height='30'%3E%3Cpath d='M15,15 C25,8 40,22 55,15 C70,8 80,22 90,15' stroke='%23FFE44D' stroke-width='20' stroke-linecap='round' fill='none' opacity='0.7'/%3E%3C/svg%3E"); */
}

/* Add outline to text for better visibility */
.logo-text {
    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.8);
    text-stroke: 0.6px rgba(0, 0, 0, 0.8);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Optional small size adjustment */
.logo-small .logo-text {
    font-size: 18px;
}

.logo-small .splash {
    transform: rotate(-5deg) scale(1.15);
}

#sw-generate-metadata-btn {
    background: #6701ac;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    width:100%;
}

#sw-generate-metadata-btn:hover {
    background: #4a017d;
}
    


/* Button that has data already */
.sw-button-has-data {
    opacity: 0.75 !important;
    background-color: #95a5a6 !important;
    color: white !important;
}

/* Generate metadata button pulse animation */
.sw-generate-metadata-pulse {
    animation: sw-generate-metadata-pulse-animation 2s infinite;
    position: relative;
    overflow: hidden;
}

.sw-generate-metadata-pulse::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: sw-generate-metadata-shine-animation 3s infinite;
}

@keyframes sw-generate-metadata-pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(103, 1, 172, 0.7);
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(103, 1, 172, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(103, 1, 172, 0);
        transform: scale(1);
    }
}

@keyframes sw-generate-metadata-shine-animation {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Generate commentary button pulse animation */
.sw-generate-commentary-pulse {
    animation: sw-generate-commentary-pulse-animation 2s infinite;
    position: relative;
    overflow: hidden;
}

.sw-generate-commentary-pulse::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: sw-generate-commentary-shine-animation 3s infinite;
}

@keyframes sw-generate-commentary-pulse-animation {
  
}

@keyframes sw-generate-commentary-shine-animation {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}


#sw-generate-commentary-btn, #sw-refresh-details-btn {
    margin-top:15px;
        background: #6701ac;
            color: white;
            font-size: 12px;
            text-transform: uppercase;
            font-weight: 600;
            color: #fff;
            margin-bottom: 5px;
            width: 100%;

            background: #a8007b;
}


.sw-commentary-intro {
    color: #ffcd96;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: -0.5px;
}




.sw-modal-content {
    background-color: #1a2942;
    /* Keeping the dark blue background */
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    /* Increased to accommodate the side-by-side layout */
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.sw-login-modal-content, #sw-upgrade-modal .sw-modal-content {
    padding:20px;
}



.sw-close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.sw-close-modal:hover {
    color: #3498db;
}

.sw-modal-main-title {
    margin: 0 0 15px 0;
    font-size: 26px;
    color: #fff;
    font-weight: 600;
}

.sw-modal-subtitle {
    margin: 0 0 30px 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 90%;
}

.sw-modal-sections {
    display: flex;
    gap: 30px;
    margin-left: -25px;
    margin-right: -25px;
}

.sw-modal-section {
    flex: 1;
    background-color: rgba(26, 36, 56, 0.6);
    border-radius: 10px;
    padding: 25px;
}

.sw-modal-section h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #fff;
    font-weight: 500;
}

.sw-search-description {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.sw-modal-search {
    margin-bottom: 25px;
}

.sw-modal-results h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

.sw-categories-section .sw-category-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.sw-categories-section .sw-category-btn {
    padding: 20px;
    background-color: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sw-categories-section .sw-category-btn:hover {
    background-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

#sw-refresh-categories-btn {
    width: 100%;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#sw-refresh-categories-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sw-modal-lucky {
    display: flex;
    justify-content: center;
}

#sw-feeling-lucky-btn {
    padding: 15px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

#sw-feeling-lucky-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}


#sw-show-login-btn {
    background-color: #2980b9; 
    color: #fff;
    width:100%;
}

#sw-show-login-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Login Modal Styling */
.sw-login-modal-content {
    max-width: 450px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.sw-login-container {
    padding: 30px;
    color: #333;
}

.sw-close-login-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.sw-close-login-modal:hover {
    color: #333;
}

.sw-login-header {
    text-align: center;
    margin-bottom: 25px;
}

.sw-login-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.sw-login-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.sw-input-group {
    margin-bottom: 20px;
}

.sw-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sw-input-group input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
    background-color: #fff;
}

.sw-login-button {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: #4285f4;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sw-login-button:hover {
    background-color: #3367d6;
}

.sw-login-button:disabled {
    background-color: #a4c2f4;
    cursor: not-allowed;
}

#sw-login-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    min-height: 20px;
}

#sw-login-status.success {
    background-color: #e6f4ea;
    color: #137333;
}

#sw-login-status.error {
    background-color: #fce8e6;
    color: #c5221f;
}

#sw-login-status.loading {
    color: #666;
}

.sw-login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* Success state styling */
.sw-login-success {
    text-align: center;
    padding: 10px 0;
}

.sw-login-success i {
    font-size: 48px;
    color: #34a853;
    margin-bottom: 15px;
}

.sw-login-success h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.sw-login-success p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}


/* Onboarding Modal Styles */
.sw-onboarding-content {
    max-width: 750px;
    padding: 0;
    border-radius: 20px;
    overflow: scroll;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sw-onboarding-steps {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.sw-step-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.sw-step-indicator.active {
    background: #2980b9;
    transform: scale(1.2);
}

.sw-onboarding-step {
    /* min-height: 500px; */
    position: relative;
    overflow: scroll;
}

.sw-onboarding-blob-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.sw-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    z-index: 1;
}

.sw-blob-1 {
    width: 300px;
    height: 300px;
    background: #ff7eb9;
    top: -100px;
    left: -100px;
}

.sw-blob-2 {
    width: 250px;
    height: 250px;
    background: #7afcff;
    bottom: -50px;
    right: -50px;
}

.sw-blob-3 {
    width: 200px;
    height: 200px;
    background: #feff9c;
    top: 50%;
    right: 10%;
}

.sw-blob-4 {
    width: 280px;
    height: 280px;
    background: #a5f2e7;
    top: -80px;
    right: -80px;
}

.sw-blob-5 {
    width: 220px;
    height: 220px;
    background: #ffd37f;
    bottom: -60px;
    left: 10%;
}

.sw-blob-6 {
    width: 250px;
    height: 250px;
    background: #b490ca;
    top: -70px;
    left: -70px;
}

.sw-blob-7 {
    width: 300px;
    height: 300px;
    background: #7afcff;
    bottom: -100px;
    right: -100px;
}

.sw-onboarding-content-inner {
    position: relative;
    z-index: 2;
    padding: 20px 40px 40px;
    color: #333;
    overflow-y: scroll;
}

.sw-onboarding-content-inner h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #222;
}

.sw-onboarding-intro {
    font-size: 20px;
    margin-bottom: 20px;
}

.sw-onboarding-message {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size:20px;
}

.sw-onboarding-message ul {
    padding-left: 20px;
    margin: 15px 0;
}

.sw-onboarding-message li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.sw-onboarding-usage {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.sw-onboarding-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sw-onboarding-image {
    width: 100%;
    display: block;
}

.sw-pointer {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2980b9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sw-pointer-1 {
    bottom: 20px;
    right: 20px;
}

.sw-pointer-2 {
    top: 30%;
    left: 20px;
}

.sw-pointer-3 {
    bottom: 20px;
    left: 40%;
}

.sw-onboarding-instructions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sw-instruction-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
}

.sw-instruction-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2980b9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.sw-instruction-item p {
    margin: 0;
}

.sw-onboarding-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.sw-benefit-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
}

.sw-benefit-icon {
    font-size: 24px;
    margin-right: 15px;
}

.sw-benefit-text {
    font-size: 16px;
}

.sw-onboarding-nav {
    display: flex;
    justify-content: space-between;
}

.sw-onboarding-next,
.sw-onboarding-prev,
.sw-onboarding-login {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sw-onboarding-next,
.sw-onboarding-login {
    background: #2980b9;
    color: white;
    border: none;
}

.sw-onboarding-next:hover,
.sw-onboarding-login:hover {
    background: #3498db;
    transform: translateY(-2px);
}

.sw-onboarding-prev {
    background: transparent;
    border: 1px solid #2980b9;
    color: #2980b9;
}

.sw-onboarding-prev:hover {
    background: rgba(41, 128, 185, 0.1);
}

.sw-onboarding-final {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Adjust the instruction items layout */
.sw-instruction-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Create a two-column layout within each instruction item */
.sw-instruction-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Style the left side with number and text */
.sw-instruction-text {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 30%;
}

.sw-instruction-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2980b9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Style the right side with the image */
.sw-instruction-image {
    flex: 2;
    max-width: 70%;
    max-width: 400px;
    text-align: right;
}

.sw-instruction-image img {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.sw-dropdown {
    position: relative;
    display: inline-block;
}

.sw-dropdown-content {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    z-index: 1000;
    margin-bottom: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.sw-dropdown-item {
    padding: 12px 16px;
    display: block;
    cursor: pointer;
    color: #333;
}

.sw-dropdown-item:hover {
    background-color: #f5f5f5;
}

.sw-dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 5px 0;
}

.sw-dropdown-loading {
    padding: 12px 16px;
    color: #888;
    font-style: italic;
}


.sw-top-bar-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* max-width: 600px; */
    width: 70%;
    max-width: 750px;
}

/* Add the subtle curved line that runs all the way across */
.sw-top-bar {
    z-index: 1000;
    text-align: center;
    
    background-color: rgb(1,1,15,76%);
    color: white;
    padding: 0px 45px 10px 45px;
    border-radius: 0 0 100px 100px;
    display: flex;
    align-items: center;

    backdrop-filter: blur(14px) saturate(160%);
    border-radius: 0 0 40px 40px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}


.sw-top-bar .welcome-details-container {
    text-align: left;   
    flex: 1;
}
.sw-top-bar .sw-sidebar-label {
    margin-bottom: 0px;
}

.sw-top-bar .sw-sidebar-title {
    padding-top:5px;
}


.sw-top-bar-container #sw-fun-fact {
    font-size: 15px;
    background: #290046b0;
    border-radius: 0px;
    border-left: 4px solid #a57aec;
    line-height: 1.4;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-right: 4px solid #a57aec;
    border-bottom: 4px solid #a57aec;
    margin:0 auto;
    margin-bottom:0px;
    width:70%;
}

.sw-top-bar-container #sw-sidebar-location-name {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    max-width: 450px;
    width: 100%;
    left: 0px;
}
       
#sw-sidebar-location-name-container {
    position: relative;
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

#sw-sidebar-location-name {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Check if text is overflowing using CSS */
#sw-sidebar-location-name:hover {
    overflow: visible;
}

/* When text overflows, apply the marquee effect */
#sw-sidebar-location-name:hover::after {
    content: attr(data-text);
    position: absolute;
    left: 100%;
    width: max-content;
    white-space: nowrap;
}

#sw-sidebar-location-name:hover,
#sw-sidebar-location-name:hover::after {
    display: inline-block;
    animation: marquee 4s linear infinite;
    animation-delay: 0s;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.sw-insight-item.sw-collapsed {
    cursor: pointer;
}

.sw-insight-item.sw-expanded {
    cursor: pointer;
}

.sw-insight-item.sw-expanded {
    filter: brightness(.95);
}

.sw-insight-item:hover {
    filter: brightness(1.50) contrast(0.9) !important;
}

.sw-insight-item.sw-expanded:hover {
    filter: brightness(0.85) contrast(1.1) !important;
}

#sw-fun-fact u {
    text-decoration: none;
    border-bottom: 3px solid #a57aec;
}

.sw-insight-extra u {
    text-decoration: none;
    border-bottom: 3px solid #e5187b;
}

.sw-insight-loader {
    padding: 14px 18px 18px;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
}

.sw-loader-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sw-loader-bar {
    width: 100%;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 8px;
}

.sw-loader-bar-inner {
    width: 0%;
    /* grows to 100% */
    height: 100%;
    background: #fff;
    animation: swLoadBar 12s linear forwards;
}

@keyframes swLoadBar {
    to {
        width: 100%
    }
}


.sw-mini-map-container-outer {
    position: fixed;
    left: 8px;
    /* Match margin */
    bottom: 8px;
    /* Match margin */
    width: 270px;
    height: 270px;
    padding: 12px;
    background: rgba(0, 9, 40, 0.25);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* Optional: add some shadow */
    z-index: 999;
    /* Ensure it's above other elements */
}

/* Close button styling */
.sw-mini-map-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffc43d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 35px;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.sw-mini-map-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Map restore bar */
#sw-map-restore-bar {
    position: fixed;
    bottom: 8px;
    /* Position where the map was */
    left: 8px;
    /* Position where the map was */
    background-color: #2980b9;
    color: white;
    padding: 8px 15px;
    border-radius: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    /* Ensure it's above potential overlays */
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

#sw-map-restore-bar:hover {
    background-color: #3498db;
}

#sw-map-restore-bar i {
    margin-right: 8px;
}

/* Ensure inner map container takes full space */
#sw-mini-map-container {
    height: 100%;
    width: 100%;
    display: block;
    /* Ensure it's visible initially if outer is */
    position: relative;
    /* Keep relative positioning */
}


.sw-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, .35);
    padding: 6px 10px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .9rem;
}

.sw-radio button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.sw-radio button:hover {
    background: rgba(255, 255, 255, .15);
}

.sw-radio.hidden {
    display: none;
}

.sw-more-details-section .sw-sidebar-label, .sw-sidebar-label.sw-sidebar-label-radio {
    background: #000000b8;
    display: inline;
    padding: 10px 18px 8px 12px;
    border-radius: 8px;
}


/* ---- share modal ---- */
#sw-share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sw-share-card {
    width: 440px;
    max-width: 92%;
    background: #fff;
    color: #111;
    border-radius: 14px;
    padding: 32px 28px 36px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .3);
    position: relative;
    text-align: center;
    animation: fadeUp .25s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.sw-share-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.sw-share-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 600;
}

.sw-share-sub {
    margin: 0 0 26px;
    font-size: 14px;
    color: #666;
}

.sw-share-field {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f7f7;
}

#sw-share-link {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.sw-btn-copy {
    padding: 0 20px;
    border: none;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.sw-btn-copy i {
    margin-right: 6px;
}

.sw-share-status {
    margin-top: 16px;
    font-size: 13px;
    color: #28a745;
    display: none;
}


#sw-share-btn {
    flex: unset;
    margin-left: 10px;
    background: transparent;
    color: white;
    border: 1px solid rgb(255 255 255 / 19%);
}

#sw-share-btn:hover {
    background: #212f90;
    border: 1px solid rgb(255 255 255 / 29%);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .sw-instruction-item {
        flex-direction: column;
    }

    .sw-instruction-image {
        max-width: 100%;
        margin-top: 15px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sw-onboarding-content {
        max-width: 95%;
    }

    .sw-onboarding-content-inner {
        padding: 60px 20px 30px;
    }

    .sw-onboarding-benefits {
        grid-template-columns: 1fr;
    }
}

/* Modal animation */

/* Mobile responsiveness for the modal */
@media (max-width: 768px) {
    .sw-modal-sections {
        flex-direction: column;
    }

    .sw-modal-content {
        padding: 20px;
    }

    .sw-modal-section {
        padding: 20px;
    }
}

/* ======================
   ADDITIONAL MEDIA QUERIES
   FOR BETTER MOBILE/SMALL SCREEN
   ====================== */

/* For narrower tablets / landscape phones */
@media (max-width: 768px) {
    .logo-container {
        display: none;
    }
    

    /* Bottom bar can be narrower on small screens */
    #sw-bottom-bar {
        width: 100%;
        transform: translateX(-50%);
        border-radius: 0;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        height: 120px;
    }

    #sw-share-btn {
        display:none;
    }

    .sw-mini-map-container-outer {
        display: none;;
    }

    #sw-upgrade-overlay {
        display:none !important;
    }

    .sw-sidebar {
        height:auto;
        right:unset;padding: 0px;
        overflow:unset;
    }

    

    .sw-map-container {
        /* margin-bottom: 40px; */
        height: calc(100% - 100px);
    }

    .sw-top-bar-container {
        width: 100%;
        max-width:100%;
        transform:unset;
        left:0%;
    }

    .sw-sidebar-label-radio {
    }

    #sw-refresh-details-btn {
        display:none !important;

    }

    #sw-tour-guide {
        display: none !important;
    }

    .sw-more-details-section .sw-sidebar-label {
        display:none;
    }

    #sw-map-restore-bar {
        display: none !important;  
    }

    .sw-welcome-section {
        position:unset !important; 
    }
    #sw-radio-container-outer {
        position: fixed;
        bottom:120px;
    }
    .sw-container {
        display: block;
    }

        .sw-top-bar-container #sw-fun-fact {
            font-size: 12px;
        }



    .sw-top-bar-container {
        display: none !important;
    }
}



@media (max-width: 768px) {
    .sw-mobile-header {
        position: fixed;
        /* always visible */
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        /* above the map */
        background: rgb(7 0 53 / 41%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #fff;
        
        /* padding: 10px 14px; */
        padding: 0px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    }

    .sw-mobile-title {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
        padding: 5px 14px;
        color: #fff;
        text-align: center;
        background: rgb(7 0 53 / 41%);
    }

    .sw-mobile-info {
        font-weight: 400;
        cursor: pointer;
    }

    .sw-mobile-location {
        font-size: 16px;
        font-weight: 500;
        line-height: 1;
        word-break: break-word;
        font-family: 'Graphik', 'Helvetica Neue', sans-serif;
        padding: 12px 0px;
        text-align: center;
        color: #ffe600;
    }

    .sw-mobile-bottom-bar-outer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        /* height: 120px; */
        background: rgba(7, 0, 53, .95);
    }

    .sw-mobile-bottom-bar {
        z-index: 999;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 12px;
        color: #fff;
        font-size: 13px;
        height: 20px;
        overflow: hidden;
        background: rgb(122 0 102 / 41%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .sw-mobile-funfact {
        flex: 1;
            line-height: 1.35;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            cursor: pointer;
            max-height: 30px;
    }

    .sw-mobile-toggle {
        flex: none;
        font-size: 12px;
        padding: 4px 10px;
    }


    .sw-mobile-bottom-bar.expanded {
        height: 70px;
    }
    /* when expanded allow wrapping */
    .sw-mobile-bottom-bar.expanded .sw-mobile-funfact {
        white-space: normal;
        flex: 1;
            line-height: 1.35;
            overflow-y: scroll;
            text-overflow: scroll;
            cursor: pointer;
            max-height: 80px;
    }



    /* -------- Row 2 : nav ----------------------------------------- */
    .sw-mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 6px 0 10px;
        font-size: 13px;
        border-top: 1px solid rgba(255, 255, 255, .15);
    }

    .sw-nav-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        line-height: 1;
        padding: 2px 6px;
        cursor: pointer;
    }

    .sw-nav-counter {
        font-size: 12px;
        opacity: .75;
    }

    #sw-bottom-bar {
        display: none;
    }
    
        #sw-radio-container {
            display: none;
        }
    
        /* desktop radio */
        #sw-mobile-radio-bar {
            display: flex;
        }
    
        /* our new bar   */
                .sw-mobile-radio {
                    flex: 1;
                    height: 15px;
                    padding: 15px 12px;
                    background: rgba(7, 0, 53, .95);
                    color: #fff;
                    font-size: 13px;
                    display: flex;
                    /* we’ll turn display → flex in JS          */
                    align-items: center;
                    gap: 10px;
                }
        
                .sw-mobile-radio.hidden {
                    display: none;
                }
        
                /* JS will remove */
                .sw-mobile-radio button {
                    font-size: 16px;
                    line-height: 1;
                    padding: 4px 10px;
                }
                #sw-radio-container-outer {
                  display: none;
                }


                .sw-mobile-exploration-row {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    height: 30px;
                    padding: 0px 12px 15px;
                    background: rgba(7, 0, 53, .95);
                    border-top: 1px solid rgba(255, 255, 255, .1);
                }

                .sw-mobile-exploration-row .sw-button {
                    flex: 1;
                    /* signup + explore share the width  */
                    font-size: 14px;
                }

                #sw-mobile-filter-btn {
                    flex: 0 0 20px;
                    width: 30px;
                    padding: 6px 0;
                    background: none;
                    color: white;
                }

                #sw-mobile-radio-toggle, #sw-mobile-radio-refresh {
                        background: transparent;
                            border: none;
                            color: #fff;
                            font-size: 1rem;
                            cursor: pointer;
                            padding: 2px 6px;
                            border-radius: 4px;
                        }

                                                                .mobile-tooltip {
                                                                    position: absolute;
                                                                    background: rgba(0, 0, 0, 0.75);
                                                                    color: white;
                                                                    padding: 5px 10px;
                                                                    border-radius: 4px;
                                                                    font-size: 12px;
                                                                    z-index: 1000;
                                                                    text-align: center;
                                                                    pointer-events: none;
                                                                    max-width: 200px;
                                                                    /* Prevent too wide tooltips */
                                                                }
                                
                                                                .tooltip-arrow {
                                                                    position: absolute;
                                                                    bottom: -5px;
                                                                    width: 0;
                                                                    height: 0;
                                                                    border-left: 5px solid transparent;
                                                                    border-right: 5px solid transparent;
                                                                    border-top: 5px solid rgba(0, 0, 0, 0.75);
                                                                }
}
    

/* desktop – don’t show it */
@media (min-width: 769px) {
    .sw-mobile-header {
        display: none;
    }
    .sw-mobile-bottom-bar-outer {
        display: none;
    }
    #sw-radio-container {
        display: flex;
    }
    #sw-mobile-radio-bar {
        display: none;
    }
    .sw-sidebar-label-radio {
        display: block;
    }
}