/* Sidebar Card Styling */
.court-item-card {
    display: flex; /* Aligns content and button side-by-side */
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #fff;
    
    /* New Width Adjustments */
    width: 80%; /* Sets width to 80% */
    margin: 10px auto; /* Centers the card and adds vertical spacing */
    border-radius: 12px; /* Optional: rounds corners for a better "card" look */
    
    /* Animation setup */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); /* Base shadow */
}

/* The "Lift" Effect on Hover */
.court-item-card:hover {
    background: #fff; /* Keeps background solid while lifting */
    transform: translateY(-8px); /* Moves card up by 8px */
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22); /* Enhanced shadow for depth */
}

.card-content {
    flex: 1; /* Takes up available space on the left */
    text-align: left; /* Ensures text stays left-aligned */
}

.court-name-title {
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
}

.court-meta {
    color: #7a7a7a;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* The Map Link Button */
.map-link-btn {
    padding: 8px 16px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap; /* Prevents text wrapping */
    transition: all 0.2s ease;
}

.map-link-btn:hover {
    background: #FFD700; /* Contrast color for better interaction */
    color: #000;
}

/* Spinner Ring Design */
.court-loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #FFD700; /* Match your yellow theme */
  animation: spin 1s ease-in-out infinite;
}

/* Rotation Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Optional: Make the text pulse slightly */
.loading-state p {
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}