/* assets/css/location-details.css */

/* Main Section */
.location-details-section {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  /* padding: 1rem; */
  margin-top: 2rem;
  scroll-margin-top: 6rem;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.line-text-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.line-text-container hr {
  flex: 1;
  border: none;
  border-top: 2px solid;
  opacity: 0.8;
}

.line-text-container h2 {
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  text-align: center;
}

/* Location Wrapper */
.location-wrapper {
  display: flex;
  flex-direction: column;
  border: 2px solid #111827;
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
}

/* Location Image */
.location-image {
  position: relative;
  width: 100%;
  min-height: 300px;
  margin: 0;
}

.image-desktop,
.image-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-desktop {
  display: none;
}

.image-mobile {
  display: block;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Location Content */
.location-content {
  width: 100%;
  background-color: #f6f8fa;
  padding: 1.5rem;
}

.location-description {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Location Categories */
.location-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.category-item {
  display: flex;
  flex-direction: column;
}

/* Category Header */
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.category-header:hover {
  opacity: 0.8;
}

.category-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.category-title {
  font-size: 0.9375rem;
}

.chevron-icon {
  width: 22px;
  height: 22px;
  color: #4b5563;
}

/* Category List */
.category-list {
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 400;
  list-style: none;
  margin: 0;
  height: 5rem;
  overflow-y: auto;
  border-bottom: 1px solid #d1d5db;
}

.category-list-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.bullet-icon {
  width: 10px;
  height: 10px;
  stroke-width: 3;
  flex-shrink: 0;
}

/* Scrollbar Styling */
.category-list::-webkit-scrollbar {
  width: 6px;
}

.category-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive Styles */
@media (min-width: 640px) {
  .category-title {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .location-wrapper {
    flex-direction: row;
  }

  .location-image {
    width: 50%;
    min-height: auto;
  }

  .image-desktop {
    display: block;
  }

  .image-mobile {
    display: none;
  }

  .location-image img {
    border-radius: 1rem 0 0 1rem;
  }

  .location-content {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .location-details-section {
    padding: 1rem;
  }
}
