/* ===================================
   ARCHIVE TRAVEL GUIDE - STYLES
   =================================== */

/* === Hero Banner === */
.tg-hero {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?w=1600&q=80') center center / cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}

.tg-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.tg-hero .hero-title {
    font-family: "eicons";
    font-size: 3.5rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-shadow: 0 2px 11px rgba(0,0,0,0.6);
}

.tg-hero .hero-sub-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #fff;
    max-width: 680px;
    margin: 0 auto;
    text-shadow: 0 2px 11px rgba(0,0,0,0.6);
    line-height: 1.7;
}

/* === Category Tabs === */
.tg-category-section {
    background: transparent;
    position: relative;
    z-index: 50;
    margin-top: -40px;
}

.tg-category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tg-cat-tab {
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-right: 1px solid #f0f0f0;
    cursor: pointer;
}

.tg-cat-tab:last-child {
    border-right: none;
}

.tg-cat-tab:hover {
    color: #333;
    background: #fafafa;
    text-decoration: none;
}

.tg-cat-tab.active {
    color: #333;
    background: #fff;
    position: relative;
}

.tg-cat-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffcc05;
}

/* === Main Content === */
.tg-archive-content {
    padding: 50px 0 80px;
    background: #fff;
}

.tg-results-count {
    margin-bottom: 25px;
    font-size: 14px;
    color: #999;
}

.tg-results-count span {
    background: #f8f8f8;
    padding: 5px 14px;
    border-radius: 20px;
}

/* === Masonry Grid (staggered like index.php) === */
.tg-masonry-grid {
    column-count: 4;
    column-gap: 30px;
    transition: opacity 0.3s ease;
}

.tg-card {
    break-inside: avoid;
    margin-bottom: 40px;
    display: inline-block;
    width: 100%;
}



.tg-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tg-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.tg-card-image {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.tg-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.tg-card:hover .tg-card-image img {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Category Badge */
.tg-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffcc05;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 3px;
}

/* Card Body */
.tg-card-body {
    padding: 18px 0 0 0;
}

.tg-card-title {
    font-family: "eicons";
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    display: inline;
    background-image: linear-gradient(#1a1a1a, #1a1a1a);
    background-size: 0% 1px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease;
}

.tg-card:hover .tg-card-title {
    background-size: 100% 1px;
}

/* Card Meta */
.tg-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #aaa;
}

.tg-card-meta i {
    color: #ffcc05;
    margin-right: 4px;
}

/* Card Desc */
.tg-card-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
    margin: 0;
}

/* === No Results === */
.tg-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
    column-span: all;
}

.tg-no-results i {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.tg-no-results h3 {
    font-size: 20px;
    color: #999;
    margin-bottom: 8px;
}

.tg-no-results p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 15px;
}

/* === Load More === */
.tg-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.tg-load-more-btn {
    padding: 14px 50px;
    background: transparent;
    color: #333;
    border: 2px solid #333;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.tg-load-more-btn:hover {
    background: #ffcc05;
    border-color: #ffcc05;
    color: #333;
}

.tg-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reset Filters Button */
.btn-reset-filters {
    display: inline-block;
    padding: 10px 25px;
    background: #ffcc05;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #e6b800;
    text-decoration: none;
    color: #333;
}

/* ===================================
   RESPONSIVE
   =================================== */



@media (max-width: 992px) {
    .tg-hero {
        height: 380px;
    }

    .tg-hero .hero-title {
        font-size: 2.5rem;
    }

    .tg-masonry-grid {
        column-count: 2;
        column-gap: 20px;
    }

    .tg-card {
        margin-bottom: 30px;
    }

    .tg-cat-tab {
        padding: 12px 16px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .tg-hero {
        height: 320px;
    }

    .tg-hero .hero-title {
        font-size: 2rem;
    }

    .tg-hero .hero-sub-title {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .tg-category-section {
        margin-top: -30px;
    }

    .tg-category-tabs {
        border-radius: 4px;
    }

    .tg-cat-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .tg-masonry-grid {
        column-count: 2;
    }

    .tg-archive-content {
        padding: 30px 0 50px;
    }

    .tg-load-more-btn {
        padding: 12px 35px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .tg-hero {
        height: 280px;
    }

    .tg-hero .hero-title {
        font-size: 1.6rem;
    }

    .tg-cat-tab {
        padding: 8px 10px;
        font-size: 9px;
    }

    .tg-masonry-grid {
        column-count: 1;
    }

    .tg-card {
        margin-bottom: 35px;
    }

    .tg-card-title {
        font-size: 1.1rem;
    }
}
