/* ── FILTER BAR ─────────────────────────────────────────────────────────── */
.agp-filter-wrap {
    background: #f4f8fc;
    border-bottom: 1px solid #d0e4f0;
    width: 100%;
}
.agp-filter-bar {
    display: flex;
    align-items: stretch;
    padding: 0 52px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.agp-filter-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 18px 24px;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #5a6a75;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.agp-filter-btn:hover { color: #1b82c5; }
.agp-filter-btn.active {
    color: #065e97;
    border-bottom-color: #1b82c5;
}

/* ── WRAP ───────────────────────────────────────────────────────────────── */
.agp-wrap {
    padding: 64px 52px 72px;
    background: #ffffff;
}
.agp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
.agp-header-left { display: flex; flex-direction: column; }
.agp-section-tag {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #1b82c5;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.agp-section-tag::before {
    content: '';
    width: 18px;
    height: 2px;
    background: #1b82c5;
    display: inline-block;
    flex-shrink: 0;
}
.agp-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #464747;
    text-transform: uppercase;
    line-height: 1.08;
    margin: 0;
}
.agp-results-count {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #8a9fad;
}

/* ── GRID — 3 equal columns ─────────────────────────────────────────────── */
.agp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 16px;
    transition: opacity 0.2s;
}
.agp-grid.agp-loading-grid {
    opacity: 0.4;
    pointer-events: none;
}

/* ── CARD ───────────────────────────────────────────────────────────────── */
.agp-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background-color: #0f2337;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: background-size 0.5s ease;
}
.agp-card:hover { background-size: 108%; }

/* Gradient overlay */
.agp-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(4, 40, 70, 0.92) 0%,
        rgba(4, 40, 70, 0.30) 60%,
        transparent 100%
    );
    transition: background 0.3s;
}
.agp-card:hover .agp-card-overlay {
    background: linear-gradient(
        0deg,
        rgba(4, 40, 70, 0.96) 0%,
        rgba(4, 40, 70, 0.50) 60%,
        rgba(4, 40, 70, 0.10) 100%
    );
}

/* Card content */
.agp-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    transform: translateY(4px);
    transition: transform 0.3s;
}
.agp-card:hover .agp-card-content { transform: translateY(0); }

/* Category + Location tag */
.agp-card-tag {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #7ec8f0;
    margin-bottom: 8px;
}

/* Title */
.agp-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 6px 0;
    transition: color 0.2s;
}
.agp-card:hover .agp-card-title { color: #7ec8f0; }

/* Subtitle */
.agp-card-meta {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    font-weight: 300;
}

/* Arrow */
.agp-card-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: #1b82c5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s, transform 0.3s;
}
.agp-card:hover .agp-card-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ── NO RESULTS ─────────────────────────────────────────────────────────── */
.agp-no-results {
    grid-column: 1 / -1;
    padding: 60px;
    text-align: center;
    color: #8a9fad;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    background: #f4f8fc;
    border: 1px solid #d0e4f0;
}

/* ── LOADING ────────────────────────────────────────────────────────────── */
.agp-loading { text-align: center; padding: 32px; }
.agp-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #d0e4f0;
    border-top-color: #1b82c5;
    border-radius: 50%;
    animation: agp-spin 0.7s linear infinite;
    margin: 0 auto;
}
@keyframes agp-spin { to { transform: rotate(360deg); } }

/* ── LOAD MORE ──────────────────────────────────────────────────────────── */
.agp-load-more-wrap {
    text-align: center;
    margin-top: 40px;
}
.agp-load-more {
    background: transparent;
    color: #065e97;
    border: 2px solid #1b82c5;
    padding: 13px 40px;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}
.agp-load-more:hover {
    background: #1b82c5;
    color: #ffffff;
}
.agp-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .agp-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
        gap: 12px;
    }
    .agp-filter-bar { padding: 0 24px; }
    .agp-wrap { padding: 48px 24px 56px; }
}
@media (max-width: 767px) {
    .agp-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
        gap: 10px;
    }
    .agp-filter-bar { padding: 0 16px; }
    .agp-wrap { padding: 32px 16px 48px; }
    .agp-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .agp-section-title { font-size: 32px; }
}
