/* Locations Component Styles */
.locations-section {
  padding: 80px 0;
}

.locations-section .container {
  margin: 0 auto;
}

/* Featured Location */
.featured-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 126px;
  align-items: center;
  padding: 64px 0;
  height: 600px;
}

.featured-location-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-right: 50px;
}

.featured-location-content h2 {
  font-size: 54px;
  font-weight: 550;
  line-height: 1.2;
  margin: 0 0 24px 0;
  font-family: var(--font-family-title);
}

.location-address {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 43px;
}

.location-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  line-height: 24px;
}

/* .contact-item:nth-child(3) {
  width: 165px;
} */
.contact-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  flex-shrink: 0;
}

.contact-icon.phone {
  padding: 3px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-item a,
.contact-item span {
  color: var(--text-default-secondary);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.contact-item a:hover {}

.featured-location-image {
  height: 472px;
  width: 532px;
  overflow: hidden;
}

.featured-location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Locations Grid */
.locations-label {
  font-size: 16px;
  font-weight: 550;
  font-family: var(--font-family-title);
  text-transform: uppercase;
  margin-bottom: 32px;
  padding-top: 64px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding-bottom: 64px;
}

.location-card {
  background: var(--background-default-tertiary);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.location-title {
  font-size: 32px;
  font-weight: 550;
  margin: 0 0 24px 0;
  font-family: var(--font-family-title);
}

.location-card .location-address {
  font-size: 26px;
  font-family: var(--font-family-title);
  font-weight: 350;
  margin-bottom: 24px;
}

.location-card .location-contact {
  margin-bottom: 40px;
}

.directions-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% + 64px);
  margin: 0 -32px -32px -32px;
  padding: 20px 32px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 550;
  text-transform: uppercase;
  font-family: var(--font-family-title);
  transition: all 0.3s ease;
  border: none;
  border-top: var(--border-default-secondary);
}

.directions-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.3s ease;
  margin-left: 0px;
  transform: rotate(-45deg);
}

/* Responsive Design */
@media screen and (max-width: 1040px) {
  .locations-section {
    padding: 0;
  }

  .featured-location {
    padding: 48px 0;
  }

  .directions-link {
    width: calc(100% + 56px);
    background: var(--background-default-tertiary);
  }

  .featured-location-content {
    width: unset;
    padding: 0;
  }

  .featured-location-content h2 {
    font-size: 34px;
    line-height: 40px;
    margin-bottom: 20px;
  }

  .featured-location {
    gap: 40px;
    height: auto;
  }

  .location-address {
    font-size: 15px;
    line-height: 20px;
  }

  .contact-item a,
  .contact-item span {
    font-size: 14px;
    line-height: 20px;
  }

  .featured-location-image {
    height: 392px;
    width: auto;
  }

  .featured-location-image img {
    object-fit: contain;
  }

  .locations-label {
    padding: 48px 0 28px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .location-card {
    padding: 28px 28px 0 28px;
  }

  .location-title {
    font-size: 28px;
    line-height: 32px;
    margin-bottom: 20px;
  }

  .location-card .location-address {
    font-size: 22px;
    line-height: 32px;
    font-weight: 350;
    margin-bottom: 28px;
  }

  .location-contact {
    gap: 20px;
  }

  .directions-link {
    margin: 0 -28px -28px -28px;
    padding: 20px 28px;
  }
}

@media (max-width: 640px) {
  .featured-location {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .featured-location-content {
    display: contents;
  }

  .featured-location-content h2 {
    order: 1;
  }

  .featured-location-content .location-address {
    order: 2;
    margin-bottom: 32px;
  }

  .featured-location-image {
    order: 3;
    height: auto;
    width: 100%;
    margin: 24px 0;
  }

  .featured-location-content .location-contact {
    order: 4;
  }

  .featured-location-content .btn {
    order: 5;
  }

  .locations-label {
    padding: 40px 0 24px 0;
  }

  .locations-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .directions-link {
    margin-bottom: 0;
  }
}