/**
 * Homepage smart search panel styles.
 * PACKAGE_REVISION=HOMEPAGE_SMART_SEARCH_R7_PREPARE_ONLY
 */

.hss-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.hss-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  position: relative;
}

.hss-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: #ffffff;
  border: 1px solid #d0d7de;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: min(70vh, 420px);
  overflow: auto;
  text-align: left;
}

.hss-panel-status {
  padding: 12px 14px;
  color: #444;
  font-size: 14px;
}

.hss-panel-status[data-kind="error"] {
  color: #8a1f11;
}

.hss-panel-status[data-kind="empty"] {
  color: #666;
}

.hss-group-title {
  padding: 10px 14px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #00357b;
}

.hss-option {
  padding: 8px 14px;
  cursor: pointer;
}

.hss-option.is-active,
.hss-option:hover {
  background: #f2f6fc;
}

.hss-option-name {
  font-size: 14px;
  color: #111;
}

.hss-option-sub {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.hss-panel-footer {
  border-top: 1px solid #e6e6e6;
  padding: 10px 14px;
}

.hss-see-all {
  font-size: 13px;
  font-weight: 600;
  color: #00357b;
  text-decoration: none;
}

.hss-see-all:hover,
.hss-see-all:focus {
  text-decoration: underline;
}

.hss-results-page {
  margin-top: 24px;
  padding-bottom: 40px;
}

.hss-results-title {
  font-size: 22px;
  margin: 12px 0 20px;
  color: #00357b;
}

.hss-results-section {
  margin-bottom: 28px;
}

.hss-results-section h2 {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #00357b;
  margin-bottom: 10px;
}

.hss-results-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: inherit;
  text-decoration: none;
}

.hss-results-name {
  display: block;
  font-size: 16px;
}

.hss-results-sub {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.hss-results-empty,
.hss-results-more {
  font-size: 13px;
  color: #666;
}

.hss-hospital-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hss-hospital-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #f7f7f7;
  flex-shrink: 0;
}

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

.hss-hospital-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.hss-hospital-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #00357b;
  background: #eef4ff;
  border-radius: 999px;
  padding: 3px 9px;
}

.hss-hospital-stats {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

@media (max-width: 767px) {
  .hss-inner {
    flex-direction: column;
  }

  .hss-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 0;
    max-height: 55vh;
    border-radius: 12px 12px 0 0;
    z-index: 1000;
  }

  .menu_index_search_input_select.hss-country,
  .menu_index_search_input_name.hss-input {
    width: 100%;
  }
}
