/* =============================================================================
   HT Global Stylesheet
   Replaces: ht-banner.css + ht-widget.css (both now deleted)
   Also contains: cookie consent, scroll tables, utility classes
   migrated from WP Admin custom CSS (WP Admin editing discontinued 2026-06-16).
   ============================================================================= */


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 1 — Banner
   Natural ratio desktop · 2:3 portrait crop mobile · search CTA pill
   Applies to non-parallax banner mode only (.header-section__simple-image).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Collapse whitespace gap below inline-block img */
.header-section--with-banner .header-section__simple-image {
	overflow: hidden;
	line-height: 0;
}

.header-section--with-banner .header-section__simple-image picture {
	display: block;
}

/* Desktop: natural aspect ratio — no forced height, no object-fit override */
.header-section--with-banner .ht-banner-img {
	display: block;
	width: 100%;
	height: auto;
}

/* Mobile: center-crop same landscape image to 2:3 portrait (≈ 480×720) */
@media (max-width: 767px) {
	.header-section--with-banner .ht-banner-img {
		aspect-ratio: 2 / 3;
		object-fit: cover;
		object-position: center center;
	}
}

/* CTA button inside banner header */
.ht-banner-cta {
	display: inline-block;
	margin-top: 14px;
	padding: 10px 26px;
	background: #01A347;
	color: #fff !important;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	transition: background 0.18s ease;
	border: none;
	cursor: pointer;
	line-height: 1.4;
}

.ht-banner-cta:hover,
.ht-banner-cta:focus {
	background: #013C1A;
	color: #fff !important;
	text-decoration: none;
	outline: 2px solid rgba(255, 255, 255, 0.4);
	outline-offset: 2px;
}

/* Banner search pill — absolute within .header-section--with-banner */
.ht-banner-search {
	position: absolute;
	z-index: 5;
	bottom: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 88%;
	max-width: 640px;
	margin: 0;
}

.ht-banner-search__wrap {
	display: flex;
	align-items: center;
	height: 58px;
	border-radius: 29px;
	padding: 0 10px 0 18px;
	background: linear-gradient(
		to right,
		rgba(1, 163, 71, 0.18) 0%,
		rgba(0,   8, 18, 0.62) 100%
	);
	backdrop-filter: blur(18px) saturate(1.5);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	border: 1.5px solid rgba(255, 255, 255, 0.20);
	box-shadow:
		0 4px 32px rgba(0, 0, 0, 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ht-banner-search__sparkle {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	fill: rgba(255, 255, 255, 0.82);
	margin-right: 11px;
}

.ht-banner-search__input {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: none;
	outline: none;
	color: rgba(255, 255, 255, 0.90);
	font-size: 15px;
	font-family: inherit;
	font-style: italic;
	font-weight: 400;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
}

.ht-banner-search__input::placeholder {
	color: rgba(255, 255, 255, 0.55);
	font-style: italic;
}

.ht-banner-search__input::-webkit-search-cancel-button,
.ht-banner-search__input::-webkit-search-decoration { display: none; }

.ht-banner-search__btn {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #01A347;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin-left: 8px;
	transition: background 0.18s;
	box-shadow: 0 2px 12px rgba(1, 163, 71, 0.40);
}

.ht-banner-search__btn:hover,
.ht-banner-search__btn:focus {
	background: #013C1A;
	outline: 2px solid rgba(255, 255, 255, 0.40);
	outline-offset: 2px;
}

.ht-banner-search__ai-icon {
	width: 26px;
	height: 26px;
}

@media (min-width: 768px) {
	.ht-banner-search {
		bottom: auto;
		left: auto;
		right: 5%;
		top: 50%;
		transform: translateY(-50%);
		width: 400px;
		max-width: 400px;
	}

	.ht-banner-search__wrap {
		height: 52px;
		border-radius: 26px;
		padding: 0 8px 0 18px;
	}

	.ht-banner-search__sparkle {
		width: 15px;
		height: 15px;
		margin-right: 10px;
	}

	.ht-banner-search__input {
		font-size: 14px;
	}

	.ht-banner-search__btn {
		width: 40px;
		height: 40px;
		margin-left: 7px;
	}

	.ht-banner-search__ai-icon {
		width: 22px;
		height: 22px;
	}
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 2 — Lantern Widget (HT Unified Engagement Widget)
   Replaces: ht_mobile_cta_bar + ht_find_trek_pill
   z-index: 1001 · Mobile: hidden until 1500px scroll depth
   ═══════════════════════════════════════════════════════════════════════════ */

.ht-lantern {
    position: fixed;
    bottom: 1.75rem;
    right: 1.5rem;
    z-index: 1001;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ht-lantern.is-mobile {
    opacity: 0;
    visibility: hidden;
}

.ht-lantern.is-mobile.is-visible {
    opacity: 1;
    visibility: visible;
}

.ht-lantern-fab {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #DCA134;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(140, 92, 2, 0.26),
        0 1px 4px rgba(0, 0, 0, 0.10);
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.ht-lantern-fab:hover {
    background: #C8921E;
    transform: scale(1.06);
    box-shadow:
        0 6px 22px rgba(140, 92, 2, 0.32),
        0 2px 6px rgba(0, 0, 0, 0.13);
}

.ht-lantern-fab:focus-visible {
    outline: 2.5px solid #DCA134;
    outline-offset: 4px;
}

.ht-lantern-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: opacity 0.16s ease, transform 0.18s ease;
}

.ht-lantern-icon svg {
    width: 24px;
    height: 24px;
}

.ht-lantern-icon--mountain { color: #013C1A; opacity: 1; transform: scale(1) rotate(0deg); }
.ht-lantern-icon--close    { color: #ffffff; opacity: 0; transform: scale(0.5) rotate(-45deg); }

.ht-lantern.is-open .ht-lantern-fab {
    background: #013C1A;
    box-shadow:
        0 4px 18px rgba(1, 60, 26, 0.30),
        0 1px 4px rgba(0, 0, 0, 0.12);
}

.ht-lantern.is-open .ht-lantern-icon--mountain {
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
}

.ht-lantern.is-open .ht-lantern-icon--close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.ht-lantern-sats {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52px;
    height: 52px;
    overflow: visible;
    pointer-events: none;
}

.ht-lantern.is-open .ht-lantern-sats {
    pointer-events: auto;
}

.ht-lantern-sat {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    transform: translate(0, 0) scale(0.15);
    opacity: 0;
    transition:
        transform 0.26s cubic-bezier(0.34, 1.52, 0.64, 1),
        opacity 0.18s ease;
    pointer-events: none;
    display: block;
    text-decoration: none;
}

.ht-lantern.is-open .ht-lantern-sat--contact {
    transform: translate(-10px, -108px) scale(1);
    opacity: 1;
    transition-delay: 0s;
    pointer-events: auto;
}

.ht-lantern.is-open .ht-lantern-sat--trek {
    transform: translate(-62px, -98px) scale(1);
    opacity: 1;
    transition-delay: 0.07s;
    pointer-events: auto;
}

.ht-lantern.is-open .ht-lantern-sat--search {
    transform: translate(-100px, -50px) scale(1);
    opacity: 1;
    transition-delay: 0.14s;
    pointer-events: auto;
}

.ht-lantern-sat--search  { transition-delay: 0s; }
.ht-lantern-sat--trek    { transition-delay: 0.06s; }
.ht-lantern-sat--contact { transition-delay: 0.12s; }

.ht-lantern-sat-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #DCA134;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 3px 10px rgba(140, 92, 2, 0.16),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.ht-lantern-sat-btn svg {
    width: 20px;
    height: 20px;
    color: #013C1A;
    flex-shrink: 0;
}

.ht-lantern-sat-btn:hover,
a.ht-lantern-sat:hover .ht-lantern-sat-btn {
    background: #FBF2DF;
    border-color: #C8921E;
    transform: scale(1.08);
}

.ht-lantern-sat-btn:focus-visible {
    outline: 2px solid #DCA134;
    outline-offset: 2px;
}

.ht-lantern-sat--trek .ht-lantern-sat-btn {
    border-color: #01A347;
}

.ht-lantern-sat--trek .ht-lantern-sat-btn svg {
    color: #01A347;
}

.ht-lantern-sat--trek .ht-lantern-sat-btn:hover,
.ht-lantern-sat--trek:hover .ht-lantern-sat-btn {
    background: #F0F9F4;
    border-color: #018a3c;
}

.ht-lantern-sat-label {
    position: absolute;
    right: calc(100% + 9px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: #013C1A;
    color: #ffffff;
    font-family: 'Karla', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.14s ease;
}

.ht-lantern-sat-label::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-width: 0;
    border-left-color: #013C1A;
}

.ht-lantern-sat:hover .ht-lantern-sat-label {
    opacity: 1;
}

.ht-lantern-sat--trek .ht-lantern-sat-label {
    background: #01A347;
}

.ht-lantern-sat--trek .ht-lantern-sat-label::after {
    border-left-color: #01A347;
}

.ht-lantern-search-tip {
    display: none;
    position: absolute;
    right: calc(100% + 10px);
    bottom: 0;
    width: 252px;
    background: #ffffff;
    border-radius: 8px;
    border-top: 3px solid #DCA134;
    box-shadow:
        0 6px 24px rgba(1, 60, 26, 0.13),
        0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 10px 10px 8px;
    z-index: 10;
    animation: ht-widget-fade-in 0.17s ease;
}

.ht-lantern-sat--search.has-panel .ht-lantern-search-tip {
    display: block;
}

.ht-lantern-search-form {
    display: flex;
    gap: 0;
}

.ht-lantern-search-input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid #C4D8C4;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 7px 10px;
    font-size: 12px;
    font-family: 'Karla', Arial, sans-serif;
    color: #1a1a1a;
    background: #F5FAF5;
    outline: none;
    transition: border-color 0.14s, background 0.14s;
}

.ht-lantern-search-input::placeholder {
    color: #BBBBBB;
}

.ht-lantern-search-input:focus {
    border-color: #01A347;
    background: #ffffff;
}

.ht-lantern-search-submit {
    background: #013C1A;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 7px 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.14s;
    flex-shrink: 0;
}

.ht-lantern-search-submit svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.ht-lantern-search-submit:hover {
    background: #01A347;
}

.ht-lantern-search-hint {
    font-size: 9.5px;
    color: #BBBBBB;
    font-family: 'Karla', Arial, sans-serif;
    margin-top: 6px;
    line-height: 1.3;
}

.ht-lantern-contact-card {
    display: none;
    position: absolute;
    right: calc(100% + 10px);
    bottom: 0;
    width: 224px;
    background: #ffffff;
    border-radius: 8px;
    border-top: 3px solid #DCA134;
    box-shadow:
        0 6px 24px rgba(1, 60, 26, 0.13),
        0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 10;
    animation: ht-widget-fade-in 0.17s ease;
}

.ht-lantern-sat--contact.has-panel .ht-lantern-contact-card {
    display: block;
}

.ht-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    text-decoration: none;
    border-bottom: 1px solid #F2F2F0;
    transition: background 0.12s ease;
}

.ht-contact-row:last-child {
    border-bottom: none;
}

.ht-contact-row:hover {
    background: #F5FAF5;
}

.ht-contact-row-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ht-contact-row-icon svg {
    width: 20px;
    height: 20px;
    color: #013C1A;
}

.ht-contact-row-icon--wa svg {
    width: 22px;
    height: 22px;
}

.ht-contact-row-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ht-contact-row-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #013C1A;
    font-family: 'Karla', Arial, sans-serif;
    line-height: 1.2;
}

.ht-contact-row-sub {
    font-size: 10px;
    color: #888888;
    font-family: 'Karla', Arial, sans-serif;
    line-height: 1.2;
}

@keyframes ht-widget-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .ht-lantern {
        bottom: 1.25rem;
        right: 1rem;
    }

    .ht-lantern.is-open .ht-lantern-sat--contact {
        transform: translate(-6px, -100px) scale(1);
    }

    .ht-lantern.is-open .ht-lantern-sat--trek {
        transform: translate(-56px, -90px) scale(1);
    }

    .ht-lantern.is-open .ht-lantern-sat--search {
        transform: translate(-90px, -44px) scale(1);
    }

    .ht-lantern-sat-label { display: none; }

    .ht-lantern-search-tip    { width: 220px; }
    .ht-lantern-contact-card  { width: 200px; }
}

/* CF7 Honeypot — visually hidden; bots fill it, humans never see it */
.ht-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 3 — Cookie Consent Bar
   Migrated from WP Admin custom CSS (2026-06-16). functions.php outputs
   the bar with class="ht-cookie-active" (no inline display:flex).
   ═══════════════════════════════════════════════════════════════════════════ */

#ht-cookie-consent {
    display: none; /* JS adds .ht-cookie-active to show */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #013c1a;
    color: #ffffff;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    z-index: 9998;
    font-family: 'Karla', Arial, sans-serif;
    font-size: 12px;
    box-sizing: border-box;
}

#ht-cookie-consent.ht-cookie-active {
    display: flex;
}

@media (min-width: 1024px) {
    #ht-cookie-consent {
        width: 300px;
        bottom: 30px;
        right: 30px;
        left: auto;
        padding: 20px;
    }
}

.cookie-text {
    flex: 1;
    margin-right: 15px;
    line-height: 1.4;
}

.consent-ok-button {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.consent-ok-button:hover {
    background-color: #01a347;
    color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 4 — Scroll Tables (.ht-scroll)
   Canonical version (Utilities V3). Migrated from WP Admin (2026-06-16).
   The earlier duplicate in WP Admin theme custom CSS is superseded by this.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --ht-green:            #01a347;
    --ht-scroll-head-bg:   #01a347;
    --ht-scroll-head-text: #ffffff;
    --ht-zebra:            #f5f5f5;
    --ht-red:              #c62828;
    --ht-amber:            #b26a00;
}

.ht-scroll {
    overflow: auto;
    max-height: clamp(280px, 50vh, 600px);
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.ht-scroll table {
    width: 100% !important;
    min-width: 560px;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #dededf;
    text-align: left;
}

.ht-scroll caption {
    text-align: left;
    font-weight: 700;
    margin: 0.35rem 0 0.5rem;
}

.ht-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--ht-scroll-head-bg);
    color: var(--ht-scroll-head-text);
    padding: 6px 8px;
    border: 1px solid #dededf;
}

.ht-scroll tbody td {
    padding: 6px 8px;
    border: 1px solid #dededf;
}

.ht-scroll tbody tr:nth-child(even) {
    background: var(--ht-zebra);
}

.ht-scroll table th,
.ht-scroll table td {
    width: 50% !important; /* two-column tables fill wrapper 50/50 */
}

/* Defensive override: WPBakery rows inject overflow:hidden — remove when WPBakery fully retired */
.vc_row .ht-scroll { overflow: visible; }


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 5 — Utility Classes
   Icon lists, key-value dl, map link button.
   Migrated from WP Admin Utilities V3 (2026-06-16).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Icon lists — decorative icons paired with text labels */
.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.35rem 0; }

.icon-list .i {
    flex: 0 0 1.15em;
    width: 1.15em;
    line-height: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.icon-list--tick .i { color: var(--ht-green); }
.icon-list--tick .i::before { content: "✔"; }
.icon-list--x    .i { color: var(--ht-red); }
.icon-list--x    .i::before { content: "✖"; }
.icon-list--warn .i { color: var(--ht-amber); }
.icon-list--warn .i::before { content: "⚠"; }

.icon-list li > span:last-child { flex: 1; }
.icon-list li > span { word-wrap: break-word; overflow-wrap: anywhere; }

/* Key-value definition list */
.kv { display: grid; grid-template-columns: 1fr 2.2fr; gap: 0.4rem 0.8rem; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; }

/* Map link button — no heavy iframe embed */
.map-link {
    display: inline-block;
    padding: 0.6rem 0.9rem;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    text-decoration: none;
}

.map-link:hover,
.map-link:focus {
    outline: none;
    border-color: #9c9c9c;
}
