/* ================================================
   SUMMITS PAGES - COMBINED CSS (COLOR CONSISTENT)
   View Summits, Upcoming Summits, Past Summits
   ================================================ */

/* ================================================
   COMMON HERO SECTIONS
   ================================================ */
.summits-hero-section {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, rgba(245, 240, 230, 0.85), rgba(235, 225, 210, 0.85)),url('../images/map.svg');
    position: relative;
    overflow: hidden;
}

.summits-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></svg>') repeat;
    opacity: 0.1;
}

.summits-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1rem 0;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    
}

.summits-hero-subtitle {
    font-size: 1.15rem;
    color: var(--dark);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
    
}

.hero-badge {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: var(--btn-primary) !important;
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #b8860b !important;
    margin-bottom: 1rem;
}

/* Hero Variants - MATCHED TO PRIMARY DESIGN */
.upcoming-hero {
    background: linear-gradient(135deg, #f7e6a4 0%, var(--primary) 30%, #f8f1d9 100%);
}

.upcoming-hero .hero-badge {
    background: rgba(223, 182, 82, 0.2);
    color: var(--secondary);
    border-color: var(--secondary);
}

.past-hero {
    background: linear-gradient(135deg, #f7e6a4 0%, var(--primary) 30%, #f8f1d9 100%);
}

.past-hero .hero-badge {
    background: rgba(223, 182, 82, 0.2);
    color: var(--secondary);
    border-color: var(--secondary);
}

/* ================================================
   COMMON FILTER BAR
   ================================================ */
.summits-filter-bar {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(1, 34, 79, 0.08);
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.search-box .form-control {
    padding: 0.95rem 1rem 0.95rem 3.25rem;
    border-radius: 12px;
    border: 2px solid var(--gray);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(223, 182, 82, 0.25);
    outline: none;
}

.form-select {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--gray);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(223, 182, 82, 0.25);
    outline: none;
}

.summits-count {
    display: inline-flex;
    align-items: center;
    background: var(--btn-primary);
    border: 1px solid #b8860b !important;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px; 
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: var(--dark);
    padding: 0.95rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.summits-count span {
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

/* ================================================
   VIEW SUMMITS - STATE CARDS
   ================================================ */
.all-summits-section {
    padding: 6rem 0;
    background: var(--white);
}

.state-summit-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(1, 34, 79, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--gray);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.state-summit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(1, 34, 79, 0.18);
    border-color: var(--secondary);
}

.state-card-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.state-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(223, 182, 82, 0.3);
    transition: all 0.3s ease;
}

.state-summit-card:hover .state-icon {
    transform: scale(1.1) rotate(5deg);
}

.state-badge {
    background: rgba(223, 182, 82, 0.15);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--secondary);
}

.state-badge.bg-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--light);
    border-color: var(--success);
}

.state-card-body {
    padding: 1rem 1.5rem 1.75rem;
    flex-grow: 1;
}

.state-card-body h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.state-location {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
}

.state-location i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.state-meta {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.state-meta span {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.state-meta i {
    color: var(--secondary);
    margin-right: 0.65rem;
    font-size: 0.9rem;
    width: 18px;
}

.state-card-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--gray);
}

.btn-view-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view-details:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 182, 82, 0.4);
}

.btn-view-details i {
    transition: transform 0.3s ease;
}

.btn-view-details:hover i {
    transform: translateX(5px);
}

.state-summit-card.featured {
    border-color: var(--secondary);
    box-shadow: 0 6px 30px rgba(223, 182, 82, 0.3);
}

/* ================================================
   UPCOMING SUMMITS - DETAILED CARDS
   ================================================ */
.upcoming-summits-section {
    padding: 6rem 0;
    background: var(--white);
}

.upcoming-summit-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(1, 34, 79, 0.1);
    transition: all 0.4s ease;
    border: 2px solid var(--gray);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.upcoming-summit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(1, 34, 79, 0.18);
    border-color: var(--secondary);
}

.upcoming-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--primary);
    text-align: center;
    padding: 0.75rem;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(223, 182, 82, 0.4);
    min-width: 70px;
}

.date-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.25rem 0;
}

.date-year {
    font-size: 0.75rem;
    font-weight: 600;
}

.upcoming-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.upcoming-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.upcoming-summit-card:hover .upcoming-img {
    transform: scale(1.1);
}

.upcoming-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(1, 34, 79, 0.8) 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(1, 34, 79, 0.3);
}

.upcoming-card-body {
    padding: 2rem;
    flex-grow: 1;
}

.upcoming-card-body h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.upcoming-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.upcoming-meta span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.upcoming-meta i {
    color: var(--secondary);
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
}

.summit-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.summit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-item {
    background: var(--light);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--gray);
}

.tag-item i {
    font-size: 0.7rem;
    color: var(--secondary);
}

.upcoming-card-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--gray);
    display: flex;
    gap: 1rem;
}

.btn-register {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.20rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-register:hover {
    background: #DFB652;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.upcoming-summit-card.featured {
    border-color: var(--secondary);
    box-shadow: 0 6px 30px rgba(223, 182, 82, 0.3);
}

/* ================================================
   PAST SUMMITS - ARCHIVE CARDS
   ================================================ */
.past-summits-section {
    padding: 6rem 0;
    background: var(--white);
}

.past-summit-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(1, 34, 79, 0.1);
    transition: all 0.4s ease;
    border: 2px solid var(--gray);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.past-summit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(1, 34, 79, 0.18);
    border-color: var(--secondary);
}

.past-ribbon {
    position: absolute;
    top: 15px;
    left: -35px;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.35rem 3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(223, 182, 82, 0.4);
}

.past-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.past-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.past-summit-card:hover .past-img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.past-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(1, 34, 79, 0.7) 100%);
}

.past-date-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.past-date-overlay i {
    color: var(--secondary);
}

.past-card-body {
    padding: 2rem;
    flex-grow: 1;
}

.past-card-body h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.past-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.past-meta span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.past-meta i {
    color: var(--secondary);
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
}

.past-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.stat-box {
    flex: 1;
    background: var(--light);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
}

.stat-box:hover {
    background: rgba(223, 182, 82, 0.1);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.stat-box i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.stat-box span {
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.past-card-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--gray);
    display: flex;
    gap: 1rem;
}

.btn-highlights {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.20rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-highlights:hover {
    background: #DFB652;
    transform: translateY(-2px);
    color: var(--white);
}



/* ================================================
   NO RESULTS MESSAGE (COMMON)
   ================================================ */
.no-results-message {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-light);
}

.no-results-message i {
    font-size: 4rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results-message h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.no-results-message p {
    font-size: 1rem;
    color: var(--text-light);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.state-summit-card,
.upcoming-summit-card,
.past-summit-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.state-summit-card:nth-child(1),
.upcoming-summit-card:nth-child(1),
.past-summit-card:nth-child(1) { animation-delay: 0.05s; }

.state-summit-card:nth-child(2),
.upcoming-summit-card:nth-child(2),
.past-summit-card:nth-child(2) { animation-delay: 0.1s; }

.state-summit-card:nth-child(3),
.upcoming-summit-card:nth-child(3),
.past-summit-card:nth-child(3) { animation-delay: 0.15s; }

.state-summit-card:nth-child(4),
.upcoming-summit-card:nth-child(4),
.past-summit-card:nth-child(4) { animation-delay: 0.2s; }

.state-summit-card:nth-child(5),
.upcoming-summit-card:nth-child(5),
.past-summit-card:nth-child(5) { animation-delay: 0.25s; }

.state-summit-card:nth-child(6),
.upcoming-summit-card:nth-child(6),
.past-summit-card:nth-child(6) { animation-delay: 0.3s; }

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 992px) {
    .summits-hero-title {
        font-size: 2.5rem;
    }

    .summits-hero-subtitle {
        font-size: 1.05rem;
    }

    .summits-filter-bar {
        padding: 1.5rem;
    }

    .summits-count {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .state-card-image,
    .upcoming-card-image,
    .past-card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .summits-hero-section {
        padding: 4rem 0 2.5rem;
    }

    .summits-hero-title {
        font-size: 2rem;
    }

    .summits-hero-subtitle {
        font-size: 1rem;
    }

    .all-summits-section,
    .upcoming-summits-section,
    .past-summits-section,

    .summits-filter-bar {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    .upcoming-card-footer,
    .past-card-footer {
        flex-direction: column;
    }

    .btn-register,
    .btn-details,
    .btn-highlights {
        width: 100%;
    }

    .past-stats {
        flex-wrap: wrap;
    }

    .stat-box {
        flex: 1 1 45%;
        min-width: 120px;
    }

    .state-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }

    .stat-icon-modern {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .summits-hero-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }

    .summits-filter-bar {
        padding: 1rem;
    }

    .state-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .state-card-body h4,
    .upcoming-card-body h4,
    .past-card-body h4 {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-icon-modern {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
    }

    .upcoming-date-badge {
        min-width: 60px;
        padding: 0.5rem;
    }

    .date-day {
        font-size: 1.5rem;
    }

    .past-stats {
        gap: 0.5rem;
    }

    .stat-box {
        flex: 1 1 100%;
        padding: 0.5rem;
    }
}
