@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');

:root {
    --color-white: #ffffff;
    --color-text: #4f5b66;
    --color-heading: #ffffff;
    --color-primary: #14bce2;
    --color-primary-dark: #0b4f96;
    --color-primary-deep: #07529b;
    --color-primary-soft: #ebf8fc;
    --color-accent: #19d3b3;
    --color-bg: #e4eaea;
    --color-surface: #ffffff;
    --color-surface-muted: #edf5f8;
    --color-route: #0f6fc6;
    --color-route-night: #40454f;
    --color-route-aqua: #27c0e7;
    --color-border: rgba(11, 79, 150, 0.12);
    --color-shadow: rgba(8, 78, 135, 0.18);
    --color-overlay-left: rgba(0, 98, 228, 0.72);
    --color-overlay-right: rgba(0, 201, 138, 0.72);
    --color-footer: #1f86cc;
    --color-blueish: rgb(0,156,223);

    --content-width: 1500px;
    --radius-card: 28px;
    --radius-pill: 999px;
    --transition-base: 180ms ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    transition: opacity var(--transition-base);
}

a:hover {
    opacity: 0.85;
}

.content-shell {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    height: 114px;
    padding-top: 10px;
    box-shadow: 0 10px 24px rgba(11, 79, 150, 0.08);
    transform: translateY(0);
    transition: transform 260ms ease, box-shadow 180ms ease;
    will-change: transform;
}

.header.is-hidden {
    transform: translateY(calc(-100% - 8px));
}

.uk-navbar-container,
.uk-navbar-container:not(.uk-navbar-transparent) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 94px;
    background: var(--color-white);
    max-width: var(--content-width);
    margin: 0 auto;
}

.uk-navbar-left,
.uk-navbar-right {
    display: flex;
    align-items: center;
}

.uk-navbar-right {
    justify-content: flex-end;
    gap: 10px;
}

.uk-navbar-left a,
.uk-navbar-right a {
    display: inline-flex;
    align-items: center;
}

.uk-navbar-left {
    width: 400px;
}
.header img {
    width: auto;
    height: auto;
}

@media (max-width: 1000px) {
    .uk-navbar-container {
        height: 72px;
        min-height: 72px;
    }

    .header {
        height: 72px;
        padding-top: 0;
    }

    .header img {
        max-height: 48px;
    }
}

@media (max-width: 550px) {
    .bp18logo {
        display: none;
    }
}

@media (max-width: 400px) {
    .FBlogo {
        display: none;
    }
}

.petofi-page {
    overflow: hidden;
}

.hero {
    background-image: url("images/HERO_desktop.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero__overlay {
    min-height: 500px;
}

.hero__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 600px;
}

.hero__spacer {
    flex: 1 1 50%;
}

.hero__text {
    text-align: center;
}

.hero h1 {
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.1em;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero__badge {
    width: 160px;
    margin: 0 auto;
}

.intro {
    padding: 56px 0 22px;
}

.intro p {
    margin: 0 0 18px;
    font-size: 1.16rem;
}

.intro h2,
.benefit h2,
.newsletter-card h2 {
    margin: 0 0 18px;
    color: var(--color-primary);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 900;
    text-align: center;
}

.highlights {
    padding: 18px 0 64px;
}

.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.info-card {
    flex: 1 1 280px;
    max-width: 356px;
    min-height: 200px;
    padding: 28px 24px;
    border-radius: var(--radius-card);
    color: var(--color-white);
    text-align: center;
}


.info-card:nth-of-type(1) {
    background: var(--color-blueish);
}

.info-card:nth-of-type(2) {
    background: var(--color-route);
}

.info-card:nth-of-type(3) {
    background: var(--color-primary-deep);
}

.info-card h3 {
    margin: 0 0 14px;
    font-size: 1.9rem;
    line-height: 1.05;
    font-weight: 900;
}

.info-card p {
    margin: 0;
    font-size: 1.08rem;
}

.travel {
    padding: 8px 0 72px;
}

.travel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: stretch;
}

.travel-card {
    position: relative;
    flex: 1 1 460px;
    background: var(--color-surface);
    border-radius: 32px;
    padding: 36px 28px 30px;
}

.travel-card__icon {
    width: 130px;
    height: 130px;
    margin: -100px auto 18px;
    padding: 18px;
    border-radius: 50%;
}


.travel-card .busz-title {
    margin: 0 0 22px;
    color: var(--color-primary-deep);
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.05;
    font-weight: 900;
}

.travel-card .auto-title {
    margin: 0 0 22px;
    color: var(--color-primary);
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.05;
    font-weight: 900;
}

.travel-card__copy p {
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.travel-card__map {
    width: 100%;
    margin: 20px 0 22px 0;
    border: 1px solid var(--color-border);
}

.travel-card__map-link {
    display: block;
    position: relative;
    margin: 20px 0 22px 0;
    cursor: zoom-in;
}

.travel-card__map-link::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    background-image: url("images/icon_nagyito.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 28px 28px;
    opacity: 1;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.travel-card__map-link:focus-visible {
    outline: 3px solid rgba(20, 188, 226, 0.45);
    outline-offset: 4px;
}

.travel-card__map-link:hover::after,
.travel-card__map-link:focus-visible::after {
    transform: scale(1.06);
}

.travel-card__map-link .travel-card__map {
    margin: 0;
}

.route-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 4px;
    background: var(--color-route);
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.1;
}

.route-badge--night {
    background: var(--color-route-night);
}

.route-badge--aqua {
    background: var(--color-route-aqua);
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.legend__row img {
    flex: 0 0 18px;
    width:30px;
    margin-top: 0.5em;
}
.legend__row img.nomargin {
    margin-top: 0;
}

.detour-signs {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

.detour-signs img {
    flex: 1 1 0;
    min-width: 0;
}

.benefits {
    position: relative;
    padding: 88px 0 96px;
    background: url("images/background_grey_pattern.jpg") no-repeat;
}

.benefits__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 44px;
    text-align: center;
}

.benefit p {
    max-width: 940px;
    margin: 0 auto;
    font-size: 1.08rem;
}

.newsletter-band {
    padding: 84px 0 92px;
    background:
        linear-gradient(90deg, var(--color-overlay-left), var(--color-overlay-right)),
        url("images/background_FORM.jpg") center/cover no-repeat;
}

.newsletter-band h2 {
    color: var(--color-overlay-right);
}

.newsletter-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 28px 30px;
    border-radius: 30px;
    background: rgb(235, 250, 248);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.14);
    text-align: center;
}

.newsletter-card__eyebrow {
    margin: 0 0 12px;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}

.newsletter-placeholder {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 26px;
    padding: 26px;
    border: 2px dashed rgba(20, 188, 226, 0.35);
    border-radius: 22px;
    background: var(--color-primary-soft);
}

.newsletter-placeholder p {
    margin: 0;
    font-weight: 700;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 18, 32, 0.82);
    cursor: pointer;
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    max-height: calc(100vh - 48px);
    padding: 18px 18px 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.lightbox__toolbar {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.lightbox__action {
    min-width: 44px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(11, 79, 150, 0.12);
    color: var(--color-primary-dark);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.lightbox__action:hover {
    background: rgba(11, 79, 150, 0.2);
}

.lightbox__viewport {
    overflow: hidden;
    border-radius: 14px;
    touch-action: none;
    cursor: grab;
}

.lightbox__viewport.is-dragging {
    cursor: grabbing;
}

.lightbox__image {
    width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: 14px;
    transform-origin: center center;
    transform: translate3d(0, 0, 0) scale(1);
    transition: transform 180ms ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox__caption {
    margin: 12px 8px 0;
    color: var(--color-primary-dark);
    font-weight: 700;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(11, 79, 150, 0.12);
    color: var(--color-primary-dark);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__close:hover {
    background: rgba(11, 79, 150, 0.2);
}

.footer {
    background:
        url("images/background_footer.jpg") center/cover no-repeat;
    margin: 0;
    padding: 36px 16px;
    color: var(--color-white);
    text-align: center;
}

.footer a {
    color: var(--color-white);
    text-decoration: none;
}

.footer div {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.footerimg {
    margin: 5px 20px 0;
}

@media (max-width: 1200px) {
    .hero__overlay,
    .hero__content {
        min-height: 420px;
    }
}

@media (max-width: 750px) {
    .hero__spacer {
        flex: 1 1 30%;
    }
}
@media (max-width: 600px) {
    .hero {
        background-image: url("images/HERO_mobil.jpg");
        background-position: center top;
        min-height: 800px;
    }

    .hero__overlay,
    .hero__content {
        min-height: 380px;
    }

    .hero__content {

    }

    .hero__spacer {
        display: none;
    }

    .hero__text {
        padding: 28px 0;
        margin: 0 auto;
    }

    .info-card {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .content-shell {
        width: min(calc(100% - 24px), var(--content-width));
    }

    .intro {
        padding-top: 36px;
    }

    .intro p {
        font-size: 1rem;
    }

    .highlights {
        padding-bottom: 48px;
    }

    .info-card {
        min-height: 0;
    }

    .travel {
        padding-bottom: 54px;
    }

    .travel-card {
        padding: 30px 20px 24px;
        border-radius: 26px;
    }

    .travel-card__icon {
        width: 82px;
        height: 82px;
        margin-top: -64px;
        padding: 16px;
    }

    .detour-signs {
        flex-direction: column;
    }

    .benefits {
        padding: 62px 0 70px;
    }

    .newsletter-band {
        padding: 64px 0 70px;
    }

    .newsletter-card {
        padding: 28px 18px 24px;
        border-radius: 24px;
    }

    .newsletter-placeholder {
        padding: 18px;
    }

    .footerimg {
        margin: 0;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox__dialog {
        width: 100%;
        padding: 14px 14px 10px;
        border-radius: 18px;
    }

    .lightbox__toolbar {
        top: 10px;
        left: 10px;
        gap: 6px;
    }

    .lightbox__action {
        min-width: 40px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.95rem;
    }

    .lightbox__image {
        max-height: calc(100vh - 96px);
    }
}
