/* Reset para evitar conflictos con temas de WordPress */
.group-finder-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.group-finder-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 20px;
    background-color: #f5f5f5;
}

.group-finder-container {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.group-finder-container .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.groups-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.group-card {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.group-hero-image {
    height: 150px;
    overflow: hidden;
}

.group-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.group-title {
    /*font-weight: bold;*/
    /*font-size: 18px;*/
    margin-bottom: 5px;
}

.group-age {
    /*color: #666;*/
    /*font-size: 14px;*/
    margin-bottom: 10px;
}

.group-subtitle {
    /*font-weight: bold;*/
    margin-bottom: 5px;
    /*font-size: 14px;*/
}

.group-location {
    /*color: #666;*/
    /*font-size: 14px;*/
    margin-bottom: 10px;
}

.group-time {
    margin-bottom: 15px;
    font-size: 14px;
}

.group-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.read-more,
.register-now {
    padding: 8px 15px;
    /*text-decoration: none;*/
    border-radius: 4px;
    /*font-size: 14px;*/
}

.read-more {
    /*color: white;*/
    /*border: 1px solid #30a49c;*/
    /*background-color: #30a49c;*/
    /*font-weight: bold;*/
}

.register-now {
    /*background-color: #30a49c;*/
    /*color: white;*/
    /*font-weight: bold;*/
}

/* filters styles */
.search-container {
    margin-top: 16px;
}

.search-box input {
    height: 40px !important;
    padding: 5px 10px !important;
    font-size: 16px !important;
    outline: none !important;
    background: transparent !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 5px;
    margin: 3px 0;
    width: 100%;
}

.filters-container {
    margin: 16px 0;
    align-items: center;
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.filter-group {
    font-size: 14px;
}

.filter-dropdown {
    position: relative;
    width: 100%;
}

.filter-dropdown-toggle {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: inherit; /* Hereda el tamaño del grupo */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flecha indicadora - opcional */
.filter-dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* whit this hover works */
.filter-dropdown:hover .filter-dropdown-content {
    display: block;
}

.filter-checkbox-label {
    display: block;
    padding: 8px 0;
    cursor: pointer;
    font-size: inherit; /* Hereda el tamaño del grupo */
    align-items: center;
}

.filter-checkbox-label input {
    margin-right: 8px;
}

.clear-filters {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
    text-decoration: none;
}

.clear-filters:hover {
    background-color: #f5f5f5;
}


/* filters styles */

/* pagination styles */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .pagination-info {
        text-align: center;
        order: 2;
        margin-top: 10px;
    }

    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .page-link {
        padding: 6px 10px;
        min-width: 28px;
        font-size: 13px;
    }

    .page-link.prev-next {
        padding: 6px 8px;
    }
}

.pagination-info {

    margin-left: auto;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.page-link.active {
    background-color: #30a49c;
    color: white;
    border-color: #30a49c;
}

.page-link.prev-next {
    font-weight: bold;
    padding: 6px 10px;
}

.page-link:not(.active):hover {
    background-color: #f5f5f5;
}


.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

/* pagination styles *


/* Nuevos estilos para móviles */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .pagination-info {
        text-align: center;
        order: 2;
        /* Mover la info debajo de los controles */
        margin-top: 10px;
    }

    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .page-link {
        padding: 6px 10px;
        min-width: 28px;
        font-size: 13px;
    }

    .page-link.prev-next {
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    .group-row {
        flex-direction: column;
    }
}

/* Detail Page Styles */
.detail-container {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/*image*/
.detail-header {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
    gap: 30px;
}

.detail-image-container {
    max-width: 350px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-header-text {
    flex-grow: 1;
}

.detail-title {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
}

.detail-time {
    font-size: 20px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.detail-time-hour {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
    }

    .detail-image-container {
        width: 100%;
        height: 200px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-time {
        font-size: 18px;
    }

    .detail-time-hour {
        font-size: 20px;
    }
}

.detail-description {
    line-height: 1.6;
    margin-bottom: 30px;
    color: #444;
}

.detail-description p {
    margin-bottom: 15px;
}

.detail-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-info-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.detail-info-label {
    font-weight: bold;
    display: inline-block;
    width: 120px;
    color: #555;
}

.back-button {
    display: inline-block;
    padding: 12px 25px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 15px;
    transition: background 0.3s;
}

.back-button:hover {
    background: #e0e0e0;
}

.register-button {
    display: inline-block;
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.register-button:hover {
    background: #30a49c;
}

.small {
    font-size: 0.875em;
    font-weight: 400;
}

.text-muted {
    color: #6c757d;
}

/* Responsive styles */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        text-align: center;
    }

    .detail-image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .detail-info-label {
        width: 100%;
        display: block;
        margin-bottom: 5px;
    }

    .detail-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .back-button,
    .register-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .filter-group {
        min-width: 100%;
    }
}