/* Branch Page Styles */

/* ===== GALLERY IN HERO ===== */

/* Left block and main image same size, thumbs additional */
.map-1440 .frame-367-1 {
  align-items: stretch;
}

.map-1440 .branch-gallery-container {
  display: flex;
  gap: 10px;
}

.map-1440 .branch-gallery-main-img {
  width: 624px;
  flex-shrink: 0;
  position: relative;
  border-radius: 25px;
  overflow: hidden;
}

.branch-gallery-main-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.branch-gallery-main-img img.active {
  opacity: 1;
}

.branch-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100px;
}

.branch-gallery-thumb {
  width: 100px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.branch-gallery-thumb:hover {
  opacity: 0.9;
}

.branch-gallery-thumb.active {
  opacity: 1;
  border-color: #00C853;
}

.branch-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===== ABOUT SECTION (like services frame-313-1) ===== */
.map-1440 .frame-313-1 {
  align-items: center;
  background-color: var(--grey);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  justify-content: center;
  margin-top: 80px;
  padding: 120px 240px;
  position: relative;
  width: 1900px;
  max-width: 100%;
  align-self: center;
}

.map-1440 .frame-2338 {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 50px;
  position: relative;
  width: 1420px;
  max-width: 100%;
}

.map-1440 .frame-313-1 .text-281 {
  color: var(--log-cabin);
  margin: 0;
}

/* Two-column layout for paragraphs */
.map-1440 .frame-209-2 {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
}

.map-1440 .frame-209-2 p {
  color: var(--text-2);
  flex: 1;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
  min-width: 300px;
}

.map-1440 .frame-209-2 a {
  color: #00C853;
  text-decoration: none;
  font-weight: 500;
}

.map-1440 .frame-209-2 a:hover {
  text-decoration: underline;
}


/* ===== SERVICES SECTION ===== */
.map-1440 .section {
  align-items: center;
  align-self: stretch;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 70px;
  padding: 130px 0px;
  position: relative;
  width: 100%;
}

.map-1440 .section .text-1 {
  color: var(--black);
  font-weight: 700;
  line-height: 52.2px;
  margin-top: -1px;
  position: relative;
  width: 1260px;
}

.map-1440 .frame-379 {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px 12px;
  position: relative;
  width: 1260px;
}

.map-1440 .frame-1-1 {
  background-color: var(--green-website);
  border-radius: 25px;
  height: 250px;
  overflow: hidden;
  position: relative;
  width: 624px;
}

.map-1440 .flex-col {
  align-items: flex-start;
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
  gap: 31px;
  left: 50px;
  min-height: 170px;
  position: absolute;
  top: 40px;
  width: 380px;
}

.map-1440 .group-378 {
  width: 100%;
}

.map-1440 .text-52 {
  color: var(--white);
  font-weight: 700;
  line-height: 30px;
  float: left;
}

.map-1440 .frame-196 {
  align-items: flex-start;
  background-color: var(--white);
  border-radius: 2px;
  display: inline-flex;
  gap: 8px;
  height: 37px;
  padding: 2px 10px 5px;
  position: relative;
  transform: rotate(2.00deg);
  top: 5px;
}

.map-1440 .frame-196-b {
  align-items: flex-start;
  background-color: var(--white);
  border-radius: 2px;
  display: inline-flex;
  gap: 8px;
  height: 37px;
  padding: 2px 10px 5px;
  position: relative;
  transform: rotate(-2.00deg);
  top: -2px;
}

.map-1440 .frame-196-c {
  align-items: flex-start;
  background-color: var(--white);
  border-radius: 2px;
  display: inline-flex;
  gap: 8px;
  height: 37px;
  padding: 2px 10px 5px;
  position: relative;
  transform: rotate(2.00deg);
  top: 5px;
}

.map-1440 .frame-196-d {
  align-items: flex-start;
  background-color: var(--white);
  border-radius: 2px;
  display: inline-flex;
  gap: 8px;
  height: 37px;
  padding: 2px 10px 5px;
  position: relative;
  transform: rotate(1.00deg);
  top: -3px;
}

.map-1440 .frame-196-e {
  align-items: flex-start;
  background-color: var(--white);
  border-radius: 2px;
  display: inline-flex;
  gap: 8px;
  height: 37px;
  padding: 2px 10px 5px;
  position: relative;
  transform: rotate(-2.00deg);
  top: 3px;
}

.map-1440 .frame-196-x {
  align-items: flex-start;
  background-color: var(--white);
  border-radius: 2px;
  display: inline-flex;
  gap: 8px;
  height: 37px;
  padding: 2px 10px 5px;
  position: relative;
  transform: rotate(2.00deg);
  top: 6px;
}

.map-1440 .text-3 {
  color: var(--green-website);
  font-weight: 700;
  line-height: 30px;
  margin-top: -1px;
  position: relative;
  white-space: nowrap;
  width: fit-content;
}

.map-1440 .frame-43 {
  cursor: pointer;
  color: var(--white);
  align-items: center;
  border: 1px solid;
  border-color: var(--white);
  border-radius: 30px;
  display: inline-flex;
  font-size: var(--font-size-s);
  gap: 10px;
  justify-content: center;
  padding: 12px 26px;
  transition: all 0.2s;
}

.map-1440 .frame-43:hover {
  background-color: var(--white);
  color: var(--green-website);
}

.map-1440 .text-5 {
  font-weight: 700;
  line-height: 20px;
  margin-top: -1px;
  position: relative;
  white-space: nowrap;
  width: fit-content;
}

.map-1440 .image {
  height: 250px;
  left: 334px;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 290px;
}

.map-1440 .image-m {
  display: none;
}

/* Service card colors */
.map-1440 .frame-1-1:nth-child(2) {
  background-color: var(--blue);
}
.map-1440 .frame-1-1:nth-child(3) {
  background-color: var(--blue);
}
.map-1440 .frame-1-1:nth-child(6) {
  background-color: var(--blue);
}
.map-1440 .frame-1-1:nth-child(7) {
  background-color: var(--blue);
}

.map-1440 .frame-1-1:nth-child(2) .text-3,
.map-1440 .frame-1-1:nth-child(3) .text-3,
.map-1440 .frame-1-1:nth-child(6) .text-3,
.map-1440 .frame-1-1:nth-child(7) .text-3 {
  color: var(--blue);
}

.map-1440 .frame-1-1:nth-child(2) .frame-43:hover,
.map-1440 .frame-1-1:nth-child(3) .frame-43:hover,
.map-1440 .frame-1-1:nth-child(6) .frame-43:hover,
.map-1440 .frame-1-1:nth-child(7) .frame-43:hover {
  color: var(--blue);
}


/* ===== REVIEWS SECTION (news-widget style) ===== */
.reviews-widget {
  align-items: center;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  margin-top: 80px;
  margin-bottom: 20px;
}

.reviews-widget .reviews-widget-section {
  background-color: var(--grey);
  border-radius: 30px;
  flex-direction: column;
  gap: 30px;
  padding: 120px 240px;
  align-items: center;
  display: flex;
  position: relative;
  width: 1900px;
  max-width: 100%;
}

.reviews-widget .reviews-widget-container {
  align-items: flex-start;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  position: relative;
  width: 1420px;
  max-width: 100%;
}

.reviews-widget .reviews-widget-header {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: space-between;
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.reviews-widget .reviews-widget-title {
  color: var(--black);
  font-weight: 700;
  line-height: 42.7px;
  margin: 0;
  position: relative;
  width: fit-content;
}

.reviews-widget .reviews-widget-nav {
  align-items: flex-start;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  position: relative;
}

.reviews-widget .reviews-widget-nav-btn {
  border-radius: 24px;
  border: 1px solid var(--stroke, #E3E4EA);
  background: var(--white, #FFF);
  display: flex;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
}

.reviews-widget .reviews-widget-nav-btn:hover {
  border: 1px solid var(--hover-stroke, #81828B);
}

.reviews-widget .reviews-widget-slider-wrap {
  align-items: flex-start;
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
  width: 1420px;
  max-width: 100%;
}

.reviews-widget .reviews-widget-slider {
  align-items: flex-start;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 12px;
  position: relative;
  transition: all 0.5s;
  right: 0px;
}

.reviews-widget .reviews-widget-card {
  background-color: var(--white);
  border-radius: 25px;
  height: 280px;
  overflow: hidden;
  position: relative;
  width: 465px;
  flex-shrink: 0;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
}

.reviews-widget .reviews-widget-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.reviews-widget .reviews-widget-stars i {
  font-size: 20px;
  color: var(--blue);
}

.reviews-widget .reviews-widget-text {
  color: var(--black);
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.reviews-widget .reviews-widget-author {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: #6E727D;
  margin-top: 16px;
}


/* ===== MAP SECTION ===== */
.branch-map {
  position: relative;
  width: 100%;
  max-width: 1900px;
  align-self: center;
  margin-bottom: 20px;
}

.branch-map #leafletmap {
  width: 100%;
  height: 600px;
  z-index: 1;
  border-radius: 30px;
}



/* ===== RESPONSIVE 1920+ ===== */
@media screen and (min-width: 1920px) {
  .map-1440 .section {
    align-items: flex-start;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-top: 130px;
    margin-bottom: 130px;
    padding: 0;
    position: relative;
    width: 1420px;
  }

  .map-1440 .section .text-1 {
    color: var(--black);
    font-weight: 700;
    line-height: 52.2px;
    margin-top: -1px;
    position: relative;
    white-space: nowrap;
    width: 1420px;
  }

  .map-1440 .frame-379 {
    width: 1420px;
  }

  .map-1440 .frame-1-1 {
    width: 704px;
  }

  .map-1440 .flex-col {
    width: 380px;
  }

  .map-1440 .image {
    left: 414px;
  }
}


/* ===== RESPONSIVE 1440-1919px ===== */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
  /* H1 - same width as navbar-1 */
  .map-1440 .section-1 > .text-1.h2 {
    width: 1260px;
  }

  /* Main block - content width */
  .map-1440 .frame-367-1 {
    width: 1260px;
  }

  /* Left block and image - equal width */
  .map-1440 .frame-366-1 {
    width: 569px;
    flex-shrink: 0;
  }

  .map-1440 .branch-gallery-main-img {
    width: 569px;
  }

  /* About section - full page width like services, content 1260px */
  .map-1440 .frame-313-1 {
    align-items: center;
    align-self: stretch;
    background-color: var(--grey);
    border-radius: 30px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 50px;
    padding: 120px 80px;
    position: relative;
    width: 100%;
    margin-top: 130px;
  }

  .map-1440 .frame-2338 {
    width: 1260px;
  }

  /* Reviews section 1440-1919px */
  .reviews-widget .reviews-widget-section {
    padding: 120px 80px;
    width: 100%;
  }

  .reviews-widget .reviews-widget-container {
    width: 1260px;
  }

  .reviews-widget .reviews-widget-slider-wrap {
    width: 1260px;
  }

  .reviews-widget .reviews-widget-card {
    width: 412px;
  }
}

/* ===== RESPONSIVE max-width 1439px ===== */
@media (max-width: 1439px) {
  /* Services mobile */
  .map-1440 .section {
    align-items: center;
    align-self: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 30px;
    max-width: 1050px;
    padding: 60px 20px;
    position: relative;
    width: 100%;
  }

  /* Hero section mobile */
  .map-1440 .frame-367-1 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .map-1440 .frame-366-1 {
    width: 100%;
    max-width: none;
    border-radius: 15px;
    padding: 30px 24px;
    gap: 20px;
  }

  .map-1440 .branch-gallery-container {
    width: 100%;
    flex-direction: column;
  }

  .map-1440 .branch-gallery-main-img {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
  }

  .map-1440 .branch-gallery-thumbs {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }

  .map-1440 .branch-gallery-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
  }

  .map-1440 .section .text-1 {
    align-self: stretch;
    color: var(--black);
    font-weight: 700;
    line-height: 34.2px;
    margin-top: -1px;
    position: relative;
    text-align: center;
    width: auto;
  }

  .map-1440 .frame-379 {
    align-items: flex-start;
    align-self: stretch;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 12px 12px;
    justify-content: center;
    position: relative;
    width: 100%;
  }

  .map-1440 .frame-1-1 {
    align-items: center;
    background-color: var(--green-website);
    border-radius: 15px;
    display: flex;
    flex: 1;
    flex-grow: 1;
    height: 198px;
    justify-content: space-between;
    min-width: 340px;
    padding: 0px 0px 0px 24px;
    position: relative;
  }

  .map-1440 .flex-col {
    position: relative;
    width: 295px;
    display: flex;
    min-height: 170px;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    left: 0;
    top: 0;
  }

  .map-1440 .text-52 {
    font-size: 22px;
    line-height: 24px;
  }

  .map-1440 .frame-196,
  .map-1440 .frame-196-b,
  .map-1440 .frame-196-c,
  .map-1440 .frame-196-d,
  .map-1440 .frame-196-e,
  .map-1440 .frame-196-x {
    height: auto;
    transform: rotate(-1deg);
    top: 0;
  }

  .map-1440 .text-3 {
    line-height: 24px;
  }

  .map-1440 .image {
    display: none;
  }

  .map-1440 .image-m {
    display: block;
    height: 198px;
    width: 175px;
    border-radius: 15px;
    object-fit: cover;
    position: absolute;
    right: 0;
  }

  .map-1440 .frame-1-1:nth-child(2n) {
    background-color: var(--blue);
  }

  .map-1440 .frame-1-1:nth-child(2n) .text-3 {
    color: var(--blue);
  }

  .map-1440 .frame-1-1:nth-child(2n) .frame-43:hover {
    color: var(--blue);
  }

  /* About section mobile */
  .map-1440 .frame-313-1 {
    align-self: stretch;
    background-color: var(--grey);
    border-radius: 20px;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 30px;
    padding: 50px 20px;
    width: 100%;
    align-items: center;
    display: flex;
    position: relative;
    margin-top: 40px;
  }

  .map-1440 .frame-2338 {
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 30px;
    max-width: 1010px;
    position: relative;
    width: 100%;
  }

  .map-1440 .frame-209-2 {
    flex-wrap: wrap;
    gap: 40px 12px;
    max-width: 1010px;
  }

  .map-1440 .frame-209-2 p {
    min-width: 280px;
  }

  /* Reviews mobile */
  .reviews-widget {
    margin-top: 40px;
  }

  .reviews-widget .reviews-widget-section {
    border-radius: 20px;
    padding: 50px 20px;
    width: 100%;
  }

  .reviews-widget .reviews-widget-container {
    max-width: 1010px;
    width: 100%;
  }

  .reviews-widget .reviews-widget-header {
    margin-bottom: 20px;
  }

  .reviews-widget .reviews-widget-nav {
    display: none;
  }

  .reviews-widget .reviews-widget-slider-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .reviews-widget .reviews-widget-slider {
    gap: 10px;
  }

  .reviews-widget .reviews-widget-card {
    width: 300px;
    height: 200px;
    padding: 24px 20px;
    border-radius: 15px;
  }

  .reviews-widget .reviews-widget-text {
    -webkit-line-clamp: 4;
  }

  /* Map mobile */
  .branch-map {
    max-width: 100%;
  }

  .branch-map #leafletmap {
    border-radius: 20px;
    height: 400px;
  }
}

/* ===== RESPONSIVE max-width 1024px ===== */
@media (max-width: 1024px) {
  .map-1440 .branch-gallery-container {
    flex-direction: column;
  }

  .map-1440 .branch-gallery-main-img {
    width: 100%;
    min-height: 300px;
  }

  .branch-gallery-thumbs {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }

  .branch-gallery-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
  }

  .branch-map {
    margin-bottom: 40px;
  }

  .branch-map #leafletmap {
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .reviews-widget .reviews-widget-card {
    width: 280px;
    height: 180px;
    padding: 20px 16px;
  }

  .reviews-widget .reviews-widget-text {
    -webkit-line-clamp: 3;
    font-size: 14px;
  }

  .reviews-widget .reviews-widget-author {
    font-size: 14px;
  }

  .map-1440 .branch-gallery-main-img {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
  }
}
