/* Search icon trigger styles */
.dp-search-trigger {
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: opacity 0.2s ease;
}

.dp-search-trigger:hover {
  opacity: 0.7;
}

.dp-search-trigger svg {
  transition: transform 0.2s ease;
}

.dp-search-trigger:hover svg {
  transform: scale(1.1);
}

.dp-search-text {
  font-size: 14px;
  font-weight: 500;
}

/* Menu wrapper and popover styles */
.dp-menu-wrapper {
  position: relative;
  display: inline-block;
}

.dp-menu-trigger {
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: opacity 0.2s ease;
}

.dp-menu-trigger:hover {
  opacity: 0.7;
}

.dp-menu-trigger img {
  transition: transform 0.2s ease;
}

.dp-menu-trigger:hover img {
  transform: scale(1.1);
}

.dp-menu-text {
  font-size: 14px;
  font-weight: 500;
}

.dp-menu-popover {
  position: absolute;
  top: 80%;
  left: 0;
  background: #fff !important;
  /* border: 2px solid #121336 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; */
  min-width: 180px;
  max-width: 250px;
  z-index: 999999 !important;
  display: none;
  padding: 0 !important;
  border-radius: 3px;
}

/* Hide unwanted elements that might be injected */
.dp-menu-popover .fb_icon,
.dp-menu-popover a.fb_icon {
  display: none !important;
}

.dp-menu-popover ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dp-menu-popover li {
  border-bottom: 1px solid #eee !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dp-menu-popover li:last-child {
  border-bottom: none !important;
}

.dp-menu-popover a {
  display: block !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #333333 !important;
  font-size: 18px;
  padding: 0.2rem 1rem;
  border-left: 5px solid transparent;
  line-height: 1.5 !important;
  padding-bottom: 3px !important;
  text-transform: capitalize !important;
  font-family: "bahnschrift-semicondensed", sans-serif;
}

.dp-menu-popover a:hover {
  background: #f0f0f0 !important;
  color: #121336 !important;
}

/* Search Modal Styles */
#dp-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

#dp-modal-content {
  background: #fff;
  padding: 3em;
  border: 2px solid #5b8ca1;
  border-radius: 10px;
  min-width: 600px;
  max-width: 95vw;
  min-height: 500px;
  max-height: 85vh;
  position: relative;
  overflow: hidden;
}

#dp-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2em;
  cursor: pointer;
  color: #121336;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dp-modal-close:hover {
  color: #666;
}

#dp-modal-search-input {
  width: 100%;
  padding: 1em;
  margin-bottom: 2em;
  font-size: 1.2em;
  border: 2px solid #333333;
  border-radius: 10px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

#dp-modal-search-input:focus {
  border-color: #333;
  background: #fff;
}

#dp-modal-search-input::placeholder {
  color: #666;
}

#dp-modal-results {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
}

#dp-modal-results::-webkit-scrollbar {
  width: 8px;
}

#dp-modal-results::-webkit-scrollbar-track {
  background: #f0f0f0;
}

#dp-modal-results::-webkit-scrollbar-thumb {
  background: #121336;
}

#dp-modal-results a {
  display: block;
  padding: 1em;
  color: #121336;
  text-decoration: none;
  margin-bottom: 0.5em;
  background: #fff;
  border: 1px solid #121336;
  position: relative;
}

#dp-modal-results a:hover {
  background: #f0f0f0;
  border-color: #333;
}

#dp-modal-results a .result-title {
  font-weight: 600;
  color: #121336;
  font-size: 1.1em;
  margin-bottom: 0.3em;
}

#dp-modal-results a .result-type {
  font-size: 0.85em;
  color: #666;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  #dp-modal-content {
    min-width: 300px;
    padding: 2em;
    margin: 20px;
    min-height: 400px;
  }

  #dp-modal-search-input {
    font-size: 1em;
    padding: 1em;
  }

  #dp-modal-results {
    max-height: 280px;
  }

  /* Mobile popover styles */
  .dp-menu-popover {
    min-width: 180px;
    max-width: calc(100vw - 40px);
    right: 0;
    left: auto;
  }

  .dp-menu-popover a {
    padding: 10px 14px;
    font-size: 0.9em;
  }
}

.top-icons {
  display: flex;
  align-items: center;
  height: 100%;
}
.top-icons .top-icon-item {
  margin-right: 2rem;
}

.dp-result-item {
  display: block;
  padding: 1em;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}

.dp-result-item:hover {
  background-color: #f9f9f9;
}

.dp-modal-message {
  font-size: 1rem;
  transition: all 0.3s ease;
}
