/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* =========================================================
   Pesevä.fi Gallery Feed
========================================================= */

.results-section {
  padding: 80px 20px;
  background: #ffffff;
}

.results-section h2 {
  text-align: center;
  margin-bottom: 50px;
}

.results-feed {
  max-width: 760px;
  margin: 0 auto;
}

.result-card {
  margin-bottom: 36px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.10);
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  display: block;
}

.result-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #fff;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 7;
}

.tag-putipuhdas {
  background: #0A66C2;
}

.tag-perusteellinen {
  background: #111827;
}

.tag-tyoauto {
  background: #475569;
}

.result-content {
  padding: 24px;
}

.result-content h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.result-content p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: #555;
}

.result-meta span {
  background: #f1f5f9;
  padding: 7px 11px;
  border-radius: 999px;
}

.result-btn {
  display: inline-block;
  margin-top: 22px;
  background: #0A66C2;
  color: #fff;
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.result-btn:hover {
  background: #084f96;
  color: #fff;
}


/* =========================================================
   Before / After Slider
========================================================= */

.before-after-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.before-after-img {
  width: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.after-img {
  position: relative;
  z-index: 1;
}

.before-img-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.before-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  z-index: 5;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  pointer-events: none;
}

.ba-handle::before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  background: #fff;
  color: #111;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.ba-label {
  position: absolute;
  top: 56px;
  z-index: 7;
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ba-label-before {
  left: 14px;
}

.ba-label-after {
  right: 14px;
}


/* =========================================================
   Booking page
========================================================= */

.booking-page {
  max-width: 1100px;
  margin: 30px auto;
  padding: 40px 20px;
  background: #f1f5f9;
  border-radius: 18px;
}


/* =========================================================
   GeneratePress header
========================================================= */

.site-header .inside-header {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.main-navigation .main-nav ul li a {
  line-height: 44px !important;
}

.site-branding .main-title {
  font-size: 24px !important;
  line-height: 1.2 !important;
}


/* =========================================================
   Google Reviews Carousel
========================================================= */

.peseva-reviews {
  width: 100%;
  box-sizing: border-box;
  padding: 34px 20px;
  background: #f7fafc;
}

.peseva-reviews__header {
  max-width: 900px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.peseva-reviews__header > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.peseva-reviews__stars,
.peseva-review-card__stars {
  color: #fbbc04;
  letter-spacing: 2px;
}

.peseva-reviews__stars {
  font-size: 19px;
}

.peseva-reviews__header strong {
  color: #102033;
  font-size: 18px;
}

.peseva-reviews__google-link {
  color: #0A66C2;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.peseva-reviews__google-link:hover {
  text-decoration: underline;
}

.peseva-reviews__carousel {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
}

.peseva-reviews__viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.peseva-reviews__track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
  touch-action: pan-y;
}

.peseva-review-card {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 26px 30px;
  background: #ffffff;
  border: 1px solid #e2eaf2;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(16,32,51,0.06);
}

.peseva-review-card__stars {
  margin-bottom: 10px;
  font-size: 17px;
}

.peseva-review-card p {
  max-width: 720px;
  margin: 0 0 14px;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
}

.peseva-review-card strong {
  color: #102033;
  font-size: 15px;
}

.peseva-reviews__arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d7e1eb;
  border-radius: 50%;
  background: #ffffff;
  color: #0A66C2;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.peseva-reviews__arrow:hover {
  background: #eef6ff;
}

.peseva-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.peseva-reviews__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
}

.peseva-reviews__dots button.is-active {
  background: #0A66C2;
}


/* =========================================================
   Free booking calendar banner
========================================================= */

.peseva-calendar-banner {
  width: 100%;
  box-sizing: border-box;
  padding: 34px 20px;
  background: #ffffff;
}

.peseva-calendar-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, #0A66C2 0%, #1769E0 100%);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(10,102,194,0.16);
}

.peseva-calendar-banner__content {
  max-width: 610px;
}

.peseva-calendar-banner__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.peseva-calendar-banner h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 27px;
  line-height: 1.2;
}

.peseva-calendar-banner p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  line-height: 1.6;
}

.peseva-calendar-banner__action {
  flex: 0 0 auto;
  text-align: center;
}

.peseva-calendar-banner__button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  background: #ffffff;
  color: #0A66C2 !important;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.peseva-calendar-banner__button:hover {
  background: #f5f9ff;
  color: #084f96 !important;
}

.peseva-calendar-banner__note {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {

  .site-header .inside-header {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .main-navigation .main-nav ul li a {
    line-height: 40px !important;
  }

  .site-branding .main-title {
    font-size: 22px !important;
  }

  .peseva-reviews {
    padding: 26px 16px;
  }

  .peseva-reviews__header {
    margin-bottom: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .peseva-reviews__header > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .peseva-reviews__carousel {
    display: block;
  }

  .peseva-reviews__arrow {
    display: none;
  }

  .peseva-review-card {
    padding: 22px;
  }

  .peseva-review-card p {
    font-size: 16px;
  }

  .peseva-calendar-banner {
    padding: 20px 16px 30px;
  }

  .peseva-calendar-banner__inner {
    padding: 26px 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .peseva-calendar-banner h2 {
    font-size: 24px;
  }

  .peseva-calendar-banner__action {
    text-align: left;
  }

  .peseva-calendar-banner__button {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    white-space: normal;
  }

  .peseva-calendar-banner__note {
    text-align: center;
  }
}

@media (max-width: 600px) {

  .results-section {
    padding: 60px 16px;
  }

  .result-content {
    padding: 20px;
  }

  .result-content h3 {
    font-size: 21px;
  }

  .result-content p {
    font-size: 16px;
  }

  .result-tag {
    font-size: 12px;
    padding: 6px 11px;
  }

  .ba-label {
    top: 52px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .ba-handle::before {
    width: 36px;
    height: 36px;
  }
}
