/* ========================================================================== */
/* Variables                                                                  */
/* ========================================================================== */
:root{
  /* Colors */
  --color-base: #f9f9f9;
  --color-base-2: #ffffff;
  --color-contrast: #111111;
  --color-contrast-2: #636363;

  /* Typography */
  --font-body: 'Lora', serif;
  --font-heading: 'Fraunces', serif;

  /* Layout scales */
  --space-10: 1rem;
  --space-20: clamp(1.5rem, 2vw, 2rem);
  --space-40: clamp(4rem, 5vw, 5rem);
  --space-30: clamp(3rem, 4vw, 4rem);
  --space-50: clamp(6.5rem, 8vw, 8rem);
  --container-max: 1100px;

  /* Navigation */
  --nav-offset: 5.375rem; /* 86px -> 5.375rem */
  --subpage-header-height: 100px;

  /* Activity reading stripe */
  --stripe-height: 14rem;
  --stripe-pad-y: clamp(2rem, 4vw, 2.8rem);
  --stripe-pad-x: clamp(1.25rem, 4vw, 3rem);
  --activity-cta-width: 12rem;

  /* Bootstrap link colors override */
  --bs-link-color: var(--color-contrast);
  --bs-link-hover-color: var(--color-contrast-2);

  /*
    Breakpoint variables are for documentation and for use INSIDE rules.
    Do not use them in @media queries due to inconsistent browser/tool support.
  */
  --breakpoint-main: 900px;
  --breakpoint-sliders: 1200px;
}

/* ========================================================================== */
/* Base & Typography                                                          */
/* ========================================================================== */
html,body{margin:0;padding:0}
body{
  background-color: var(--color-base);
  color: var(--color-contrast);
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.379), 1.14rem);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: var(--color-contrast); text-decoration: none; }
a:hover{ color: var(--color-contrast-2); text-decoration: none; }

h1,h2,h3,h4,h5,h6{
  color: var(--color-contrast);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em 0;
}
h1{font-size: clamp(2.418rem, 2.418rem + ((1vw - 0.2rem) * 2.974), 4.5rem); line-height: 1.15;}
h2{font-size: clamp(2.2rem, 2.2rem + ((1vw - 0.2rem) * 2.571), 4rem);}
h3{font-size: clamp(1.502rem, 1.502rem + ((1vw - 0.2rem) * 1.426), 2.5rem);}
h4{font-size: clamp(1.119rem, 1.119rem + ((1vw - 0.2rem) * 0.901), 1.75rem);}
h5{font-size: clamp(0.918rem, 0.918rem + ((1vw - 0.2rem) * 0.66), 1.38rem);}

p{ margin: 0 0 1.4em 0; }
.lead {
  font-size: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.474), 1.4rem);
  font-weight: 300;
  line-height: 1.6;
}


/* Sections spacing */
.section{ padding-top: clamp(4rem, 8vw, 8rem); padding-bottom: clamp(4rem, 8vw, 8rem); }

/* ========================================================================== */
/* Site Logo                                                                  */
/* ========================================================================== */
.site-logo--on-image {
  display: block;
  position: absolute;
  top: var(--nav-offset);
  left: clamp(1rem, 4vw, 3rem);
  transform: translateY(-50%);
  z-index: 10;
  margin: 0;
  pointer-events: auto;
  overflow: hidden;
}

.site-logo--on-image img {
    width: 400px;
    height: auto;
    max-width: 100%;
}

/* Cropping behavior for logo next to the navigation (HOMEPAGE ONLY) */
@media (min-width: 901px) and (max-width: 1550px) {
  .home .site-logo--with-nav {
    width: 158px;
  }
  .home .site-logo--with-nav img {
    max-width: none;
  }
}

@media (max-width: 900px) {
    .site-logo--on-image {
        top: 2rem;
        transform: translateY(0);
        width: 300px; /* Adjust mobile logo size */
    }
}


/* ========================================================================== */
/* Navigation (Homepage)                                                      */
/* ========================================================================== */

.home .site-header {
  position: relative;
  height: 0;
  z-index: 1000;
}
.site-nav {
  position: fixed;
  top: 0.875rem;
  right: clamp(1rem, 4vw, 2rem);
  z-index: 1100;
}
.nav-list {
  display: none;
}

/* --- Mobile: Toggle & Close Buttons --- */
.menu-toggle {
  appearance: none;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: .5rem;
  border-radius: .5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.menu-toggle svg {
  fill: currentColor;
}
.menu-close {
  display: none;
}
.site-nav.is-open .menu-toggle {
  display: none;
}
.site-nav.is-open .menu-close {
  display: inline-flex;
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  z-index: 1202;
  cursor: pointer;
}

/* --- Mobile: Overlay --- */
.nav-backdrop {
  display: none;
}
.site-nav.is-open .nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  z-index: 1200;
}
.site-nav.is-open .nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.25rem;
  position: fixed;
  inset: 0;
  z-index: 1201;
  background: rgba(17, 17, 17, 0.98);
  color: #fff;
}
.site-nav.is-open .nav-list li a {
  color: #fff;
  padding: .8rem 1rem;
  display: block;
  font-family: var(--font-heading);
}

/* --- Mobile: Logo in Overlay --- */
.nav-logo--mobile {
  display: block;
  text-align: center;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}
.nav-logo--mobile img {
  width: 280px;
  height: auto;
  filter: invert(1) drop-shadow(0 0 5px rgba(0,0,0,0.7));
}

@media (min-width: 901px) {
  .home .menu-toggle,
  .home .menu-close,
  .home .nav-backdrop,
  .nav-logo--mobile {
    display: none;
  }

  /* --- Desktop: Pill Menu --- */
  .site-nav {
    left: 50%;
    right: auto;
    top: var(--nav-offset);
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: .75rem;
    background-color: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    pointer-events: auto;
    position: static; /* Override fixed positioning */
  }
  .nav-list li a {
    display: block;
    color: #f9f9f9;
    padding: .75rem 1.5rem;
    border-radius: 2.75rem;
    transition: background-color .2s ease, color .2s ease;
    white-space: nowrap;
    font-family: var(--font-heading);
  }
  .nav-list li a:hover {
    background: #000;
    color: #f9f9f9;
  }
}

/* ========================================================================== */
/* Subpage Header & Navigation                                                */
/* ========================================================================== */
.back-link {
  display: inline-block;
  margin-top: var(--space-30);
  font-size: 1.2rem;
  color: var(--color-contrast-2);
  text-decoration: none;
    font-weight: bold;
}
.back-link:hover {
  color: var(--color-contrast);
}


/* ========================================================================== */
/* Hero                                                                       */
/* ========================================================================== */
.section-hero{
    padding:0;
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(15deg, rgba(0,0,0,0.75) 10%, rgba(0,0,0,0.3) 40%, transparent 60%);
}
.hero-reading-panel{
  position: relative;
  z-index: 2;
  padding: 0 var(--space-20) clamp(8rem, 15vh, 15rem);
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}
/* Optional logo in the bottom left corner (e.g. certification), Home Page > Hero > Badge */
.hero-badge {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4.5rem);
  bottom: clamp(1.5rem, 5vw, 4rem);
  z-index: 3;
  line-height: 0;
}
.hero-badge img {
  display: block;
  width: auto;
  height: clamp(44px, 5.5vw, 72px);
  max-width: 40vw;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, .35));
}
.hero-badge a { display: block; transition: opacity .2s ease; }
.hero-badge a:hover { opacity: .85; }
.hero-reading-panel h1, .hero-reading-panel h2, .hero-reading-panel h3, .hero-reading-panel h5{
  color: #f9f9f9;
  text-shadow: 0 0 12px rgba(0,0,0,0.8);
}

.section-hero--activity {
  min-height: 80vh;
  display: flex;
  position: relative;
}
.section-hero--activity .hero-overlay {
  min-height: 100%;
}
.section-hero--activity .hero-reading-panel {
  min-height: 100%;
  justify-content: flex-end;
  padding: 2rem 2rem 6rem 2rem;
}

/* ========================================================================== */
/* Sliders (Global)                                                           */
/* ========================================================================== */
.js-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: var(--gallery-instance-height, 60vh);
}
.swiper-wrapper {
  display: flex;
}
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  overflow: hidden;
}
.slide-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js-slider .swiper-wrapper,
.js-slider .swiper-slide {
    height: 100%;
}

/* --- Slider Navigation (Unified) --- */
/* Visible on every slider with more than one slide: shows that there is more content, without competing with it */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-contrast);
    background: rgba(255,255,255,0.7);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: background-color .2s ease, opacity .2s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255,255,255,0.92);
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1rem;
  font-weight: bold;
}
@media (max-width: 767.98px) {
  .swiper-button-next,
  .swiper-button-prev { width: 2.25rem; height: 2.25rem; }
  .swiper-button-next:after,
  .swiper-button-prev:after { font-size: .85rem; }
}
.swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.6;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.swiper-pagination-bullet-active {
    opacity: 1;
}


.slider--gallery .swiper-pagination {
    bottom: 1rem;
}



/* ========================================================================== */
/* Activities                                                                 */
/* ========================================================================== */
.bg-tint{
  background-color:#f9f2ed;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Reading stripe (slides) */
.slide-content{
  position:absolute; left:0; right:0; bottom:0; z-index:4;
  height: var(--stripe-height); overflow: hidden; pointer-events: auto;
}
.activity-panel{ color:#fff; }
.activity-panel--highlight::before,
.slide-content.activity-panel::before{
  content:""; position:absolute; left:50%; transform:translateX(-50%);
  bottom:0; width:100vw; height:100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.2) 100%);
  z-index:0; pointer-events:none;
}
.activity-panel__inner{
  position:relative; z-index:1; display:flex; align-items:flex-end; gap:clamp(1.5rem, 4vw, 3rem);
  height: 100%; padding: var(--stripe-pad-y) var(--stripe-pad-x);
}
.activity-panel__content{
  flex: 1 1 auto;
  min-width: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.activity-panel__content h3, .activity-panel__content h4{ color:#fff; margin:0; }
.activity-panel__content p{ padding-top:1rem; color:rgba(255,255,255,0.9); user-select: none; }

.activity-panel__cta{
  width: 100%; display:flex; justify-content:flex-end; user-select: none;
}
@media (min-width: 901px){
  .activity-panel__cta{ width: auto; flex: 0 0 var(--activity-cta-width); justify-content: flex-end; }
}
.activity-panel__cta .btn{
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent;
  border:1px solid rgba(255,255,255,0.6); color:#fff;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.activity-panel__cta .btn:hover{
  background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.8);
}

/* Prevent text selection during drag */
.js-slider *{ user-select: none; -webkit-user-drag: none; }

/* Activities sections spacing & backgrounds */
.activities-section{
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.activities-type-description {
  margin-bottom: 1.5rem;
}
.section-with-bg-cover {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.activities-land {
  background-image: url('excursions-bg-land.webp');
}
.activities-boat {
  background-image: url('excursions-bg-boat.webp');
}
/* Consecutive tinted sections (Activities, Slow Life) read as one block: no double padding */
.section.bg-tint + .section.bg-tint {
  padding-top: 0;
}
.slow-life.section {
  padding-bottom: clamp(8rem, 16vw, 16rem); /* matches the former nesting inside the activities section */
}

/* ========================================================================== */
/* FAQ (homepage) – no specific styling yet, only what the expand/collapse needs */
/* ========================================================================== */
.faq-item__question { cursor: pointer; }
.faq-item__answer {
  padding-left: 1.25rem;
  font-style: italic;
}

/* Optional button at the end of a homepage section (maleo_section_button) */
.section-button-wrap { margin-top: var(--space-30); }
.section-button-text {
  max-width: 40rem;
  margin-bottom: 1rem;
}
.section-button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.2rem;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--color-contrast);
  background: var(--color-base-2); /* solid, so it reads well on patterned section backgrounds */
  border: 1px solid var(--color-contrast);
  border-radius: .33rem;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.section-button:hover { color: var(--color-base); background: var(--color-contrast); }
.section-button__icon { flex: 0 0 auto; }

/* ========================================================================== */
/* Price list (template-parts/price-list.php)                                 */
/* ========================================================================== */
/* Activity list under a homepage slider: a strip attached to the slider (same width) opens the slider's
   activities as a plain list with their prices; opening is animated in app.js */
.activity-list__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: .02em;
  color: #fff;
  background-color: rgba(17, 17, 17, .86);
  transition: background-color .2s ease;
}
.activity-list__strip::-webkit-details-marker { display: none; }
.activity-list__strip:hover { background-color: rgba(17, 17, 17, .96); }
.activity-list__strip:focus-visible { outline: 2px solid var(--color-contrast); outline-offset: 3px; }
/* chevron pointing down, up when open */
.activity-list__arrow {
  flex: 0 0 auto;
  width: .7rem;
  height: .7rem;
  margin-top: -.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease, margin .25s ease;
}
.activity-list[open]:not(.is-closing) .activity-list__arrow { transform: rotate(-135deg); margin-top: .35rem; }
.activity-list__when-open,
.activity-list[open]:not(.is-closing) .activity-list__when-closed { display: none; }
.activity-list[open]:not(.is-closing) .activity-list__when-open { display: inline; }

.activity-list__panel {
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem);
  background: var(--color-base-2);
  box-shadow: 0 1px 3px rgba(17, 17, 17, .08);
}
.activity-list__panel.is-animating { overflow: hidden; }
.activity-list__items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.activity-list__item {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid rgba(17, 17, 17, .1);
}
.activity-list__title { margin-bottom: .4rem; }
.activity-list__title a:hover { color: var(--color-contrast-2); }
.activity-list__text p {
  margin-bottom: .6rem;
  color: var(--color-contrast-2);
}
.activity-list__more {
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}
.activity-list__more span { display: inline-block; transition: transform .2s ease; }
.activity-list__more:hover span { transform: translateX(.25rem); }
.activity-list__prices { margin-top: 1rem; }
.activity-list__common { border-bottom: 0; }
@media (min-width: 768px) {
  .activity-list__item.has-prices {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 26rem);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .activity-list__prices { margin-top: 0; }
}

/* Small price list inside a list item: one column */
.price-list--compact { grid-template-columns: 1fr; gap: 1.25rem; }
.price-list--compact tr.price-table__subheading:first-child th { padding-top: 0; }
.price-list--compact .price-table th,
.price-list--compact .price-table td { padding: .45rem 0; }

/* White card around the tables on the activity detail */
.activity-prices { margin-top: var(--space-30); }
.activity-prices {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--color-base-2);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(17, 17, 17, .08);
}

/* Tables side by side when there is room, stacked otherwise */
.price-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.price-list__title { margin-bottom: .5rem; }
.price-list__note {
  margin-bottom: .75rem;
  font-size: .9em;
  font-style: italic;
  color: var(--color-contrast-2);
}
.price-list__note--below { margin: .75rem 0 0; }

.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th,
.price-table td {
  padding: .6rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, .1);
  vertical-align: baseline;
  text-align: left;
  font-weight: 400;
}
.price-table th[scope="row"] { padding-right: 1.5rem; }
.price-table__item { display: block; }
.price-table__description {
  display: block;
  font-size: .85em;
  font-style: italic;
  color: var(--color-contrast-2);
}
.price-table__price {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600 !important;
}
.price-table__subheading th {
  padding-top: 1.4rem;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-contrast-2);
}

@media (max-width: 900px) {
  .activity-panel__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
  }
  .activity-panel__content p {
    padding-top: 0.5rem;
    margin-bottom: 0;
  }
  .activity-panel__cta {
    justify-content: flex-end;
  }
}

/* ========================================================================== */
/* Highlight Section                                                          */
/* ========================================================================== */
.highlight-section {
    position: relative;
    height: 70vh;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.highlight-section__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--stripe-height);
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.2) 100%);
    color: #fff;
}

.highlight-section__container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.highlight-section__content {
    flex: 1 1 auto;
    min-width: 0;
}

.highlight-section__content h3 {
    color: #fff;
    margin: 0;
}

.highlight-section__content p {
    padding-top: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.highlight-section__cta {
    flex: 0 0 var(--activity-cta-width);
}

@media (max-width: 900px) {
    .highlight-section {
        align-items: stretch;
    }
    .highlight-section__container {
        flex-direction: column;
        align-items: stretch;
        padding-top: var(--stripe-pad-y);
        padding-bottom: var(--stripe-pad-y);
    }
    .highlight-section__content,
    .highlight-section__cta {
        flex-basis: 100%;
    }
    .highlight-section__cta {
        text-align: right;
    }
}


/* ========================================================================== */
/* Accommodation & Cards                                                      */
/* ========================================================================== */
.section-accommodation{ background: var(--color-base-2); padding-bottom: 15rem; }
.section-title{ margin-bottom: .75rem; }
.section-perex{ margin-bottom: 2.5rem; }

.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
  gap: 2.5rem;
  justify-content: center;
}

.card{
  display:flex; flex-direction:column; background:#fff; border-radius:.375rem; overflow:hidden;
  border: 0; box-shadow:0 8px 24px rgba(0,0,0,0.06); cursor:pointer;
  transition: box-shadow .25s ease, transform .25s ease;
}

.card h1 {
    font-size: clamp(1.502rem, 1.502rem + ((1vw - 0.2rem) * 1.426), 2.5rem); /* Was h3 */
    margin-bottom: 0.25em; /* Closer to facts strip */
}

.card h2 {
    font-size: clamp(1.119rem, 1.119rem + ((1vw - 0.2rem) * 0.901), 1.75rem); /* Was h4 */
}

.card h3 {
    font-size: clamp(0.918rem, 0.918rem + ((1vw - 0.2rem) * 0.66), 1.38rem); /* Was h5 */
}

.card:hover{ box-shadow:0 12px 32px rgba(0,0,0,0.10); transform: translateY(-0.125rem); }

.card-media {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
}

.card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body{ display:flex; flex-direction:column; gap:.25rem; height:12rem; padding: 1.4rem 1.4rem; text-align:left; }
.card-text-content{ flex:1 1 auto; overflow:hidden; }
.cta{ margin-top:auto; text-align:right; }
.cta-link{ font-size:.85rem; opacity:.55; background:none; border:0; padding:0; margin:0; color:inherit; text-decoration:none; }
.card:hover .cta-link{ opacity:.85; }
.cta-link:hover{ color: var(--color-contrast-2); }

/* Specific styles for accommodation cards */
.room-name{ margin: .4rem 0 .15rem; line-height:1.25; }
.secondary-info{ font-size:.85rem; line-height:1.3; opacity:.65; margin-bottom:.5rem; }
.price{ font-size:.9rem; opacity:.85; }

/* Generic card styles */
.card-title { margin: .4rem 0 .15rem; line-height:1.25; }
.card-text { font-size:.85rem; line-height:1.3; opacity:.65; margin-bottom:.5rem; }
.card-price { font-size:.9rem; opacity:.85; }


/* ========================================================================== */
/* Map & Contact                                                              */
/* ========================================================================== */
.bg-map{ background-size:cover; background-repeat:no-repeat; background-attachment:scroll; }
.section-compact{ padding-top: var(--space-50); padding-bottom: var(--space-50); }
.contact-btn{
  display:inline-flex; align-items:center; gap:.6rem; padding:.6rem .9rem; line-height:1.2; font-size:.95rem;
  background-color: var(--color-contrast); color: var(--color-base);
  border-radius: .33rem; border: 0;
}
.contact-btn:hover{ background-color: var(--color-contrast-2); color: var(--color-base); }
.contact-btn .btn-icon{ display:inline-flex; align-items:center; }
.contact-btn svg{ width:1.1em; height:1.1em; fill: currentColor; }

/* ========================================================================== */
/* Footer & Utilities                                                         */
/* ========================================================================== */
.site-footer{ background:#111; color:#f9f9f9; }
.site-footer a{ color:#f9f9f9; }
.social-list{ list-style:none; display:flex; gap:1rem; margin:0; padding:0; }
.social-list a{ display:inline-flex; opacity:.85; transition:opacity .2s; }
.social-list a:hover, .social-list a:focus-visible{ opacity:1; }
.social-list svg{ fill:currentColor; }

#scrollTop{
  position: fixed; right: 1rem; bottom: 1rem;
  width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center;
  background: rgba(151, 151, 151, 0.7); /* Změněno na tmavší pozadí */
  color: #fff;
  border: none;
  border-radius: .375rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background-color .25s ease;
  z-index: 999;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
#scrollTop:hover { /* Přidán hover efekt */
  background: rgba(0, 0, 0, 0.8);
}
#scrollTop.is-visible{ opacity:1; pointer-events:auto; }

/* Floating "Back" on detail pages (app.js initFloatingBack), counterpart of #scrollTop on the left */
.back-float{
  position: fixed; left: 1rem; bottom: 1rem; z-index: 999;
  height: 2.75rem; min-width: 2.75rem; padding: 0 .9rem;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: 1rem; line-height: 1; text-decoration: none;
  color: #fff; background: rgba(151, 151, 151, 0.7);
  border-radius: .375rem;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, background-color .25s ease;
}
.back-float:hover{ color: #fff; background: rgba(0, 0, 0, 0.8); }
.back-float.is-visible{ opacity: 1; pointer-events: auto; }
@media (max-width: 767.98px){
  .back-float{ padding: 0; }
  .back-float__text{ display: none; }
}

/* ========================================================================== */
/* Component-specific Breakpoints & Tweaks                                    */
/* ========================================================================== */

@media (max-width: 1399px) and (min-width: 901px) {
  .cards {
    grid-template-columns: minmax(0, 40rem);
  }
}

@media (max-width: 1200px) {
  .container.fullwidth-mobile {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .fullwidth-mobile .slider--gallery {
    border-radius: 0;
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .section-accommodation{ padding-bottom: 6rem; }
}

@media (max-width: 600px) {
  .card-body {
    height: 12rem;
  }
}

/* ========================================================================== */
/* Page-Specific Styles                                                       */
/* ========================================================================== */

/* --- Accommodation Detail --- */
.room-detail .context-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.room-detail .context-bar.is-visible {
    transform: translateY(0);
}

.room-detail .context-bar__title {
    font-size: 1rem;
}

.room-detail .context-bar__price {
    color: var(--color-contrast-2);
    margin-left: 1rem;
}

.room-detail h1 {
    font-size: clamp(1.502rem, 1.502rem + ((1vw - 0.2rem) * 1.426), 2.5rem); /* Was h3 */
    margin-bottom: 0.25em; /* Closer to facts strip */
}

.room-detail h2 {
    font-size: clamp(1.119rem, 1.119rem + ((1vw - 0.2rem) * 0.901), 1.75rem); /* Was h4 */
}

.room-detail h3 {
    font-size: clamp(0.918rem, 0.918rem + ((1vw - 0.2rem) * 0.66), 1.38rem); /* Was h5 */
}

.room-detail .hero-section {
    min-height: 50vh;
    background-size: cover;
    background-position: center 67%;
    margin-bottom: 0;
}

/* Section spacing within the container */
.room-detail .heading-section {
    margin-top: var(--space-30);
    margin-bottom: var(--space-10);
}
.room-detail .facts-strip-section {
    margin-bottom: var(--space-30);
}
.room-detail .variants-section {
    margin-bottom: var(--space-20);
}
.room-detail .season-info-section {
    margin-bottom: var(--space-10);
}
.room-detail .scuba-info-section {
    margin-bottom: var(--space-30);
}
.room-detail .amenities-section {
    margin-bottom: var(--space-30);
}
.room-detail .description-section {
    margin-bottom: var(--space-40);
}
.room-detail .gallery-section {
    margin-bottom: var(--space-40);
}


.room-detail .facts-strip-section p {
    color: var(--color-contrast-2);
    margin-bottom: 0;
}

.room-detail .description-section {
    position: relative;
    padding-left: 1.25rem;
    border-left: 0.125rem solid rgba(0,0,0,0.08);
    padding-bottom: 0;
}
.room-detail .description-section p {
    font-style: italic;
    color: var(--color-contrast-2);
}

.room-detail .amenities-section ul {
    list-style: none;
    padding: 0;
    columns: 2;
    column-gap: 3rem;
}

.room-detail .amenities-section li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

.room-detail .amenities-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-contrast-2);
    font-weight: 600;
}

.room-detail .variant {
    border-left: 0.25rem solid rgba(0,0,0,0.08);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
}

.room-detail .variant .price {
    color: var(--color-contrast-2);
}
.room-detail .variant .price.active-season {
    font-weight: 600;
    color: #111111;
}

/* Dive & Stay on the homepage: --cards-cols (set in section-dive-stay.php from the number of rooms) is the most
   cards per row - 1, 2, 3 in one row, 4 as 2 + 2, more as rows of 3. Each card is at least --card-min wide,
   so the row wraps earlier on narrow screens (one card per row on phones). */
.section-dive-stay .cards {
    --card-gap: 2.5rem;
    --card-min: 18rem;
    gap: var(--card-gap);
    max-width: calc(var(--cards-cols, 3) * 28rem + (var(--cards-cols, 3) - 1) * var(--card-gap));
    margin-inline: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--card-min),
        (100% - (var(--cards-cols, 3) - 1) * var(--card-gap)) / var(--cards-cols, 3))), 1fr));
}

/* Dive & Stay: package prices of the room (template-parts/package-prices.php) */
.room-detail .packages-section {
    margin-bottom: var(--space-30);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: var(--color-base-2);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(17, 17, 17, .08);
}
.package-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.package-table th,
.package-table td {
    padding: .7rem .75rem;
    border-bottom: 1px solid rgba(17, 17, 17, .1);
    text-align: right;
    vertical-align: baseline;
    font-weight: 400;
}
.package-table .package-table__package {
    padding-left: 0;
    text-align: left;
}
.package-table thead th {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-contrast-2);
}
.package-table thead .package-table__season {
    text-align: center;
    border-bottom-color: rgba(17, 17, 17, .25);
}
.package-table thead small {
    display: block;
    letter-spacing: 0;
    text-transform: none;
    font-style: italic;
}
.package-table .is-current { background: rgba(17, 17, 17, .035); }
.package-table thead .is-current { color: var(--color-contrast); }
.package-table__title { display: block; font-family: var(--font-heading); font-size: 1.1em; }
.package-table__details {
    display: block;
    font-size: .85em;
    font-style: italic;
    color: var(--color-contrast-2);
}
.package-table__price {
    white-space: nowrap;
    font-weight: 600 !important;
}
.package-prices__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.5rem 3rem;
    margin-top: var(--space-20);
    font-size: .95em;
}
.package-prices__info p { margin-bottom: 0; color: var(--color-contrast-2); }

/* Narrow screens: one block per package, prices in a 2 x 2 grid with labels */
@media (max-width: 767.98px) {
    .package-table thead { display: none; }
    .package-table,
    .package-table tbody { display: block; }
    .package-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .25rem 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(17, 17, 17, .1);
    }
    .package-table th,
    .package-table td { padding: 0; border: 0; text-align: left; }
    .package-table .package-table__package { grid-column: 1 / -1; margin-bottom: .35rem; }
    .package-table .is-current { background: none; }
    .package-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .75rem;
        font-weight: 400;
        color: var(--color-contrast-2);
    }
}

.room-detail .season-info-section p,
.room-detail .scuba-info-section p {
    font-size: 0.9rem;
    color: var(--color-contrast-2);
    margin-bottom: 0;
}

.room-detail .scuba-info-section a {
    font-style: italic;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #4E6E58;
    color: var(--color-base);
    border-color: #4E6E58;
    transition: all 0.2s ease-in-out;
}

.btn-whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: var(--color-contrast);
}

.btn-whatsapp svg {
    fill: currentColor;
    transition: fill 0.2s ease-in-out;
}

@media (max-width: 768px) {
    .room-detail .amenities-section ul {
        columns: 1;
    }
}

@media (max-width: 767px) {
    .room-detail .variant {
        border-left: none;
        padding-left: 0;
    }
    .room-detail .variant + .variant {
        border-top: 1px solid rgba(0,0,0,0.1);
        padding-top: 2.5rem;
    }
}

/* ========================================================================== */
/* Postcard Gallery Section                                                   */
/* ========================================================================== */

.postcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem 0;
}

.postcard figure {
  margin: 0;
  background-color: #fff;
  padding: 1rem 1rem 2rem 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.07), 0 3px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.postcard:hover figure {
  transform: translateY(-10px) rotate(var(--hover-rotate, 0deg));
  box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.08);
}

.postcard:nth-child(6n + 1) figure { transform: rotate(-2.5deg); --hover-rotate: -3deg; }
.postcard:nth-child(6n + 2) figure { transform: rotate(1.5deg); margin-top: 1.5rem; --hover-rotate: 2deg; }
.postcard:nth-child(6n + 3) figure { transform: rotate(-1deg); margin-top: 0.5rem; --hover-rotate: -1.5deg; }
.postcard:nth-child(6n + 4) figure { transform: rotate(2.2deg); --hover-rotate: 3deg; }
.postcard:nth-child(6n + 5) figure { transform: rotate(-1.8deg); margin-top: 1rem; --hover-rotate: -2.5deg; }
.postcard:nth-child(6n + 6) figure { transform: rotate(0.5deg); margin-top: 0.2rem; --hover-rotate: 1deg; }

.postcard img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.postcard figcaption {
  font-family: 'Cardo', serif;
  font-style: italic;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-contrast-2);
}
.postcard figcaption h4 {
  font-family: 'Fraunces', serif;
  font-style: normal;
  font-size: 1.2rem;
  color: var(--color-contrast);
  margin-bottom: 0.5rem;
}
.postcard figcaption p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .postcard-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .postcard:nth-child(n) figure {
    margin-top: 0;
  }
}

/* ========================================================================== */
/* WordPress Specific Adjustments                                             */
/* ========================================================================== */

/*
 * This compensates for the WordPress admin bar, which pushes the site down
 * by 32px for logged-in users. We adjust our fixed/absolute elements accordingly.
 */
body.admin-bar .site-nav {
  top: calc(0.875rem + 32px);
}

body.admin-bar .site-logo--on-image {
    top: calc(2rem + 32px);
}

@media (min-width: 901px) {
  body.admin-bar .site-nav {
    top: calc(var(--nav-offset) + 32px);
  }
  body.admin-bar .site-logo--on-image {
    top: calc(var(--nav-offset) + 32px);
  }
}

/* ========================================================================== */
/* Component: Difficulty Meter                                                */
/* ========================================================================== */

.difficulty-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.difficulty-meter span {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #e0e0e0; /* Barva pro neaktivní tečky */
  transition: background-color 0.3s ease;
}

.difficulty-meter small {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-contrast-2);
}

/* --- Logika vybarvování --- */

/* Úroveň 1: Vybarví první tečku */
.difficulty-meter.difficulty-1 span:nth-child(1) {
  background-color: #4E6E58; /* Barva pro aktivní tečky */
}

/* Úroveň 2: Vybarví první dvě tečky */
.difficulty-meter.difficulty-2 span:nth-child(-n+2) {
  background-color: #B8860B; /* Můžete použít jinou barvu pro střední obtížnost */
}

/* Úroveň 3: Vybarví všechny tři tečky */
.difficulty-meter.difficulty-3 span:nth-child(-n+3) {
  background-color: #A52A2A; /* Můžete použít jinou barvu pro vysokou obtížnost */
}

.activity-glance ul li > strong + span,
.activity-glance ul li > strong + .difficulty-meter {
    margin-left: 1rem;
}

.activity-glance ul li {
    padding-bottom: 1.3rem;
}

/* --- Activity Detail Page Specific Override --- */
.section-hero--activity {
    min-height: 60vh;
}

.cards--related-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .cards--related-items {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* Activity detail: markup is next, previous (next on top on mobile); desktop shows previous left, next right */
@media (min-width: 901px) {
  .cards--next-prev > :first-child {
    order: 2;
  }
}

/* ========================================================================== */
/* WordPress Admin Bar Fixes                                                  */
/* ========================================================================== */

/* --- Context Bar on Subpages --- */
body.admin-bar .context-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .context-bar {
        top: 46px;
    }
}
