/* ================================
   GOOGLE REVIEWS – PREMIUM UI
================================ */

#section-google-reviews {
    position: relative;
    overflow: hidden;
    background:
            radial-gradient(circle at 10% 10%, #eef2ff 0%, transparent 40%),
            radial-gradient(circle at 90% 90%, #f5f7ff 0%, transparent 40%),
            #f8f9fc;
    padding: 90px 0;
}

/* fade in section */
#section-google-reviews.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all .9s cubic-bezier(.2,.8,.2,1);
}
#section-google-reviews.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Cards ===== */
.reviews-card,
.map-card {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: all .35s ease;
}

/* hover nổi */
.reviews-card:hover,
.map-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(0,0,0,.15);
}

/* ===== Review items ===== */
.review {
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    background: #f7f8fc;
    transition: all .3s ease;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp .8s forwards;
}

.review:nth-child(2) { animation-delay: .15s; }
.review:nth-child(3) { animation-delay: .3s; }

.review:hover {
    background: #eef2ff;
    transform: translateY(-4px);
}

.review-author {
    font-weight: 700;
    color: #08103b;
}

.review-body {
    color: #555;
    font-size: 14.5px;
    margin-top: 8px;
}

/* ===== Stars ===== */
.star {
    color: #ffc107;
    width: 16px;
}

/* ===== Map ===== */
.map-inner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.google-map-embed {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
    transition: transform .6s ease;
}

.map-inner:hover .google-map-embed {
    transform: scale(1.05);
}

/* badge */
.map-badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

/* ===== Animations ===== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    from { width: 0 }
    to { width: 90px }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

    .gr-main-title {
        font-size: 1.6rem;
    }

    .google-map-embed {
        min-height: 300px;
    }

    .reviews-card,
    .map-card {
        margin-bottom: 25px;
    }
}


/* ================= card */
.reviews-card,
.map-card {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 26px;
    box-shadow:
            0 10px 30px rgba(11,23,75,.06),
            0 2px 6px rgba(11,23,75,.04);
    transition: all .35s ease;
}

/* hover nổi */
.reviews-card:hover,
.map-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(11,23,75,.12);
}

/* ================= title */
.gr-title {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(90deg,#1b2cff,#5c7cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}

/* ================= reviews list */
.reviews-list {
    display: grid;
    gap: 14px;
    max-height: 360px;
    overflow: auto;
    scroll-behavior: smooth;
}

/* scrollbar đẹp */
.reviews-list::-webkit-scrollbar {
    width: 6px;
}
.reviews-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.12);
    border-radius: 10px;
}

/* ================= review item */
.review {
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg,#fff,#fbfbfd);
    border: 1px solid rgba(9,16,48,.04);
    transform: translateY(10px);
    opacity: 0;
    animation: reviewIn .6s ease forwards;
    transition: all .3s ease;
}

/* delay từng item */
.review:nth-child(2){ animation-delay:.12s }
.review:nth-child(3){ animation-delay:.24s }
.review:nth-child(4){ animation-delay:.36s }
.review:nth-child(5){ animation-delay:.48s }

@keyframes reviewIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* hover effect */
.review:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(11,23,75,.12);
}

/* ================= text */
.review-author {
    font-weight: 800;
    color: #111827;
}
.review-body {
    color: #4b5568;
    line-height: 1.55;
}
.review-meta {
    font-size: .8rem;
    color:#98a1b2;
}

/* ================= stars */
.stars {
    display: inline-flex;
    gap: 5px;
}

.star {
    width: 16px;
    height: 16px;
    color: #FFB800;
    transition: transform .25s ease;
}

/* sparkle khi hover */
.review:hover .star {
    transform: scale(1.2) rotate(6deg);
}
/* =============================
   MAP CARD PRO (match review)
============================= */

.gr-map {
    height: 100%;
    min-height: 360px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* inner wrapper */
.map-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

/* iframe full */
.google-map-embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    transition: transform .7s ease, filter .4s ease;
}

/* zoom nhẹ khi hover */
.gr-map:hover .google-map-embed {
    transform: scale(1.06);
    filter: saturate(1.05);
}

/* overlay gradient */
.map-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(0,0,0,.35),
            rgba(0,0,0,0) 50%
    );
    pointer-events: none;
}

/* badge */
.map-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;

    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);

    padding: 8px 14px;
    border-radius: 999px;

    font-size: .85rem;
    font-weight: 700;

    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    animation: badgeFloat 3s ease-in-out infinite;
}

/* floating animation */
@keyframes badgeFloat {
    0%,100% { transform: translateY(0) }
    50% { transform: translateY(-4px) }
}

/* ================= MATCH HEIGHT WITH REVIEWS */
.row.align-items-center {
    align-items: stretch !important;
}

/* ================= MOBILE */
@media (max-width: 767px) {

    .gr-map {
        min-height: 240px;
        margin-top: 18px;
    }

    .map-badge {
        font-size: .78rem;
        padding: 6px 10px;
    }
}

/* =============================
   GOOGLE REVIEW BUTTONS PRO
============================= */

.gr-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* base */
.gr-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 20px;
    border-radius: 999px;

    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;

    transition: all .28s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
    cursor: pointer;
}

/* icon */
.gr-icon {
    font-size: 1.05rem;
}

/* ================= primary (Google style) */
.gr-btn-primary {
    color: #fff;
    background: linear-gradient(135deg,#4285F4,#6aa7ff);
    box-shadow: 0 8px 20px rgba(66,133,244,.35);
}

.gr-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(66,133,244,.45);
}

/* glow */
.gr-btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.4), transparent 50%);
    opacity: 0;
    transition: opacity .3s;
}
.gr-btn-primary:hover::after {
    opacity: 1;
}

/* ================= outline */
.gr-btn-outline {
    color: #08103b;
    border: 2px solid #dbe2ff;
    background: #fff;
}

.gr-btn-outline:hover {
    background: linear-gradient(135deg,#08103b,#1b2cff);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(11,23,75,.18);
}

/* ================= ripple click effect */
.gr-btn:active {
    transform: scale(.95);
}

/* ================= mobile */
@media (max-width: 576px) {
    .gr-buttons {
        flex-direction: column;
    }
    .gr-btn {
        justify-content: center;
        width: 100%;
    }
}


/* ================= mobile */
@media (max-width: 767px) {
    .reviews-card, .map-card {
        border-radius: 14px;
    }
}
