/* ===== moved from layout.css: side panels / list grids / downloads ===== */

/* ===== left600 / right300 side panels ===== */

div#contents div.detail-misc {
    font-size: 0.9em;
    color: #cacaca;
}

div#contents div.right300 div.side {
    background: #ebebeb;
    padding: 1rem 1.6rem;
}

div.side div.caption {
    font-size: 1.5rem;
    font-family: "Roboto", 'Arial', sans-serif;
    font-weight: 400;
    line-height: 1em;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

div.side ul.block {
    list-style: none;
    padding: 0;
    margin: 0;
}

div.side ul.block > li {
    padding: 1rem 0 0 0;  margin: 0 0 1rem 0;
    border-bottom: 1px solid #d7d7d7;
}

div.side ul.block > li:last-child {
    border: 0;
}

div.side ul.block li div.caption {
    font-family: "Roboto", 'Arial', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
}

div.side ul.block li div.date {
    font-family: "Roboto", 'Arial', sans-serif;
    font-size: 2.4rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1em;
    padding-bottom: 0.65rem;
}

div.side ul.block li div.date span {
    display: inline-block;
}

div.side ul.block li div.price-wrap div.price-label {
    text-transform: uppercase;
    font-weight: bold;
}

div.side ul.block li div.price-wrap div.price {
    font-size: 2rem;
}

div.side ul.block li div.prices {
    font-family: "Roboto","Arial",sans-serif;
    font-weight: 500;
    color: #C5C5C5;
    font-size: 1.15rem;
}

div.side ul.block li.prices .caption {
    margin-bottom: 0.35rem;
}

div.side ul.block li.prices div.prices {
    margin-bottom: 0.35rem;
}

div.side ul.block li.prices .price {
    color: var(--overlay-hover);
    font-size: 1.8rem;
}

div.side ul.block li.prices .price_old {
    text-decoration: line-through;
}

div.side ul.block li.distance .caption {
    margin-bottom: 0.35rem;
}

div.side ul.block li.distance div.distance {
    font-family: "Roboto","Arial",sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

div.side ul.block li.dates .caption {
    margin-bottom: 0.35rem;
}

div.side ul.block li.dates .days {
    font-family: "Roboto","Arial",sans-serif;
    font-weight: 500;
    color: var(--overlay-hover);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

div.side ul.block li.dates ul.dates {
    list-style: none;
    margin: 0.65rem 0;
    padding: 0;
}

div.side ul.block li.dates ul.dates li {
    font-size: 0.9rem;
}

div.side ul.block li div.tripadvisor {
    background: white;
    margin: 0 0 0.65rem 0;
}

div.side ul.block li.awards img {
    max-width: 16rem;
}

div.side ul.block li.working ul.working {
    list-style: none;
    margin: 1em 0;
    padding: 0;
    font-size: 0.9rem;
}

div.side ul.block li.working ul.working li {
    padding: .2em 0;
}

div.side ul.block li.working ul.working li span.wday {
    display: inline-block;
    width: 1.9rem;
    color: #898989;
    font-size: 0.75rem;
    text-transform: uppercase;
}

div.side ul.block li.working ul.working li span.open {
    font-weight: bold;
}

div.side ul.block li.working ul.working li span.closed {
    color: #df2d28;
    text-transform: uppercase;
    font-weight: bold;
}

div.side ul.block li.working div.dl_more {
    font-size: 0.9rem;
    margin: 0 0 1em 0;
}

div.side div.length {
    font-family: 'proxima_nova_rgbold', 'Arial', sans-serif;
    font-size: 1.45rem;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    margin-top: -0.35rem;
}

div.side div.timing {
    font-size: 0.9rem;
}

div.side div.timing:last-child {
    margin-bottom: 1rem;
}

div.side div.timing > * {
    vertical-align: middle;
}

div.side div.timing .timing-icon {
    height: 1.9rem;
    margin-right: 1rem;
    width: 1.9rem;
}

div.side div.timing .timing-time {
    font-family: 'proxima_nova_rgbold', 'Arial', sans-serif;
}

div.side div.difficulty {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

div.side div.difficulty span:after {
    content: ', ';
}

div.side div.difficulty span:last-child:after {
    content: '';
}

/* ===== eg-list: listings with options column (Objekti / Packages / Pasakums) ===== */

div.list-items,
div.eg-list {
    clear: both;
}

div.eg-list-object {
    position: relative;
    display: flex;
    background: white;
    margin: 0 0 1.65rem 0;
}

div.eg-list-object a.image {
    flex: 0 0 17.9rem;
    aspect-ratio: 3 / 2;
    width: auto;
    height: auto;
    line-height: normal;
    display: block;
    position: relative;
    overflow: hidden;
    padding: 0;
}

div.eg-list-object a.image img.image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}




div.eg-list-object div.opts {
    position: absolute;
    bottom: 0;
    left: 0;
}

div.eg-list-object div.details-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.8rem 1.8rem;
}

div.eg-list-object div.details {
    flex: 1;
    padding: 0 0 1rem;
}

div.eg-list-object div.date,
div.eg-list-object div.days {
    font-size: 0.75rem;
    color: #8f9093;
    text-transform: uppercase;
    height: 1.2em;
    overflow: hidden;
}

div.eg-list-object div.details a.title {
    display: block;
    font-family: "Roboto", 'Arial', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2em;
    color: var(--text-color);
}

div.eg-list-object div.details div.intro {
    position: relative;
    font-size: 0.85rem;
    margin: 0.65rem 0 0;
    line-height: 1.2em;
    height: 3.6em;
    overflow: hidden;
}

div.eg-list-object div.details div.intro::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: 80%;
    min-width: 8rem;
    height: 1.2em;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

div.eg-list-object a.more {
    margin-top: auto;
    align-self: flex-start;
}

div.eg-list-object div.options-wrap {
    flex: 0 0 12rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 1rem;
    padding: 0;
    gap: 0;
    border-left: 1px solid #e1e1e1;
}
div.options-wrap .btn-grey{font-size:0.8rem;}
div.options-wrap .btn-grey:last-of-type{
margin: 0;
}

div.eg-list-object div.rating {
    width: 100%;
    padding: 0 0.6rem 0.6rem 0.5rem;
    border-bottom: 1px solid #e1e1e1;
}

div.eg-list-object div.rating div.caption {
    font-family: "Roboto", 'Arial', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1em;
}

div.eg-list-object div.rating ul.rating {
    position: relative;
    width: 85%;
    margin-right: auto;
    margin-top: 0.5rem;
}

div.eg-list-object div.options {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem;padding-bottom:0;
    align-items: flex-start;
}

/* event rows only: date badge + prices */
div.eg-list-object div.date-wrap {
    position: absolute;
    width: 5.4rem;
    height: 5.4rem;
    left: 0;
    top: 0;
    background: var(--overlay-hover);
}

div.eg-list-object div.date-wrap div.day {
    position: absolute;
    font-size: 2.4rem;
    top: 0.65rem;
    left: 0.65rem;
    color: white;
}

div.eg-list-object div.month {
    position: absolute;
    font-size: 1.4rem;
    text-transform: uppercase;
    top: 3.2rem;
    left: 0.65rem;
    color: white;
}

div.eg-list-object div.prices {
    color: var(--text-color);
    font-family: "Roboto", 'Arial', sans-serif;
    font-weight: 500;
}

div.eg-list-object div.prices .price {
    color: var(--overlay-hover);
    font-size: 1.15rem;
}

div.eg-list-object div.prices .price_old {
    text-decoration: line-through;
}

@media screen and (max-width: 800px) {
    div.eg-list div#items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem;
    }
    div.eg-list-object {
        flex-direction: column;
        margin: 0;
    }
    div.eg-list-object a.image {
        flex: none;
        width: 100%;
        aspect-ratio: 3 / 2;
    }
    div.eg-list-object div.details-wrap {
        padding: 0.8rem 1.2rem;
    }
    div.eg-list-object div.options-wrap {
        flex: 0 0 auto;
        border-left: 0;
        border-top: 1px solid #e1e1e1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1.2rem 0.2rem 1.2rem;
        margin: 0;
    }
    div.eg-list-object div.rating {
        border-bottom: 0;
        margin: 0;
        padding-left: 0;
    }
    div.eg-list-object div.rating ul.rating {
        max-width: 8rem;
        margin-top: 0.5rem;
    }
    div.eg-list-object div.options {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 0.5rem;
        margin: 0;
        padding: 0;
    }
}

@media screen and (max-width: 650px) {
    div.eg-list div#items {
        grid-template-columns: 1fr;
    }
}

/* In Planner: [Show] [Remove] added-state widget */
.planner-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 0.6rem 0;
    padding: 0.4em 0;
}
.planner-in.hidden {
    display: none;
}
.planner-in .pl-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
}
.planner-in .pl-actions a.btn-grey {
    margin: 0;
}

/* ---- planner add/remove choreography ---- */

/* Shrink the ADD button away before the widget folds in */
a[data-planner="add"].is-collapsing {
    animation: pl-btn-collapse 0.18s ease both;
    overflow: hidden;
}
a[data-planner="add"].is-returning {
    animation: pl-btn-return 0.28s ease both;
}

/* Widget folds open to reveal the loader, then the buttons */
.planner-in.is-opening {
    animation: pl-fold-in 0.28s ease both;
    overflow: hidden;
}
.planner-in.is-closing {
    animation: pl-fold-out 0.18s ease both;
    overflow: hidden;
}
/* Hide the buttons during the fold/load phase; they reveal on .is-reveal */
.planner-in.is-opening .pl-actions,
.planner-in.is-loading .pl-actions {
    opacity: 0;
}
.planner-in.is-reveal .pl-actions {
    animation: pl-fade-in 0.25s ease both;
}

/* Loader gif inside the open widget */
.planner-in .planner-loading {
    display: none;
    margin: 0 auto;
    opacity: 0;
}
.planner-in.is-loading .planner-loading {
    display: block;
    animation: pl-fade-in 0.2s ease both;
}
.planner-in .planner-loading.is-hiding {
    animation: pl-fade-out 0.2s ease both;
}

/* Header count bump */
.planner .planner-qtn.pop {
    animation: pl-pop 0.35s ease;
}

@keyframes pl-fold-in {
    from { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; }
    to   { max-height: 3.5rem; opacity: 1; padding-top: 0.4em; padding-bottom: 0.4em; margin-bottom: 0.6rem; }
}
@keyframes pl-fold-out {
    from { max-height: 3.5rem; opacity: 1; padding-top: 0.4em; padding-bottom: 0.4em; margin-bottom: 0.6rem; }
    to   { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; }
}
@keyframes pl-btn-collapse {
    from { opacity: 1; transform: scale(1); max-height: 3rem; margin-bottom: 0.6rem; }
    to   { opacity: 0; transform: scale(0.85); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
}
@keyframes pl-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pl-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes pl-btn-return {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes pl-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .planner-in.is-opening,
    .planner-in.is-closing,
    .planner-in.is-opening .pl-actions,
    .planner-in.is-loading .pl-actions,
    .planner-in.is-reveal .pl-actions,
    a[data-planner="add"].is-collapsing,
    a[data-planner="add"].is-returning,
    .planner-in .planner-loading,
    .planner-in .planner-loading.is-hiding,
    .planner .planner-qtn.pop {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== Load more ===== */

div#contents a.items-more {
    display: block;
    position: relative;
    font-family: "Roboto", 'Arial', sans-serif;
    height: 3.8rem;
    width: 100%;
    text-align: center;
    background: url('../../images/bg-items-more.jpg') repeat-x;
    clear: both;
}

div#contents a.items-more:hover {
    background-position: 0 -60px;
    text-decoration: none;
}

div#contents a.items-more .loading {
    position: absolute;
    left: 0.65rem;
    top: 0.35rem;
}

div#contents a.items-more span.more {
    display: block;
    height: 2.6rem;
    margin: 0 auto;
    padding: 0.35rem 0 0 0;
    font-size: 1.35rem;
    text-transform: uppercase;
    color: var(--text-color);
    background: url('../../images/bg-item-more-down.png') 50% 100% no-repeat;
}

div#contents a.items-more span#items-more-qtn {
    position: absolute;
    right: 1.3rem;
    bottom: 1.3rem;
    color: #808080;
    font-size: 1rem;
    font-weight: 300;
}

@media screen and (max-width: 515px) {
    div#contents a.items-more span#items-more-qtn { display: none; }
}

/* ===== Rating (side + general) ===== */

/* -- Sidebar star+score row: flex keeps stars + avg-score on one line -- */
.side div.rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    margin: 1.5rem 0;
}

/* -- Star strip: grey background, gold fill overlay -- */
div.rating ul.rating {
    list-style: none;display:block;
    margin: 0;
    padding: 0;
    width: 100%;max-width:9rem;
    height: auto!important;
	aspect-ratio: 128/20;
    background: url('../images/objekts/rating-off.svg') no-repeat;
    background-size: auto 100%;
    position: relative;
    overflow: hidden;
}

div.rating ul.rating li.fill {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: url('../images/objekts/rating-on.svg') no-repeat;
    background-size: auto 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

div.rating .avg-score {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

div.rating .avg-score small {
    font-size: 0.75rem;
    font-weight: normal;
    color: #8c8d90;
}

div.rating a.btn-grey {
    position: absolute;
    right: 0;
    bottom: 0;
}

div.rating div.footnote {
    position: absolute;
    bottom: 0;
    color: #8c8d90;
    font-size: 0.75rem;
}

/* ===== SerpAPI source ratings (sidebar) ===== */

div#contents div.side ul.block li ul.serp-ratings {
    list-style: none;
    margin: 0.4rem 0 0.15rem;
    padding: 0;
}

div#contents div.side ul.block li ul.serp-ratings li {
    float: none;
    margin: 0 0 0.35rem;
}

div#contents div.side ul.block li ul.serp-ratings li:last-child {
    margin-bottom: 0;
}

div#contents div.side ul.block li ul.serp-ratings a,
div#contents div.side ul.block li ul.serp-ratings .sr-plain {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    line-height: 1.15rem;
    color: inherit;
    text-decoration: none;
}

div#contents div.side ul.block li ul.serp-ratings a:hover .sr-name {
    text-decoration: underline;
}

div#contents div.side ul.block li ul.serp-ratings .sr-logo {
    height: 1rem;
    width: auto;
    max-width: 4.5rem;
    object-fit: contain;
    object-position: left center;
    flex: 0 0 auto;
}

div#contents div.side ul.block li ul.serp-ratings .sr-name {
    flex: 1;
}

div#contents div.side ul.block li ul.serp-ratings .sr-score {
    font-weight: bold;
    font-size: 1rem;
    min-width: 1.8rem;
    text-align: right;
    flex: 0 0 auto;
}

div#contents div.side ul.block li ul.serp-ratings .sr-count {
    color: #8c8d90;
    font-size: 0.75rem;
    min-width: 2.6rem;
    text-align: right;
    flex: 0 0 auto;
}

/* Single source: hide redundant score (matches avg above) */
div#contents div.side ul.block li ul.serp-ratings:has(> li:only-child) .sr-score {
    display: none;
}

/* ===== Contacts ===== */

div#contents div.right300 div.side ul.contacts {
    list-style: none;
    margin: 0.65rem 0;
    padding: 0;
}

div#contents div.right300 div.side ul.contacts li {
    font-size: 0.9rem;
    line-height: 1.5em;
    margin: 0 0 0.65rem 0;
}

div#contents div.right300 div.side ul.contacts li a {
    color: var(--text-color);
}

div#contents div.right300 div.side ul.contacts li a.www {
    color: #0c70ad;
}

div#contents div.right300 div.side a.btn-red {
    display: block;
    font-size: 1.4rem;
    padding: 0.4em 0.85em 0.3em 0.85em;
}

/* ===== eg-bricks / eg-brick (cover tiles, flex) ===== */

div.eg-bricks {
    display: flex;
    flex-wrap: wrap;
    clear: both;
    column-gap: 6.25%;
    margin-top: 1rem;
}

.eg-bricks.x4 {
    column-gap: 4%;
    margin-bottom: 1.9rem;
}

div.eg-brick {
    position: relative;
}

div.eg-brick.big {
    flex: 0 0 46.875%;
    margin: 1.75rem 0 2.8rem;
    aspect-ratio: 100 / 80.67;
}

div.eg-brick.small {
    flex: 0 0 29.1667%;
    margin: 1.3rem 0 2.8rem;
    aspect-ratio: 100 / 84.17;
}

div.eg-brick.tiny {
    flex: 0 0 22%;
    margin: 2.6rem 0 0;
    aspect-ratio: 100 / 84.67;
}

div.eg-brick a.image {
    position: relative;
}

div.eg-brick a.image span.overlay {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--bg-color);
    opacity: 0;
    transition: opacity 0.2s;
    -webkit-transition: opacity 0.2s;
}

div.eg-brick:hover a.image span.overlay {
    opacity: 0.5;
}

div.eg-brick a.image span.arrow {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../../images/bg-enter-arrow.png') 50% 50% no-repeat;
    opacity: 0;
    transition: opacity 0.2s;
    -webkit-transition: opacity 0.2s;
}

div.eg-brick:hover a.image span.arrow {
    opacity: 1;
}

div.eg-brick.big .eg-ico {
    position: absolute;
    display: block;
    width: 3.4rem;
    height: 5.4rem;
    top: -1.1rem;
    left: 0;
}

div.eg-brick .eg-ico {
    position: absolute;
    display: block;
    width: 2.75rem;
    height: 4.5rem;
    top: -1.1rem;
    left: 0;
}

div.eg-brick a.title {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: absolute;
    left: 0;
    bottom: 0;
    box-sizing: border-box;
    color: white;
    font-family: "Roboto",'Arial',sans-serif;
    font-weight: 300;
    line-height: 1em;
    text-decoration: none;
}

div.eg-brick a.title span {
    display: block;
}

div.eg-brick.big a.title {
    width: 66%;
    aspect-ratio: 3 / 1;
    padding: 0 5% 3.2%;
    font-size: 2.3rem;
}

div.eg-brick.small a.title {
    width: 80%;
    aspect-ratio: 225 / 85;
    padding: 0.85rem;
    font-family:var(--brand-font-family);
    font-size: 1.25rem;font-weight:500;line-height: 1.2em;
}

div.eg-brick.tiny a.title {
    width: 80%;
    aspect-ratio: 170 / 65;
  padding: 0.65rem;
    font-family:var(--brand-font-family);
    font-size: 1.1rem;font-weight:500;line-height: 1.1em;
}

@media screen and (max-width: 940px) {
    .eg-bricks.x4 {
        column-gap: 3%;
    }
    div.eg-brick.tiny {
        flex: 0 0 48%;
        margin: 1.6rem 0;
    }

    div.eg-bricks {
        column-gap: 3.125%;
    }
    div.eg-brick.big {
        flex: 0 0 48.4375%;
        margin: 1.3rem 0 2.8rem;
    }
    div.eg-brick.small {
        flex: 0 0 31.25%;
        margin: 1.3rem 0 2.8rem;
    }

    div.eg-brick.big a.title,
    div.eg-brick.small a.title,
    div.eg-brick.tiny a.title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 515px) {
    div.eg-brick.big,
    div.eg-brick.small,
    div.eg-brick.tiny {
        flex: 0 0 100%;
        margin: 1rem 0;
    }
    div.eg-brick.big a.title,
    div.eg-brick.small a.title,
    div.eg-brick.tiny a.title {
        font-size: 2.3rem;
    }
}

@media screen and (max-width: 400px) {
    div.eg-brick.big a.title,
    div.eg-brick.small a.title,
    div.eg-brick.tiny a.title {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 350px) {
    div.eg-brick.big a.title,
    div.eg-brick.small a.title,
    div.eg-brick.tiny a.title {
        font-size: 1.5rem;
    }
}

/* ===== eg-brick-dl (downloads/packages tiles, flex) ===== */

.eg-bricks.dl {
    column-gap: 2.08%;
    align-items: flex-start;
}

div.eg-brick-dl {
    position: relative;
    background: white;
}

div.eg-brick-dl.big {
    flex: 0 0 48.85%;
    margin: 0 0 1.65rem;
}

div.eg-brick-dl.small {
    flex: 0 0 23.43%;
    margin: 0 0 1.65rem;
}

div.eg-brick-dl a.image {
    position: relative;
}

div.eg-brick-dl a.image span.zoom {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.9rem;
    height: 2.9rem;
    background: url(../../images/box-zoom.png) 0 0 no-repeat;
}

div.eg-brick-dl a.image span.overlay {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #4E394E;
    opacity: 0;
    transition: opacity 0.2s;
    -webkit-transition: opacity 0.2s;
}

div.eg-brick-dl:hover a.image span.overlay {
    opacity: 0.5;
}

div.eg-brick-dl a.image span.arrow {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(../../images/bg-enter-arrow.png) 50% 50% no-repeat;
    opacity: 0;
    transition: opacity 0.2s;
    -webkit-transition: opacity 0.2s;
}

div.eg-brick-dl:hover a.image span.arrow {
    opacity: 1;
}

div.eg-brick-dl a.title {
    display: block;
    position: relative;
    box-sizing: border-box;
    height: 0;
    margin-top: -10%;
    color: white;
    font-family: var(--sec-font-family);
    font-weight: 300;
    line-height: 1.2em;
    text-decoration: none;
}

div.eg-brick-dl a.title span {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    box-sizing: border-box;
}

div.eg-brick-dl.big a.title {
    width: 67%;
    padding-bottom: 20%;
    font-size: 2rem;
}

div.eg-brick-dl.big a.title span {
    width: 83.33%;
    padding-left: 0.65em;
    padding-right: 0.65em;
    padding-bottom: 0.5em;
}

div.eg-brick-dl.small a.title {
    width: 88%;
    padding-bottom: 30%;
    font-size: 1rem;
}

div.eg-brick-dl.small a.title span {
    width: 86.36%;
    padding-left: 6.82%;
    padding-right: 6.82%;
    padding-bottom: 5.26%;
}

div.eg-brick-dl div.details a.more,
div.eg-brick-dl div.details a.download {
    display: inline-block;
    margin-top: 1rem;
    line-height: 1em;
}

div.eg-brick-dl div.details a.download {
    padding-left: 1.3rem;
    background: url(../../images/box-download.png) 0 0 no-repeat;
}

div.eg-brick-dl div.details a.download:hover {
    background-position: 0 -30px;
}

div.eg-brick-dl.big div.details {
    padding: 3.2% 5.33%;
}

div.eg-brick-dl.small div.details {
    padding: 6%;
}

div.eg-bricks > div.image[data-src] {
    display: none;
}

@media screen and (max-width: 1000px) {
    div.eg-brick-dl.big a.title {
        width: 88%;
        padding-bottom: 30%;
        font-size: 1rem;
    }
    div.eg-brick-dl.big a.title span {
        width: 86.36%;
        padding-left: 6.82%;
        padding-right: 6.82%;
        padding-bottom: 5.26%;
    }
    div.eg-brick-dl.big div.details {
        padding: 6%;
    }
}

@media screen and (max-width: 800px) {
    div.eg-brick-dl.big a.title,
    div.eg-brick-dl.small a.title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 700px) {
    div.eg-brick-dl.big a.title,
    div.eg-brick-dl.small a.title {
        font-size: 1rem;
    }
}

@media screen and (max-width: 550px) {
    div.eg-brick-dl.big,
    div.eg-brick-dl.small {
        flex: 0 0 100%;
        margin: 0 0 1.65rem;
    }
    div.eg-brick-dl.big a.title,
    div.eg-brick-dl.small a.title {
        width: 63.97%;
        padding-bottom: 21.32%;
        font-size: 2rem;
    }
    div.eg-brick-dl.big a.title span,
    div.eg-brick-dl.small a.title span {
        width: 83.33%;
        padding-left: 8.33%;
        padding-right: 8.33%;
        padding-bottom: 8.33%;
    }
    div.eg-brick-dl.big div.details,
    div.eg-brick-dl.small div.details {
        padding: 5.33%;
    }
}

@media screen and (max-width: 515px) {
    div.eg-brick-dl.big a.title,
    div.eg-brick-dl.small a.title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 400px) {
    div.eg-brick-dl.big a.title,
    div.eg-brick-dl.small a.title {
        width: 88%;
        padding-bottom: 30%;
        font-size: 1rem;
    }
    div.eg-brick-dl.big a.title span,
    div.eg-brick-dl.small a.title span {
        width: 86.36%;
        padding-left: 6.82%;
        padding-right: 6.82%;
        padding-bottom: 5.26%;
    }
    div.eg-brick-dl.big div.details,
    div.eg-brick-dl.small div.details {
        padding: 6%;
    }
    div.eg-brick-dl.big a.title,
    div.eg-brick-dl.small a.title {
        font-size: 1.25rem;
    }
}

/* ===== Objekts - list-items layout ===== */

div.objekts div#list-items-left {
    float: left;
    width: 36.458333333%;
}

div.objekts div#list-items-right {
    float: right;
    width: 59.375%;
    margin-bottom: 1.9rem;
}

/* ===== Objekts - planner head (inline buttons area) ===== */

div.planner-head {
    position: relative;
    height: auto;
    text-transform: uppercase;
    border-top: 1px solid #b7b7b7;
    border-bottom: 1px solid #b7b7b7;
    margin: 0 0 1.6rem 0;
}

div.planner-head div.note {
    height: 3.8rem;
    line-height: 3.8rem;
    font-size: 1.35rem;
    float: left;
}

div.planner-head a.btn-grey,
div.planner-head a.btn-red {
    float: right;
    margin-top: 1rem;
}

/* ===== Objekts - weather side panel =====
   Live Open-Meteo data (libs/Weather.php). The block is only emitted when the
   object has coordinates and the fetch succeeded, so unlike the previous
   version there is no display:none guard here: if you can see it, it has data.
   The coming days are given the visual weight; "now" stays a compact line. */

li.weather div.weather-now {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0 0.7rem;
}

li.weather .weather-icon {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

li.weather img.weather-icon-img {
    width: 3rem;
    height: 3rem;
    display: block;
}

/* Points north at 0deg; Weather::render() rotates it to the direction the
   wind is blowing towards. */
li.weather img.weather-wind-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.4rem;
    height: 1.4rem;
    margin: -0.7rem 0 0 -0.7rem;
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px rgba(255,255,255,0.9));
    pointer-events: none;
}

li.weather .weather-now-temp {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

li.weather .weather-now-wind {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.3;
}

li.weather .weather-label {
    color: #888;
}

li.weather ul.weather-forecast {
    border-top: 1px solid #e4e4e4;
    padding-top: 0.5rem;
}

li.weather ul.weather-forecast li.weather-day {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.12rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

li.weather .weather-day-name {
    width: 2.2rem;
    flex-shrink: 0;
    color: #888;
}

li.weather img.weather-day-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

li.weather .weather-day-rain {
    white-space: nowrap;
}

li.weather .weather-day-pop {
    margin-left: auto;
    color: #4a7ba7;
    font-size: 0.75rem;
    white-space: nowrap;
}

li.weather a.weather-credit {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.6rem;
    color: #aaa;
    text-decoration: none;
}

li.weather a.weather-credit:hover {
    color: #666;
    text-decoration: underline;
}

/* ===== Objekts - responsive ===== */

@media screen and (max-width: 900px) {
    div.objekts div#list-items-left {
        float: none;
        width: 100%;
        margin-bottom: 1.2em;
    }

    div.objekts div#list-items-right {
        float: none;
        width: 100%;
    }
}

/* ===== eg-box-rel (top attractions cards) ===== */

div.eg-box-rel-wrap {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2.08%;
    align-items: flex-start;
}

div.eg-box-rel {
    flex: 0 0 23.43%;
    gap: 0;
    position: relative;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    background: white;
    color: #000;
    margin: 0 0 1.65rem 0;
}

/* icon: above the title block, below the injected toolbar (z-index 6) */
div.eg-box-rel .eg-ico {
    position: absolute;
    width: 1.98rem;
    height: 3.24rem;
    top: -0.75rem;
    left: 0;
    z-index: 3;
}

/* image + title share one link; a.photo is the flex row */
div.eg-box-rel > a.photo {
    flex: 0 0 100%;
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
}

div.eg-box-rel > a.photo > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* title block sits on the image bottom edge, grows upward */
div.eg-box-rel > a.photo > b.brand-bg {
    position: absolute;
    bottom: -3rem;
    left: 0;
    width: 88%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 4rem;
    max-height: 11rem;
    padding: 0.6rem;
    color: #fff;
    font-family: var(--brand-font-family);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2em;
    z-index: 2;
}

/* intro - the deleted title row spacing moved here as top padding */
div.eg-box-rel > .intro {
    flex: 0 0 100%;
    display: block;
    position: relative;
    overflow: hidden;
    height: 10.2em;
    line-height: 1.5em;
    padding: 3.5rem 0.8rem 0.6rem;
    font-size: 0.85rem;
    color: #000;
}

/* ::after for fade instead of .fade class */
div.eg-box-rel > .intro::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: 80%;
    min-width: 8rem;
    height: 1.2em;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

div.eg-box-rel > a.more {
    flex: 0 0 100%;
    height: 2rem;
    padding: 0 0 0.65rem 0.65rem;
    color: #e4544b;
    text-decoration: none;
}

/* 4 cols -> 2 cols */
@media screen and (max-width: 1000px) {
    div.eg-box-rel-wrap {
        column-gap: 3.12%;
    }

    div.eg-box-rel {
        flex: 0 0 48.44%;
    }
}

/* 2 cols -> 1 col */
@media screen and (max-width: 750px) {
    div.eg-box-rel-wrap {
        column-gap: 0;
    }

    div.eg-box-rel {
        flex: 0 0 100%;
    }
}


/* ===== eg-row-rel (related offers, horizontal) ===== */

div.eg-row-rel-wrap {
    display: flex;
    flex-wrap: wrap;
    column-gap: 3.13%;
    align-items: stretch;
}

div.eg-row-rel {
    --line: 1rem;        /* the one shared line box for title + intro */
    --text-pad: 1.45rem; /* 1rem title pad + 0.45rem intro pad */

    flex: 0 0 48.43%;
    display: flex;
    position: relative;
    background: white;
    margin: 0 0 1.65rem 0;
}

div.eg-row-rel .eg-ico {
    position: absolute;
    width: 1.98rem;
    height: 3.24rem;
    top: -0.75rem;
    left: 0;
    z-index: 3;
}

/* image is a fixed flex column; its height is simply the box height */
div.eg-row-rel > a.photo {
    flex: 0 0 14.4rem;
    display: block;
    align-self: stretch;
    overflow: hidden;
}

div.eg-row-rel > a.photo > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div.eg-row-rel > .details {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-flow: column;
}

/* title + intro share ONE clamped block, and the fade covers both.
   height is padding + a whole number of --line, so the overflow edge
   always lands on a line boundary instead of slicing one. */
div.eg-row-rel > .details > div {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    height: calc(var(--text-pad) + 6 * var(--line));
    padding: 0 1rem;
}

div.eg-row-rel > .details > div::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: 80%;
    min-width: 8rem;
    height: var(--line);
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* one shared line box keeps title and intro on the same grid */
div.eg-row-rel > .details > div > a.title,
div.eg-row-rel > .details > div > .intro {
    line-height: var(--line);
}

div.eg-row-rel > .details > div > a.title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 1rem 0 0 0;
}

div.eg-row-rel > .details > div > .intro {
    font-size: 0.85rem;
    padding: 0.45rem 0 0 0;
}

div.eg-row-rel > .details > a.more {
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.65rem 1rem 0.65rem 1rem;
}


/* 2 cols -> 1 col */
@media screen and (max-width: 800px) {
    div.eg-row-rel-wrap  {
        column-gap: 0;
    }

    div.eg-row-rel  {
        flex: 0 0 100%;
    }
}
@media screen and (max-width: 530px) {
  div.eg-row-rel > a.photo {
    flex: 0 0 50%;
    display: block;
    align-self: stretch;
    overflow: hidden;
}
}