/* Destination overview and destination detail pages. */
.destination-page .destination-photo {
    display: block;
    margin-bottom: 24px;
}

.destination-page .destination-photo-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.destination-page {
    position: relative;
    left: 50%;
    width: min(1680px, calc(100vw - 64px));
    transform: translateX(-50%);
    padding: 24px 24px 40px;
    border-radius: 4px;
    background: #d4e8c1;
    color: #495057;
    font-family: "Rambla regular", sans-serif;
    font-size: 20px;
    line-height: 1.55;
}
.destination-page > .row { margin-left: 0; margin-right: 0; }
.destination-page > .row > .col-12 { padding-left: 0; padding-right: 0; }
.destination-page h1 { margin-bottom: 24px; font-size: 36px; }
.destination-page h2 { font-size: 30px; }
.destination-page h3 { font-size: 26px; }
.destination-page .card { border: 1px solid #d4e8c1; border-radius: 4px; background: #fff; color: #495057; }
.destination-page .card-header,
.destination-page .sk_title,
.destination-page .sk_title_xs,
.destination-page .pealkiri-rida-xs { padding: 14px 18px; border-color: #f5d769; background: #80bd79; color: #f5d769; font-size: 22px; font-weight: 700; }
.destination-page .card-header a,
.destination-page .sk_title a,
.destination-page .pealkiri-rida-xs a { color: #f5d769; }
.destination-page .card-body { padding: 24px; }
.destination-page .table { margin-bottom: 0; background: #fff; color: #495057; font-size: 20px; }
.destination-page .table td,
.destination-page .table th { padding: 12px 14px; vertical-align: middle; border-color: #d4e8c1; }
.destination-page .table th { background: #d4e8c1; color: #495057; }
.destination-page .d-none.d-xl-block,
.destination-page .d-none.d-sm-block { overflow-x: auto; }
.destination-page .table-striped tbody tr:nth-of-type(odd) { background: #f3f8ee; }
.destination-page .table-striped > tbody > tr > td,
.destination-page .table-striped > tbody > tr > td a:not(.destination-price) { color: #80BD79; }
.destination-page .table-striped > tbody > tr:nth-child(odd) > td,
.destination-page .table-striped > tbody > tr:nth-child(odd) > td a:not(.destination-price) { color: #f5d769; }
.destination-page .table-hover tbody tr:hover,
.destination-page .sk_li:hover { background: #d4e8c1; }
.destination-page .form-control { min-height: 50px; font: inherit; border-radius: 4px; }
.destination-page .btn { font-size: 20px; border-radius: 4px; }
.destination-page .btn-secondary,
.destination-page .ui-tabs-nav .ui-state-default { border-color: #f5d769; background: #80bd79; color: #f5d769; }
.destination-page .btn-secondary:hover,
.destination-page .ui-tabs-nav .ui-state-active { background: #f5d769; color: #80bd79; border-color: #80bd79; }
.destination-page .ui-tabs-nav .ui-state-default a { color: inherit; }
.destination-page .newspaper { column-count: 3; column-gap: 28px; padding: 24px; background: #fff; }
.destination-page .blokk { margin-bottom: 24px; break-inside: avoid; }
.destination-page .blokk table { width: 100%; }
.destination-page .sk_li { padding: 10px 8px; white-space: normal; }
.destination-page .sihtkoht_nimi { padding-right: 12px; }
.destination-page .hind,
.destination-page .rthind,
.destination-page .owhind { width: auto; min-width: 80px; white-space: nowrap; }
.destination-page .destination-price,
.destination-page .destination-price:hover,
.destination-page .sk_li a.destination-price:hover,
.destination-page .hind,
.destination-page .rthind,
.destination-page .owhind,
.destination-page .promohind_realopus { color: #F97419 !important; font-size: 22px; font-weight: 700; }
.destination-page .promohind_realopus { background: transparent; }
.destination-page .destination-price:hover { text-decoration: underline; }
@media (max-width: 1199.98px) {
    .destination-page .newspaper { column-count: 2; }
}
@media (max-width: 767.98px) {
    .destination-page { width: calc(100vw - 24px); padding: 16px 12px 28px; font-size: 18px; }
    .destination-page h1 { font-size: 30px; }
    .destination-page .newspaper { column-count: 1; padding: 16px; }
    .destination-page .card-body { padding: 16px; }
    .destination-page .table { font-size: 18px; }
    .destination-page .table td,
    .destination-page .table th { padding: 10px 8px; }
    .destination-page .card-header { font-size: 20px; }
}

/* Keep the remaining package price at the outer edge of each destination row. */
.destination-page .blokk td.sihtkoht_nimi,
.destination-page .blokk td.blokk_tiitel { width: 100%; }
.destination-page .blokk td.hind,
.destination-page .table td.destination-price-cell { width: 1%; text-align: right; white-space: nowrap; }

.destination-resorts { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; }
.destination-resort-button { padding: 12px 20px; border: 1px solid #f5d769; border-radius: 4px; background: #80bd79; color: #f5d769; font: inherit; font-weight: 700; line-height: 1.3; cursor: pointer; }
.destination-resort-button:hover,
.destination-resort-button[aria-pressed="true"] { background: #f5d769; color: #80bd79; border-color: #80bd79; }
.destination-resort-button:focus-visible { outline: 2px solid #495057; outline-offset: 3px; }
@media (max-width: 575.98px) {
    .destination-resorts { gap: 8px; padding: 12px; }
    .destination-resort-button { padding: 10px 14px; font-size: 18px; }
}

.destination-hotel-table-scroll { overflow-x: auto; }
.destination-hotel-calendar tbody td:first-child { min-width: 240px; }
.destination-hotel-calendar .destination-price { white-space: nowrap; }

/* Consistent spacing and typography across the destination page. */
.destination-page {
    padding: 32px clamp(16px, 2.5vw, 36px) 48px;
}
.destination-page > .row > .col-12 > h1:first-of-type {
    margin: 0 0 28px;
    font-size: clamp(30px, 2.5vw, 42px);
    line-height: 1.2;
}
.destination-page > .row > .col-12 > .card,
.destination-page > .row > .col-12 > .mt-2 > .card {
    margin-top: 24px !important;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(37, 68, 36, .08);
}
.destination-page .card-header {
    padding: 16px 24px;
    line-height: 1.3;
}
.destination-page .card-body { padding: 28px 32px; }
.destination-description .card-body { line-height: 1.65; }
.destination-description h3 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-size: 24px;
    line-height: 1.3;
}
.destination-description-text { white-space: pre-line; overflow-wrap: anywhere; }
.destination-description-text + h3 { margin-top: 28px; }
.destination-page a:focus-visible,
.destination-page button:focus-visible {
    outline: 3px solid #495057;
    outline-offset: 3px;
}
.destination-hotel-table-scroll { overscroll-behavior-x: contain; }
.destination-hotel-calendar .table { min-width: 100%; }
.destination-hotel-calendar th,
.destination-hotel-calendar td { padding: 14px 18px; }
.destination-hotel-calendar thead th { font-size: 18px; white-space: nowrap; }
.destination-hotel-calendar tbody td:first-child a { font-weight: 700; }
.destination-hotel-calendar .destination-price { display: inline-block; padding: 3px 0; }
.destination-hotel-calendar .destination-price:hover { text-shadow: none; }
@media (max-width: 767.98px) {
    .destination-page { padding: 20px 12px 28px; }
    .destination-page > .row > .col-12 > h1:first-of-type { margin-bottom: 20px; }
    .destination-page > .row > .col-12 > .card,
    .destination-page > .row > .col-12 > .mt-2 > .card { margin-top: 16px !important; }
    .destination-page .card-header { padding: 14px 16px; }
    .destination-page .card-body { padding: 20px 18px; }
    .destination-description h3 { font-size: 21px; }
    .destination-description-text + h3 { margin-top: 22px; }
    .destination-hotel-calendar tbody td:first-child { min-width: 190px; }
    .destination-hotel-calendar th,
    .destination-hotel-calendar td { padding: 12px; }
}
