/**
 * Spa Branches Styles
 * 
 * @package Hygge_Child
 */

.hygge-branches-container {
  margin-bottom: 42px;
}

.hygge-branches-layout {
  display: grid;
  grid-template-columns: 1fr 392px;
  gap: 24px;
}

/* Left: Branch List */
.hygge-branches-list {
  border-radius: 16px;
  border: 1px solid var(--Light-Green, #d0d8c4);
  background: var(--White, #fff);
  display: flex;
  flex-direction: column;
  max-height: 536px;
  overflow: hidden;
}

.hygge-branches-title {
  font-size: 24px;
  font-weight: 300;
  color: #000;
  padding: 24px 16px 16px 16px;
  line-height: 150%;
  margin: 0 !important;
  flex-shrink: 0;
}

.hygge-branches-filter {
  padding: 0 16px 16px 16px;
  flex-shrink: 0;
}

.location-filter {
  width: 100%;
  padding: 0 12px !important;
  padding-right: 36px !important;
  border: 1px solid var(--Light-Green, #e1dcd4);
  border-radius: 8px !important;
  background: var(--White, #fff);
  color: #111;
  font-size: 16px;
  line-height: 150% !important;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.3s ease;
  height: 48px !important;
  font-family: "Source Serif 4";
}

.location-filter:hover {
  border-color: #648050;
}

.location-filter:focus {
  outline: none;
  border-color: #648050;
}

.hygge-branches-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

/* Custom Scrollbar Styling */
.hygge-branches-items::-webkit-scrollbar {
  width: 8px;
}

.hygge-branches-items::-webkit-scrollbar-track {
  background: #648050;
  border-radius: 4px;
}

.hygge-branches-items::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 4px;
}

.hygge-branches-items::-webkit-scrollbar-thumb:hover {
  background: #648050;
}

/* Firefox scrollbar */
.hygge-branches-items {
  scrollbar-width: thin;
  scrollbar-color: #648050 #fff;
}

.hygge-branch-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hygge-branch-item:hover {
  background: #f5f5f5;
}

.hygge-branch-item.is-active {
  background: #ebe6e0;
}

.branch-thumbnail {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

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

.branch-info {
  flex: 1;
  min-width: 0;
}

.branch-name {
  color: #111;
  font-size: 16px;
  font-style: normal;
  line-height: 150%; /* 24px */
  margin-bottom: 8px;
  font-family: "Source Serif 4";
}

.branch-address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #111;
  font-size: 16px;
  line-height: 150%;
  font-weight: 300;
  font-family: "Source Serif 4";
}

.branch-address .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: #648050;
}

/* Right: Map and Details */
.hygge-branches-details {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}

.hygge-branches-map {
  width: 100%;
  height: 302px;
}

.hygge-branch-details {
  background: #ebe6e0;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.branch-details-title {
  color: #111;
  font-size: 24px;
  font-weight: 300;
  line-height: 150%; /* 36px */
  margin-bottom: 8px !important;
}

.branch-details-address {
  color: #111;
  font-family: "Source Serif 4";
  line-height: 150%;
  margin: 0;
  font-weight: 300;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 32px;
  border: 1px solid #37584c;
  background: #fff;
  color: #37584c;
  font-size: 16px;
  font-weight: 600;
  line-height: 150%; /* 24px */
  margin-top: 46px;
  font-family: "Source Serif 4";
}

.btn-directions:hover {
  color: #ffffff;
  background: #37584c;
}

.branch-details-header {
  width: calc(50% - 12px);
}

.branch-contact-info {
  width: calc(50% - 12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #666;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item > div {
  display: flex;
  flex-direction: column;
}

.contact-label {
  color: #111;
  line-height: 150%;
  font-family: "Source Serif 4";
  font-weight: 300;
}

.contact-value {
  color: #111;
  font-size: 20px;
  line-height: 150%;
  font-family: "Source Serif 4";
}

.hygge-branches-empty {
  text-align: center;
  padding: 40px;
  color: #999;
}

@media (max-width: 768px) {
  .hygge-branch-details {
    flex-direction: column;
    padding: 24px 16px;
  }

  .hygge-branches-layout {
    display: flex;
    flex-direction: column-reverse;
  }

  .hygge-branches-list {
    max-height: 400px;
    order: 2;
  }

  .hygge-branches-details {
    order: 1;
  }

  .hygge-branches-map {
    height: 240px;
  }

  .btn-directions {
    margin-top: 16px;
  }

  .branch-details-address {
    font-size: 16px;
  }

  .branch-details-header {
    width: 100%;
  }
}
