/* YourTourKey — Rota, etkileşimli harita ve günlük tur programı.
 * ytk-product.css içinden taşınmıştır. Masaüstü ve mobil kurallar birlikte tutulur.
 */

.ytk-route-section h2::after,
.ytk-expect-section h2::after {
    content: ".";
    color: #024f4d;
}

.ytk-route-section,
.ytk-expect-section {
    background: transparent;
    border: 0;
}

.ytk-route-section,
.ytk-expect-section {
    margin-top: 30px;
    padding: 34px 0;
    border-radius: 0;
}

.ytk-route-section h2,
.ytk-expect-section h2 {
    max-width: 980px;
    margin: 0 0 30px;
    color: var(--ytk-ink);
    font-size: clamp(28px, 2.25vw, 36px);
    line-height: 1.08;
    letter-spacing: -1.25px;
    font-weight: 850;
}

/* ROUTE TIMELINE */

.ytk-route-timeline {
    position: relative;
}

.ytk-route-timeline::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    border-radius: 999px;
    z-index: 0;
}

.ytk-route-item {
    position: relative;
    display: grid;
    align-items: start;
    min-height: 72px;
    padding-bottom: 18px;
}

.ytk-route-item:last-child {
    padding-bottom: 0;
}

.ytk-route-marker {
    position: relative;
    z-index: 2;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #697480;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ytk-route-marker-logo {
    background: #ffffff;
    border-color: #f4f4f4;
}

.ytk-route-marker-logo img {
    object-fit: contain;
    display: block;
}

.ytk-route-item h3 {
    margin: 0 0 5px;
    color: var(--ytk-ink);
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -0.25px;
    font-weight: 800;
}

.ytk-route-item p {
    margin: 0;
    color: var(--ytk-body-copy);
    font-size: var(--ytk-product-compact-copy-size);
    line-height: 1.6;
    font-weight: var(--ytk-product-copy-weight);
}

/* DESCRIPTION / INFO */

.ytk-full-day-card p {
    font-size: var(--ytk-product-copy-size);
    font-weight: var(--ytk-product-copy-weight);
}

@media (max-width: 760px) {
    .ytk-route-section,
    .ytk-expect-section {
        margin-top: 18px;
            padding: 18px 0;
            border: 0;
            border-radius: 0;
            background: #ffffff;
            overflow: visible;
    }

    .ytk-route-section h2,
    .ytk-expect-section h2 {
        font-size: 29px;
            letter-spacing: -1.1px;
            margin-bottom: 18px;
    }

    .ytk-full-description-list {
        display: flex !important;
            gap: 12px !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            scroll-snap-type: none;
            scroll-behavior: auto;
            overscroll-behavior-x: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: auto;
            width: 100% !important;
            max-width: 100% !important;
            padding-bottom: 10px;
            padding-right: 2px;
            margin-right: 0 !important;
            scrollbar-width: none;
            -ms-overflow-style: none;
    }

    .ytk-full-description-list::-webkit-scrollbar {
        display: none !important;
    }

    .ytk-full-description-list > * {
        flex: 0 0 78% !important;
            max-width: 78% !important;
            min-width: 0 !important;
            scroll-snap-align: none;
            scroll-snap-stop: normal;
    }

    .ytk-full-day-card {
        box-shadow: none !important;
    }

    .ytk-route-timeline::before {
            top: 24px;
            bottom: 24px;
        }

    .ytk-route-item h3 {
            font-size: 14.5px;
        }

    .ytk-route-item p {
            font-size: 13px;
        }

    .ytk-full-description-list {
            align-items: flex-start !important;
        }

    .ytk-full-day-card {
            height: auto;
            align-self: flex-start !important;
        }

    .ytk-full-day-card > span {
            justify-self: start;
        }

    .ytk-full-day-card p {
            font-size: 14px;
        }
}

/* PRODUCT MOBILE CTA AND CONTENT FLOW REFINEMENTS */
.ytk-route-timeline {
    max-width: 100%;
    margin-left: 0;
    padding-left: 0;
}

.ytk-route-item {
    grid-template-columns: 32px minmax(0, 1fr);
}

.ytk-route-marker {
    width: 28px;
    height: 28px;
    margin-left: 0;
}

.ytk-route-marker-logo img {
    width: 28px;
    height: 28px;
}

/* PRODUCT CONTENT SECTIONS: FLAT FLOW, DAY DOTS AND REVIEW NOTICE */
.ytk-full-description-list {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
}

.ytk-full-day-card {
    border-radius: 0;
    box-shadow: none;
}

.ytk-full-day-card > span {
    min-height: 0;
    margin: 0 0 9px;
    gap: 11px;
}

.ytk-full-day-card > div {
    width: 100%;
    text-align: left;
}

.ytk-full-day-card h3 {
    margin-bottom: 9px;
}

@media (max-width: 760px) {
    .ytk-full-description-list {
        display: grid !important;
            grid-template-columns: minmax(0, 1fr) !important;
            gap: 24px !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: visible !important;
    }

    .ytk-full-description-list > * {
        width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            flex: none !important;
    }

    .ytk-full-day-card {
            padding: 0 !important;
            border: 0 !important;
            border-radius: 0 !important;
            background: transparent !important;
        }

    .ytk-full-day-card > span {
            margin-bottom: 8px;
        }
}

.ytk-route-timeline {
    margin: 0;
    padding: 0;
}

.ytk-route-item {
    gap: 10px;
    padding: 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ytk-route-item > div {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ytk-route-item[hidden] {
    display: none !important;
}

.ytk-itinerary-toggle {
    display: inline-flex;
    align-items: center;
    margin: 2px 0 0 38px;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: #1a2b49;
    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
}

.ytk-itinerary-toggle:hover,
.ytk-itinerary-toggle:focus-visible {
    color: #007f7a;
}

@media (max-width: 760px) {
    .ytk-route-item {
            padding-bottom: 12px;
        }
}

/* ROUTE ALIGNMENT, FADE AND REVIEW CARD REFINEMENT */
.ytk-route-timeline::before {
    left: 8px;
    width: 8px;
    box-sizing: content-box;
    border-left: 2px solid #dfe3e8;
    border-right: 2px solid #dfe3e8;
    background: #007f7a;
}

.ytk-route-timeline:has(+ .ytk-itinerary-toggle[aria-expanded="false"])::after {
    content: "";
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.94) 74%, #fff 100%);
}

.ytk-itinerary-toggle {
    position: relative;
    z-index: 5;
    margin-left: 0;
    gap: 0;
    font-weight: 650;
}

@media (max-width: 760px) {
    .ytk-itinerary-toggle {
            margin-left: 0;
        }
}

/* REVIEW NOTICE, ROUTE MARKER AND EXPECTATION TIMELINE */

.ytk-route-marker {
    margin-top: 0 !important;
}

.ytk-full-description-list {
    position: relative;
    display: grid;
    gap: 0;
    padding: 2px 0 0;
}

.ytk-full-description-list::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 22px;
    bottom: 22px;
    left: 22px;
    width: 2px;
    background: linear-gradient(to bottom, #007f7a 0%, #b9d8d6 15%, #b9d8d6 85%, #007f7a 100%);
}

.ytk-full-day-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 0 0 32px;
    border: 0;
    background: transparent;
}

.ytk-full-day-card:last-child {
    padding-bottom: 0;
}

.ytk-full-day-card > span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(0, 127, 122, 0.42);
    border-radius: 50%;
    background: #f5fbfa;
    color: #024f4d;
    font-size: 11px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: 0 0 0 6px #fff;
}

.ytk-full-day-card:first-child > span,
.ytk-full-day-card:last-child > span {
    border-color: #007f7a;
    background: #007f7a;
    color: #fff;
}

.ytk-full-day-card > div {
    min-width: 0;
    padding: 1px 0 0;
}

.ytk-full-day-card h3 {
    margin: 0 0 7px;
    color: #1a2b49;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.25px;
}

.ytk-full-day-card p {
    margin: 0;
    color: rgba(26, 43, 73, 0.84);
    line-height: 1.72;
}

@media (max-width: 760px) {
    .ytk-full-description-list::before {
            top: 18px;
            bottom: 18px;
            left: 18px;
        }

    .ytk-full-day-card {
            grid-template-columns: 38px minmax(0, 1fr);
            gap: 13px;
            padding-bottom: 28px;
        }

    .ytk-full-day-card > span {
            width: 38px;
            height: 38px;
            font-size: 9px;
            box-shadow: 0 0 0 5px #fff;
        }

    .ytk-full-day-card h3 {
            margin-bottom: 6px;
            font-size: 17px;
        }
}

/* DESKTOP SECTION RHYTHM AND EXPECTATION TOGGLE */
.ytk-full-day-card[hidden] {
    display: none !important;
}

.ytk-full-description-list:has(+ .ytk-expect-toggle[aria-expanded="false"])::after {
    content: "";
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    height: 82px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.94) 74%, #fff 100%);
}

.ytk-expect-toggle {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    margin: 4px 0 0;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: #1a2b49;
    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 650;
    cursor: pointer;
}

.ytk-expect-toggle:hover,
.ytk-expect-toggle:focus-visible {
    color: #007f7a;
}

@media (min-width: 761px) {
    .ytk-route-section,
    .ytk-expect-section {
        margin-top: 18px;
            padding-top: 24px;
            padding-bottom: 24px;
    }

    .ytk-route-section > h2,
    .ytk-expect-section > h2 {
        margin-bottom: 24px;
    }
}

/* INTERACTIVE GOOGLE ROUTE MAP */
.ytk-route-explorer {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
    gap: 28px;
    align-items: start;
    margin-top: 24px;
}

.ytk-route-explorer .ytk-route-timeline {
    min-width: 0;
    margin: 0;
}

.ytk-route-map-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.ytk-route-map {
    width: 100%;
    background:
        linear-gradient(110deg, rgba(2,79,77,.08), rgba(255,255,255,.58)),
        #e9f0ef;
}

.ytk-route-map-card:not(.is-ready):not(.has-error) .ytk-route-map::after {
    content: "Loading route map…";
    position: absolute;
    display: grid;
    place-items: center;
    color: #1a2b49;
    font-size: 14px;
    font-weight: 700;
}

.ytk-route-map-card.has-error .ytk-route-map::after {
    content: "The interactive map could not be loaded.";
    position: absolute;
    display: grid;
    place-items: center;
    color: #ff5a5f;
    font-size: 14px;
    font-weight: 700;
}

.ytk-map-pin {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 3px solid #fff;
    background: #1a2b49;
    color: #fff;
    box-shadow: 0 7px 18px rgba(7,31,45,.28);
    transform: rotate(-45deg);
    cursor: pointer;
}

.ytk-map-pin > span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    transform: rotate(45deg);
}

.ytk-map-pin--brand {
    width: 48px;
    height: 48px;
}

.ytk-map-pin--brand img {
    display: block;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    object-fit: cover;
}

.ytk-map-popup {
    display: grid;
    min-width: 190px;
    max-width: 240px;
    gap: 4px;
    padding: 4px 2px 2px;
    color: #1a2b49;
    font-family: inherit;
}

.ytk-map-popup small {
    color: #027f78;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ytk-map-popup strong {
    font-size: 16px;
    line-height: 1.25;
}

.ytk-map-popup p {
    margin: 2px 0 0 !important;
    color: #5f6879 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

@media (max-width: 980px) {
    .ytk-route-explorer {
            grid-template-columns: minmax(240px, .75fr) minmax(360px, 1.25fr);
            gap: 20px;
        }
}

@media (max-width: 760px) {
    .ytk-route-explorer {
            grid-template-columns: 1fr;
            gap: 22px;
            margin-top: 4px;
        }

    .ytk-route-map-card {
            order: -1;
        }

    .ytk-map-pin {
            width: 38px;
            height: 38px;
        }

    .ytk-map-pin--brand {
            width: 44px;
            height: 44px;
        }
}

/* MINIMAL GYG-STYLE MAP SURFACE */
.ytk-route-map-card {
    border: 0;
    border-radius: 16px;
    background: #e9f0ef;
    box-shadow: none;
}

.ytk-route-map {
    height: 430px;
    border-radius: 16px;
}

.ytk-route-map-card:not(.is-ready):not(.has-error) .ytk-route-map::after,
.ytk-route-map-card.has-error .ytk-route-map::after {
    inset: 0;
}

@media (max-width: 760px) {
    .ytk-route-map-card,
        .ytk-route-map {
            border-radius: 14px;
        }

    .ytk-route-map {
            height: 340px;
        }
}

/* ROUTE MAP POLISH: marker, timeline spacing and collapsed fade */
.ytk-map-pin {
    border-radius: 50% 50% 50% 0;
}

.ytk-map-pin--brand {
    border-color: #024f4d;
    background: #fff;
}

.ytk-route-explorer .ytk-route-item {
    padding-bottom: 20px;
}

.ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="false"]) .ytk-route-timeline::after {
    content: "";
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 82px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.92) 68%, #fff 100%);
}

.ytk-route-explorer + .ytk-itinerary-toggle {
    margin-top: 0;
}

@media (max-width: 760px) {
    .ytk-route-explorer .ytk-route-item {
            padding-bottom: 16px;
        }
}

@media (min-width: 981px) {
    .ytk-route-explorer .ytk-route-timeline {
            display: flex;
            min-height: 430px;
            flex-direction: column;
            justify-content: space-between;
        }

    .ytk-route-explorer .ytk-route-item {
            padding-bottom: 12px;
        }
}

@media (min-width: 761px) and (max-width: 980px) {
    .ytk-route-explorer .ytk-route-timeline {
            display: flex;
            min-height: 380px;
            flex-direction: column;
            justify-content: space-between;
        }

    .ytk-route-explorer .ytk-route-item {
            padding-bottom: 10px;
        }
}

.single-product .ytk-onboard-section--life + .ytk-route-section {
    margin-top: 30px !important;
}

@media (max-width: 760px) {
    .single-product .ytk-route-section.ytk-mobile-accordion {
            border-top: 0 !important;
        }
}

@media (min-width: 981px) {
    .single-product .ytk-route-explorer .ytk-route-timeline {
            min-height: 430px !important;
            height: auto !important;
            align-self: stretch !important;
        }

    .single-product .ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="false"]) .ytk-route-timeline {
            align-self: start !important;
        }
}

@media (min-width: 761px) and (max-width: 980px) {
    .single-product .ytk-route-explorer .ytk-route-timeline {
            min-height: 380px !important;
            height: auto !important;
            align-self: stretch !important;
        }

    .single-product .ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="false"]) .ytk-route-timeline {
            align-self: start !important;
        }
}

@media (max-width: 760px) {
    .single-product .ytk-route-explorer .ytk-route-item {
            padding-bottom: 10px !important;
        }
}

@media (min-width: 981px) {
    .single-product .ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="false"]) .ytk-route-timeline {
            min-height: 390px !important;
            height: 390px !important;
        }

    .single-product .ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="false"]) + .ytk-itinerary-toggle {
            margin-top: -24px !important;
            position: relative;
            z-index: 5;
        }
}

@media (min-width: 761px) and (max-width: 980px) {
    .single-product .ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="false"]) .ytk-route-timeline {
            min-height: 348px !important;
            height: 348px !important;
        }

    .single-product .ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="false"]) + .ytk-itinerary-toggle {
            margin-top: -24px !important;
            position: relative;
            z-index: 5;
        }
}

@media (min-width: 761px) {
    .single-product .ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="false"]) + .ytk-itinerary-toggle {
            transform: translateY(-24px) !important;
        }

    .single-product .ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="true"]) + .ytk-itinerary-toggle {
            transform: none !important;
        }

    .single-product .ytk-route-explorer:has(+ .ytk-itinerary-toggle[aria-expanded="true"]) .ytk-route-timeline {
            justify-content: flex-start !important;
            gap: 9px !important;
        }
}
