/* ==========================================================================
   GP FABRICATION - LUXURY SEARCH MODAL & COMPACT NAVBAR COMPONENT
   ========================================================================== */

/* Compact Luxury Search Trigger in Navbar */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.85rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  color: #f59e0b;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
}
.nav-search-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.nav-search-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
}
.nav-search-btn kbd {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: inherit;
  line-height: 1;
}

/* Also support legacy trigger classes for backward compatibility */
.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.85rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  color: #f59e0b;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1;
}
.nav-search-trigger:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #fff;
  transform: translateY(-1px);
}
.nav-search-trigger kbd {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: inherit;
}
.nav-search-icon-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nav-search-icon-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fff;
}

/* Compact on medium screens so navbar never overflows */
@media (max-width: 1200px) {
  .nav-search-btn span, .nav-search-btn kbd,
  .nav-search-trigger span:not(:first-child), .nav-search-trigger kbd {
    display: none;
  }
  .nav-search-btn, .nav-search-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
  }
}

/* ==========================================================================
   SEARCH MODAL OVERLAY (NO UGLY SCROLLBARS, PURE LUXURY DARK AESTHETIC)
   ========================================================================== */

.gp-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3.5rem 1rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
}
.gp-search-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Window */
.gp-search-modal {
  background: #0d121f;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.12);
  transform: translateY(-20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.gp-search-backdrop.active .gp-search-modal {
  transform: translateY(0) scale(1);
}

/* Search Header */
.gp-search-header {
  position: relative;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.gp-search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.gp-search-icon-inside {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  pointer-events: none;
}
.gp-search-input {
  width: 100%;
  height: 48px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 0 42px 0 44px;
  color: #f8fafc;
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.gp-search-input:focus {
  border-color: #f59e0b;
  background: #0b1120;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.gp-search-clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  display: none;
}
.gp-search-clear-btn:hover { color: #fff; }

.gp-search-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.gp-search-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

/* Quick Filter Tags (NO UGLY SCROLLBAR TRACK) */
.gp-search-pills-bar {
  padding: 0.65rem 1.25rem;
  background: #090e18;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE 10+ */
}
.gp-search-pills-bar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.gp-search-pill-label {
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.2rem;
}
.gp-search-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.gp-search-pill:hover, .gp-search-pill.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #f59e0b;
  font-weight: 600;
}

/* Results Area (CUSTOM DARK SLEEK SCROLLBAR) */
.gp-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.3) rgba(15, 23, 42, 0.5);
}
.gp-search-results::-webkit-scrollbar {
  width: 6px;
}
.gp-search-results::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 6px;
}
.gp-search-results::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 6px;
}
.gp-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.65);
}

.gp-search-count-header {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.gp-search-result-card {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.gp-search-result-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateX(3px);
}
.gp-search-result-info {
  flex: 1;
  min-width: 0;
}
.gp-search-div-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.gp-badge-ms { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.gp-badge-ss { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.gp-badge-tent { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

.gp-search-result-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.gp-search-result-title mark {
  background: rgba(245, 158, 11, 0.35);
  color: #fff;
  padding: 0 2px;
  border-radius: 2px;
}
.gp-search-result-items {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-search-result-items mark {
  background: rgba(245, 158, 11, 0.35);
  color: #fff;
  padding: 0 2px;
  border-radius: 2px;
}

.gp-search-result-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.gp-search-link-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.gp-search-link-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.gp-search-wa-btn {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}
.gp-search-wa-btn:hover {
  background: #25d366;
  color: #000;
  transform: translateY(-1px);
}

.gp-search-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}
.gp-search-no-results h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Footer of modal */
.gp-search-footer {
  padding: 0.65rem 1.25rem;
  background: #080c14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   UNIVERSAL MOBILE MENU DRAWER
   ========================================================================== */
.gp-mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.gp-mobile-nav-toggle:active { transform: scale(0.95); }

.gp-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(14px);
  z-index: 99990;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.25rem;
}
.gp-mobile-drawer.open {
  transform: translateX(0);
}
.gp-mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}
.gp-mobile-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}
.gp-mobile-search-banner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b;
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}
.gp-mobile-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gp-mobile-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.gp-mobile-drawer-links a:active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

.gp-mobile-drawer-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-search-btn { display: none; }
  .nav-search-trigger { display: none; }
  .nav-search-icon-btn { display: inline-flex; }
  .gp-mobile-nav-toggle { display: inline-flex; }
  .gp-search-backdrop {
    padding: 0;
    align-items: stretch;
  }
  .gp-search-modal {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .gp-search-input {
    font-size: 16px; /* Prevents auto-zoom on mobile browsers */
  }
  .gp-search-result-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .gp-search-result-actions {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .gp-search-link-btn, .gp-search-wa-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}
