/* ============================================================
   MEGARA VOYAGES — ORGANIZED TRIPS
============================================================ */

:root {
    --tr-blue: #07539B;
    --tr-blue-light: #0C6FBE;
    --tr-night: #061F38;
    --tr-night-2: #0A3457;

    --tr-gold: #F4B94F;
    --tr-gold-deep: #C68B25;
    --tr-gold-soft: #FFD98A;

    --tr-ivory: #F7F1E7;
    --tr-whatsapp: #18A85B;

    --tr-shadow:
        0 25px 65px
        rgba(6,31,56,.12);

    --tr-shadow-large:
        0 35px 90px
        rgba(6,31,56,.18);

    --tr-ease:
        cubic-bezier(
            .22,
            .61,
            .36,
            1
        );
}


/* ============================================================
   SHARED
============================================================ */

.trips-kicker {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        var(--tr-gold-deep);

    font-size: .7rem;

    font-weight: 800;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.trips-kicker::before {
    content: '';

    width: 28px;
    height: 1px;

    background:
        currentColor;
}


.trips-kicker--light {
    color:
        var(--tr-gold);
}


.trips-btn {
    min-height: 54px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    padding:
        0 25px;

    border-radius:
        999px;

    font-size: .84rem;

    font-weight: 800;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.trips-btn:hover {
    transform:
        translateY(-3px);
}


.trips-btn span {
    transition:
        transform .25s ease;
}


.trips-btn:hover span {
    transform:
        translateX(4px);
}


.trips-btn--gold {
    color:
        #352400;

    background:
        var(--tr-gold);

    box-shadow:
        0 15px 35px
        rgba(244,185,79,.29);
}


.trips-btn--glass {
    color: #fff;

    border:
        1px solid
        rgba(255,255,255,.18);

    background:
        rgba(255,255,255,.07);

    backdrop-filter:
        blur(10px);
}


.trips-btn--glass:hover {
    color: #fff;

    background:
        rgba(255,255,255,.13);
}


.trips-btn--whatsapp {
    color: #fff;

    background:
        var(--tr-whatsapp);

    box-shadow:
        0 15px 35px
        rgba(24,168,91,.28);
}


/* ============================================================
   HERO
============================================================ */

.trips-hero {
    position: relative;

    min-height: 740px;

    display: flex;

    align-items: center;

    overflow: hidden;

    isolation: isolate;

    background:
        var(--tr-night);
}


.trips-hero__background {
    position: absolute;

    inset: 0;

    z-index: -5;

    background:
        radial-gradient(
            circle at 78% 42%,
            rgba(244,185,79,.14),
            transparent 27%
        ),
        linear-gradient(
            125deg,
            #061F38 0%,
            #082D4C 58%,
            #0B416C 100%
        );
}


.trips-hero__background::after {
    content: '';

    position: absolute;

    inset: 0;

    opacity: .12;

    background-image:
        radial-gradient(
            circle,
            #fff 1px,
            transparent 1px
        );

    background-size:
        65px 65px;

    mask-image:
        linear-gradient(
            90deg,
            transparent 25%,
            black
        );
}


.trips-hero__glow {
    position: absolute;

    z-index: -4;

    width: 600px;
    height: 600px;

    right: 3%;
    top: 48%;

    transform:
        translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(244,185,79,.14),
            transparent 68%
        );
}


.trips-hero__orbit {
    position: absolute;

    z-index: -3;

    border:
        1px solid
        rgba(244,185,79,.13);

    border-radius: 50%;
}


.trips-hero__orbit--one {
    width: 680px;
    height: 680px;

    right: -290px;
    top: -320px;
}


.trips-hero__orbit--two {
    width: 390px;
    height: 390px;

    right: 17%;
    bottom: -240px;
}


.trips-hero__inner {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0,1.1fr)
        minmax(400px,.72fr);

    align-items: center;

    gap: 75px;

    padding-top: 80px;
    padding-bottom: 85px;
}


.trips-hero__content {
    max-width: 780px;
}


.trips-eyebrow {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 25px;

    color:
        var(--tr-gold);

    font-size: .72rem;

    font-weight: 800;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.trips-eyebrow span {
    width: 35px;
    height: 1px;

    background:
        var(--tr-gold);
}


.trips-hero h1 {
    color:
        var(--tr-ivory);

    font-family:
        var(--font-title);

    font-size:
        clamp(
            4.2rem,
            6.6vw,
            7.1rem
        );

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.045em;
}


.trips-hero h1 em {
    display: block;

    margin-top: 10px;

    color:
        var(--tr-gold);

    font-weight: 400;
}


.trips-hero__content > p {
    max-width: 670px;

    margin-top: 28px;

    color:
        rgba(247,241,231,.7);

    font-size: .97rem;

    line-height: 1.9;
}


.trips-hero__actions {
    display: flex;

    flex-wrap: wrap;

    gap: 13px;

    margin-top: 35px;
}


.trips-hero__meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 23px;

    margin-top: 48px;
}


.trips-hero__meta > div:not(
    .trips-hero__meta-line
) {
    min-width: 80px;
}


.trips-hero__meta strong {
    display: block;

    color:
        var(--tr-gold);

    font-family:
        var(--font-title);

    font-size: 1.25rem;

    font-weight: 400;
}


.trips-hero__meta span {
    display: block;

    margin-top: 2px;

    color:
        rgba(255,255,255,.43);

    font-size: .59rem;
}


.trips-hero__meta-line {
    width: 1px;
    height: 35px;

    background:
        rgba(255,255,255,.12);
}


/* ============================================================
   HERO VISUAL
============================================================ */

.trips-hero__visual {
    position: relative;

    min-height: 520px;
}


.trips-compass {
    position: absolute;

    width: 350px;
    height: 350px;

    left: 50%;
    top: 45%;

    transform:
        translate(-50%,-50%);

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(244,185,79,.19);

    border-radius: 50%;
}


.trips-compass::before,
.trips-compass::after {
    content: '';

    position: absolute;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 50%;
}


.trips-compass::before {
    width: 430px;
    height: 430px;
}


.trips-compass::after {
    width: 260px;
    height: 260px;
}


.trips-compass__outer {
    position: relative;

    width: 100%;
    height: 100%;
}


.trips-compass__outer > span {
    position: absolute;

    color:
        rgba(255,255,255,.38);

    font-family:
        var(--font-title);

    font-size: .75rem;
}


.trips-compass__north {
    top: 16px;
    left: 50%;

    transform:
        translateX(-50%);
}


.trips-compass__south {
    bottom: 16px;
    left: 50%;

    transform:
        translateX(-50%);
}


.trips-compass__east {
    right: 18px;
    top: 50%;

    transform:
        translateY(-50%);
}


.trips-compass__west {
    left: 18px;
    top: 50%;

    transform:
        translateY(-50%);
}


.trips-compass__needle {
    position: absolute;

    width: 4px;
    height: 185px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%,-50%)
        rotate(36deg);

    background:
        linear-gradient(
            var(--tr-gold),
            rgba(255,255,255,.1)
        );

    clip-path:
        polygon(
            50% 0,
            100% 50%,
            50% 100%,
            0 50%
        );
}


.trips-compass__center {
    position: absolute;

    width: 80px;
    height: 80px;

    left: 50%;
    top: 50%;

    display: grid;

    place-items: center;

    transform:
        translate(-50%,-50%);

    border-radius: 50%;

    color:
        var(--tr-gold);

    background:
        rgba(6,31,56,.78);

    border:
        1px solid
        rgba(244,185,79,.23);

    box-shadow:
        0 0 55px
        rgba(244,185,79,.12);

    font-size: 1.7rem;
}


/* POSTCARD */

.trips-postcard {
    position: absolute;

    width: 270px;

    right: -5px;
    bottom: 5px;

    padding:
        23px;

    border:
        1px solid
        rgba(255,255,255,.15);

    border-radius: 19px;

    color: #fff;

    background:
        rgba(6,31,56,.62);

    backdrop-filter:
        blur(14px);

    box-shadow:
        0 25px 55px
        rgba(0,0,0,.2);

    transform:
        rotate(-4deg);
}


.trips-postcard__top {
    display: block;

    margin-bottom: 10px;

    color:
        var(--tr-gold);

    font-size: .56rem;

    font-weight: 800;

    letter-spacing: .13em;
}


.trips-postcard strong {
    display: block;

    font-family:
        var(--font-title);

    font-size: 1.4rem;

    line-height: 1.3;

    font-weight: 400;
}


.trips-postcard__line {
    height: 1px;

    margin:
        18px 0 13px;

    background:
        rgba(255,255,255,.13);
}


.trips-postcard small {
    color:
        rgba(255,255,255,.38);

    font-size: .53rem;

    letter-spacing: .1em;
}


.trips-hero__tag {
    position: absolute;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        9px 13px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 999px;

    color:
        rgba(255,255,255,.72);

    background:
        rgba(6,31,56,.44);

    backdrop-filter:
        blur(10px);

    font-size: .61rem;
}


.trips-hero__tag--one {
    left: -5px;
    top: 18%;
}


.trips-hero__tag--two {
    right: 0;
    top: 25%;
}


/* ============================================================
   INTRO
============================================================ */

.trips-intro {
    padding:
        105px 0 40px;

    background:
        var(--bg);
}


.trips-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 60px;

    margin-bottom: 45px;
}


.trips-heading > div {
    max-width: 760px;
}


.trips-heading h2,
.trips-philosophy h2,
.trips-final h2 {
    margin-top: 12px;

    color:
        var(--heading);

    font-family:
        var(--font-title);

    font-size:
        clamp(
            2.5rem,
            4vw,
            4.4rem
        );

    font-weight: 400;

    line-height: 1.03;

    letter-spacing: -.035em;
}


.trips-heading h2 em,
.trips-philosophy h2 em,
.trips-final h2 em {
    color:
        var(--tr-gold);

    font-weight: 400;
}


.trips-heading > p {
    max-width: 445px;

    color:
        var(--text-soft);

    font-size: .86rem;

    line-height: 1.8;
}


/* ============================================================
   CATALOG
============================================================ */

.trips-catalog {
    padding:
        25px 0 120px;

    background:
        var(--bg);
}


/* ============================================================
   FILTER
============================================================ */

.trips-filter {
    display: grid;

    grid-template-columns:
        1.3fr
        .9fr
        .8fr
        .8fr
        auto;

    gap: 10px;

    align-items: stretch;

    margin-bottom: 40px;

    padding: 12px;

    border:
        1px solid
        var(--border);

    border-radius: 19px;

    background:
        var(--surface);

    box-shadow:
        0 14px 38px
        rgba(6,31,56,.07);
}


.trips-filter__search,
.trips-filter__select,
.trips-filter__date {
    min-height: 61px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        8px 12px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        var(--bg);
}


.trips-filter__search > span {
    color:
        var(--tr-gold-deep);
}


.trips-filter__search > div,
.trips-filter__select,
.trips-filter__date {
    min-width: 0;
}


.trips-filter label {
    display: block;

    margin-bottom: 2px;

    color:
        var(--text-soft);

    font-size: .53rem;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


.trips-filter input,
.trips-filter select {
    width: 100%;

    min-width: 0;

    padding: 0;

    color:
        var(--text);

    background:
        transparent;

    font-size: .73rem;

    font-weight: 700;
}


.trips-filter__count {
    min-width: 90px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding:
        8px 14px;

    border-radius: 13px;

    color: #fff;

    background:
        var(--tr-blue);
}


.trips-filter__count strong {
    font-family:
        var(--font-title);

    font-size: 1.25rem;

    font-weight: 400;
}


.trips-filter__count span {
    margin-top: 1px;

    color:
        rgba(255,255,255,.65);

    font-size: .55rem;
}


/* ============================================================
   GRID
============================================================ */

.trips-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 25px;
}


.trip-card {
    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius: 24px;

    background:
        var(--surface);

    box-shadow:
        0 14px 38px
        rgba(6,31,56,.07);

    transition:
        transform .3s var(--tr-ease),
        box-shadow .3s ease;
}


.trip-card:hover {
    transform:
        translateY(-7px);

    box-shadow:
        var(--tr-shadow);
}


.trip-card[hidden] {
    display: none;
}


/* ============================================================
   CARD MEDIA
============================================================ */

.trip-card__media {
    position: relative;

    display: block;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background:
        var(--tr-night);
}


.trip-card__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .65s var(--tr-ease);
}


.trip-card:hover
.trip-card__media img {
    transform:
        scale(1.065);
}


.trip-card__shade {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(6,31,56,.55),
            transparent 52%
        );
}


.trip-card__placeholder {
    width: 100%;
    height: 100%;

    display: grid;

    place-items: center;

    color:
        var(--tr-gold);

    background:
        linear-gradient(
            135deg,
            #0A416D,
            var(--tr-night)
        );
}


.trip-card__placeholder span {
    font-size: 4rem;
}


.trip-card__destination {
    position: absolute;

    z-index: 2;

    left: 17px;
    bottom: 17px;

    display: flex;

    align-items: center;

    gap: 7px;

    max-width:
        calc(100% - 85px);

    padding:
        8px 11px;

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius: 999px;

    color: #fff;

    background:
        rgba(6,31,56,.55);

    backdrop-filter:
        blur(9px);

    font-size: .62rem;

    font-weight: 800;
}


.trip-card__destination span {
    color:
        var(--tr-gold);
}


.trip-card__duration {
    position: absolute;

    z-index: 2;

    right: 17px;
    top: 17px;

    padding:
        8px 11px;

    border-radius: 999px;

    color:
        #352400;

    background:
        rgba(244,185,79,.94);

    backdrop-filter:
        blur(9px);

    font-size: .6rem;

    font-weight: 800;
}


.trip-card__open {
    position: absolute;

    z-index: 2;

    right: 17px;
    bottom: 17px;

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(255,255,255,.22);

    border-radius: 50%;

    color: #fff;

    background:
        rgba(6,31,56,.45);

    backdrop-filter:
        blur(9px);

    transition:
        transform .25s ease,
        background .25s ease;
}


.trip-card:hover
.trip-card__open {
    transform:
        rotate(12deg);

    background:
        var(--tr-blue);
}


/* ============================================================
   CARD BODY
============================================================ */

.trip-card__body {
    padding:
        23px;
}


.trip-card__top {
    min-height: 27px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 8px;
}


.trip-card__type {
    color:
        var(--tr-gold-deep);

    font-size: .6rem;

    font-weight: 800;

    letter-spacing: .07em;

    text-transform: uppercase;
}


.trip-card__date {
    color:
        var(--text-soft);

    font-size: .6rem;
}


.trip-card h3 {
    font-size:
        clamp(
            1.3rem,
            1.8vw,
            1.7rem
        );

    line-height: 1.25;
}


.trip-card__body > p {
    min-height: 45px;

    margin-top: 10px;

    color:
        var(--text-soft);

    font-size: .77rem;

    line-height: 1.65;
}


.trip-card__bottom {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 15px;

    margin-top: 23px;

    padding-top: 19px;

    border-top:
        1px solid
        var(--border);
}


.trip-card__price small {
    display: block;

    color:
        var(--text-soft);

    font-size: .57rem;

    text-transform: uppercase;
}


.trip-card__price strong {
    display: block;

    margin-top: 2px;

    color:
        var(--tr-gold-deep);

    font-size: .9rem;
}


.trip-card__button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        10px 14px;

    border-radius: 999px;

    color:
        var(--tr-blue);

    background:
        rgba(7,83,155,.07);

    font-size: .68rem;

    font-weight: 800;

    transition:
        color .2s ease,
        background .2s ease;
}


.trip-card__button:hover {
    color: #fff;

    background:
        var(--tr-blue);
}


/* ============================================================
   EMPTY STATES
============================================================ */

.trips-empty,
.trips-filter-empty {
    max-width: 900px;

    margin: 0 auto;

    padding:
        60px 30px;

    text-align: center;

    border:
        1px dashed
        var(--border);

    border-radius: 25px;

    background:
        var(--surface);
}


.trips-empty__icon {
    width: 70px;
    height: 70px;

    display: grid;

    place-items: center;

    margin:
        0 auto 20px;

    border-radius: 50%;

    color:
        var(--tr-blue);

    background:
        rgba(7,83,155,.08);

    font-size: 1.5rem;
}


.trips-empty h3,
.trips-filter-empty h3 {
    max-width: 600px;

    margin:
        12px auto 0;

    color:
        var(--heading);

    font-family:
        var(--font-title);

    font-size: 1.7rem;
}


.trips-empty p,
.trips-filter-empty p {
    max-width: 620px;

    margin:
        12px auto 23px;

    color:
        var(--text-soft);

    font-size: .82rem;

    line-height: 1.7;
}


.trips-filter-empty > span {
    display: block;

    margin-bottom: 10px;

    color:
        var(--tr-gold);

    font-size: 2rem;
}


.trips-filter-empty button {
    padding:
        11px 16px;

    border-radius: 999px;

    color: #fff;

    background:
        var(--tr-blue);

    font-weight: 800;

    font-size: .7rem;
}


/* ============================================================
   PHILOSOPHY
============================================================ */

.trips-philosophy {
    position: relative;

    padding:
        115px 0;

    overflow: hidden;

    background:
        var(--tr-night);
}


.trips-philosophy::before {
    content: '';

    position: absolute;

    width: 600px;
    height: 600px;

    right: -280px;
    top: -300px;

    border:
        1px solid
        rgba(244,185,79,.12);

    border-radius: 50%;
}


.trips-philosophy__grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr .75fr;

    align-items: center;

    gap: 90px;
}


.trips-philosophy h2 {
    color:
        var(--tr-ivory);
}


.trips-philosophy__content > p {
    max-width: 640px;

    margin:
        24px 0 30px;

    color:
        rgba(247,241,231,.66);

    line-height: 1.9;
}


.trips-philosophy__steps {
    display: grid;

    gap: 11px;
}


.trips-philosophy__step {
    display: grid;

    grid-template-columns:
        48px 1fr;

    gap: 15px;

    padding:
        19px;

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius: 16px;

    background:
        rgba(255,255,255,.045);
}


.trips-philosophy__step > span {
    color:
        var(--tr-gold);

    font-family:
        var(--font-title);
}


.trips-philosophy__step strong {
    display: block;

    color:
        var(--tr-ivory);

    font-size: .78rem;
}


.trips-philosophy__step p {
    margin-top: 3px;

    color:
        rgba(255,255,255,.47);

    font-size: .68rem;
}


/* ============================================================
   FINAL CTA
============================================================ */

.trips-final {
    padding:
        65px 0 110px;

    background:
        var(--bg);
}


.trips-final__card {
    min-height: 290px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    padding:
        clamp(
            35px,
            5vw,
            65px
        );

    overflow: hidden;

    border-radius: 30px;

    background:
        linear-gradient(
            120deg,
            #0A416D,
            var(--tr-night)
        );

    box-shadow:
        var(--tr-shadow);
}


.trips-final__card > div {
    max-width: 760px;
}


.trips-final h2 {
    color:
        var(--tr-ivory);
}


.trips-final p {
    margin-top: 14px;

    color:
        rgba(247,241,231,.65);
}


/* ============================================================
   DARK
============================================================ */

html[data-theme="dark"]
.trips-intro,
html[data-theme="dark"]
.trips-catalog,
html[data-theme="dark"]
.trips-final {
    background:
        var(--bg);
}


/* ============================================================
   1100
============================================================ */

@media (max-width: 1100px) {

    .trips-hero__inner {
        grid-template-columns:
            1fr .65fr;

        gap: 40px;
    }


    .trips-compass {
        width: 300px;
        height: 300px;
    }


    .trips-filter {
        grid-template-columns:
            1.2fr
            1fr
            1fr;
    }


    .trips-filter__date {
        grid-column:
            span 2;
    }


    .trips-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {

    .trips-hero {
        min-height: auto;
    }


    .trips-hero__inner {
        grid-template-columns: 1fr;

        padding-top: 90px;
        padding-bottom: 100px;
    }


    .trips-hero__visual {
        display: none;
    }


    .trips-heading {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    .trips-filter {
        grid-template-columns:
            1fr 1fr;
    }


    .trips-filter__date {
        grid-column: auto;
    }


    .trips-filter__count {
        grid-column:
            1 / -1;
    }


    .trips-philosophy__grid {
        grid-template-columns:
            1fr;

        gap: 50px;
    }


    .trips-final__card {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 640px) {

    .trips-hero__inner {
        padding-top: 70px;
        padding-bottom: 80px;
    }


    .trips-hero h1 {
        font-size:
            clamp(
                3.4rem,
                16vw,
                5rem
            );
    }


    .trips-hero__actions {
        flex-direction: column;
    }


    .trips-hero__actions
    .trips-btn {
        width: 100%;
    }


    .trips-hero__meta-line {
        display: none;
    }


    .trips-intro {
        padding:
            75px 0 25px;
    }


    .trips-catalog {
        padding-bottom:
            75px;
    }


    .trips-filter {
        grid-template-columns:
            1fr;
    }


    .trips-filter__count {
        grid-column: auto;
    }


    .trips-grid {
        grid-template-columns:
            1fr;
    }


    .trips-philosophy {
        padding:
            80px 0;
    }


    .trips-final {
        padding:
            40px 0 80px;
    }


    .trips-final__card {
        padding:
            32px 23px;

        border-radius: 23px;
    }


    .trips-final
    .trips-btn {
        width: 100%;
    }

}


@media (
    prefers-reduced-motion:
    reduce
) {

    .trips-btn,
    .trip-card,
    .trip-card__media img {
        transition: none;
    }

}