/*
Theme Name: Blocksy Child
Description: Child theme for Blocksy
Author: Kay
Template: blocksy
Version: 1.0
*/

/* =========================
   Variables
========================= */
:root{
  --te-gap: 12px;
  --te-thumb-h: 210px;
  --te-stack-h: calc((var(--te-thumb-h) * 2) + var(--te-gap));

  --te-white: #fff;
  --te-black: #000;

  --te-olive: #585D54;
  --te-olive-hover: #4b5048;
  --te-accent: #8A8F4A;

  --te-panel-dark: #5f625f;
  --te-panel-light: #585D5426;
  --te-panel-light-text: #57625f;

  --te-shadow-block: #585D54;
}

@font-face{
  font-family: "Playfair Display";
  src: url("/wp-content/themes/blocksy-child/assets/fonts/PlayfairDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Playfair Display";
  src: url("/wp-content/themes/blocksy-child/assets/fonts/PlayfairDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Playfair Display";
  src: url("/wp-content/themes/blocksy-child/assets/fonts/PlayfairDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Playfair Display";
  src: url("/wp-content/themes/blocksy-child/assets/fonts/PlayfairDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


.entry-content hr,
.te-room hr,
.te-archive hr{
  width: 100%;
  height: 1px;
  background-color: #333;
  border: 0;
  margin: 0;
}

/* Fade in (simple) */
@keyframes teFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Fade in + slight lift */
@keyframes teFadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* HOME: header + content */
.home #header{
  animation: teFadeIn .25s ease-out both;
}

.home main#main{
  animation: teFadeInUp .35s ease-out both;
}

/* ALL OTHER PAGES: content only */
body:not(.home):not(.elementor-page) main#main{
  animation: teFadeInUp .35s ease-out both;
}

/* =========================
   Footer (Blocksy)
========================= */

footer#footer,
footer#footer [data-row],
footer#footer [data-row] > div{
  transform: translateZ(0);
  backface-visibility: hidden;
}

footer#footer [data-row],
footer#footer .ct-container-fluid[data-columns-divider]{
  --rowDividerWidth: 0px;
  --rowDividerStyle: none;
  --rowDividerColor: transparent;

  --columnsDividerWidth: 0px;
  --columnsDividerStyle: none;
  --columnsDividerColor: transparent;

  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

footer#footer [data-row]::before,
footer#footer [data-row]::after,
footer#footer [data-row] > div::before,
footer#footer [data-row] > div::after,
footer#footer .ct-container-fluid::before,
footer#footer .ct-container-fluid::after{
  content: none !important;
  display: none !important;
}

/* Footer separators */
footer#footer :where(hr, .wp-block-separator){
  border: 0 !important;
  height: 1px !important;
  background: var(--te-white) !important;
  opacity: 1 !important;
}

/* IG row does not show separators */
footer#footer [data-row="top"] :where(hr, .wp-block-separator){
  display: none !important;
}

/* IG row full-bleed container */
footer#footer [data-row="top"] .ct-container-fluid{
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 50px;
}

/* Hide empty widget paragraph text in IG row */
footer#footer [data-row="top"] .ct-widget > p,
footer#footer [data-row="top"] #block-28 > p:empty{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Footer IG title section */
footer#footer [data-row="top"] .te-room__top{
  background: var(--te-white);
  padding: 18px 0;
  margin: 0;
  display: block;
}

footer#footer [data-row="top"] .te-room__title{
  position: relative;
  display: inline-block;
  padding: 0 56px;
  color: var(--te-black);
}

footer#footer [data-row="top"] .te-room__title-wrap{
  margin-bottom: 0;
}

footer#footer [data-row="top"] .te-room__title,
footer#footer [data-row="top"] .te-room__title-line{
  color: var(--te-black);
}

footer#footer [data-row="top"] .te-room__title-line{
  background: rgba(255,255,255,.35);
}

/* Instagram row stretch */
footer#footer [data-row="top"] #sb_instagram{
  width: 100% !important;
  max-width: none !important;
}

/* Middle row: 3 columns grid */
footer#footer [data-row="middle"] .ct-container-fluid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  padding-bottom: 50px;
}

footer#footer [data-row="middle"] [data-column^="widget-area-"]{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

/* Normalize widget spacing so columns line up */
footer#footer .widget_text p:empty{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

footer#footer [data-row="middle"] .ct-widget{
  margin: 0 !important;
}

footer#footer [data-row="middle"] h3,
footer#footer [data-row="middle"] p{
  margin: 0 !important;
}

footer#footer [data-row="middle"] .wp-block-separator{
  margin: 12px auto 26px !important;
  max-width: 120px;
}


/* =========================
   Image shadow blocks
========================= */
.shadow-left .wp-block-image,
.shadow-right .wp-block-image{
  position: relative;
  display: inline-block;
}

.shadow-left .wp-block-image::after{
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  background: var(--te-shadow-block);
  z-index: -1;
}

.shadow-right .wp-block-image::after{
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  background: var(--te-shadow-block);
  z-index: -1;
}


/* =========================
   Headings and small layout helpers
========================= */
.meet-hosts{
  width: fit-content;
  max-width: 100%;
  text-align: left;
  font-family: "Libre Baskerville", serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.05;
  font-weight: 700;
  font-size: 3rem;
}

.meet-hosts .accent{
  font-family: "Lovers Quarrel", cursive !important;
  font-weight: 400 !important;
  font-style: normal !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 3em;
  line-height: 0.7;
  color: var(--te-accent);
  display: inline-block;
  margin-left: 0;
  transform: translate(0px,-15px);
}

.why-totara h2{
  text-align: center !important;
  margin: 0 auto;
}

.why-totara .meet-hosts .accent{
  font-size: 2.5em;
}

.readable-wrap{
  width: min(80vw, 1100px);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.readable-text{
  max-width: 60ch;
  margin: 0 auto 80px;
  line-height: 1.65;
}


/* =========================
   Contact list
========================= */
.contact-list p{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
}

.contact-list svg{
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.8;
}

.contact-list br{
  content: "";
  display: block;
  margin-bottom: 2px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.find-us-text {
    max-width: 35ch;
}


/* =========================
   Feature row (image + text)
========================= */
.feature-row{
  align-items: stretch;
  min-height: 420px;
}

.feature-image-col{
  height: 100%;
}

.feature-image-col img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-text-col{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}


/* =========================
   Header: CTA menu item + social icons
========================= */
.menu-item-1109{
  display: flex;
  align-items: center;
}

.menu-item-1109 > a{
  margin-left: 10px;
  background-color: var(--te-olive);
  color: #ffffff !important;
  height: auto !important;
  min-height: unset !important;
  line-height: 1 !important;
  aspect-ratio: auto !important;
  padding: 7px 16px !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.menu-item-1109 > a:hover{
  background-color: var(--te-olive-hover);
}

.ct-social-box{
  display: flex;
  flex-direction: column;
}


/* =========================
   Containers
========================= */
.te-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0 80px;
}


/* =========================
   Single accommodation (te-room)
========================= */

/* Title block */
.te-room__title-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 28px;
}

.te-room__top .te-room__title{
  position: relative;
  display: inline-block;
  padding: 0 56px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
}

.te-room__title::before,
.te-room__title::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  background-image: url("/wp-content/uploads/2025/12/totara-enclave-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(-50%);
  opacity: .9;
  display: block;
}

.te-room__title::before{ left: 0; }
.te-room__title::after{ right: 0; }

.te-room__title-line{
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,.25);
  max-width: 120px;
}

/* Top layout */
.te-room__top{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

/* Media grid */
.te-room__media{
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--te-gap);
  align-items: stretch;
}

.te-room__hero-link{
  display: block;
  height: var(--te-stack-h);
  border-radius: 18px;
  overflow: hidden;
}

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

/* Gallery */
.te-room__gallery-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--te-gap);
}

.te-room__gallery-item{
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
}

.te-room__gallery-img{
  width: 100%;
  height: var(--te-thumb-h);
  object-fit: cover;
  display: block;
}

.te-room__gallery-more{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  background: rgba(0,0,0,0.45);
  color: var(--te-white);
}

/* Booking card */
.te-room__booking{
  position: sticky;
  top: 24px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background: var(--te-white);
}

/* Scope booking card title so it does not clash with the big page title */
.te-room__booking .te-room__title{
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
}

/* Availability section */
.te-room__availability{
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.te-room__calendar{
  margin: 0;
}

/* Features */
.te-room__features{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 28px;
}

.te-feature{
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
}

.te-feature__icon{
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: .9;
  margin-top: 2px;
}

.te-feature__title,
.te-feature__text{
  grid-column: 2;
  min-width: 0;
}

.te-feature__title{
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.te-feature__text{
  opacity: .75;
  margin: 0;
  line-height: 1.45;
}

/* Main content */
.te-room__main{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}


/* =========================
   Instagram feed
========================= */
#sbi_images{
  margin: 0 !important;
  padding: 0 !important;
}

#sb_instagram{
  margin: 0 !important;
}


/* =========================
   Acommodation Page (te-archive)
========================= */
.te-archive{
  padding: 80px 0 80px;
}

.te-archive .te-container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.te-archive__title-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin: 10px 0 28px;
}

.te-archive__title{
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: none;
  margin:0;
}

.te-archive__title-line{
  height:1px;
  width:90px;
  background: rgba(0,0,0,.35);
}

.te-archive__list{
  display:flex;
  flex-direction:column;
  gap:22px;
}

/* Card layout */
.te-archive__row{
  position: relative;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:0;
  align-items:stretch;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}

.te-archive__row:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

/* Image right variant */
.te-archive__row--image-right{
  grid-template-columns: 1fr 1.2fr;
}
.te-archive__row--image-right .te-archive__media{ order:2; }
.te-archive__row--image-right .te-archive__panel{ order:1; }

/* Media */
.te-archive__media{
  min-height: 240px;
}

.te-archive__img-link{
  display:block;
  height:100%;
}

.te-archive__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Panel */
.te-archive__panel{
  background: var(--te-panel-dark);
  color: var(--te-white);
  padding: 22px 22px 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* Panel variations */
.te-archive__row--bg-one .te-archive__panel{
  background: var(--te-panel-dark);
  color: var(--te-white) !important;
}

.te-archive__row--bg-two .te-archive__panel{
  background: var(--te-panel-light);
  color: var(--te-panel-light-text);
}

.te-archive__name{
  margin:0 0 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.75rem;
}

.te-archive__name a{
  color: inherit;
  text-decoration:none;
}
.te-archive__name a:hover{
  text-decoration:underline;
}

.te-archive__text{
  font-size: 1rem;
  line-height: 1.65;
  opacity: .95;
}

/* Make whole card clickable */
.te-archive__stretched-link{
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
}

.te-archive__media,
.te-archive__panel{
  position: relative;
  z-index: 1;
}

/* Optional CTA button: hidden on desktop */
.te-archive__actions{ margin-top: 14px; }
.te-archive__btn{
  display: none;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid currentColor;
  color: inherit;
  text-decoration:none;
  font-size: 13px;
}

/* Dark cards */
.te-archive__row--bg-one .te-archive__name,
.te-archive__row--bg-one .te-archive__name a,
.te-archive__row--bg-one .te-archive__text{
  color: var(--te-white) !important;
}

/* Light cards */
.te-archive__row--bg-two .te-archive__name,
.te-archive__row--bg-two .te-archive__name a,
.te-archive__row--bg-two .te-archive__text{
  color: var(--te-panel-light-text);
}

/* Shared spaces */
.te-archive__title-wrap--spaced{ margin-top: 46px; }
.te-shared__content{ max-width: 900px; margin: 0 auto 18px; font-size: 14px; line-height: 1.7; }
.te-shared__image{ margin-top: 18px; }
.te-shared__img{ width:100%; height:auto; display:block; }

.te-shared{
  margin-top: 100px;
}

/* =========================
   Reviews
========================= */

.te-reviews{
  max-width: 1200px;
  position: relative;
  padding: 40px 20px;
  margin: 0 auto;
}

.te-reviews__track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 0 56px;
  align-items: start; /* ✅ prevents all cards matching tallest */
}

.te-review{
  background: #b5b7b1;
  border-radius: 16px;
  padding: 18px 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: auto; /* ✅ was 100% */
  transition: transform 180ms ease;
  min-height: 240px;
}

.te-review:has(.te-review__text[data-collapsed="0"]){
  transform: translateY(-2px);
}

.te-review__stars{
  letter-spacing: 2px;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 8px;
}

.te-review__name{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.te-review__date{
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.te-review__text{
  font-size: 12px;
  line-height: 1.5;
  min-height: 6.5em;
  text-align: left;
  text-wrap: pretty;
  hyphens: auto;
  flex: 1 1 auto;
  overflow: hidden;
  transition: max-height 220ms ease;
  padding-bottom: 14px;
}

.te-review__text p{
  margin: 0;
}

.te-review__text p + p{
  margin-top: 10px;
}

/* ✅ collapsed vs expanded */
.te-review__text[data-collapsed="1"]{
  max-height: 7.5em;
}

.te-review__text[data-collapsed="0"]{
  max-height: 40em;
}

.te-review__more{
  background: transparent;
  border: 0;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  margin-top: auto;   /* pins button to bottom */
  align-self: center;
  padding-top: 14px;
  text-decoration: none;
  border-bottom: 1px solid currentColor; /* nicer than underline */
  line-height: 1.2;
}

.te-reviews__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  opacity: 0.9;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.te-reviews__nav--prev{ left: 12px; }
.te-reviews__nav--next{ right: 12px; }

/* responsive */
@media (min-width: 1024px){
  .te-reviews__track{
    grid-auto-columns: calc((100% - 48px) / 3); /* 3 cards visible */
  }
}


/* =========================
   Responsive
========================= */
@media (max-width: 900px){
  :root{
    --te-thumb-h: 120px;
  }

  .site-title{
    max-width: 8ch !important;
  }

  .te-container{
    padding: 18px 12px;
  }

  /* Footer: stack middle row */
  footer#footer [data-row="middle"] .ct-container-fluid{
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  footer#footer [data-row="middle"] [data-column^="widget-area-"]{
    align-items: center;
    text-align: center;
  }

  /* Room: stack media and availability */
  .te-room__media{
    grid-template-columns: 1fr;
  }

  .te-room__availability{
    grid-template-columns: 1fr;
  }

  .te-room__booking{
    position: static;
    padding: 14px;
  }

  .te-room__features{
    grid-template-columns: 1fr;
  }

  /* Prevent overflow */
  .te-room{
    overflow-x: hidden;
  }

  .te-room img,
  .te-room iframe,
  .te-room table{
    max-width: 100%;
  }

  /* Calendar on small screens */
  .te-room__calendar{
    width: 100%;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .te-room__calendar table{
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
  }

  .te-room__calendar th,
  .te-room__calendar td{
    padding: 6px !important;
    font-size: 12px;
    word-break: break-word;
  }

  /* Booking form inputs fit card */
  .te-room .mphb-booking-form,
  .te-room .mphb-booking-form *{
    box-sizing: border-box;
    max-width: 100%;
  }

  .te-room .mphb-booking-form input,
  .te-room .mphb-booking-form select,
  .te-room .mphb-booking-form textarea,
  .te-room .mphb-booking-form button{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Title wrap */
  .te-room__title-wrap{
    flex-direction: column;
    gap: 10px;
  }

  .te-room__top .te-room__title{
    padding: 0 !important;
  }

  .te-room__title::before,
  .te-room__title::after{
    display: none !important;
  }

  .te-room__title-line{
    max-width: 60px;
  }

  /* Feature row stack */
  .feature-row{
    min-height: auto;
  }

  .feature-image-col{
    height: 240px;
    order: 1;
  }

  .feature-image-col img{
    height: 100%;
  }

  .feature-text-col{
    padding: 32px 24px;
    order: 2;
  }

  .accom-highlights{
    text-align: center !important;
  }

  .ruler{
    display: block !important;
  }

  h1, h2{
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  h2{
    font-size: 1.75rem;
  }

  .about-us-images{ order: 1; }
  .about-us-text{ order: 2; }

  /* Hide CTA menu button on mobile */
  .menu-item-1109 a{
    display: none;
  }

  .why-totara .meet-hosts{
    font-size: 2em;
  }

  /* Header social icons row on mobile */
  .ct-social-box{
    flex-direction: row;
  }

  /* Archive: stack cards and show CTA button */
  .te-archive__btn{
    display: inline-block;
  }

  .te-archive__row,
  .te-archive__row--image-right{
    grid-template-columns: 1fr;
  }

  .te-archive__row--image-right .te-archive__media,
  .te-archive__row--image-right .te-archive__panel{
    order: initial;
  }

  .te-archive__media{
    min-height: 220px;
  }
  
.te-reviews{
  padding: 30px 14px;
  max-width: 100%;
  overflow: visible;
}

.te-reviews__track{
  display: flex;
  gap: 14px;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  scroll-snap-type: x mandatory;
  padding: 0 14px;
}

.te-review{
  padding: 18px 16px 14px;
  flex: 0 0 85%;
  scroll-snap-align: center;
}

.te-reviews__nav{
  width: 32px;
  height: 32px;
  top: 55%;
}

.te-reviews__nav--prev{ left: 6px; }
.te-reviews__nav--next{ right: 6px; }
}