@import url('scrollbar.css');

/* =========================
   SEARCH SECTION
========================= */

.search-section {
  background: #f5f6f8;
  padding: 30px 0;
  display: flex;
  justify-content: center;
}

.search-box {
  width: 60%;
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.search-entire {
  padding: 12px 16px;
  color: #1fa2c9;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.search-entire:hover {
  background: #f7f9fc;
}


/* =========================
   COMMON INPUT STYLES
========================= */

.location,
.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  position: relative;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.location i,
.search-input i {
  color: #666;
  font-size: 14px;
}

/* =========================
   LOCATION SECTION
========================= */

.location {
  width: 320px;
  border-right: 1px solid #ddd;
  flex-shrink: 0;
}

/* Location dropdown */

.location .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.location .dropdown.show {
  display: block;
}

/* Use my location */

.use-location {
  padding: 12px 16px;
  color: #1fa2c9;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.use-location:hover {
  background: #f7f9fc;
}

/* Location item */

.location-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.location-item:hover {
  background: #f7f9fc;
}

.icon-circle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.location-text {
  display: flex;
  flex-direction: column;
}

.location-text h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.location-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #777;
}

.location-type {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #6b7cff;
  padding-left: 10px;
  white-space: nowrap;
}

/* =========================
   SPECIALIZATION SEARCH
========================= */
/*
#searchInput:disabled {
  background: #f3f3f3;
  cursor: not-allowed;
}
*/
  #searchInput {
  background: transparent;
  cursor: text;
}
.search-input {
  flex: 1;
}

/* Specialization dropdown */

.search-input .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  z-index: 300;
  display: none;
}


.search-input .dropdown.show {
  display: block;
}


/* Specialization item */

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.search-item:hover {
  background: #f7f9fc;
}

.search-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-left span {
  line-height: 1.2;
}

.search-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
}

.search-type {
  font-size: 12px;
  font-weight: 600;
  color: #6b7cff;
  white-space: nowrap;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .search-box {
    width: 90%;
    flex-direction: column;
  }

  .location {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .location .dropdown {
    width: 100%;
  }
}
