/* Holidays Yard — Google Review popup (premium travel edition) */

.hy-google-review {
    --hy-gr-primary: #13b6ec;
    --hy-gr-deep: #0369a1;
    --hy-gr-accent: #ea580c;
    --hy-gr-gold: #f59e0b;
    --hy-gr-ink: #0f172a;
    --hy-gr-card: #ffffff;
    position: fixed;
    right: max(1.15rem, env(safe-area-inset-right, 0px));
    bottom: max(1.35rem, env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    width: min(290px, calc(100vw - 1.75rem));
    opacity: 0;
    transform: translateX(36px) scale(0.94);
    pointer-events: none;
    transition:
        opacity 0.55s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hy-google-review.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hy-google-review.is-hiding {
    opacity: 0;
    transform: translateX(20px) scale(0.96);
    pointer-events: none;
}

.hy-google-review__close {
    position: absolute;
    top: -12px;
    left: -12px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hy-google-review__close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.42);
}

.hy-google-review__close:focus-visible {
    outline: 2px solid var(--hy-gr-primary);
    outline-offset: 2px;
}

.hy-google-review__close .bi {
    font-size: 0.76rem;
}

.hy-google-review__card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--hy-gr-card);
    border: 1px solid rgba(19, 182, 236, 0.2);
    box-shadow:
        0 28px 60px rgba(15, 23, 42, 0.2),
        0 12px 28px rgba(19, 182, 236, 0.16);
    transition: box-shadow 0.3s ease;
}

.hy-google-review.is-visible .hy-google-review__card:hover {
    box-shadow:
        0 32px 64px rgba(15, 23, 42, 0.22),
        0 14px 32px rgba(19, 182, 236, 0.18);
}

.hy-google-review__hero {
    position: relative;
    z-index: 1;
    min-height: 92px;
    padding: 1rem 1rem 0;
    overflow: hidden;
    color: #fff;
}

.hy-google-review__hero-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.35), transparent 34%),
        radial-gradient(circle at 85% 10%, rgba(251, 191, 36, 0.45), transparent 28%),
        linear-gradient(135deg, #0284c7 0%, #13b6ec 38%, #38bdf8 62%, #ea580c 100%);
}

.hy-google-review__hero-sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.12) 100%);
}

.hy-google-review__hero-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hy-gr-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.2));
}

.hy-gr-icon--plane {
    top: 14px;
    right: 18px;
    font-size: 1.15rem;
    animation: hyGrPlane 4.5s ease-in-out infinite;
}

.hy-gr-icon--pin {
    top: 22px;
    left: 16px;
    font-size: 0.95rem;
    animation: hyGrFloat 3.4s ease-in-out infinite;
}

.hy-gr-icon--compass {
    bottom: 28px;
    right: 42%;
    font-size: 0.85rem;
    opacity: 0.75;
    animation: hyGrSpin 12s linear infinite;
}

.hy-google-review__hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    color: var(--hy-gr-card);
    line-height: 0;
    pointer-events: none;
}

.hy-google-review__hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hy-google-review__hero-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.hy-google-review__hero-label .bi {
    color: #fde68a;
    font-size: 0.82rem;
}

.hy-google-review__content {
    position: relative;
    z-index: 2;
    margin-top: -14px;
    padding: 0 1.05rem 1.05rem;
    text-align: center;
    background: var(--hy-gr-card);
}

.hy-google-review__logo-float {
    display: flex;
    justify-content: center;
    margin-bottom: 0.45rem;
}

.hy-google-review__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(19, 182, 236, 0.15);
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.12),
        0 0 0 6px rgba(19, 182, 236, 0.08);
    animation: hyGrLogoPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.hy-google-review__brand {
    margin: 0 0 0.15rem;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--hy-gr-ink);
}

.hy-google-review__tagline {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

.hy-google-review__rating-ring {
    --hy-gr-ring: 100%;
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 0.65rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(
            var(--hy-gr-gold) 0 var(--hy-gr-ring),
            rgba(226, 232, 240, 0.9) var(--hy-gr-ring) 100%
        );
    box-shadow:
        0 12px 24px rgba(245, 158, 11, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.hy-google-review__rating-inner {
    position: absolute;
    inset: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(165deg, #fff 0%, #f0f9ff 100%);
    box-shadow: inset 0 2px 8px rgba(19, 182, 236, 0.08);
}

.hy-google-review__score-value {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #b45309, var(--hy-gr-gold), #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hy-google-review__stars {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    margin-bottom: 0.75rem;
    color: var(--hy-gr-gold);
    font-size: 1.05rem;
    line-height: 1;
}

.hy-google-review__stars .bi {
    filter: drop-shadow(0 2px 5px rgba(245, 158, 11, 0.35));
    animation: hyGrStarPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(0.55s + (var(--star-i, 1) * 0.08s));
}

.hy-google-review__stars .bi-star {
    color: #dbeafe;
}

.hy-google-review__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.hy-google-review__trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.28rem 0.52rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.hy-google-review__trust .bi-patch-check-fill { color: #22c55e; }
.hy-google-review__trust .bi-globe-americas { color: var(--hy-gr-primary); }
.hy-google-review__trust .bi-heart-fill { color: #ef4444; }

.hy-google-review__footer {
    display: flex;
    justify-content: center;
}

.hy-google-review__count {
    display: block;
    width: 100%;
    padding: 0.62rem 0.85rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    background: linear-gradient(135deg, rgba(19, 182, 236, 0.12), rgba(234, 88, 12, 0.08));
    border: 1px solid rgba(19, 182, 236, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hy-google-review__count strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--hy-gr-deep);
}

@keyframes hyGrPlane {
    0%, 100% { transform: translate(0, 0) rotate(-24deg); }
    50% { transform: translate(-8px, -5px) rotate(-18deg); }
}

@keyframes hyGrFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes hyGrSpin {
    to { transform: rotate(360deg); }
}

@keyframes hyGrLogoPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes hyGrStarPop {
    from { transform: translateY(8px) scale(0.4); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 575.98px) {
    .hy-google-review {
        right: max(0.85rem, env(safe-area-inset-right, 0px));
        width: min(272px, calc(100vw - 1.25rem));
    }

    .hy-google-review__rating-ring {
        width: 88px;
        height: 88px;
    }

    .hy-google-review__score-value {
        font-size: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hy-google-review,
    .hy-google-review__close,
    .hy-google-review__card,
    .hy-gr-icon,
    .hy-google-review__logo,
    .hy-google-review__stars .bi {
        animation: none !important;
        transition: none !important;
    }
}
