.explore-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    padding: 4rem 1.25rem 5rem;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.explore-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: min(100%, 68rem);
    margin-bottom: 1rem;
    text-align: left;
}

.explore-intro .eyebrow {
    margin: 0 0 0.55rem;
    color: #8fffd3;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.explore-intro .title {
    margin: 0;
    text-align: left;
}

.explore-intro-copy {
    max-width: 35rem;
    margin: 0.65rem 0 0;
    color: rgba(239, 255, 248, 0.72);
    line-height: 1.55;
}

.explore-intro img {
    display: block;
    flex: 0 0 auto;
    width: clamp(10rem, 23vw, 15rem);
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 255, 174, 0.12));
}

.search-wrapper {
    display: flex;
    align-items: center;
    width: min(100%, 60rem);
    margin: 1rem auto 2rem auto;
    gap: 1rem;
}

.search-input-group {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #888;
    pointer-events: none;
}

.map-search {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 36px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 21, 25, 0.8);
    color: white;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background-color 0.2s;
}

.map-search::placeholder {
    color: #888;
}

.map-search:focus {
    background-color: rgba(14, 21, 25, 0.96);
    border-color: rgba(0, 255, 174, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 255, 174, 0.12);
}

.toggle-setting {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    left: 5rem;
    gap: 5px;
    padding: 0.45rem 0.9rem;
}

.toggle-setting label {
    font-weight: bold;
    font-size: 0.95rem;
    color: #ccc;
    cursor: pointer;
    margin-top: 8px;
    white-space: nowrap;
}

.explore-columns {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: center;
    margin-top: 2rem;

    width: 100%;
}

.explore-panel-section {
    position: relative;
    background: linear-gradient(145deg, var(--geo-panel), var(--geo-panel-alt));
    border: 1px solid var(--geo-border);
    padding: 3rem 2rem;
    border-radius: var(--geo-radius-large);
    box-shadow: 0 18px 38px var(--geo-shadow);
    text-align: left;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.explore-panel-section:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 174, 0.6);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(0, 255, 174, 0.12);
}

.explore-panel-section h3 {
    font-size: 1.9rem;
    margin-bottom: 0.3rem;
    color: var(--geo-text);
}

.panel-description {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
}

.explore-panel .line {
    width: 100%;
    height: 2px;
    margin-bottom: 3rem;
    border-radius: 10px;
    background-color: #346354;
}

.map-list {
    min-height: 260px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 0;
    flex-wrap: wrap;
}

.map-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    width: min(20rem, 100%);
    min-height: 13rem;
    background: linear-gradient(180deg, rgba(11, 18, 22, 0.1), rgba(11, 18, 22, 0.92));
    border: 1px solid var(--geo-border);
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 18px 38px var(--geo-shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.map-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 174, 0.6);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(0, 255, 174, 0.12);
}

.map-card .card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: none;
    transition: filter 0.3s;
}

.map-card:hover .card-background {
    filter: brightness(1.1);
}

.map-card:not(.map-card-skeleton) > span {
    position: relative;
    z-index: 10;
    padding: 1rem 1.25rem 1.1rem;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    font-family: "Segoe UI", sans-serif;
    text-align: start;
    border-radius: 0 0 16px 16px;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.3),
        0 0 10px rgba(58, 175, 169, 0.35);
}

.map-card .favorite-icon {
    position: absolute;
    z-index: 11;
    width: 2rem;
    height: 2rem;
    right: 0.6rem;
    top: 0.6rem;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.map-card .favorite-icon:hover {
    transform: scale(1.12);
}

.map-report-trigger {
    position: absolute;
    z-index: 12;
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.42rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(7, 17, 20, 0.82);
    color: #f4fff9;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition:
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.map-report-trigger:hover,
.map-report-trigger:focus-visible {
    border-color: #8fffd3;
    background: #102923;
    color: #a8ffdf;
}

.map-report-trigger:focus-visible {
    outline: 2px solid #8fffd3;
    outline-offset: 2px;
}

.map-report-trigger:disabled {
    border-color: rgba(143, 255, 211, 0.42);
    color: #a8ffdf;
    cursor: default;
}

/* Placeholder when no maps */
.empty-placeholder {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    opacity: 0.7;
    font-size: 1.2rem;
}

.map-loading-grid {
    display: contents;
}

.map-card-skeleton {
    cursor: default;
    pointer-events: none;
    border-color: rgba(150, 255, 220, 0.12);
    background: rgba(7, 17, 20, 0.7);
}

.map-card-skeleton .skeleton-cover {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.map-card-skeleton .skeleton-title {
    position: relative;
    z-index: 1;
    width: 62%;
    height: 1rem;
    margin: 0 1.25rem 1.2rem;
    border-radius: 999px;
}

.map-card-skeleton .skeleton-favorite {
    position: absolute;
    z-index: 1;
    top: 0.8rem;
    right: 0.8rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
}

.loadMoreBtn {
    display: block;
    margin: 0 auto;
    margin-top: 2rem;
    padding: 0.95rem 1.2rem;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--geo-accent-strong), var(--geo-accent-dark));
    border: none;
    border-radius: 12px;
    color: #031a15;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 255, 174, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 255, 174, 0.25);
}

#create-your-map {
    position: absolute;
    top: 3rem;
    right: 2rem;
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background-color: #00ffae;
    color: #000;
    font-weight: bold;
    transition:
        background-color 0.3s ease-in-out,
        transform 0.3s ease-in-out;
}

#create-your-map:hover {
    background-color: #00c78a;
    transform: scale(1.03);
}

/* Responsive styling */
@media (max-width: 1200px) {
    .map-card {
        width: 28vw;
        height: 26vh;
    }

    .search-wrapper {
        width: 80%;
    }
}

@media (max-width: 900px) {
    .title {
        font-size: 2.5rem;
    }

    .map-card {
        width: 40vw;
        height: 25vh;
    }

    .search-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 90%;
    }

    .toggle-setting {
        margin-left: 0;
        justify-content: center;
        width: 100%;
        left: 0;
    }

    #create-your-map {
        position: static;
        margin: 1rem auto;
        display: block;
        width: max-content;
    }
}

@media (max-width: 600px) {
    .explore-intro {
        gap: 0.5rem;
    }

    .explore-intro img {
        width: 7rem;
    }

    .title {
        font-size: 2rem;
        margin-top: 2rem;
    }

    .explore-intro .title {
        margin-top: 0;
        font-size: 1.8rem;
    }

    .explore-intro-copy {
        font-size: 0.88rem;
    }

    .explore-panel {
        padding: 2rem 1rem;
    }

    .map-card {
        width: 90%;
        height: 24vh;
    }

    .map-card span {
        font-size: 1.2rem;
        padding: 0.8rem 1.2rem;
    }

    .explore-panel-section {
        padding: 2rem 1rem;
    }

    #loadMoreBtn,
    #create-your-map {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }
}
