/* =========================================================
   Happy Porto Hostel – static site stylesheet
   Hand-written; no WordPress / Elementor / theme CSS.
   ========================================================= */

:root {
  --blue: #0585bc;
  /* intro text, links */
  --circle: #0784bc;
  /* icon circles */
  --teal: #0c7c88;
  /* headings, buttons */
  --h1: #17607f;
  /* page title */
  --muted-blue: #4f93ae;
  /* small captions under headings */
  --text: #4b5563;
  --card-bg: #f0f0f0;
  --bar: #464646;
  /* booking bar */
  --footer-upper: #292e31;
  --footer-lower: #23272a;

  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-head: 'Spinnaker', 'Open Sans', Arial, sans-serif;

  /* The two full-width photo bands. These are set by fetch_assets.py
     (they live in Elementor's generated CSS on the old site). */
  /*BAND1-START*/
  --band1-img: url('../assets/uploads/2021/03/ribeira3-1.jpg');
  /*BAND1-END*/
  /*BAND2-START*/
  --band2-img: url('../assets/uploads/2021/03/ribeira3-1.jpg');
  /*BAND2-END*/
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 70px;
  /* room for the fixed booking bar */
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75em;
  color: #6b6b6b;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 600;
}

.container {
  width: min(100% - 150px, 1140px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Fixed booking bar ---------- */
.cb-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999999;
  background: var(--bar);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  padding: 8px 0;
  border-bottom: 2px solid #fff;
  box-shadow: 0 3px 5px #808080;
}

.cb-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cb-message {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}

.cb-dates {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cb-date-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cb-date-group label {
  font-size: 13px;
  font-weight: 400;
}

.cb-date-group input {
  width: 100px;
  height: 32px;
  padding: 0 0 0 10px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: var(--bar);
  font: 13px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.cb-button {
  display: inline-block;
  margin-left: 10px;
  padding: 6px 16px;
  background: var(--bar);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.5;
  cursor: pointer;
}

.cb-button:hover {
  background: #fff;
  color: var(--bar);
}

/* date picker popup */
.cb-date-picker-popup {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10000000;
  width: 280px;
  margin-top: 5px;
  padding: 15px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.cb-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cb-calendar-header button {
  background: var(--bar);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

.cb-calendar-header button:hover {
  background: #5a5a5a;
}

.cb-calendar-month {
  font-weight: 700;
  color: var(--bar);
}

.cb-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--bar);
  margin-bottom: 10px;
}

.cb-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cb-calendar-day {
  padding: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--bar);
  cursor: pointer;
}

.cb-calendar-day:hover {
  background: #f0f0f0;
  border-radius: 3px;
}

.cb-calendar-day.selected {
  background: var(--bar);
  color: #fff;
  border-radius: 3px;
}

.cb-calendar-day.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.cb-calendar-day.disabled:hover,
.cb-calendar-day.empty:hover {
  background: none;
}

.cb-calendar-day.empty {
  cursor: default;
}

@media (max-width: 900px) {
  body {
    padding-top: 100px;
  }

  .cb-container {
    flex-direction: column;
    gap: 10px;
  }

  .cb-message {
    margin: 5px 0;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 130px;
  }

  .cb-dates {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cb-date-picker-popup {
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
  }
}

/* ---------- Title ---------- */
.page-title {
  padding: 12px 20px 8px;
  text-align: center;
}

.page-title h1 {
  color: var(--h1);
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
}

/* ---------- Sliders ---------- */
.slider-wrap {
  width: 100%;
  padding: 0 8px;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: clamp(280px, 45vw, 600px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.slider:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.25, .46, .45, .94);
  will-change: transform;
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.slider-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  padding: 6px 12px;
  border-radius: 40px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.slider-counter-blur {
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  font-weight: 500;
  letter-spacing: .5px;
  font-family: system-ui, -apple-system, sans-serif;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: .4;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  transition: .3s;
}

.slider-dots button[aria-current="true"] {
  width: 20px;
  border-radius: 10px;
  opacity: 1;
}

.slider-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .4) 100%);
}

.slider-wrap-reviews {
  margin-top: 40px;
  padding: 0;
  background: #ecf0f8;
}

.slider-wrap-reviews .slider {
  box-shadow: none;
}

/* ---------- Intro ---------- */
.intro {
  padding: 60px 20px 20px;
  text-align: center;
  background: #fff;
}

.intro h2 {
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(18px, 4vw, 30px);
  letter-spacing: 2px;
}

.intro-awards {
  margin: 10px 0;
  color: var(--blue);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 300;
}

.intro-tagline {
  margin-top: 25px;
  color: #374151;
  font-size: clamp(18px, 2.5vw, 22px);
}

.intro-tags {
  margin: 15px 0 25px;
  color: #2c5c85;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 18px);
}

.intro-copy {
  max-width: 900px;
  margin: auto;
  color: var(--text);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.7;
}

.intro-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 25px;
  color: #0e8aa0;
  font-weight: 300;
}

.intro-link:hover {
  text-decoration: underline;
}

/* ---------- Icon circles ---------- */
.circles-top {
  max-width: 800px;
}

.circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 90px 0;
  text-align: center;
}

.circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 113px;
  height: 113px;
  border-radius: 50%;
  background: var(--circle);
  color: #fff;
  font-size: 44px;
  transition: transform .25s ease;
}

.circle-icon:hover {
  transform: scale(1.06);
}

.circle-item h4 {
  margin: 20px 0 14px;
  color: var(--teal);
  font-size: 24px;
  line-height: 1.2;
}

.circle-item p {
  margin: 0 auto;
  max-width: 150px;
  color: var(--muted-blue);
  font-size: 13px;
  line-height: 1.9;
}

.circles-bottom {
  padding-top: 70px;
  padding-bottom: 80px;
}

.circles-bottom .circle-icon {
  font-size: 40px;
}

.circles-bottom .circle-item p {
  max-width: none;
}

.circles-bottom .circle-item h4 {
  font-size: 25px;
  margin-bottom: 8px;
}

/* ---------- Photo bands (video) ---------- */
.band {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.band-1 {
  background-image: var(--band1-img);
}

.band-2 {
  background-image: var(--band2-img);
}

.band-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
}

.band-inner {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.band h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.band-2 h3 {
  text-transform: uppercase;
  letter-spacing: .5px;
}

.play {
  display: inline-block;
  margin-top: 20px;
  color: #fff;
  font-size: 66px;
  line-height: 1;
  transition: transform .25s ease;
}

.play:hover {
  transform: scale(1.1);
}

/* ---------- Generic section ---------- */
.section {
  padding: 70px 0 20px;
}

.section-head {
  text-align: center;
  padding: 0 20px;
}

.section-icon {
  display: block;
  margin-bottom: 8px;
  color: #888;
  font-size: 38px;
}

.section-head h2 {
  color: var(--teal);
  font-size: 30px;
  line-height: 1.25;
  text-transform: uppercase;
}

.divider {
  display: block;
  width: 40px;
  height: 2px;
  margin: 22px auto 18px;
  background: var(--teal);
  opacity: .8;
}

.section-head p {
  color: var(--muted-blue);
  font-size: 13px;
}

/* ---------- Rooms ---------- */
.rooms-filter {
  margin: 28px 0 14px;
  text-align: center;
  font-size: 12px;
}

.rooms-filter span {
  display: none;
}

.rooms-filter a {
  display: inline-block;
  border-bottom: 1px solid #777;
  color: #777;
  line-height: 1.3;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  row-gap: 40px;
}

.room a {
  display: block;
  color: inherit;
}

.room-img {
  position: relative;
  display: block;
  overflow: hidden;
}

.room-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .6s ease;
}

.room a:hover .room-img img {
  transform: scale(1.04);
}

.room-img::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65));
}

.room-price {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.room-text {
  display: block;
  padding: 28px 33px 0;
}

.room-text h3 {
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.room-text p {
  margin: 0;
  color: #aaa;
  font-size: 12px;
}

/* ---------- Cards (deals + hints) ---------- */
.cards {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-top: 55px;
}

.cards-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card {
  position: relative;
  background: var(--card-bg);
  border-radius: 3px;
  overflow: hidden;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.card-media {
  position: relative;
  background: #fff;
  line-height: 0;
}

.card-media img {
  width: 100%;
  height: auto;
}

.card-body {
  padding: 30px 30px 26px;
}

.card-label {
  margin-bottom: 8px;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .2px;
  text-transform: uppercase;
  line-height: 1.5;
}

.card-body h3 {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 18px;
  line-height: 1.3;
}

.card-text {
  color: #8d8d8d;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 300;
}

.card:hover .card-body h3 {
  text-decoration: underline;
}

.card-center .card-body {
  text-align: center;
}

.card-camino .card-media {
  padding: 60px 0 50px;
  text-align: center;
}

.card-camino .card-media img {
  width: 200px;
  height: auto;
}

.card-white-media .card-media {
  background: #fff;
}

.card-bestprice .card-text {
  font-size: 12px;
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 3px;
  line-height: 1.2;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.badge .fa-heart {
  color: #ff2d6f;
  margin-right: 3px;
}

.badge-left {
  right: auto;
  left: 30px;
  top: 18px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  background: rgba(0, 0, 0, .25);
}

.badge-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(120, 120, 120, .35);
  padding: 6px 12px 4px;
}

.badge-stack strong {
  font-size: 17px;
  font-weight: 700;
}

.badge-stack small {
  font-size: 11px;
  font-weight: 400;
  opacity: .9;
}

.badge-bl {
  top: auto;
  right: auto;
  left: 22px;
  bottom: 6px;
  padding: 0;
  background: none;
  font-size: 12px;
  font-weight: 400;
}

.card-bestprice .card-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35));
  pointer-events: none;
}

/* ---------- Book now ---------- */
.booknow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 80px 0 75px;
  color: #1f8aa0;
  font-size: 17px;
  text-align: center;
}

.btn-pill {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 30px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: background .25s ease;
}

.btn-pill:hover {
  background: #09606a;
}

/* ---------- Payment logos ---------- */
.payments {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 120px 0 0;
}

.payments img {
  height: auto;
  max-width: 100%;
}

.payments img:nth-child(6),
.payments img:nth-child(7) {
  width: 110px;
}

.payments img:nth-child(6) {
  width: 110px;
}

/* ---------- Footer ---------- */
.site-footer {
  font-size: 13px;
}

.footer-upper {
  background: var(--footer-upper);
  padding: 50px 0 45px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col {
  color: #d2d2d2;
  font-size: 13px;
  line-height: 1.6;
}

.footer-col a {
  color: #d2d2d2;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .livro {
  margin: 22px 0 0;
}

.footer-col .livro img {
  width: 200px;
  filter: invert(1);
}

.footer-lower {
  background: var(--footer-lower);
  padding: 18px 20px;
  text-align: center;
}

.footer-lower p {
  margin: 0;
  color: #d2d2d2;
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Júlia assistant widget ---------- */
#hp-assistant-widget {
  position: fixed;
  bottom: 20px;
  right: 75px;
  z-index: 9999;
  width: 360px;
  max-width: 92vw;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  font-family: system-ui, Arial, sans-serif;
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  cursor: pointer;
  text-align: left;
  background: linear-gradient(135deg, #0585bc, #0585bc);
  color: #fff;
  font: inherit;
}

.assistant-head img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.assistant-title {
  flex: 1;
  display: block;
}

.assistant-title strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.assistant-title small {
  display: block;
  font-size: 12px;
  opacity: .9;
}

.assistant-icon {
  font-size: 18px;
}

#hp-assistant-frame {
  height: 0;
  overflow: hidden;
  background: #f9fafb;
  transition: all .35s ease;
}

#hp-assistant-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-top: 1px solid #eee;
}

#hp-assistant-widget.open #hp-assistant-frame {
  height: 460px;
}

/* === HEADER === */
.banner {
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
  padding: 10px 0;
  position: relative;
  z-index: 100;
}

.banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner #logo img {
  max-height: 60px;
  width: auto;
}

.banner .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.banner .nav-links a {
  font-size: 15px;
  font-weight: 400;
  color: #5d5d5d;
}

.banner .nav-links a:hover {
  color: #028090;
}
.reviews-section {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}
@media (max-width: 600px) {
  #hp-assistant-widget {
    right: 10px;
    bottom: 10px;
    width: 94vw;
  }
}

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 3px;
  background: rgba(130, 130, 130, .75);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: rgba(90, 90, 90, .9);
}

@media (max-width: 600px) {
  .to-top {
    bottom: 90px;
  }
}

/* ---------- Video lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .85);
  padding: 20px;
}

.lightbox-inner {
  position: relative;
  width: min(1280px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
}

.lightbox-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-close {
  position: absolute;
  top: -38px;
  right: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 60px, 1140px);
  }

  .cards {
    flex-wrap: wrap;
  }

  .cards-col {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .page-title h1 {
    font-size: 20px;
  }

  .slider-wrap {
    padding: 0 4px;
  }

  .intro {
    padding-top: 40px;
  }

  .circles {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .band {
    min-height: 320px;
  }

  .band h3 {
    font-size: 20px;
  }

  .section {
    padding-top: 50px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    flex-direction: column;
  }

  .cards-col {
    flex-basis: auto;
    width: 100%;
  }

  .booknow {
    padding: 50px 0;
    flex-direction: column;
    gap: 18px;
  }

  .payments {
    justify-content: center;
    padding-top: 70px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slide img,
  .slider-track,
  .circle-icon,
  .play {
    transition: none;
  }
}