/* Header Card */
.header-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 700px;
    margin: 0 auto 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.header-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.header-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 12px;
    line-height: 1.2;
}

.header-description {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #1E3A8A;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.search-btn:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.35);
}

.search-btn i {
    font-size: 20px;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #F5B700;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 183, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s, transform 0.2s;
}

.fab:hover {
    transform: scale(1.08);
    background-color: #d99f00;
    box-shadow: 0 6px 16px rgba(245, 183, 0, 0.5);
}

.fab i {
    font-size: 24px;
}

/* Filter Modal */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1E3A8A;
}

.close-modal-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #ef4444;
    font-size: 24px;
    transition: transform 0.2s;
}

.close-modal-btn:hover {
    transform: scale(1.1);
}

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

.filter-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.filter-select,
.filter-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
}

.filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.clear-btn,
.apply-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-size: 15px;
}

.clear-btn {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.clear-btn:hover {
    background-color: #e5e5e5;
}

.apply-btn {
    background-color: #1E3A8A;
    color: white;
}

.apply-btn:hover {
    background-color: #1e40af;
}

/* Loading */
.loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(30, 58, 138, 0.2);
    border-radius: 50%;
    border-top-color: #1E3A8A;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No Results */
.no-results {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.no-results-text {
    font-size: 18px;
    color: #666;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding-bottom: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Group Card */
.group-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.card-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #1e40af 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    color: #ffffff;
    font-size: 14px;
}

.card-barrio {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 16px;
    background: #ffffff;
}

.info-section {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.info-section i {
    font-size: 16px;
    margin-top: 2px;
    min-width: 16px;
}

.info-section i.fa-users {
    color: #10b981;
}

.info-section i.fa-home {
    color: #1E3A8A;
}

.info-text {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: baseline;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.group-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.group-address {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Schedule Table */
.schedule-table {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 16px 0 12px 0;
    background: #ffffff;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e5e7eb;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-day {
    padding: 8px 12px;
    background-color: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-right: 1px solid #e5e7eb;
    text-transform: capitalize;
}

.schedule-time {
    padding: 8px 12px;
    background-color: white;
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Map Link */
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #131986;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-top: 4px;
}

.map-link:hover {
    background-color: #0f1470;
}

.map-link i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.75rem;
    }

    .header-description {
        font-size: 0.875rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-content {
        border-radius: 20px 20px 0 0;
    }
}
