/* Address Section */
.address-section .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.address-section .content-wrapper {
  display: flex;
  flex-direction: column;
}

.address-section .content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Fallback using margins */
.address-section .content > * {
  margin-bottom: 40px;
}

/* Feature queries for gap support */
@supports (gap: 40px) {
  .address-section .content > * {
    margin-bottom: 0;
  }
}

/* Remove the margin for the last item */
.address-section .content > *:last-child {
  margin-bottom: 0;
}

.address-section .branches-panel {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

/* Fallback using margins */
.address-section .branches-panel > * {
  margin-bottom: var(--content-gap);
}

/* Feature queries for gap support */
@supports (gap: var(--content-gap)) {
  .address-section .branches-panel > * {
    margin-bottom: 0;
  }
}

.address-section .branches-panel > *:last-child {
  margin-bottom: 0;
}

.address-section .title {
  font-size: var(--h1-font-size-mobile);
  font-weight: var(--h1-font-weight);
  line-height: var(--h1-line-height-mobile);
  text-align: left;
}

.address-section .address-name {
  font-size: var(--h3-font-size-mobile);
  font-weight: 300;
  line-height: var(--h3-line-height-mobile);
  text-align: left;
}

.address-section .image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Fallback using margins */
.address-section .image-container > * {
  margin-bottom: 8px;
}

/* Feature queries for gap support */
@supports (gap: 8px) {
  .address-section .image-container > * {
    margin-bottom: 0;
  }
}

.address-section .image-container > *:last-child {
  margin-bottom: 0;
}

.address-section .branches-panel .content-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8.91px;
  align-self: center;
}

.address-section .branches-panel .content-image img {
  width: 100%;
  height: 171px;
  border-radius: 8.91px;
  display: block;
  object-fit: cover;
}

.address-section .fake-dots {
  width: 125px;
  height: 4px;
}

.address-section .branch-select {
  display: flex;
  flex-direction: column;
  gap: var(--smaller-gap);
}

/* Fallback using margins */
.address-section .branch-select > * {
  margin-bottom: var(--smaller-gap);
}

/* Feature queries for gap support */
@supports (gap: var(--smaller-gap)) {
  .address-section .branch-select > * {
    margin-bottom: 0;
  }
}

.address-section .branch-select > *:last-child {
  margin-bottom: 0;
}

.address-section .branch-select select {
  height: 32px;
  padding: 0px 12px;
  border-radius: 8px;
  border: 1px solid #bfc0c5;

  color: var(--main-color);
  font-size: var(--h3-font-size-mobile);
  font-weight: var(--h3-font-weight);
  line-height: var(--h3-line-height-mobile);
  text-align: left;

  appearance: none;
  background: transparent url("./assets/address/arrows_button_down.png")
    no-repeat right 12px center;
  background-size: 12.69px 6.34px;
}

.address-section .branch-select select option {
  background-color: transparent;
}

.address-section .branch-select select::-ms-expand {
  display: none;
}

.address-section .branch-select label {
  font-size: var(--h2-font-size-mobile);
  font-weight: var(--h2-font-weight);
  line-height: var(--h2-line-height-mobile);
  text-align: left;
}

.address-section .details {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

/* Fallback using margins */
.address-section .details > * {
  margin-bottom: var(--content-gap);
}

/* Feature queries for gap support */
@supports (gap: var(--content-gap)) {
  .address-section .details > * {
    margin-bottom: 0;
  }
}

.address-section .details > *:last-child {
  margin-bottom: 0;
}

.address-section .details .address {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  border-bottom: 1px solid #bfc0c5;
}

.address-section .details span {
  font-size: var(--h3-font-size-mobile);
  font-weight: 300;
  line-height: var(--h3-line-height-mobile);
  text-align: left;
}

/* Hide elements */
.address-section .hidden-content {
  gap: var(--smaller-gap);
}

.address-section .hidden-carousel {
  display: none;
}

.address-section .hidden-map {
  display: none;
}

/* ------------- */

.address-section .address-map {
  display: flex;
  flex-direction: column;
  gap: var(--smaller-gap);
  padding-bottom: 20px;
  border-bottom: 1px solid #bfc0c5;
}

/* Fallback using margins */
.address-section .address-map > * {
  margin-bottom: var(--smaller-gap);
}

/* Feature queries for gap support */
@supports (gap: var(--smaller-gap)) {
  .address-section .address-map > * {
    margin-bottom: 0;
  }
}

.address-section .address-map > *:last-child {
  margin-bottom: 0;
}

.address-section .address-map h2 {
  font-size: var(--h2-font-size-mobile);
  font-weight: var(--h2-font-weight);
  line-height: var(--h2-line-height-mobile);
  text-align: left;
}

.address-section .map {
  width: 100%;
  height: auto;
  border-radius: 3.86px;
  align-self: center;
}

.address-section .map img {
  width: 100%;
  height: 239.79px;
  border-radius: 3.86px;
  display: block;
  object-fit: cover;
}

.address-section .details .working-hours {
  display: flex;
  flex-direction: column;
  gap: var(--smaller-gap);
  padding-bottom: 20px;
  border-bottom: 1px solid #bfc0c5;
}

/* Fallback using margins */
.address-section .details .working-hours > * {
  margin-bottom: var(--smaller-gap);
}

/* Feature queries for gap support */
@supports (gap: var(--smaller-gap)) {
  .address-section .details .working-hours > * {
    margin-bottom: 0;
  }
}

.address-section .details .working-hours > *:last-child {
  margin-bottom: 0;
}

.address-section .details .contact-phone {
  display: flex;
  flex-direction: column;
  gap: var(--smaller-gap);
}

/* Fallback using margins */
.address-section .details .contact-phone > * {
  margin-bottom: var(--smaller-gap);
}

/* Feature queries for gap support */
@supports (gap: var(--smaller-gap)) {
  .address-section .details .contact-phone > * {
    margin-bottom: 0;
  }
}

.address-section .details .contact-phone > *:last-child {
  margin-bottom: 0;
}

.address-section .toggle-map-btn {
  cursor: pointer;
}

.address-section .swiper {
  height: 183.98px;
}

@media (min-width: 390px) {
  .address-section .swiper {
    height: 219px;
  }
}

@media (min-width: 430px) {
  .address-section .swiper {
    height: 239.79px;
  }
}

@media (min-width: 1280px) {
  .address-section {
    order: 17;
  }

  .address-section .container {
    width: 1200px;
    gap: 60px;
  }

  .address-section .title {
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    text-align: left;
  }

  .address-section .content-wrapper {
    height: auto;
    flex-direction: row;
    gap: 36px;
  }

  .address-section .content {
    order: 2;
    max-width: 376px;
  }

  .address-section .map {
    order: 1;
    max-width: 100%;
    min-width: 788px;
    height: 841.31px;
  }

  .address-section .map img {
    max-width: 100%;
    min-width: 788px;
    height: 841.31px;
    border-radius: 12px;
  }

  .address-section .branch-select {
    flex-direction: row;
    align-items: center;
  }

  .address-section .branch-select label {
    width: 50%;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
    text-align: left;
    white-space: nowrap;
  }

  .address-section .branch-select select {
    width: 221px;
    height: 45px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #bfc0c5;

    font-family: Ubuntu;
    font-size: 18px;
    font-weight: 300;
    line-height: 23.4px;
    text-align: left;

    outline: none;
  }

  .address-section .branches-panel {
    border: 1px solid #bfc0c5;
    padding: 20px;
    border-radius: 12px;
  }

  .address-section .branches-panel > * {
    margin-bottom: var(--content-gap);
  }

  .address-section .address-name {
    font-size: 24px;
    font-weight: 400;
    line-height: 31.2px;
    text-align: center;
  }

  .address-section .address-map h2 {
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
    text-align: center;
  }

  .address-section .details .label {
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
  }

  .address-section .details span {
    text-align: center;
  }

  .address-section .swiper {
    height: 276.73px;
  }
}
