/*
 * Friends Guide homepage conversion polish.
 * Homepage-only, additive styles: no URLs, IDs, prices, booking logic or
 * multilingual rendering contracts are changed here.
 */

.homepage-hero-copy {
    margin-bottom: 18px;
}

.homepage-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin: 0 0 20px;
}

.homepage-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 17px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(3, 21, 45, .2);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.homepage-hero-action:hover,
.homepage-hero-action:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(3, 21, 45, .28);
    outline: 3px solid rgba(255, 255, 255, .28);
    outline-offset: 2px;
}

.homepage-hero-action--primary {
    color: #0b2347;
    background: #fff;
    border-color: #fff;
}

.homepage-hero-action--primary:hover,
.homepage-hero-action--primary:focus-visible {
    color: #0b2347;
    background: #f4f8ff;
}

.homepage-hero-action--whatsapp {
    background: #128c4b;
    border-color: #20aa61;
}

.hero-trust-row a {
    color: inherit;
    text-decoration: none;
}

.hero-trust-row a:hover,
.hero-trust-row a:focus-visible {
    color: #fff;
    text-decoration: underline;
    outline: none;
}

.hero-trust-google i {
    color: #f7b500;
}

/* Make every dynamic tour card feel intentionally clickable. */
.fg-home-tour-primary-link {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 132px;
    padding-bottom: 42px;
    color: inherit;
    text-decoration: none;
}

.fg-home-tour-primary-link:hover,
.fg-home-tour-primary-link:focus-visible {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.fg-home-tour-primary-link .fg-home-card-heading {
    display: -webkit-box;
    min-height: 2.75em;
    margin: 0 0 9px;
    overflow: hidden;
    color: #1c2f48;
    font-size: 15px !important;
    font-weight: 750;
    line-height: 1.38;
    text-transform: none !important;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.fg-home-tour-primary-link .fg-home-card-heading strong {
    font-weight: inherit;
}

.fg-home-tour-primary-link .card-price {
    margin-top: auto;
    padding-right: 42px;
}

.fg-home-tour-primary-link::after {
    content: "→";
    position: absolute;
    right: 0;
    bottom: 3px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #1677ff, #075fd5);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.fg-home-tour-primary-link:hover::after,
.fg-home-tour-primary-link:focus-visible::after {
    transform: translateX(3px);
    box-shadow: 0 11px 22px rgba(13, 110, 253, .32);
}

html[dir="rtl"] .fg-home-tour-primary-link .card-price {
    padding-right: 0;
    padding-left: 42px;
}

html[dir="rtl"] .fg-home-tour-primary-link::after {
    content: "←";
    right: auto;
    left: 0;
}

html[dir="rtl"] .fg-home-tour-primary-link:hover::after,
html[dir="rtl"] .fg-home-tour-primary-link:focus-visible::after {
    transform: translateX(-3px);
}

.fg-home-tour-primary-link:focus-visible::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 3px solid rgba(13, 110, 253, .36);
    border-radius: 12px;
    pointer-events: none;
}

/* Strengthen the existing services mosaic without changing its links or prices. */
.home-services-section .section-heading {
    max-width: 900px;
}

.home-services-section .home-services-grid {
    row-gap: 24px;
}

.home-services-section .destination-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 60, 118, .1);
    border-radius: 18px;
    box-shadow: 0 15px 34px rgba(15, 45, 82, .13);
    transition: transform .22s ease, box-shadow .22s ease;
}

.home-services-section a:hover .destination-card,
.home-services-section a:focus-visible .destination-card {
    transform: translateY(-4px);
    box-shadow: 0 23px 44px rgba(15, 45, 82, .19);
}

.home-services-section a:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .35);
    outline-offset: 3px;
    border-radius: 18px;
}

.home-services-section .card-img {
    position: relative;
    overflow: hidden;
}

.home-services-section .card-img::after {
    content: "";
    position: absolute;
    inset: 28% 0 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(3, 20, 42, .92));
}

.home-services-section .card-img img {
    transition: transform .35s ease;
}

.home-services-section a:hover .card-img img {
    transform: scale(1.025);
}

.home-services-section .card-body {
    background: linear-gradient(180deg, rgba(3, 20, 42, .08), rgba(3, 20, 42, .96)) !important;
}

.home-services-section .card-title,
.home-services-section .fg-service-card-title,
.home-services-section .service-card-note,
.home-services-section .tour__text,
.home-services-section .price__from,
.home-services-section .price__num {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .38);
}

.home-services-section .service-card-note {
    opacity: .92;
}

.home-services-section .service-card-note i {
    color: #55df9a;
}

@media (max-width: 991.98px) {
    .homepage-hero-actions {
        margin-bottom: 17px;
    }

    .fg-home-tour-primary-link {
        min-height: 122px;
        padding-bottom: 38px;
    }

    .fg-home-tour-primary-link::after {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 767.98px) {
    .homepage-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px;
    }

    .homepage-hero-action {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 10px;
    }

    .hero-trust-row > span,
    .hero-trust-row > a {
        min-width: 0;
        padding: 7px 8px;
        background: rgba(255, 255, 255, .1);
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 9px;
    }

    .hero-trust-row > a:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .fg-home-tour-primary-link {
        min-height: 108px;
        padding-bottom: 35px;
    }

    .fg-home-tour-primary-link .fg-home-card-heading {
        min-height: 2.65em;
        font-size: 13px !important;
    }

    .fg-home-tour-primary-link .card-price {
        padding-right: 36px;
    }

    html[dir="rtl"] .fg-home-tour-primary-link .card-price {
        padding-right: 0;
        padding-left: 36px;
    }
}

@media (max-width: 420px) {
    .homepage-hero-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-hero-action,
    .fg-home-tour-primary-link::after,
    .home-services-section .destination-card,
    .home-services-section .card-img img {
        transition: none;
    }

    .homepage-hero-action:hover,
    .homepage-hero-action:focus-visible,
    .fg-home-tour-primary-link:hover::after,
    .fg-home-tour-primary-link:focus-visible::after,
    .home-services-section a:hover .destination-card,
    .home-services-section a:hover .card-img img {
        transform: none;
    }
}
