


/* ======================================================= */
/* BREADCRUMB SECTION */
/* ======================================================= */
.breadcrumb-section {
    /*margin-top: 125px;*/
    background: #fff;
    padding: 10px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #777;
}

.breadcrumb a {
    color: #101010;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #f47b20;
}

.breadcrumb a .current {
    color: #777;
    font-weight: 600;
}

.breadcrumb a:hover .current {
    color: #f47b20;
}

.breadcrumb i.fas {
    font-size: 10px;
    color: #9b9898;
    margin: 0 4px;
}

.page-title {
    font-size: 30px;
    font-weight: 600;
    color: rgb(90, 75, 20);
    font-family: "Poppins", sans-serif !important;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* ======================================================= */
/* ACTIVITIES CONTENT */
/* ======================================================= */
.activities-content {
    padding: 60px 0;
    background: #fff;
}

.activities-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

/* ======================================================= */
/* SORT DROPDOWN MODERNO */
/* ======================================================= */
.sort-dropdown {
    position: relative;
    display: inline-block;
    font-family: "Poppins", sans-serif;
}

/* Botón principal */
.sort-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.sort-button:hover {
    border-color: #f47b20;
    color: #f47b20;
}

.sort-button i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.sort-button.active i {
    transform: rotate(180deg);
}

/* Dropdown */
.sort-menu {
    position: absolute;
    top: 105%;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 20;
}

.sort-dropdown.open .sort-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Encabezado */
.sort-menu-header {
    padding: 10px 16px;
    border-bottom: 1px dashed #ddd;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* Opciones */
.sort-option {
    padding: 10px 16px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-option:hover {
    background: #fef4ed;
    color: #f47b20;
}

.sort-option.active {
    color: #f47b20;
    font-weight: 600;
}

/* ======================================================= */
/* ACTIVITIES GRID */
/* ======================================================= */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Contenedor principal: ¡Punto Único de Control del HOVER! */
.activity-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;

    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    /* CRÍTICO: Asegura que el borde redondeado funcione en todo el contenido */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* EFECTO HOVER COMPLETO */
.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.activity-item:hover .activity-image img {
    transform: scale(1.05);
}
.activity-item:hover .activity-overlay {
    opacity: 1;
}

/* ======================================================= */
/* ACTIVITY CARD (IMAGEN) */
/* ======================================================= */
.activity-card {
    position: relative;
    /* CRÍTICO: Eliminar cualquier espacio vertical al final de la tarjeta */
    margin-bottom: 0;
    overflow: hidden;
    width: 100%;
    box-shadow: none;
    flex-shrink: 0;
}

/* ======================================================= */
/* ACTIVITY IMAGE (CONTENIDO DE LA IMAGEN) */
/* ======================================================= */
.activity-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    /* CRÍTICO: Eliminar cualquier margen o espacio del div */
    margin: 0;
}


.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    /* CRÍTICO: Usar display block para eliminar espacios bajo la imagen */
    display: block;
}

/* Overlay naranja sólido */
.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 123, 32, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

/* Botón */
.btn-view-all {
    padding: 12px 35px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    text-transform: capitalize;
    z-index: 11;
}

.btn-view-all:hover {
    background: #fff;
    color: #f47b20;
    border-color: #fff;
    transform: scale(1.05);
}

/* ======================================================= */
/* ACTIVITY INFO (DEBAJO DEL CARD) */
/* ======================================================= */
.activity-info {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 6px;

    /* CRÍTICO: Cero margen superior para pegar al card */
    margin-top: 0;
    padding: 15px 15px 20px 15px;
    text-align: left;
    width: 100%;
    background: #fff;
    z-index: 5;
}

.activity-info h3 {
    font-size: 22px;
    font-weight: 600;
    /* CRÍTICO: Cero margen en h3 para no empujar el div */
    margin: 0;
}

.activity-info h3 a {
    font-size: 22px;
    font-weight: 600;
    color: #534400;
    text-decoration: none;
    transition: color 0.2s;
}

.activity-info h3 a:hover {
    color: #f47b20;
}

.activity-info .trip-count {
    font-size: 14px;
    color: rgb(90, 75, 20);
    font-weight: 500;
}

/* ======================================================= */
/* RESPONSIVE */
/* ======================================================= */
@media (max-width: 991px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .activity-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .sort-button {
        font-size: 14px;
        padding: 7px 12px;
    }

    .sort-menu {
        width: 140px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 32px;
    }

    .activities-content {
        padding: 40px 0;
    }

    .activities-header {
        margin-bottom: 30px;
    }

    .activity-image {
        height: 300px;
    }

    .activity-info h3 {
        font-size: 20px;
    }

    .btn-view-all {
        padding: 10px 25px;
        font-size: 14px;
    }
}

