/* reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* Custom Resets */
button {
  border: none;
  background: none;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
* {
}

@font-face {
  font-family: 'SpeziaCompleteTrial-Upright';
  src: url('../fonts/Spezia_Web_Complete_Upright_Trial.woff2') format('woff2');
}

body {
  margin: 0 auto;
  padding-bottom: 0;
  font-family: 'Raleway';
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

header.main-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: white;
  padding-top: 20px;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 20px;
  margin-bottom: 80px;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-box-shadow: 0px 10px 37px -10px rgba(204, 204, 204, 0.48);
  -moz-box-shadow: 0px 10px 37px -10px rgba(204, 204, 204, 0.48);
  box-shadow: 0px 10px 37px -10px rgba(204, 204, 204, 0.48);
}

header .center {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*=============================================>>>>>
= Navigation =
===============================================>>>>>*/
nav {
  margin: auto 0;
  float: right;
  max-width: 400px;
  display: block;
}

nav ul {
  padding: 30px 0px 10px 0px;
}

li {
  list-style: none;
  float: left;
  display: inline-block;
  text-align: center;
}

.blog-grid a {
  color: #fff;
  text-align: right;
  padding: 14px 24px;
  text-decoration: none;
  font-size: 24px;
}

nav.a {
  border-radius: 3px;
}

a.blog {
  background: transparent;
  border-radius: 6px;
  color: #37a3ec;
}

a.blog:hover {
  background: rgba(55, 163, 236, 0.1);
}

a.blog.active {
  background: #37a3ec;
  color: #fff;
}

a.map {
  background: transparent;
  color: #37a3ec;
  margin-left: 12px;
  border-radius: 6px;
}

a.map:hover {
  background: rgba(55, 163, 236, 0.1);
}

a.map.active {
  background: #37a3ec;
  color: #fff;
}

.navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navigation-element {
  padding: 0.5em 0.9em;
  display: flex;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.navigation-element svg {
  margin-right: 8px;
  flex-shrink: 0;
}

h2.mobile-title {
  display: none;
}

.navigation__toggler {
  display: none;
}

/*=============================================>>>>>
= Sub-Navigation =
===============================================>>>>>*/
div.back-button a {
  display: flex;
  max-width: 300px;
  align-items: center;
  color: #000000;
}

div.back-button span {
  display: inline-block;
  margin-left: 18px;
}

/*=============================================>>>>>
= Logo =
===============================================>>>>>*/
div.logo {
  min-width: 30%;
  max-width: 300px;
}

div.logo > img {
  float: left;
  width: 80%;
  height: auto;
}

/*=============================================>>>>>
= Blog Grid =
===============================================>>>>>*/
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-row-gap: 30px;
  grid-column-gap: 30px;
}

.blog-grid .blog-element:first-child {
  grid-column: 1 / -1;
  min-height: 500px;
  padding-top: 0;
}

.blog-grid .blog-element {
  color: white;
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  padding-top: calc(9 / 16 * 20%);
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12),
    0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.blog-element-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.blog-grid .blog-element:hover,
.blog-grid .blog-element:focus {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 50px 12px rgba(0, 0, 0, 0.18);
}

.blog-grid .blog-element:hover .blog-element-bg,
.blog-grid .blog-element:focus .blog-element-bg {
  transform: scale(1);
}

.blog-grid .blog-element:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 8px;
}

.blog-post-info {
  padding: 36px;
  font-size: 2.45rem;
  font-family: 'Raleway', sans-serif;
  position: relative;
  z-index: 2;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
}

.blog-post-info article:nth-child(first) {
  padding: 100px;
}

.blog-post-info h3 {
  font-weight: 600;
  letter-spacing: 1pt;
  font-size: 30px;
}

.blog-element time {
  display: inline-block;
  font-size: 1.25rem;
  letter-spacing: 1;
  margin-bottom: 10px;
}

/*=============================================>>>>>
= Tour Facts (Komoot-style) =
===============================================>>>>>*/
.tour-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 24px 0;
}

.tour-facts__stat {
  text-align: center;
  padding: 16px 6px;
  border-right: 1px solid #f0f0f0;
}

.tour-facts__stat:last-child {
  border-right: none;
}

.tour-facts__stat i {
  width: 20px;
  height: 20px;
  margin-bottom: 8px;
}

.tour-facts__stat--ascent i { color: #e65100; }
.tour-facts__stat--descent i { color: #1565c0; }
.tour-facts__stat--elevation i { color: #2e7d32; }
.tour-facts__stat--distance i { color: #6a1b9a; }
.tour-facts__stat--duration i { color: #546e7a; }

.tour-facts__val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #222;
  line-height: 1;
}

.tour-facts__unit {
  font-size: 0.7rem;
  font-weight: 500;
  color: #999;
}

.tour-facts__lbl {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #bbb;
  margin-top: 4px;
}

/*=============================================>>>>>
= Blog Detail =
===============================================>>>>>*/
.blog-detail {
  margin-top: 30px;
}

.blog-detail img {
  width: 100%;
  border-radius: 6px;
}

.heroImage {
  color: white;
  height: 300px;
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  padding-top: calc(9 / 16 * 20%);
  background-size: cover;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  margin-bottom: 32px;
}

.blog-detail time {
  display: inline-block;
  margin-bottom: 10px;
  height: 24px;
  font-size: 20px;
  font-weight: bold;
}

.blog-detail header {
  z-index: 14;
  display: flex;
  flex-direction: column;
}

.blog-detail ul.tags {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 0 10px 0;
  margin-bottom: 20px;
}

.blog-detail ul.tags li {
  margin-right: 10px;
  margin-bottom: 10px;
}

.blog-detail .tags a {
  font-family: 'Raleway';
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: #ff7070;
  border-radius: 4px;
  padding: 10px;
  text-decoration: none;
  display: inline-block;
}

.blog-detail h1 {
  margin-bottom: 30px;
  font-size: 40px;
  font-weight: bold;
}

.blog-detail h2 {
  margin-top: 80px;
  font-size: 30px;
  font-weight: 500;
}

.blog-detail p {
  line-height: 42px;
  font-size: 24px;
  margin-bottom: 60px;
}

.blog-detail > p {
  margin-bottom: 70px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: auto;
  grid-column-gap: 30px;
  grid-row-gap: 30px;
  margin-top: 30px;
}

.gallery-grid figure {
}

/*=============================================>>>>>
= Related Posts Section =
===============================================>>>>>*/

/* Prevent horizontal scrollbar from 100vw trick */
html, body {
  overflow-x: hidden;
}

.related-posts {
  position: relative;
  margin-top: 450px;
  margin-bottom: 0;
  padding: 0;
  overflow: visible;
  background: #FF7070;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Extend interactive area above section to cover mountains */
.related-posts::before {
  content: '';
  position: absolute;
  top: -450px;
  left: 0;
  right: 0;
  height: 450px;
}

/* Mountain Parallax Container - extends above section */
.mountain-parallax {
  position: absolute;
  top: -150px;
  left: -50px;
  right: -50px;
  bottom: 250px;
  pointer-events: none;
  overflow: visible;
}

.mountain-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
}

/* Mountain images from assets */
.mountain-img {
  position: absolute;
  bottom: 0;
  display: block;
  height: auto;
  width: 120%;
  min-width: 1400px;
  max-width: none;
  transform: scale(0.7) translateZ(0);
  transform-origin: bottom center;
}

/* mountain-1.svg - positioned on left side */
.mountain-img--left {
  left: -20%;
}

/* mountain-2.svg - positioned on right side */
.mountain-img--right {
  right: -20%;
  left: auto;
  transform: scale(0.60) translateZ(0);
}

/* mountain-footer.svg - front layer covering bottom */
.mountain-img--footer {
  left: -5%;
  bottom: -50px;
  width: 120%;
  min-width: 1600px;
  transform: scale(1.1) translateZ(0);
  transform-origin: bottom center;
}

/* Depth-based z-index */
.mountain-layer[style*="--depth: 1"] { z-index: 1; }
.mountain-layer[style*="--depth: 2"] { z-index: 2; }
.mountain-layer[style*="--depth: 3"] { z-index: 3; }

/* Content Layer - above mountains */
.related-posts__content {
  position: relative;
  z-index: 10;
  padding: 280px 40px 40px; /* More padding-top for mountain space */
  max-width: 920px;
  margin: 0 auto;
}

/* Footer area within related-posts - solid coral background */
.related-posts__footer {
  position: relative;
  z-index: 10;
  background: #EE605E;
  padding: 100px 40px 80px;
  margin-top: 0;
}

.related-posts__title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25), 0 0 30px rgba(255, 112, 112, 0.5);
}

.related-posts__title svg {
  flex-shrink: 0;
}

/* Card Grid */
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Individual Card - matching the design */
.related-card {
  display: flex;
  flex-direction: column;
  background: #ff7070;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-height: 320px;
}

.related-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* Card Header - coral background with text */
.related-card__header {
  padding: 16px 18px;
  flex-shrink: 0;
}

.related-card__date {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
  font-weight: 500;
}

.related-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

/* Card Image - fills bottom portion */
.related-card__image {
  flex: 1;
  min-height: 180px;
  overflow: hidden;
  position: relative;
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e86363 0%, #d45555 100%);
}

/*=============================================>>>>>
= Footer =
===============================================>>>>>*/
footer {
  display: none;
  position: relative;
}

svg.mountain2 {
  position: absolute;
  bottom: 0;
  max-width: 100%;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
.hidden {
  display: none !important;
  visibility: hidden;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clear-spacing {
  margin: 0;
  padding: 0;
}

.inset-both-sides {
  padding-left: 20px;
  padding-right: 20px;
}

.clearfix:after {
  content: '.';
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

html[xmlns] .clearfix {
  display: block;
}

* html .clearfix {
  height: 1%;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
/*=============================================>>>>>
	 = max-width: 1240px =
	 ===============================================>>>>>*/
@media only screen and (max-width: 1240px) {
  .container {
    padding-left: 80px;
    padding-right: 80px;
  }

  header.main-header {
    position: sticky;
    padding-left: 80px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 80px;
  }

  nav {
    float: none;
  }

  .navigation {
    max-width: none;
    width: 60%;
  }

  .blog-grid .blog-element {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media print,
  (-o-min-device-pixel-ratio: 5/4),
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 120dpi) {
}

/*=============================================>>>>>
	= Related Posts Responsive =
	===============================================>>>>>*/
@media only screen and (max-width: 900px) {
  .related-posts {
    margin-top: 450px; /* Tablet */
  }

  .related-posts__content {
    padding: 100px 30px 80px;
  }

  .related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .related-posts__grid .related-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .related-card {
    min-height: 280px;
  }
}

@media only screen and (max-width: 600px) {
  .related-posts {
    margin-top: 400px; /* Mobile */
    min-height: 650px;
  }

  .related-posts__content {
    padding: 80px 20px 60px;
  }

  .related-posts__title {
    font-size: 18px;
  }

  .related-posts__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .related-posts__grid .related-card:nth-child(3) {
    max-width: 100%;
  }

  .related-card {
    min-height: 260px;
  }

  .related-card__image {
    min-height: 150px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .mountain-layer {
    transform: none !important;
  }

  .related-card {
    transition: none;
  }
}

/*=============================================>>>>>
	= max-width: 756px =
	===============================================>>>>>*/
@media only screen and (max-width: 880px) {
  .container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .blog-post-info {
    font-size: 2rem;
    padding: 32px;
  }

  .blog-grid .blog-element {
    min-height: 20vh;
  }

  .blog-grid .blog-element:first-child {
    min-height: 40vh;
  }

  .blog-post-info h3 {
    font-size: 30px;
  }

  .blog-detail h1 {
    font-size: 32px;
  }

  header.main-header {
    position: sticky;
    margin-bottom: 30px;
    padding-top: 20px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 20px;
    height: 64px;
  }

  .navigation {
    flex-direction: column;
  }

  .navigation a {
    margin-bottom: 10px;
  }

  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-row-gap: 20px;
  }

  .gallery-grid p {
  }

  nav.navigation {
    opacity: 0;
    display: none;
    transition: 0.3s ease-in all;
  }

  header.main-header.navigation--active nav {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    justify-content: start;
    text-align: center;
    box-sizing: border-box;
    height: 100vh;
    width: 100vw;
    margin-top: 0px;
    padding-top: 138px;
    background: white;
    opacity: 1;
  }

  div.back-button a {
    font-size: 1.3rem;
  }

  /*=============================================>>>>>
	= Mobile Menu =
	===============================================>>>>>*/
  nav a {
    border-radius: 8px;
  }

  a.blog svg {
    height: auto;
    width: 64px;
  }

  a.map {
    margin-left: 0px;
  }

  a.map svg {
    height: auto;
    width: 72px;
  }

  .navigation-element {
    padding: 3.6rem;
    font-size: 2.5rem;
    flex-direction: column;
  }

  .navigation-element svg {
    margin-right: 0px;
    margin-bottom: 20px;
  }

  h2.mobile-title--active {
    display: inherit;
    font-size: 30px;
    font-weight: bold;
    z-index: 1;
  }

  .logo--active {
    display: none;
  }

  .navigation__toggler {
    display: inherit;
    position: relative;
    z-index: 1;
  }

  .navigation__toggler img.close {
    display: none;
  }

  .navigation__toggler img.open {
    display: inherit;
  }

  .navigation__toggler--active img.close {
    display: inherit;
  }

  .navigation__toggler--active img.open {
    display: none;
  }

  .inset-both-sides {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Tour Facts responsive */
@media only screen and (max-width: 600px) {
  .tour-facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .tour-facts__stat:nth-child(3) {
    border-right: none;
  }
}

/* Landscape iPhoneX */
@media only screen and (max-width: 600px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  header.main-header {
    margin-bottom: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  div.logo > img {
    width: 60%;
  }

  .navigation-element {
    padding: 0.4em;
    font-size: 1.2em;
  }

  .blog-post-info {
    padding: 30px;
  }

  .blog-post-info h3 {
    font-size: 22px;
  }

  .blog-detail p {
    font-size: 20px;
    line-height: 34px;
  }
}

@media only screen and (max-device-width: 812px) and (orientation: landscape) {
  header.main-header {
    margin-bottom: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  header.main-header {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  div.logo > img {
    width: 50%;
  }

  .blog-grid .blog-element {
    grid-column: inherit;
  }
}

/* ==========================================================================
   Print styles
   ========================================================================== */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: ' (' attr(href) ')';
  }

  abbr[title]:after {
    content: ' (' attr(title) ')';
  }

  a[href^='#']:after,
  a[href^='javascript:']:after {
    content: '';
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
