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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
#main-header {
    background: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

#main-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    transition: color 0.3s ease;
}

#main-header.scrolled .logo-text {
    color: #333;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link.primary {
    background-color: #e91e63;
    color: white;
}

.nav-link.primary:hover {
    background-color: #c2185b;
}

.nav-link.app-link {
    background-color: #333;
    color: white;
}

.nav-link.app-link:hover {
    background-color: #555;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/home.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-content {
    width: 75%;
    max-width: 1200px;
    text-align: left;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
}

.about-text a {
    text-decoration: none;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
        position: relative;
    z-index: 10;
    height: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100%;
}

.about-image img.dotsImg {
    box-shadow: none;
    position: absolute;
    top: -35px;
    left: -27px;
    z-index: 1;
    opacity: 0.2;
    height: 162px;
    width: 180px;
}

.welcomeBtn {
    color: rgb(255, 255, 255);
    width: 150px;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    padding: 12px 0px;
    background: rgb(206, 17, 65);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
}

#mini-map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    position: relative;
}

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

.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.fullscreen-btn:hover {
    background: white;
    transform: scale(1.05);
}

.fullscreen-btn i {
    color: #333;
    font-size: 16px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}


#continue-without-verification, .verification-actions button {
    color: #fff;
    background-color: #888;
    border: none;
    padding: 0px 15px;
    height: 40px;
    cursor: pointer;
    width: 100%;
}

.verify-email-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 8px;
    width: 100%;
}

.verify-email-btn:hover {
    background-color: #0056b3;
}

.verify-email-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.verification-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

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

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

.verification-instruction {
    margin: 20px 0;
    text-align: left;
}

.verification-instruction ol {
    padding-left: 20px;
    line-height: 1.6;
}

.verification-instruction li {
    margin-bottom: 8px;
}

button#close-verification-required {
    color: #fff;
    background-color: #e91e63;
    border: none;
    padding: 0px 15px;
    height: 40px;
    cursor: pointer;
    width: 100%;
}

.verification-actions {
    display: flex;
    justify-content: center;
}

div#resend-message {
    text-align: center;
}

div#verification-timeout.show {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

div#verification-timeout {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column-reverse;
        gap: 30px;
        padding: 15px;
    }
    
    .nav-links {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Back Button for Map */
.map-back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.map-back-button:hover {
    background: white;
    transform: scale(1.05);
}

.map-back-button i {
    color: #333;
    font-size: 18px;
}

#map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    overflow: hidden;
}

/* Prevent body scroll when map is visible */
body.map-open {
    overflow: hidden;
    height: 100vh;
}

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

#search-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#search-button button {
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Floating filter button for mobile when map is not visible */
.mobile-filter-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
    z-index: 999;
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}

.mobile-filter-btn i {
    font-size: 16px;
}

/* Show mobile filter button only on mobile and when map is hidden */
@media (max-width: 768px) {
    .mobile-filter-btn {
        display: flex;
        bottom: 80px;
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
    
    /* Hide mobile filter button when map is visible */
    #map-container:not(.hidden) ~ .mobile-filter-btn {
        display: none;
    }
    
    /* Map container mobile optimizations - only when visible */
    #map-container:not(.hidden) {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 999 !important;
        overflow: hidden !important;
        display: block !important;
    }
    
    #map-container:not(.hidden) #map {
        width: 100% !important;
        height: 100% !important;
        min-height: 100vh !important;
        position: relative !important;
        display: block !important;
    }
    
    /* Adjust search button position for mobile */
    #search-button {
        bottom: 125px;
        bottom: calc(125px + env(safe-area-inset-bottom));
    }
    
    #search-button button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Mobile adjustments for top controls */
    #top-right-controls {
        top: 15px;
        right: 15px;
        flex-direction: column-reverse;
        gap: 8px;
        align-items: flex-end !important;
    }
    
    #get-location-btn, #add-court-btn-map {
        padding: 8px 12px;
        font-size: 12px;
    }
}

#top-right-controls {
    position: absolute;
    top: 20px;
    right: 25px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#get-location-btn {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#add-court-btn-map {
    background-color: #e91e63;
    color: white;
    border: 1px solid #e91e63;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 600;
}

#add-court-btn-map:hover {
    background-color: #c2185b;
    border-color: #c2185b;
}

#user-menu {
    position: relative;
}

#user-account-btn {
    /* background-color: #e91e63; */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

#user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    min-width: 200px;
    z-index: 1001;
}

#guest-dropdown, #authenticated-dropdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#guest-dropdown button, #authenticated-dropdown button {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

#dropdown-login-btn {
    background-color: #e91e63;
    color: white;
}

#dropdown-login-btn:hover {
    background-color: #c2185b;
}

#dropdown-signup-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

#dropdown-signup-btn:hover {
    background-color: #e0e0e0;
}

#user-dropdown #user-email {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

#my-account-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

#my-account-btn:hover {
    background-color: #e0e0e0;
}

#logout-btn {
    background-color: #e91e63;
    color: white;
}

#logout-btn:hover {
    background-color: #c2185b;
}

#filter-panel {
    position: fixed;
    top: 12.5vh;
    left: -350px;
    width: 350px;
    height: 75vh;
    background: white;
    padding: 20px;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    margin: auto 0;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

/* Mobile filter panel adjustments */
@media (max-width: 768px) {
    #filter-panel {
        width: 280px;
        top: 60px;
        height: calc(100vh - 120px);
        bottom: 60px;
    }
    
    #filter-panel.open {
        left: 10px;
    }
}

#filter-panel.open {
    left: 20px;
}

#filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

#filter-overlay.open {
    opacity: 1;
    visibility: visible;
}

#filter-panel h3 {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-filter-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reset-filters {
    background: #ccc;
    border: none;
    color: #fff;
    border-radius: 5px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    margin-bottom: 20px;
    color: #333;
}

.day-filters, .court-filters, .play-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background-color: #e91e63;
    color: white;
}

#search-for-gym {
    width: 100%;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirm-modal {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.confirm-actions button {
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    height: 40px;
    color: #fff;
    cursor:pointer;
}

.cancel-delete-btn {
    background: #ccc;
}

.confirm-delete-btn {
    background: #e91e63;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.modal-content button[type="submit"] {
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.modal-content p {
    text-align: center;
    margin: 15px 0;
}

.modal-content a {
    color: #e91e63;
    text-decoration: none;
}

#close-login, #close-signup {
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.hidden {
    display: none !important;
}

.error-message {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.success-message {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}

/* Gym Details Modal Styles */
.gym-details-modal {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 1250px;
    height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gym-details-header {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    display: flex;
    flex-direction: column;
}

.gym-hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.gym-hero-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
}

.gym-header-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
}

.gym-title-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gym-location {
    font-size: 14px;
    margin: 5px 0 0 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.details-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gym-details-modal .upload-image-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.gym-details-modal .upload-image-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.gym-details-modal .upload-image-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gym-details-modal .close-details-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gym-details-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.gym-info-section {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}


.gym-info-section h2 {
    margin-bottom: 15px;
}

.gym-info-section h3 {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
    background: #5c9aff;
    color: #fff;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
}

.sport-type {
    color: #666;
    /* font-style: italic; */
    margin-bottom: 5px;
    list-style-type: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.reservation-info {
    color: #666;
    margin: 0 0 25px 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

ul.reservation-info li {
    background: #c0c0c0;
    color: #fff;
    border-radius: 10px;
    padding: 4px 9px;
    font-size: 12px;
}

.gym-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

.comment-section {
    margin-bottom: 20px;
}

.comment-section h4 {
    margin-bottom: 10px;
    color: #333;
}

.comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
}

.post-comment-btn {
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
}

.no-comments {
    color: #999;
    font-style: italic;
}

.comment {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

span.comment-date {
    font-size: 14px;
    color: #888;
}

button.delete-comment-btn {
    border: none;
    padding: 4px 8px;
    color: #e91e63;
    background: none;
    cursor: pointer;
}

.gym-details-sidebar {
    width: 300px;
    background: #f8f9fa;
    padding: 30px 25px;
    border-left: 1px solid #eee;
    overflow-y: auto;
}

.owner-badge {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.detail-section h4 {
    margin: 25px 0 15px 0;
    color: #333;
    font-size: 16px;
}

.detail-item {
    /* margin-bottom: 15px; */
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.detail-label {
    font-size: 12px;
    color: #222;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-value {
    color: #333;
    font-size: 14px;
}

.detail-value.editable {
    cursor: pointer;
    position: relative;
}

.edit-icon {
    color: #e91e63;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
    align-self: flex-start;
    margin-top: -5px;
}

.days-list {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.days-list div {
    font-size: 14px;
    color: #333;
}

.website-link {
    color: #e91e63;
    text-decoration: none;
    font-size: 14px;
}

.remove-favorite-btn {
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    /* margin-top: 20px; */
    /* width: 100%; */
}

.edit-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 5px;
}

.save-edit-btn, .cancel-edit-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
}

.save-edit-btn {
    background: #4caf50;
    color: white;
}

.cancel-edit-btn {
    background: #f44336;
    color: white;
}

@media (max-width: 768px) {
    .gym-details-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .gym-details-body {
        flex-direction: column;
    }
    
    .gym-details-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
    }
}

/* Detail Items Styling */
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.detail-value {
    flex: 1;
    margin: 5px 15px 0 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.detail-value a {
    color: #e91e63;
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.edit-icon {
    color: #e91e63;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.edit-icon:hover {
    background-color: rgba(233, 30, 99, 0.1);
}

.days-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.days-list div {
    background-color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.favorites-buttons {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    align-items: center;
}

.add-favorite-btn, .remove-favorite-btn {
    background-color: #e91e63;
    color: white;
}

.add-favorite-btn:hover, .remove-favorite-btn:hover {
    background-color: #c2185b;
}

.check-in-btn {
    background-color: #4caf50;
    color: white;
}

.check-in-btn:hover {
    background-color: #45a049;
}

.checked-in-btn {
    background-color: #9e9e9e;
    color: white;
    cursor: not-allowed;
}

.delete-btn {
    background-color: #f44336;
    color: white;
    margin-top: 10px;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.favorite-count, .check-in-count {
    font-size: 17px;
    color: #666;
    text-align: left;
    /* margin-top: 5px; */
}

.check-in-count {
    font-size: 13px;
    font-style: italic;
}

.owner-badge {
    background-color: #e8f5e8;
    color: #4caf50;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Edit Form Styling */
.edit-container {
    flex: 1;
    margin: 0 15px;
}

.edit-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.edit-actions {
    display: flex;
    gap: 8px;
}

.save-edit-btn, .cancel-edit-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.save-edit-btn {
    background-color: #4caf50;
    color: white;
}

.save-edit-btn:hover {
    background-color: #45a049;
}

.cancel-edit-btn {
    background-color: #f5f5f5;
    color: #666;
}

.cancel-edit-btn:hover {
    background-color: #e0e0e0;
}

/* Account Modal Styles */
.account-modal-content {
    max-width: 85%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.account-modal-content h3 {
    text-align: left;
    margin-bottom: 20px;
    color: #333;
    /* border-bottom: 2px solid #000; */
    padding-bottom: 10px;
    font-size: 26px;
}

.account-modal-content #close-account {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.account-modal-content #close-account:hover {
    background-color: #f0f0f0;
}

.account-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.account-section h4 {
    color: #e91e63;
    margin-bottom: 15px;
    font-size: 18px;
}

.account-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-direction: column;
}

.profile-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-image {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e91e63;
}

.photo-change {
    text-align: center;
}

.photo-change p {
    margin: 10px 0 5px 0;
    font-size: 14px;
    color: #666;
}

.photo-change input[type="file"] {
    margin: 5px 0;
    font-size: 12px;
}

.account-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-details div {
    display: flex;
    gap: 15px;
    align-items: center;
}

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

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

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.game-preferences, .notification-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #e91e63;
}

.stat-label {
    font-weight: 500;
    color: #666;
}

.stat-item span:last-child {
    font-weight: bold;
    color: #e91e63;
    font-size: 18px;
}

.account-modal-content button {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.account-modal-content button:hover {
    background-color: #c2185b;
}

.account-modal-content button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Courts Scroll Container */
.courts-scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.courts-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.courts-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.courts-scroll-container::-webkit-scrollbar-thumb {
    background: #e91e63;
    border-radius: 3px;
}

.court-card {
    flex: 0 0 200px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.court-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.court-image {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.court-info {
    padding: 12px;
}

.court-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.court-location {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.court-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.court-cost {
    font-size: 13px;
    font-weight: 600;
    color: #e91e63;
}

.court-likes {
    font-size: 12px;
    color: #666;
}

.court-days {
    font-size: 11px;
    color: #888;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-courts-message, .error-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    width: 100%;
}

.error-message {
    color: #d32f2f;
}

.loading-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Update Messages */
.update-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.update-message.success {
    background-color: #e8f5e8;
    color: #4caf50;
    border: 1px solid #c8e6c9;
    opacity: 1;
}

.update-message.error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    opacity: 1;
}

.update-message:not(:empty) {
    opacity: 1;
}

@media (max-width: 768px) {
    .account-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .account-info {
        flex-direction: column;
        text-align: center;
    }
    
    .court-card {
        flex: 0 0 180px;
    }
}

/* Footer Styles */
.footer {
    background: #000;
    color: #fff;
    padding: 8rem 0;
    font-size: 16px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px 0;
    display: block;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section a strong {
    color: rgba(255, 255, 255, 0.8);
}

.app-download img {
    max-width: 150px;
    height: auto;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    height: 50px;
    width: 50px;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a i {
    position: absolute;
    font-size: 26px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 4rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-section {
        text-align: center;
    }
}

/* Add Court Modal Styles */
.add-court-modal-content {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.add-court-modal-content h3 {
    color: #000;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

#close-add-court {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-add-court:hover {
    background: #e0e0e0;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

gmp-place-autocomplete#autocomplete-widget {
    background: white;
}

.required {
    color: #e91e63;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-group > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* .checkbox-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
} */
 #add-court-modal .checkbox-row {
    display: flex
;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 0px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#add-court-modal .checkbox-row label {
    display: flex;
    align-items: center;
    gap: 0px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
    padding-left: 0px;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
}

.checkbox-row label:hover {
    background-color: #f8f9fa;
    border-color: #e91e63;
}

.checkbox-row input[type="checkbox"] {
    margin: 0;
    width: auto;
    opacity: 0;
}

.checkbox-row label:has(input:checked) {
    background-color: #e91e63;
    color: white;
    border-color: #e91e63;
}

.form-actions {
    text-align: center;
    padding-top: 20px;
}

.submit-btn {
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 150px;
}

.submit-btn:hover:not(.disabled) {
    background-color: #c2185b;
    transform: translateY(-1px);
}

.submit-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Mobile responsiveness for add court modal */
@media (max-width: 768px) {
    .add-court-modal-content {
        width: 98%;
        height: 95vh;
        margin: 0;
        border-radius: 8px;
    }

/* Email Verification Modal Styles */
#email-verification-modal .modal-content {
    max-width: 500px;
    text-align: center;
}

#verification-email {
    color: #e91e63;
    font-weight: 600;
}

.verification-status {
    margin-top: 20px;
}

.verification-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#continue-without-verification {
    color: #fff;
    background-color: #888;
    border: none;
    padding: 0px 15px;
    height: 40px;
}

div#verification-checking {
    flex-direction: column;
}

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

.countdown-container {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.countdown-container p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#verification-countdown {
    color: #e91e63;
    font-family: 'Courier New', monospace;
}

#continue-without-verification {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
}

#continue-without-verification:hover {
    background-color: #5a6268;
}

/* Verification Required Modal */
#verification-required-modal .modal-content {
    max-width: 500px;
    text-align: center;
}

.verification-reminder {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #e91e63;
}

.verification-reminder p {
    margin: 10px 0;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.verify-button {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.verify-button:hover {
    background-color: #c2185b;
}

.verify-button.secondary {
    background-color: #6c757d;
}

.verify-button.secondary:hover {
    background-color: #5a6268;
}

.close-btn {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
}

.close-btn:hover {
    background-color: #e9ecef;
}

@media (max-width: 600px) {
    .verification-actions {
        flex-direction: column;
    }
}
}

.checkbox-row {
    grid-template-columns: 1fr;
}
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
