/**
 * Safari Directory – Destination Template: TIMETIDE
 * Safari Drive destination-page layout. Settings-driven typography.
 */

.sd-dest-timetide {
    --tt-brown: #403e37;
    --tt-dark: #292722;
    --tt-darkest: #22211b;
    --tt-orange: #df7911;
    --tt-mist: #f6f6ed;
    --tt-white: #fff;
    --tt-max: min(92vw, 1180px);
    --tt-gutter: clamp(20px, 4vw, 40px);
    --tt-ease: ease-out;
    background: var(--tt-mist);
    color: var(--tt-brown);
    font-family: var(--sd-body-font, var(--sd-font-body, "Open Sans", sans-serif));
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.sd-dest-timetide *,
.sd-dest-timetide *::before,
.sd-dest-timetide *::after {
    box-sizing: border-box;
}

.sd-dest-timetide a {
    color: inherit;
    text-decoration: none;
}


/* ── Hero ────────────────────────────────────────────────────── */

.sd-tt-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--tt-darkest);
}

.sd-tt-hero__image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center top;
    filter: brightness(0.67);
}

.sd-tt-hero__title-wrap {
    position: relative;
    z-index: 2;
    padding: 0 var(--tt-gutter) 110px;
    text-align: center;
}

.sd-tt-hero__title {
    margin: 0;
    color: var(--tt-white) !important;
    font-family: var(--sd-heading-font, var(--sd-font-heading, "Playfair Display", serif)) !important;
    font-size: clamp(2.2rem, 4.2vw, 4.4rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.14em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.sd-tt-hero__bars {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}


/* ── Breadcrumbs ─────────────────────────────────────────────── */

.sd-tt-crumbbar,
.sd-tt-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 1.15rem max(var(--tt-gutter), calc((100% - var(--tt-max)) / 2 + var(--tt-gutter)));
    background: var(--tt-dark);
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sd-tt-crumbbar .sd-tt-crumbs {
    padding: 0;
    background: transparent;
    width: auto;
    max-width: 100%;
}

.sd-tt-crumbs a,
.sd-tt-crumbbar a {
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
}

.sd-tt-crumbs a:hover,
.sd-tt-crumbbar a:hover {
    color: var(--tt-white);
}

.sd-tt-crumbs__sep {
    opacity: 0.55;
    font-size: 0.85em;
}

.brz .sd-dest-timetide .sd-tt-crumbbar,
.brz .sd-dest-timetide .sd-tt-crumbs,
.brz-wp-shortcode .sd-dest-timetide .sd-tt-crumbbar,
.brz-wp-shortcode .sd-dest-timetide .sd-tt-crumbs,
.brz-shortcode .sd-dest-timetide .sd-tt-crumbbar,
.brz-shortcode .sd-dest-timetide .sd-tt-crumbs {
    background-color: #292722 !important;
    background-color: var(--tt-dark) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    opacity: 1 !important;
}

.brz .sd-dest-timetide .sd-tt-crumbbar .sd-tt-crumbs,
.brz-wp-shortcode .sd-dest-timetide .sd-tt-crumbbar .sd-tt-crumbs {
    background: transparent !important;
    padding: 0 !important;
}


/* ── Mini nav ────────────────────────────────────────────────── */

.sd-tt-minav {
    background: var(--tt-brown);
    width: 100%;
    margin: 0;
}

.sd-tt-minav.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

.sd-tt-minav__row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 0.85rem max(var(--tt-gutter), calc((100vw - var(--tt-max)) / 2 + var(--tt-gutter))) 0.55rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.sd-tt-minav__row::-webkit-scrollbar {
    display: none;
}

.sd-tt-minav__link,
.sd-tt-minav__link span,
.brz .sd-tt-minav__link,
.brz .sd-tt-minav__link span,
.brz-wp-shortcode .sd-tt-minav__link,
.brz-wp-shortcode .sd-tt-minav__link span {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 auto;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none !important;
    opacity: 1 !important;
    transition: color 0.3s var(--tt-ease);
    white-space: nowrap;
    padding: 0 6px;
}

.sd-tt-minav__link span,
.brz .sd-tt-minav__link span {
    display: inline;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit;
    text-transform: inherit;
    padding: 0;
    flex: none;
}

.sd-tt-minav__link i {
    display: block;
    width: 1px;
    height: 4px;
    margin-top: 0.25rem;
    background: rgba(255, 255, 255, 0.72);
}

.sd-tt-minav__link:hover,
.sd-tt-minav__link:hover span,
.sd-tt-minav__link.is-active,
.sd-tt-minav__link.is-active span,
.brz .sd-tt-minav__link:hover,
.brz .sd-tt-minav__link:hover span,
.brz .sd-tt-minav__link.is-active,
.brz .sd-tt-minav__link.is-active span {
    color: #fff !important;
    opacity: 1 !important;
}

.sd-tt-minav__link.is-active i,
.sd-tt-minav__link:hover i {
    background: var(--tt-orange);
    width: 12px;
}


/* ── Body / sections ─────────────────────────────────────────── */

.sd-tt-body {
    background-image: linear-gradient(to bottom, var(--tt-mist), #fff 3%, #fff 89%, var(--tt-mist));
    padding-bottom: 0;
}

.sd-tt-section {
    width: var(--tt-max);
    max-width: 100%;
    margin-inline: auto;
    padding: clamp(48px, 6vw, 80px) var(--tt-gutter) 0;
    scroll-margin-top: 72px;
}

.sd-tt-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 0 3.25rem;
}

.sd-tt-heading__txt {
    margin: 0;
    color: var(--tt-brown) !important;
    font-family: var(--sd-heading-font, var(--sd-font-heading, "Playfair Display", serif)) !important;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.38em !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
}

.sd-tt-heading__rule {
    display: block;
    width: 2rem;
    height: 1px;
    background: var(--tt-orange);
    flex-shrink: 0;
}

.sd-tt-rule {
    border: 0;
    height: 1px;
    margin: 4rem 0 0;
    background: rgba(64, 62, 55, 0.1);
}


/* ── Overview ────────────────────────────────────────────────── */

.sd-tt-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.sd-tt-overview--solo {
    grid-template-columns: minmax(0, 40rem);
}

.sd-tt-prose {
    color: var(--tt-brown);
    font-size: 1rem;
    line-height: 1.7;
}

.sd-tt-prose p {
    margin: 0 0 1.1em;
}

.sd-tt-prose p:last-child {
    margin-bottom: 0;
}

.sd-tt-prose strong {
    font-weight: 600;
}

.sd-tt-overview__btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.sd-tt-overview__btns .sd-tt-btn {
    flex: 1;
    width: auto;
}

.sd-tt-overview__map {
    min-height: 280px;
    position: relative;
}

.sd-tt-overview__map img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
    object-position: center;
}

.sd-tt-overview__map--photo {
    min-height: 360px;
    overflow: hidden;
}

.sd-tt-overview__map--photo img {
    position: absolute;
    inset: 0;
    object-fit: cover !important;
}


/* ── Buttons ─────────────────────────────────────────────────── */

.sd-tt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    border: 1px solid var(--tt-orange);
    border-radius: 2px;
    background: transparent;
    color: var(--tt-orange);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.35s var(--tt-ease), color 0.35s var(--tt-ease), border-color 0.35s var(--tt-ease);
}

.sd-tt-btn:hover,
.sd-tt-btn--fill:hover {
    background: var(--tt-orange);
    color: var(--tt-mist);
}

.sd-tt-btn--on-dark {
    border-color: var(--tt-orange);
    color: var(--tt-orange);
}

.sd-tt-btn--on-dark:hover {
    background: var(--tt-orange);
    color: var(--tt-mist);
}


/* ── Gallery ─────────────────────────────────────────────────── */

.sd-tt-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sd-tt-gallery__item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--tt-dark);
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    position: relative;
}

.sd-tt-gallery__item img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transition: transform 0.45s var(--tt-ease), filter 0.45s var(--tt-ease);
}

.sd-tt-gallery__item:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.sd-tt-gallery__extra {
    margin-top: 1rem;
}

.sd-tt-gallery__toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.sd-tt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(34, 33, 27, 0.92);
}

.sd-tt-lightbox[hidden] {
    display: none;
}

.sd-tt-lightbox img {
    max-width: min(92vw, 1400px);
    max-height: 90vh;
    object-fit: contain;
}

.sd-tt-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}


/* ── When to go ──────────────────────────────────────────────── */

.sd-tt-when__intro {
    max-width: 44rem;
    margin: -1rem auto 2.5rem;
    text-align: center;
    color: var(--tt-brown);
    font-size: 1rem;
    line-height: 1.7;
}

.sd-tt-when__intro p {
    margin: 0 0 1em;
}

.sd-tt-when__intro p:last-child {
    margin-bottom: 0;
}

.sd-tt-when__tabs {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(64, 62, 55, 0.08);
}

.sd-tt-when__tabs::-webkit-scrollbar {
    display: none;
}

.sd-tt-when__tab {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    color: var(--tt-brown);
}

.sd-tt-when__tab.is-active {
    border-bottom-color: var(--tt-orange);
}

.sd-tt-when__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e8e2d4;
    color: #1a1a1a !important;
    font-family: var(--sd-body-font, var(--sd-font-body, "Open Sans", sans-serif));
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.25s var(--tt-ease), color 0.25s var(--tt-ease);
}

.sd-tt-when__dot--best {
    background: #d9d0bc;
}

.sd-tt-when__dot--good {
    background: #e8e2d4;
}

.sd-tt-when__dot--ok,
.sd-tt-when__dot--poor,
.sd-tt-when__dot--none {
    background: #f3efe4;
}

.sd-tt-when__tab:hover .sd-tt-when__dot {
    background: var(--tt-orange);
    color: #fff !important;
}

.sd-tt-when__tab.is-active .sd-tt-when__dot {
    background: var(--tt-brown);
    color: #fff !important;
}

.sd-tt-when__panes {
    background-image: linear-gradient(#fffff8eb, #fffff8eb);
    padding: 3.25rem 1rem 1.5rem;
    text-align: center;
}

.sd-tt-when__pane[hidden] {
    display: none;
}

.sd-tt-when__month {
    margin: 0 0 1.25rem;
    color: var(--tt-brown);
    font-family: var(--sd-heading-font, var(--sd-font-heading, "Playfair Display", serif));
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 400;
}

.sd-tt-when__rating {
    margin: 0 0 1rem;
    color: var(--tt-orange);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sd-tt-when__note {
    max-width: 400px;
    margin: 0 auto;
    color: var(--tt-brown);
    font-size: 1rem;
    line-height: 1.6;
}


/* ── What to see ─────────────────────────────────────────────── */

.sd-tt-see {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sd-tt-see__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: var(--tt-dark);
    margin-bottom: 0.85rem;
    position: relative;
}

.sd-tt-see__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transition: transform 0.45s var(--tt-ease);
}

.sd-tt-see__card:hover .sd-tt-see__media img {
    transform: scale(1.04);
}

.sd-tt-see__title {
    margin: 0 0 0.45rem;
    font-family: var(--sd-heading-font, var(--sd-font-heading, "Playfair Display", serif));
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--tt-brown);
}

.sd-tt-see__title a:hover {
    color: var(--tt-orange);
}

.sd-tt-see__text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--tt-brown);
}


/* ── Experiences ─────────────────────────────────────────────── */

.sd-tt-exp {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sd-tt-exp__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: var(--tt-dark);
    margin-bottom: 0.7rem;
    position: relative;
}

.sd-tt-exp__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transition: transform 0.45s var(--tt-ease);
}

.sd-tt-exp__card:hover .sd-tt-exp__media img {
    transform: scale(1.04);
}

.sd-tt-exp__title {
    margin: 0;
    font-family: var(--sd-heading-font, var(--sd-font-heading, "Playfair Display", serif));
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--tt-brown);
}

.sd-tt-exp__title a:hover {
    color: var(--tt-orange);
}


/* ── Popular routes ──────────────────────────────────────────── */

.sd-tt-routes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sd-tt-route {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 10 / 14;
    background: var(--tt-brown);
    color: #fff;
}

.sd-tt-route__img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    filter: brightness(0.96);
}

.sd-tt-route__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 33, 27, 0.08) 20%, rgba(34, 33, 27, 0.72) 100%);
}

.sd-tt-route__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.sd-tt-route__tag {
    display: inline-block;
    background: var(--tt-orange);
    color: #fff;
    padding: 0.4rem 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.sd-tt-route__title {
    margin: 0 0 0.5rem;
    color: #fff;
    font-family: var(--sd-heading-font, var(--sd-font-heading, "Playfair Display", serif));
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    font-weight: 400;
    line-height: 1.25;
}

.sd-tt-route__line {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.85);
    margin: 0.5rem 0;
}

.sd-tt-route__meta {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sd-tt-route__nights strong {
    margin-right: 0.25rem;
    font-size: 1.05em;
}

.sd-tt-route__price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
}

.sd-tt-route__price em {
    font-style: normal;
    font-weight: 500;
    opacity: 0.9;
}

.sd-tt-route__price small {
    font-size: 0.85em;
    text-transform: lowercase;
}


/* ── Enquire CTA ─────────────────────────────────────────────── */

.sd-tt-cta {
    margin: 4rem 0 0;
    width: 100%;
    max-width: none;
    min-height: 36vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem var(--tt-gutter);
    background-color: var(--tt-brown);
    background-image:
        linear-gradient(rgba(64, 62, 55, 0.84), rgba(64, 62, 55, 0.84)),
        repeating-linear-gradient(
            135deg,
            transparent 0 18px,
            rgba(255, 255, 255, 0.035) 18px 19px
        );
}

.sd-tt-cta__title {
    margin: 0;
    color: #fff;
    font-family: var(--sd-heading-font, var(--sd-font-heading, "Playfair Display", serif));
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: center;
}


/* ── Brizy ───────────────────────────────────────────────────── */

.brz-wp-shortcode .sd-dest-timetide,
.brz-shortcode .sd-dest-timetide,
.brz .sd-dest-timetide {
    width: 100% !important;
    max-width: none !important;
}

.sd-dest-timetide h1,
.sd-dest-timetide h2,
.sd-dest-timetide h3,
.sd-dest-timetide .sd-tt-heading__txt,
.sd-dest-timetide .sd-tt-hero__title,
.sd-dest-timetide .sd-tt-see__title,
.sd-dest-timetide .sd-tt-exp__title,
.sd-dest-timetide .sd-tt-route__title,
.sd-dest-timetide .sd-tt-when__month,
.sd-dest-timetide .sd-tt-cta__title,
.brz .sd-dest-timetide h1,
.brz .sd-dest-timetide h2,
.brz .sd-dest-timetide h3,
.brz .sd-dest-timetide .sd-tt-heading__txt,
.brz .sd-dest-timetide .sd-tt-hero__title,
.brz .sd-dest-timetide .sd-tt-see__title,
.brz .sd-dest-timetide .sd-tt-exp__title,
.brz .sd-dest-timetide .sd-tt-route__title,
.brz .sd-dest-timetide .sd-tt-when__month,
.brz .sd-dest-timetide .sd-tt-cta__title {
    font-family: var(--sd-heading-font, var(--sd-font-heading, inherit)) !important;
}

.brz .sd-dest-timetide h1,
.brz .sd-dest-timetide h2,
.brz .sd-dest-timetide h3,
.brz .sd-dest-timetide p,
.brz .sd-dest-timetide a,
.brz .sd-dest-timetide img {
    max-width: none;
}

.brz .sd-dest-timetide .sd-tt-hero,
.brz .sd-dest-timetide .sd-tt-cta,
.brz .sd-dest-timetide .sd-tt-minav.is-fixed {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.brz .sd-dest-timetide button.sd-tt-when__tab,
.brz .sd-dest-timetide .sd-tt-when__dot {
    color: #1a1a1a !important;
}

.brz .sd-dest-timetide .sd-tt-when__tab:hover .sd-tt-when__dot,
.brz .sd-dest-timetide button.sd-tt-when__tab:hover .sd-tt-when__dot {
    color: #fff !important;
}

.brz .sd-dest-timetide .sd-tt-when__tab.is-active .sd-tt-when__dot,
.brz .sd-dest-timetide button.sd-tt-when__tab.is-active .sd-tt-when__dot {
    color: #fff !important;
}


/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 991px) {
    .sd-tt-overview,
    .sd-tt-see,
    .sd-tt-routes {
        grid-template-columns: 1fr 1fr;
    }

    .sd-tt-exp {
        grid-template-columns: 1fr 1fr;
    }

    .sd-tt-hero__title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        letter-spacing: 0.12em;
    }
}

@media (max-width: 640px) {
    .sd-tt-hero {
        height: 78vh;
        min-height: 420px;
    }

    .sd-tt-overview,
    .sd-tt-overview--solo,
    .sd-tt-see,
    .sd-tt-exp,
    .sd-tt-routes,
    .sd-tt-gallery__grid {
        grid-template-columns: 1fr;
    }

    .sd-tt-overview__btns {
        flex-direction: column;
    }

    .sd-tt-btn {
        width: 100%;
    }

    .sd-tt-heading__rule {
        display: none;
    }

    .sd-tt-crumbs,
    .sd-tt-crumbbar {
        display: none;
    }
}
