/* Custom styles for PlayPlayLah - Nature Theme */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.hero-section {
    background: linear-gradient(135deg, #a7f3d0 0%, #86efac 50%, #6ee7b7 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.navbar-nav .nav-link.active {
    background: #FFF7E4;
    color: #333 !important;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    opacity: 1 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #059669 !important;
    border-radius: 20px;
    opacity: 1 !important;
}

/* Ensure selected navigation elements remain fully opaque */
a.nav-link:active,
a.nav-link.active,
a.btn:active,
a.btn.active,
.btn:active,
.btn.active {
    opacity: 1 !important;
}

.playground-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(16, 185, 129, 0.1);
}

.playground-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(13, 110, 253, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    border-color: rgba(13, 110, 253, 0.3);
    background: rgba(13, 110, 253, 0.05);
}

.playground-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
    border-radius: 18px 18px 0 0;
}

.playground-card:hover .playground-image {
    transform: scale(1.03);
}

/* Fix amenity badge backgrounds to cream color */
.amenity-badge,
.badge.bg-secondary {
    background-color: #FFF7E4 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

/* Photo navigation arrows styling */
.photo-nav-btn {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.photo-gallery-hero:hover .photo-nav-btn {
    opacity: 1;
    visibility: visible;
}

.photo-nav-btn:hover {
    background: rgba(0,0,0,0.8) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Make entire card clickable */
a.text-decoration-none:hover {
    text-decoration: none !important;
}

a.text-decoration-none .playground-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(13, 110, 253, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    border-color: rgba(13, 110, 253, 0.3);
    background: rgba(13, 110, 253, 0.05);
}

.playground-photo {
    transition: transform 0.2s ease-in-out;
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.playground-photo:hover {
    transform: scale(1.05);
}

.photo-container {
    overflow: hidden;
    border-radius: 0.375rem;
}

.amenities .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
    border-radius: 12px;
}

.amenity-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.info-item {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-item {
    padding: 1rem;
    transition: transform 0.2s ease-in-out;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.search-form {
    background: var(--bs-body-bg);
    border-radius: 10px;
}

/* Map styles */
.leaflet-popup-content {
    color: #333 !important;
}

.leaflet-popup-content h6 {
    color: #333 !important;
    margin-bottom: 0.5rem;
}

.leaflet-popup-content p {
    color: #666 !important;
    margin-bottom: 0.25rem;
}

.leaflet-popup-content .btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Custom marker styles */
.playground-marker {
    background-color: var(--bs-primary);
    border: 2px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.search-marker {
    background-color: var(--bs-success);
    border: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .playground-photo {
        height: 200px;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--bs-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error states */
.error-message {
    background-color: var(--bs-danger);
    color: white;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--bs-secondary);
}

.empty-state i {
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-body-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* Photo Modal Styles */
.modal-content.bg-dark {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.modal-body .position-relative {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalPhoto {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.thumbnail-nav {
    transition: all 0.2s ease;
    border-radius: 8px !important;
}

.thumbnail-nav:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

.photo-gallery-hero:hover .fas.fa-search-plus {
    opacity: 1 !important;
}

/* Navigation button styling */
.modal-body .btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-body .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
