/* Estilos para filtros */
.filtros-dojos {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.filtros-dojos h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 1.3em;
    text-align: center;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filtro-group {
    display: flex;
    flex-direction: column;
}

.filtro-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.filtro-select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.filtro-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filtro-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filtro-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.filtro-btn-primary {
    background: #dc2626;
    color: white;
}

.filtro-btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.filtro-btn-secondary {
    background: #6b7280;
    color: white;
}

.filtro-btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Grid de dojos */
.dojos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Tarjetas de dojos */
.dojo-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dojo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #dc2626;
}

.dojo-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.dojo-card-link:hover {
    color: inherit;
}

/* Imagen de la tarjeta */
.dojo-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.dojo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dojo-card:hover .dojo-card-image img {
    transform: scale(1.05);
}

.dojo-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.dojo-card-no-image .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #dc2626;
    opacity: 0.7;
}

/* Contenido de la tarjeta */
.dojo-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dojo-card-title {
    margin: 0 0 15px 0;
    font-size: 1.25em;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.dojo-card-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 0.9em;
    line-height: 1.4;
}

.dojo-card-info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
    margin-top: 2px;
    flex-shrink: 0;
}

.dojo-card-text {
    flex: 1;
}

/* AcciÃ³n de la tarjeta */
.dojo-card-action {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.dojo-card-btn {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
}

.dojo-card:hover .dojo-card-btn {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Mensaje cuando no hay dojos */
.no-dojos-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
}

.no-dojos-message p {
    margin: 0;
    color: #6b7280;
    font-size: 1.1em;
}

/* Estados para filtros aplicados */
.filtro-aplicado {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .filtros-grid {
        grid-template-columns: 1fr;
    }
    
    .filtro-actions {
        flex-direction: column;
    }
    
    .filtro-btn {
        width: 100%;
    }
    
    .dojos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .dojo-card-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .filtros-dojos {
        padding: 15px;
    }
    
    .dojos-grid {
        grid-template-columns: 1fr;
    }
    
    .dojo-card-image {
        height: 180px;
    }
}


/* Estilos para la p¨¢gina individual del dojo */
.dojo-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dojo-single-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Header */
.dojo-single-header {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    align-items: start;
}

.dojo-header-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dojo-single-title {
    margin: 0;
    font-size: 2.5em;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.2;
}

.dojo-single-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    color: #6b7280;
}

.dojo-single-location .dashicons {
    color: #dc2626;
}

.dojo-single-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dojo-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
}

.dojo-contact-item a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dojo-contact-item a:hover {
    color: #dc2626;
}

.dojo-contact-item .dashicons {
    color: #9ca3af;
    width: 20px;
}

.dojo-single-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.dojo-single-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Contenido principal */
.dojo-single-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.dojo-main-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dojo-info-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.dojo-info-section h3 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 1.4em;
    font-weight: 600;
}

.dojo-info-section p {
    margin: 8px 0;
    color: #6b7280;
    line-height: 1.6;
}

/* Informaci¨®n del Sensei */
.sensei-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sensei-redes {
    margin-top: 15px;
}

/* Redes sociales */
.redes-sociales-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.red-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.red-social:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.red-social .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Mapa */
.dojo-map-section {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.dojo-map-section h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 1.4em;
    font-weight: 600;
}

.mapa-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.acf-map {
    height: 100%;
    width: 100%;
}

/* Footer */
.dojo-single-footer {
    padding: 30px 40px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.back-to-dojos-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #dc2626;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-dojos-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    color: white;
}

.back-to-dojos-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .dojo-single-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dojo-single-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dojo-single-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .dojo-single-container {
        padding: 10px;
    }
    
    .dojo-single-header,
    .dojo-single-content {
        padding: 25px;
    }
    
    .dojo-single-title {
        font-size: 2em;
    }
    
    .redes-sociales-links {
        flex-direction: column;
    }
    
    .red-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dojo-single-header,
    .dojo-single-content {
        padding: 20px;
    }
    
    .dojo-single-title {
        font-size: 1.6em;
    }
    
    .dojo-info-section {
        padding: 20px;
    }
}