/* ===================================
   ARCHIVE GOLF REVIEW - STYLES
   =================================== */

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

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

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

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

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

/* === Filter Bar === */
.gr-filter-section {
    background: #fff;
    position: relative;
    z-index: 50;
    margin-top: -35px;
}

.gr-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    padding: 20px 30px;
}

.gr-filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gr-filter-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #999;
}

.gr-filter-group label i {
    color: #ffcc05;
    margin-right: 4px;
}

.gr-filter-select {
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.gr-filter-select:focus {
    border-color: #ffcc05;
}

.gr-filter-btn {
    padding: 11px 28px;
    background: #ffcc05;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gr-filter-btn:hover {
    background: #e6b800;
}

/* === Reviews Section === */
.gr-reviews-section {
    padding: 40px 0 80px;
    background: #fff;
}

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

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

/* === Single Review Item === */
.gr-review-item {
    display: flex;
    gap: 0;
    margin-bottom: 50px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease;
}

.gr-review-item:hover {
    box-shadow: 0 8px 35px rgba(0,0,0,0.10);
}

/* Alternating: reversed order */
.gr-review-item.gr-reversed {
    flex-direction: row-reverse;
}

.gr-review-images,
.gr-review-info {
    flex: 1;
    min-width: 0;
}

/* === Photo Grid === */
.gr-review-images {
    position: relative;
    max-height: 460px;
}

.gr-photo-grid {
    display: grid;
    width: 100%;
    height: 100%;
    max-height: 460px;
    gap: 3px;
}

.gr-photo-cell {
    overflow: hidden;
    position: relative;
}

.gr-photo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border: solid 1px #ffcc05;
}

.gr-photo-cell:hover img {
    transform: scale(1.03);
}

/* 1 photo: full */
.gr-photos-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* 2 photos: side by side */
.gr-photos-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

/* 3 photos: 1 big left + 2 stacked right */
.gr-photos-3 {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr 1fr;
}

.gr-photos-3 .gr-photo-cell:first-child {
    grid-row: 1 / 3;
}

/* 4 photos: 2x2 */
.gr-photos-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* 5 photos: 2 left stacked + 3 right stacked */
.gr-photos-5 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.gr-photos-5 .gr-photo-cell:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

.gr-photos-5 .gr-photo-cell:nth-child(2) {
    grid-column: 1;
    grid-row: 3 / 4;
}

.gr-photos-5 .gr-photo-cell:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / 2;
}

.gr-photos-5 .gr-photo-cell:nth-child(4) {
    grid-column: 2;
    grid-row: 2 / 3;
}

.gr-photos-5 .gr-photo-cell:nth-child(5) {
    grid-column: 2;
    grid-row: 3 / 4;
}

/* 0 photos fallback */
.gr-no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #ccc;
    font-size: 14px;
    gap: 8px;
}

.gr-no-photo i {
    font-size: 40px;
}

/* === Review Info Side === */
.gr-review-info {
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Course Name */
.gr-course-name {
    font-family: "eicons";
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 18px;
    display: inline-block;
    transition: color 0.3s ease;
}

.gr-course-name:hover {
    color: #c8a415;
    text-decoration: none;
}

/* Ratings Grid */
.gr-ratings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin-bottom: 18px;
}

.gr-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gr-rating-label {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.gr-rating-stars {
    display: flex;
    gap: 2px;
}

.gr-rating-stars .fas.fa-star {
    color: #ffcc05;
    font-size: 12px;
}

.gr-rating-stars .far.fa-star {
    color: #ddd;
    font-size: 12px;
}

/* Review Text */
.gr-review-text {
    margin-bottom: 18px;
}

.gr-review-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Reviewer */
.gr-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.gr-reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.gr-reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gr-reviewer-name {
    font-size: 14px;
    color: #333;
}

.gr-reviewer-nationality {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gr-reviewer-date {
    font-size: 12px;
    color: #bbb;
}

.gr-reviewer-date i {
    color: #ffcc05;
    margin-right: 4px;
}

/* View Course Button */
.gr-view-course-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: #333;
    border: 2px solid #333;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.gr-view-course-btn:hover {
    background: #ffcc05;
    border-color: #ffcc05;
    color: #333;
    text-decoration: none;
}

/* === No Results === */
.gr-no-results {
    text-align: center;
    padding: 80px 20px;
    color: #ccc;
}

.gr-no-results i {
    font-size: 55px;
    margin-bottom: 15px;
    display: block;
    color: #ddd;
}

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

.gr-no-results p {
    font-size: 14px;
    color: #bbb;
}

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

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

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

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

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

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

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

    .gr-review-item,
    .gr-review-item.gr-reversed {
        flex-direction: column;
    }

    .gr-review-images {
        min-height: 280px;
    }

    .gr-photo-grid {
        min-height: 280px;
    }

    .gr-review-info {
        padding: 25px 20px;
    }

    .gr-filter-bar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 18px 20px;
    }

    .gr-filter-group {
        flex: 1 1 calc(50% - 10px);
    }
}

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

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

    .gr-hero .hero-sub-title {
        font-size: 0.9rem;
        padding: 0 10px;
        max-width: inherit;
    }

    .gr-filter-bar {
        flex-direction: row;
    }

    .gr-filter-group {
        flex: 1 1 100%;
    }

    .gr-review-item {
        margin-bottom: 40px;
    }

    .gr-ratings-grid {
        grid-template-columns: 1fr;
    }

    .gr-review-images {
        min-height: 220px;
    }

    .gr-photo-grid {
        min-height: 220px;
    }

    .gr-course-name {
        font-size: 1.1rem;
    }
}

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

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

    .gr-review-info {
        padding: 20px 15px;
    }

    .gr-filter-section {
        margin-top: -25px;
    }

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