/* 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;
}

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

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

.group-card {
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
    height: auto;
    display: flex;
    flex-direction: column;
}

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

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

.group-content {
    padding: 10px 10px 20px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.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;
}

.sg-extra-content {
    margin: 4px 0;
}

.sg-extra-content p  {
    margin: 0;
}

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

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

.sg-subtitle {
    color: #808080;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
}

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

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

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

.sg-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%;
}

.sg-filters-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.sg-filter-group {
    font-size: 14px;
    flex-grow: 1;
    padding: 8px;
}

.sg-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;
}

.sg-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 */
.sg-filter-dropdown:hover .sg-filter-dropdown-content {
    display: block;
}

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

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

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

.sg-clear-filters:hover {
    background-color: #f5f5f5;
}
/* filters styles */

/* pagination styles */
.sg-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;
    padding: 20px;
}

.sg-pagination-info {
    margin-left: auto;
}

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

.sg-page-link {
    min-width: 32px;
    padding: 8px 12px;
}

.sg-page-link.sg-active {
}

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

.sg-page-link:not(.sg-active):hover {
}

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

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

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

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

    .sg-page-link.prev-next {
        padding: 6px 8px;
    }
}
/* pagination styles */

/* 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;
    }
}

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

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

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

.detail-info-item p {
    margin: 0;
}

.detail-info-label {
    color: #808080;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
}

.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;
}

.detail-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.detail-actions a {
    text-decoration: none;
    width: auto;
    height: 35px;
    /*background-color: #00a09b;*/
    /*color: #fff;*/
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 12px;
    font-weight: bold;
}

/* styles for no results message */
.sg-error {
    background-color: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c2c7;
    border-left: 5px solid #d32f2f;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 6px;
    font-size: 14px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Responsive styles */
@media (min-width: 1080px) {
    .sg-filter-group {
        width: calc(33.33% - 8px);
        max-width: calc(33.33% - 8px);
    }
}

@media (max-width: 1079px) and (min-width: 768px) {
    .sg-filter-group {
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

@media (max-width: 767px) {
    .detail-header {
        flex-direction: column;
        text-align: center;
    }

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

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

    .sg-group-row {
        flex-direction: column;
    }

    .sg-filter-group {
        min-width: 100%;
    }
}
