* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Recursive', sans-serif;
    line-height: 1.5;
    color: #fff;
    background: linear-gradient(180deg, #4B6CB7 0%, #182848 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: transparent;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.title-section {
    text-align: left;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #00D4FF;
    text-shadow:
        0 0 5px #00D4FF,
        0 0 10px #00D4FF,
        0 0 20px #00D4FF,
        0 0 40px #00D4FF;
    animation: neonFlicker 2.5s infinite alternate;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 5px #00D4FF,
            0 0 10px #00D4FF,
            0 0 20px #00D4FF,
            0 0 40px #00D4FF;
    }
    20%, 24%, 55% {
        text-shadow:
            0 0 2px #00D4FF,
            0 0 5px #00D4FF,
            0 0 8px #00D4FF,
            0 0 12px #00D4FF;
    }
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
}

/* Responsive header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .title-section {
        text-align: center;
    }

    .site-title {
        font-size: 2rem;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.search-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

#searchInput {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: #667eea;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #fff;
}

.filter-group select {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

#searchBtn {
    padding: 12px 24px;
    background: #4B6CB7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchBtn:hover {
    background: #3a5998;
}

#sortByDistBtn {
    padding: 12px 20px;
    background: #2c7a4b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

#sortByDistBtn:hover {
    background: #235e39;
}

#sortByDistBtn.active {
    background: #1a4a2c;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

#sortByDistBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.distance-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e8f5e9;
    color: #2c7a4b;
    margin-bottom: 0.75rem;
    margin-left: 6px;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.location-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #00D4FF;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.location-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.location-card h3 a {
    color: #00D4FF;
    text-decoration: none;
    font-weight: bold;
    text-shadow:
        0 0 3px #00D4FF,
        0 0 6px #00D4FF,
        0 0 12px #00D4FF,
        0 0 24px #00D4FF;
    animation: locationNeonFlicker 3s infinite alternate;
    transition: all 0.3s ease;
}

.location-card h3 a:hover {
    color: #33e0ff;
    text-shadow:
        0 0 5px #00D4FF,
        0 0 10px #00D4FF,
        0 0 20px #00D4FF,
        0 0 40px #00D4FF;
    cursor: pointer;
}

@keyframes locationNeonFlicker {
    0%, 15%, 19%, 23%, 45%, 49%, 100% {
        text-shadow:
            0 0 3px #00D4FF,
            0 0 6px #00D4FF,
            0 0 12px #00D4FF,
            0 0 24px #00D4FF;
    }
    17%, 21%, 47% {
        text-shadow:
            0 0 1px #00D4FF,
            0 0 3px #00D4FF,
            0 0 6px #00D4FF,
            0 0 10px #00D4FF;
    }
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.category-claw-game {
    background: #e3f2fd;
    color: #1976d2;
}

.category-gashapon {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-blind-box {
    background: #e8f5e8;
    color: #2e7d32;
}

.category-amusement-center {
    background: #fff3e0;
    color: #f57c00;
}

.category-model-shop {
    background: #fce4ec;
    color: #c2185b;
}

.location-details p {
    margin-bottom: 0.5rem;
    color: #fff;
}

.location-details .description {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.location-details strong {
    color: #00D4FF;
}

.features {
    margin-top: 1rem;
}

.features h4 {
    font-size: 0.9rem;
    color: #00D4FF;
    margin-bottom: 0.5rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #4a5568;
}

/* Action buttons */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #4B6CB7;
    color: white;
}

.btn-primary:hover {
    background: #3a5998;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: linear-gradient(180deg, #182848 0%, #0f1a2e 100%);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: #00D4FF;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.modal-content p {
    color: #fff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #00D4FF;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #00D4FF;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.form-group select option {
    background: #fff;
    color: #000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00D4FF;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Submission result */
.submission-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.submission-result.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.submission-result.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-results h3 {
    margin-bottom: 1rem;
    color: #495057;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }

    .location-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header {
        padding: 1.5rem 0;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .search-section {
        padding: 1rem 0;
    }
}

/* Membership Styles */
.member-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
}

.member-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.membership-benefits {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.membership-benefits h3 {
    color: #1a2332;
    margin-bottom: 1rem;
}

.membership-benefits ul {
    list-style: none;
    padding: 0;
}

.membership-benefits li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #1a2332;
}

.membership-benefits li:last-child {
    border-bottom: none;
}

.btn-member-details {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-member-details:hover {
    background: linear-gradient(135deg, #e8590c, #dc5200);
    transform: translateY(-1px);
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
    font-weight: 500;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.btn-link {
    background: none;
    color: #007bff;
    border: none;
    text-decoration: underline;
    padding: 5px 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.member-actions {
    margin-top: 1rem;
    text-align: center;
}

.modal-large {
    max-width: 800px;
    width: 90%;
}

.member-detail-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.member-detail-section h3 {
    color: #00D4FF;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.crowd-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crowd-level {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.crowd-level.low {
    background: #d4edda;
    color: #155724;
}

.crowd-level.medium {
    background: #fff3cd;
    color: #856404;
}

.crowd-level.high {
    background: #f8d7da;
    color: #721c24;
}

.crowd-level.very-high {
    background: #f5c6cb;
    color: #721c24;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

/* Authentication Styles */
.auth-toggle {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.auth-toggle-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.auth-toggle-btn:hover:not(.active) {
    background: #e9ecef;
}

.submission-result.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.submission-result.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

#passwordHelp {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Map View Styles */
.map-view-toggle {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.view-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.view-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00D4FF;
}

.view-btn.active {
    background: #00D4FF;
    color: #182848;
    border-color: #00D4FF;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.map-container {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.map {
    width: 100%;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
}

/* Custom Google Maps Info Window Styles */
.gm-style .gm-style-iw-c {
    background: linear-gradient(180deg, #4B6CB7 0%, #182848 100%) !important;
    border-radius: 12px !important;
    padding: 15px !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

.map-info-window {
    color: #fff;
    max-width: 250px;
}

.map-info-window h3 {
    color: #00D4FF;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    text-shadow: 0 0 10px #00D4FF;
}

.map-info-window p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.map-info-window .category-badge {
    margin-bottom: 10px;
}

.map-info-window strong {
    color: #00D4FF;
}

@media (max-width: 768px) {
    .map-view-toggle {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .view-btn {
        flex: 1;
    }

    .map {
        height: 400px;
    }
}