/**
 * Club Directory Manager - Frontend CSS
 */

/* Main Container */
.cdm-club-directory {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
}

/* Filters Section - New Layout */
.cdm-filters-section {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cdm-filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Search Box - 100% Width */
.cdm-search-box {
    width: 100%;
}

.cdm-search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.cdm-search-box input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cdm-search-box input::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Filters and Actions Row */
.cdm-filters-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Filters - 5 selects at 20% each */
.cdm-filters {
    display: flex;
    gap: 15px;
    flex: 1;
}

.cdm-filters select {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cdm-filters select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Filter Actions - Right Side */
.cdm-filter-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cdm-filter-btn, .cdm-export-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cdm-filter-btn:hover, .cdm-export-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004d73 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cdm-clear-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.cdm-clear-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Results Info */
.cdm-results-info {
    margin-bottom: 20px;
    font-style: italic;
    color: #6c757d;
    font-size: 14px;
}

.cdm-results-info p {
    margin: 0;
}

/* Directory Table - Detail Page Style (Updated to match detail page exactly) */
.cdm-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    margin-bottom: 30px;
}

/* Table Header - Exact Detail Page Style */
.cdm-clubs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border: none;
    box-shadow: none;
}

.cdm-clubs-table thead {
    background: #6c757d;
}

.cdm-clubs-table th {
    background: #6c757d;
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    border: none;
    border-right: 1px solid #5a6268;
    position: static;
}

.cdm-clubs-table th:last-child {
    border-right: none;
}

/* Table Body - Detail Page Style */
.cdm-clubs-table tbody {
    background: white;
}

.cdm-clubs-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.cdm-clubs-table tbody tr:last-child {
    border-bottom: none;
}

.cdm-clubs-table td {
    padding: 16px 20px;
    border: none;
    border-right: 1px solid #f1f3f4;
    vertical-align: middle;
    background: white;
    font-size: 14px;
    font-family: "Lato", Sans-serif;
    text-align:left;
}

.cdm-clubs-table td:last-child {
    border-right: none;
}

/* Table Rows - Enhanced Hover Effect */
.cdm-club-row {
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.cdm-club-row:hover {
    background-color: #f8f9fa !important;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
    transform: translateY(0px);
}

.cdm-club-row:nth-child(even) {
    background-color: #fafbfc;
}

.cdm-club-row:nth-child(even):hover {
    background-color: #f1f3f4 !important;
}

.cdm-club-row:nth-child(even) td {
    background-color: #fafbfc;
}

.cdm-club-row:hover td {
    background-color: inherit;
    
}

/* Enhanced Table Cell Styling - Refined Professional Look */
.cdm-club-name {
    font-weight: 600;
    min-width: 200px;
}

.cdm-club-name a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: block;
    padding: 2px 0;
}

.cdm-club-name a:hover {
    color: #005a87;
    text-decoration: none;
}

.cdm-division-area {
    text-align: center;
    font-weight: 700;
    color: #495057;
    font-family: 'Courier New', monospace;
    min-width: 80px;
    font-size: 14px;
}

.cdm-emirate {
    color: #495057;
    font-weight: 500;
    min-width: 120px;
    font-size: 14px;
}

.cdm-meeting-week {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    min-width: 140px;
    font-size: 14px;
}

.cdm-meeting-day {
    text-align: center;
    font-weight: 700;
    color: #0073aa;
    min-width: 90px;
    font-size: 14px;
}

.cdm-meeting-time {
    font-weight: 700;
    color: #495057;
    font-family: 'Courier New', monospace;
    text-align: center;
    min-width: 110px;
    font-size: 14px;
}

/* Sortable Headers */
.cdm-sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
}

.cdm-sortable:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #0073aa;
}

.sort-indicator {
    margin-left: 5px;
    font-weight: bold;
    opacity: 0.7;
}

/* Pagination */
.cdm-pagination {
    margin-top: 30px;
    text-align: center;
    padding: 20px 0;
}

.cdm-pagination a, 
.cdm-pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    text-decoration: none;
    border: 2px solid #dee2e6;
    color: #0073aa;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cdm-pagination a:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cdm-pagination .current {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* No Results */
.cdm-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cdm-no-results p {
    font-size: 18px;
    margin: 0;
    font-style: italic;
}

/* Loading Overlay */
.cdm-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    border-radius: 8px;
}

.cdm-spinner {
    padding: 20px 30px;
    background: #333;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

/* Toastmasters-style Club Detail Page */
.cdm-club-detail-toastmasters {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 0;
}

.cdm-club-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 20px;
    background: white;
}

/* Left Column */
.cdm-left-column {
    padding-right: 20px;
}

/* Club Header with Pin */
.cdm-club-header-tm {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.cdm-pin-icon {
    background: #8B2635;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 5px;
}

.cdm-club-name-tm {
    font-size: 2.5em;
    font-weight: 300;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* Basic Info */
.cdm-club-basic-info {
    margin-bottom: 25px;
    color: #666;
}

.cdm-club-basic-info p {
    margin: 8px 0;
    font-size: 16px;
}

.cdm-club-number-tm {
    font-size: 16px !important;
}

.cdm-website-link {
    color: #0066cc;
    text-decoration: underline;
}

.cdm-website-link:hover {
    color: #004499;
}

/* Action Buttons */
.cdm-action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.cdm-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cdm-facebook-btn {
    background: #1877f2;
    color: white;
}

.cdm-linkedin-btn {
    background: #0077b5;
    color: white;
}

.cdm-instagram-btn {
    background: #e4405f;
    color: white;
}

.cdm-twitter-btn {
    background: #000000;
    color: white;
}

.cdm-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.cdm-fb-icon {
    font-size: 20px;
    font-family: serif;
}

.cdm-linkedin-icon {
    font-size: 12px;
    font-weight: bold;
    font-family: sans-serif;
}

.cdm-instagram-icon {
    font-size: 16px;
}

.cdm-twitter-icon {
    font-size: 16px;
    font-weight: bold;
}

.cdm-contact-btn {
    background: #8B2635;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cdm-contact-btn:hover {
    background: #722030;
    color: white;
    text-decoration: none;
}

/* Club Information Section */
.cdm-info-section {
    margin-bottom: 40px;
}

.cdm-section-header {
    background: #6c757d;
    color: white;
    padding: 12px 20px;
    margin: 0 0 0 0;
    font-size: 1.2em;
    font-weight: 500;
}

.cdm-info-grid {
    background: white;
    border: 1px solid #ddd;
    border-top: none;
}

.cdm-info-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid #eee;
    min-height: 50px;
}

.cdm-info-row:last-child {
    border-bottom: none;
}

.cdm-info-left,
.cdm-info-right {
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.cdm-info-left {
    background: #f8f9fa;
    border-right: 1px solid #eee;
}

.cdm-info-right {
    background: white;
}

/* Club Description */
.cdm-club-description-tm {
    margin-top: 40px;
}

.cdm-club-description-tm h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
}

.cdm-club-description-tm em {
    font-style: italic;
    color: #8B2635;
}

.cdm-description-content {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

/* Right Column - Map */
.cdm-right-column {
    padding-left: 20px;
}

.cdm-map-section {
    position: sticky;
    top: 20px;
}

.cdm-map-container-tm {
    position: relative;
}

.cdm-map-container-tm iframe {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.cdm-directions-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #8B2635;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.cdm-directions-btn:hover {
    background: #722030;
    color: white;
    text-decoration: none;
}

/* Address Display (Alternative to Google Maps) */
.cdm-address-display {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.cdm-address-display h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.cdm-address-text {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.cdm-directions-links .cdm-directions-btn {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.cdm-apple-maps {
    background: #007AFF !important;
}

.cdm-apple-maps:hover {
    background: #0056CC !important;
}

.cdm-directions-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #8B2635;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cdm-directions-btn:hover {
    background: #722030;
    color: white;
    text-decoration: none;
}

/* Back Navigation */
.cdm-back-navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.cdm-back-link-tm {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.cdm-back-link-tm:hover {
    text-decoration: underline;
    color: #004499;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cdm-club-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .cdm-left-column,
    .cdm-right-column {
        padding: 0;
    }
    
    .cdm-club-name-tm {
        font-size: 2em;
    }
    
    .cdm-info-row {
        grid-template-columns: 1fr;
    }
    
    .cdm-info-left {
        border-right: none;
        border-bottom: 1px solid #eee;
        background: #f0f0f0;
    }
    
    .cdm-action-buttons {
        flex-wrap: wrap;
    }
    
    .cdm-map-section {
        position: static;
    }
}

/* Social Media Sidebar Section (when no map) */
.cdm-social-section-sidebar {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.cdm-social-section-sidebar h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
}

.cdm-social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cdm-social-link-full {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cdm-social-link-full.facebook {
    background: #1877f2;
}

.cdm-social-link-full.linkedin {
    background: #0077b5;
}

.cdm-social-link-full.instagram {
    background: #e4405f;
}

.cdm-social-link-full.twitter {
    background: #000000;
}

.cdm-social-link-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Keep existing directory table styles for backward compatibility */
.cdm-club-directory {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
}

/* Filters Section */
.cdm-filters-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background: #6c757d !important;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 0px !important;
    border: 1px solid #dee2e6;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1) !important;
}

.cdm-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Search Box */
.cdm-search-box {
    flex: 1;
    min-width: 250px;
}

.cdm-search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.cdm-search-box input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cdm-search-box input::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Filters */
.cdm-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cdm-filters select {
    padding: 10px 14px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cdm-filters select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Filter Actions */
.cdm-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cdm-filter-btn, .cdm-export-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cdm-filter-btn:hover, .cdm-export-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004d73 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cdm-clear-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.cdm-clear-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Results Info */
.cdm-results-info {
    margin-bottom: 20px;
    font-style: italic;
    color: #6c757d;
    font-size: 14px;
}

.cdm-results-info p {
    margin: 0;
}

/* Table Container */
.cdm-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 0px;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

/* Table Styles */
.cdm-clubs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.cdm-clubs-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cdm-clubs-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

/* Table Rows */
.cdm-club-row {
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.cdm-club-row:hover {
    background-color: #f8f9fa;
    transform: translateY(0px);
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
}

.cdm-club-row:nth-child(even) {
    background-color: #fafbfc;
}

.cdm-club-row:nth-child(even):hover {
    background-color: #f1f3f4;
}

/* Table Cell Specific Styles */
.cdm-club-name {
    font-weight: 600;
    min-width: 200px;
}

.cdm-club-name a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.cdm-club-name a:hover {
    color: #005a87;
    text-decoration: underline;
}

.cdm-meeting-time {
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
    text-align: center;
    min-width: 100px;
}

.cdm-emirate {
    color: #6c757d;
    font-weight: 500;
    min-width: 120px;
}

.cdm-division-area {
    text-align: center;
    font-weight: 700;
    color: #495057;
    font-family: 'Courier New', monospace;
    background: #e9ecef;
    border-radius: 4px;
    padding: 4px 8px;
    min-width: 80px;
}

.cdm-club-number {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    min-width: 80px;
}

/* Sortable Headers */
.cdm-sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
}

.cdm-sortable:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #0073aa;
}

.sort-indicator {
    margin-left: 5px;
    font-weight: bold;
    opacity: 0.7;
}

/* Pagination */
.cdm-pagination {
    margin-top: 30px;
    text-align: center;
    padding: 20px 0;
}

.cdm-pagination a, 
.cdm-pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    text-decoration: none;
    border: 2px solid #dee2e6;
    color: #0073aa;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cdm-pagination a:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cdm-pagination .current {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* No Results */
.cdm-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cdm-no-results p {
    font-size: 18px;
    margin: 0;
    font-style: italic;
}

/* Loading Overlay */
.cdm-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    border-radius: 8px;
}

.cdm-spinner {
    padding: 20px 30px;
    background: #333;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

/* Mobile responsiveness for directory table */
@media (max-width: 768px) {
    /* Stack filters vertically on mobile */
    .cdm-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cdm-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .cdm-filters select {
        width: 100%;
    }
    
    .cdm-filter-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cdm-filter-actions .cdm-filter-btn,
    .cdm-filter-actions .cdm-clear-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    
    /* Table adjustments */
    .cdm-clubs-table {
        font-size: 12px;
    }
    
    .cdm-clubs-table th,
    .cdm-clubs-table td {
        padding: 10px 8px;
    }
    
    /* Hide some columns on very small screens */
    .cdm-clubs-table .cdm-meeting-week {
        display: none;
    }
}

@media (max-width: 480px) {
    .cdm-clubs-table .cdm-meeting-day,
    .cdm-clubs-table .cdm-division-area {
        display: none;
    }
    
    .cdm-clubs-table th,
    .cdm-clubs-table td {
        padding: 8px 6px;
    }
}-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #0073aa;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    font-weight: 700;
    position: relative;
}

.cdm-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #0073aa;
}

/* Contact Section */
.cdm-contact-section, .cdm-social-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cdm-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cdm-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.cdm-contact-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cdm-contact-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cdm-contact-item strong {
    color: #495057;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.cdm-contact-item a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.cdm-contact-item a:hover {
    text-decoration: underline;
}

/* Social Media Links */
.cdm-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cdm-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cdm-social-link:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.cdm-social-link span {
    font-size: 18px;
}

/* Map Container */
.cdm-map-container {
    margin-top: 25px;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cdm-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cdm-map-container p {
    margin-top: 10px;
    text-align: center;
}

.cdm-map-container small {
    color: #6c757d;
    font-style: italic;
}

/* Back Link */
.cdm-back-link {
    margin-top: 50px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.cdm-back-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cdm-back-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004d73 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cdm-filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cdm-search-box {
        min-width: auto;
    }
    
    .cdm-filters {
        flex-direction: column;
    }
    
    .cdm-filters select {
        width: 100%;
        min-width: auto;
    }
    
    .cdm-filter-actions {
        justify-content: center;
    }
    
    .cdm-clubs-table {
        font-size: 12px;
    }
    
    .cdm-clubs-table th,
    .cdm-clubs-table td {
        padding: 8px 6px;
    }
    
    .cdm-club-title {
        font-size: 2.2em;
    }
    
    .cdm-club-detail {
        padding: 20px;
        margin: 10px;
    }
    
    .cdm-club-header {
        margin: -20px -20px 30px -20px;
        padding: 30px 20px 20px 20px;
    }
    
    .cdm-club-meta {
        grid-template-columns: 1fr;
    }
    
    .cdm-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cdm-social-links {
        flex-direction: column;
    }
    
    .cdm-social-link {
        justify-content: center;
    }
    
    .cdm-map-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .cdm-club-title {
        font-size: 1.8em;
    }
    
    .cdm-pagination a, 
    .cdm-pagination span {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .cdm-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cdm-contact-icon {
        align-self: flex-start;
    }
}