html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#map {
    height: 100%;
    width: 100%;
}

/* Enhanced frosted glass effects for popups */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: #333;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Club icon styling */
.club-icon {
    transition: transform 0.3s ease;
}

.club-icon:hover {
    transform: scale(1.1);
}

/* Placeholder icon styling */
.placeholder-icon {
    background: rgba(52, 152, 219, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.placeholder-club-icon {
    font-size: 16px;
    color: white;
    text-align: center;
    line-height: 1;
}

/* Popup content styling */
.popup-content {
    text-align: center;
    padding: 10px;
}

.popup-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.popup-info {
    margin: 8px 0;
    color: #34495e;
}

.popup-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    text-decoration: none;
    color: #2980b9;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-link:hover {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
}

.equipment-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.equipment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
}

.equipment-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.equipment-type {
    font-size: 10px;
    margin-top: 3px;
    color: #7f8c8d;
    text-transform: capitalize;
}

/* Repository button */
#repo-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#repo-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#repo-button a:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

/* Submit button */
#submit-button {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 1000;
}

#submit-button button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#submit-button button:hover {
    background: rgba(52, 152, 219, 1);
    transform: scale(1.05);
}

/* Submission form */
#submission-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

#submission-form.hidden {
    display: none;
}

.form-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-content h2 {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-actions button[type="button"] {
    background: #95a5a6;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #7f8c8d;
}

.form-actions button[type="submit"] {
    background: #3498db;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #2980b9;
}
