@use "../../styles/abstracts/variables" as *;

/* ================= COLORS (YOUR PALETTE) ================= */
$primary: #7a4b20;
$primary-dark: #5e3817;
$primary-soft: rgba(122, 75, 32, 0.08);

$text-dark: #1a1a1a;
$text-light: #5f5f5f;

$border: rgba(122, 75, 32, 0.15);

/* ================= PAGE ================= */
.page {
  background: #ffffff;
  font-family: "Figtree", sans-serif;
}

/* ================= SECTION ================= */
.section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 1150px;
  margin: auto;

  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;

  @media (max-width: 900px) {
    grid-template-columns: 1fr;
  }
}

/* ================= DETAILS ================= */
.details {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.header {
  h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: $primary;
    letter-spacing: -0.3px;
  }

  p {
    margin-top: 0.5rem;
    color: $text-light;
    font-size: 0.95rem;
    max-width: 500px;
  }
}

/* ================= INFO ================= */
.infoGrid {
  display: grid;
  gap: 1.4rem;
}

.infoCard {
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: 16px;

  background: #ffffff;
  border: 1px solid $border;

  transition: all 0.25s ease;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(122, 75, 32, 0.15);
  }

  span {
    font-size: 0.75rem;
    color: $text-light;
  }

  h4 {
    font-size: 1rem;
    font-weight: 600;
    color: $text-dark;
    margin-top: 2px;
  }
}

.icon {
  height: 46px;
  width: 46px;
  border-radius: 12px;
  background: $primary-soft;

  display: flex;
  align-items: center;
  justify-content: center;

  color: $primary;
  font-size: 1.1rem;
}

/* ================= SIDE PANEL (PREMIUM) ================= */
.sidePanel {
  border: 1px solid $border;
  border-radius: 18px;
  padding: 1.8rem;
  height: fit-content;

  background: #ffffff;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);

  display: flex;
  flex-direction: column;
  gap: 1.2rem;

  position: sticky;
  top: 100px;

  @media (max-width: 900px) {
    position: relative;
    top: unset;
  }
}

.panelHeader {
  h3 {
    font-size: 1.2rem;
    color: $primary;
    font-weight: 700;
  }

  p {
    font-size: 0.9rem;
    color: $text-light;
  }
}

.panelItem {
  padding: 0.8rem 0;
  border-bottom: 1px dashed $border;

  &:last-child {
    border-bottom: none;
  }

  span {
    font-size: 0.85rem;
    font-weight: 600;
    color: $primary;
  }

  p {
    font-size: 0.9rem;
    color: $text-light;
    margin-top: 3px;
  }
}

/* BUTTON */
.visitBtn {
  margin-top: 1rem;

  background: $primary;
  color: #fff;

  padding: 0.8rem;
  border-radius: 10px;
  border: none;

  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.25s ease;

  &:hover {
    background: $primary-dark;
    transform: translateY(-2px);
  }
}

/* ================= CAROUSEL ================= */
.carouselSection {
  padding: 4rem 1.5rem;
}

.carouselContainer {
  max-width: 1150px;
  margin: auto;
}

.carouselHeader {
  margin-bottom: 1.8rem;

  h3 {
    font-size: clamp(2rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0.8rem 0;
    color: $primary;
    margin-top: 0.4rem;
    margin-bottom: 0;
  }

  p {
    color: #5f5f5f;
    line-height: 1.7;
    padding-top: 0 !important;
  }
}

/* ================= SLIDER ================= */
.sliderWrapper {
  position: relative;
}

.scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;

  &::-webkit-scrollbar {
    display: none;
  }
}

.cardWrap {
  min-width: 260px;
}

/* ================= CONTROLS ================= */
.control {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);

  background: #ffffff;
  border: 1px solid $border;
  color: $primary;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.1rem;
  font-weight: bold;

  cursor: pointer;
  z-index: 20;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

  &:hover {
    background: $primary;
    color: #fff;
  }
}

.left {
  left: -20px;
}

.right {
  right: -20px;
}

@media (max-width: 768px) {
  .control {
    display: none;
  }

  .section {
    padding: 2.5rem 1.2rem;
  }

  .carouselSection {
    padding: 2.5rem 1.2rem;
  }
}