
/* Mobile Search Box Styles - Clean Design Matching Reference Image */

/* Mobile Search Box Container - Visible only on mobile */
@media (max-width: 767px) {
  .mobile-search-box {
    display: block;
    width: 100%;
    padding: 0;
    margin-top: 0;
    margin-bottom: 20px;
  }

  /* Hide on desktop */
  .mobile-search-box.hidden-xs {
    display: none;
  }

  /* Mobile Search Tabs Container */
  .mobile-search-tabs {
    width: 100%;
    background: transparent;
    border-radius: 0 0 0 0;
    box-shadow: none;
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
    isolation: isolate;
  }

  .mobile-search-tabs .ant-tabs-nav {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    border-bottom: none !important;
  }

  .mobile-search-tabs .ant-tabs-nav::before {
    border-bottom: none !important;
    display: none !important;
  }

  .mobile-search-tabs .ant-tabs-nav-list {
    display: flex;
    gap: 0;
    padding: 0px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-search-tabs .ant-tabs-nav-list::-webkit-scrollbar {
    display: none;
  }

  .mobile-search-tabs .ant-tabs-tab {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    flex: 1;
    min-width: 0;
  }

  .mobile-search-tabs .ant-tabs-tab-btn {
    width: 100%;
    padding: 4px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    border-radius: 0px;
    background: transparent;
    transition: all 0.2s ease;
    border: none;
    min-height: 56px;
    margin: 0px;
}

  /* Active tab - Minimal blue background */
  .mobile-search-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none;
    transform: none;
  }
  
  /* First tab - rounded left (always) */
  .mobile-search-tabs .ant-tabs-tab:first-child .ant-tabs-tab-btn {
    border-top-left-radius: 20px;
    border-top-right-radius: 0;
  }
  
  /* Last tab (Hourly) - rounded right (always) */
  .mobile-search-tabs .ant-tabs-tab:last-child .ant-tabs-tab-btn {
    border-top-right-radius: 20px !important;
    border-top-left-radius: 0 !important;
  }
  
  /* Last tab (Hourly) - rounded right when active */
  .mobile-search-tabs .ant-tabs-tab:last-child.ant-tabs-tab-active .ant-tabs-tab-btn {
    border-top-right-radius: 20px !important;
    border-top-left-radius: 0 !important;
  }
  
  /* Last tab (Hourly) - rounded right when inactive */
  .mobile-search-tabs .ant-tabs-tab:last-child:not(.ant-tabs-tab-active) .ant-tabs-tab-btn {
    border-top-right-radius: 20px !important;
    border-top-left-radius: 0 !important;
  }
  
  /* Middle tab - no rounded corners */
  .mobile-search-tabs .ant-tabs-tab:not(:first-child):not(:last-child) .ant-tabs-tab-btn {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  /* Inactive tabs - Glass finish background */
  .mobile-search-tabs .ant-tabs-tab:not(.ant-tabs-tab-active) .ant-tabs-tab-btn {
    background: rgb(255 255 255 / 71%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
  }

  /* Mobile Tab Content */
  .mobile-tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
  }

  .mobile-tab-icon {
    width: 22px;
    height: 22px;
    transition: all 0.2s ease;
    display: inline-block;
    flex-shrink: 0;
  }

  /* Active tab icons - white, minimal */
  .mobile-search-tabs .ant-tabs-tab-active .mobile-tab-icon {
    color: #6f6e6e;
    opacity: 1;
    transform: none;
  }

  /* Inactive tab icons - subtle */
  .mobile-search-tabs .ant-tabs-tab:not(.ant-tabs-tab-active) .mobile-tab-icon {
    color:#4b4b4b;
    opacity: 10;
  }

  .mobile-tab-content span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
  }

  /* Active tab text - white, minimal */
  .mobile-search-tabs .ant-tabs-tab-active .mobile-tab-content span {
    color: #6f6e6e;
    opacity: 1;
    font-weight: 600;
    text-shadow: none;
    text-transform: uppercase;
    font-size: 14px;
}
  /* Inactive tab text - subtle */
  .mobile-search-tabs .ant-tabs-tab:not(.ant-tabs-tab-active) .mobile-tab-content span {
    color: #4b4b4b;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

  /* Mobile Search Form */
  .mobile-search-form {
    background: #ffffff;
    border-radius: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 0px;
    position: relative;
    z-index: 101;
    pointer-events: auto !important;
    isolation: isolate;
    /* border-top: none; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

  /* Mobile Date Row - Side by side check-in and check-out */
  .mobile-date-row {
    display: flex;
    gap: 0px;
    width: 100%;
}

  .mobile-date-item {
    flex: 1;
    min-width: 0;
  }

  /* Mobile Search Item - Clean Input Field Style */
  .mobile-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border-radius: 0px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 52px;
    position: relative;
    z-index: 11;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(25, 118, 210, 0.2);
}

  .mobile-search-item:active {
    border-color: #1976d2;
    background: #f5f5f5;
  }

  /* Ensure click events work on mobile search items */
  .mobile-search-item {
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(25, 118, 210, 0.2);
    touch-action: manipulation;
  }
  
  .mobile-search-item * {
    pointer-events: none;
  }
  
  .mobile-search-item:hover,
  .mobile-search-item:active,
  .mobile-search-item:focus {
    pointer-events: auto !important;
  }

  /* Mobile Search Icon - Left side, simple */
  .mobile-search-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    margin-left: 14px;
  }

  .mobile-search-icon i {
    font-size: 18px;
    color: #757575;
  }

  /* Mobile Search Content */
  .mobile-search-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px 10px 0;
    min-width: 0;
  }

  .mobile-search-content h5 {
    font-size: 14px;
    color: #828282;
    margin: 0;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 1px;
    line-height: 1.2;
    font-family: monospace;
  }

  .mobile-search-content p {
    font-size: 16px;
    color: #2f2f2f;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Mobile Night Count */
  .mobile-night-count {
    font-size: 11px;
    color: #1976d2;
    font-weight: 500;
    margin-top: 2px;
  }

  /* Mobile Search Button - Clean Blue Button */
  .mobile-search-button {
    width: 100%;
    padding: 12px 20px;
    background: #1976d2;
    color: #ffffff;
    border: none;
    border-radius
: 0px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    margin-top: 0px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

  .mobile-search-button:active {
    background: #1565c0;
    transform: scale(0.98);
  }

  .mobile-search-button i {
    font-size: 16px;
  }

  /* Ant Design Tabs Content */
  .mobile-search-tabs .ant-tabs-content-holder {
    padding: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
  }

  .mobile-search-tabs .ant-tabs-content {
    margin-top: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
  }

  .mobile-search-tabs .ant-tabs-tabpane {
    padding: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
  }

  /* Remove underline from tabs */
  .mobile-search-tabs .ant-tabs-ink-bar {
    display: none !important;
  }
}

/* Hide mobile search box on desktop */
@media (min-width: 768px) {
  .mobile-search-box {
    display: none !important;
  }
}
