/* ============================================
   SWITCHCORNER HERO CAROUSEL STYLES
   ============================================ */

/* --- Hero Section --- */
.sc-hero {
  position: relative;
  height: 580px;
  overflow: visible;
}

.sc-hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.sc-hero-carousel .carousel-inner,
.sc-hero-carousel .carousel-item {
  height: 100%;
}

.sc-hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Gradient Overlay --- */
.sc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(23, 59, 108, 0.85), rgba(23, 59, 108, 0.35));
  z-index: 1;
}

/* --- Hero Content --- */
.sc-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 120px;
}

.sc-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  max-width: 600px;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.sc-hero-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.sc-hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.sc-hero-btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sc-hero-btn-primary {
  background: #AB801C;
  color: #fff;
  border: none;
}

.sc-hero-btn-primary:hover {
  background: #926d16;
  color: #fff;
}

.sc-hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.sc-hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- Carousel Controls --- */
.sc-hero-carousel .carousel-control-prev,
.sc-hero-carousel .carousel-control-next {
  z-index: 3;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.sc-hero-carousel .carousel-control-prev {
  left: 20px;
}

.sc-hero-carousel .carousel-control-next {
  right: 20px;
}

.sc-hero-carousel .carousel-control-prev:hover,
.sc-hero-carousel .carousel-control-next:hover {
  opacity: 1;
}

.sc-hero-carousel .carousel-indicators {
  z-index: 3;
  bottom: 140px;
}

.sc-hero-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
}

.sc-hero-carousel .carousel-indicators button.active {
  background: #fff;
}

/* --- Search Bar --- */
.sc-hero-search-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
}

.sc-hero-search {
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.25rem 1.5rem;
  overflow: visible;
  position: relative;
  z-index: 10;
}

/* --- Styling the existing search form inside hero --- */
.sc-hero-search .searchForm-list .row {
  align-items: stretch;
}

.sc-hero-search .searchForm-list .form-control {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  height: 52px;
  font-size: 0.95rem;
  padding-left: 48px;
  background: #f8f9fa;
  transition: all 0.2s ease;
}

.sc-hero-search .searchForm-list .form-control:focus {
  border-color: #0e1534;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 59, 108, 0.1);
}

.sc-hero-search .searchForm-list .pos-absolute-icons {
  color: #6c757d;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  position: absolute;
}

.sc-hero-search .searchForm-list .input-separate,
.sc-hero-search .searchForm-list .input-boxs {
  position: relative;
}

.sc-hero-search .searchForm-list .destination {
  position: relative;
}

.sc-hero-search .searchForm-list .destination .form-control {
  padding-left: 48px;
}

/* Date inputs */
.sc-hero-search .searchForm-list .js-datepicker {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 0 12px 0 48px;
  height: 52px;
  align-items: center;
}

.sc-hero-search .searchForm-list .js-datepicker .pos-absolute-icons {
  left: 14px;
}

.sc-hero-search .searchForm-list .js-datepicker .form-control {
  border: none;
  background: transparent;
  height: auto;
  padding: 0;
  font-size: 0.9rem;
}

.sc-hero-search .searchForm-list .js-datepicker .form-control:focus {
  box-shadow: none;
}

.sc-hero-search .searchForm-list .middle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #dee2e6;
  margin: 0 auto;
}

/* Guests/Occupancy field */
.sc-hero-search .searchForm-list .users-p .totalhotel {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  height: 52px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sc-hero-search .searchForm-list .users-p .totalhotel:hover {
  border-color: #0e1534;
}

.sc-hero-search .searchForm-list .users-p .pos-absolute-icons {
  left: 14px;
}

.sc-hero-search .searchForm-list .users-p .pos-absolute-icons-right {
  right: 14px;
  left: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Guests dropdown */
.sc-hero-search .searchForm-list .guests {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  z-index: 9999;
  margin-top: 8px;
}

/* Typeahead dropdown — ensure it escapes any parent stacking context */
.sc-hero-search .twitter-typeahead {
  width: 100%;
}

.sc-hero-search .tt-menu {
  z-index: 9999 !important;
}

.sc-hero-search .searchForm-list .guests .form-select {
  border-radius: 8px;
  border-color: #e9ecef;
}

.sc-hero-search .searchForm-list .guests .room-lab label {
  font-weight: 600;
  color: #0e1534;
}

/* Search button */
.sc-hero-search .searchForm-list .btn-primary {
  background: #AB801C;
  border-color: #AB801C;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  min-height: 52px;
  transition: all 0.3s ease;
}

.sc-hero-search .searchForm-list .btn-primary:hover {
  background: #8a6616;
  border-color: #8a6616;
  transform: translateY(-1px);
}

.sc-hero-search .searchForm-list .btn-primary i {
  font-size: 1.25rem;
}

/* Hide help messages in hero context */
.sc-hero-search .msg-help {
  display: none !important;
}

/* Typeahead close button */
.sc-hero-search .Typeahead-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.5;
}

.sc-hero-search .Typeahead-close:hover {
  opacity: 1;
}

/* --- Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .sc-hero {
    height: auto;
    min-height: 480px;
  }

  .sc-hero-title {
    font-size: 2.5rem;
  }

  .sc-hero-text {
    font-size: 1rem;
  }

  .sc-hero-buttons {
    flex-direction: column;
  }

  .sc-hero-btn {
    text-align: center;
  }

  .sc-hero-search-wrap {
    position: relative;
  }

  .sc-hero-content {
    padding-bottom: 2rem;
    padding-top: 2rem;
  }

  .sc-hero-carousel .carousel-indicators {
    bottom: 20px;
  }

  /* Search form responsive */
  .sc-hero-search .searchForm-list .form-control,
  .sc-hero-search .searchForm-list .js-datepicker,
  .sc-hero-search .searchForm-list .users-p .totalhotel {
    height: 48px;
  }

  .sc-hero-search .searchForm-list .btn-primary {
    min-height: 48px;
  }
}

@media (max-width: 575.98px) {
  .sc-hero {
    min-height: 400px;
  }

  .sc-hero-title {
    font-size: 2rem;
  }

  .sc-hero-carousel .carousel-control-prev,
  .sc-hero-carousel .carousel-control-next {
    display: none;
  }

  .sc-hero-search {
    padding: 1rem;
  }

  .sc-hero-search .searchForm-list .col-md-3,
  .sc-hero-search .searchForm-list .col-md-4,
  .sc-hero-search .searchForm-list .col-md-1 {
    margin-bottom: 0.5rem;
  }
}

/* ============================================
   SEARCH TABS STYLES
   ============================================ */

/* Tabs Navigation */
.sc-search-tabs {
  border-bottom: none;
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}

.sc-search-tabs .nav-item {
  margin-bottom: 0;
}

.sc-search-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border: 0px solid #e9ecef;
    /* border-radius: 30px; */
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
    background: #fff;
    transition: all 0.3s ease;
}
.sc-search-tabs .nav-link:hover ,
.sc-search-tabs .nav-link.active {
color: #AB801C;
}

.sc-search-tabs .nav-link svg {
  flex-shrink: 0;
}

/* Tab Content */
.sc-search-content {
  margin-top: 0.5rem;
}

.sc-search-content .tab-pane {
  padding-top: 0.5rem;
}

/* Tours Search Button */
.btn-search-tours {
  background: #AB801C;
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 52px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-search-tours:hover {
  background: #AB801C;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(171, 128, 28, 0.3);
}

.btn-search-tours svg {
  flex-shrink: 0;
}

/* Tours form select styling */
#toursSearchForm .form-select {
  height: 52px;
  padding-left: 48px;
  padding-right: 2.2rem;
  background-color: #f8f9fa;
  background-position: right 12px center;
  cursor: pointer;
}

#toursSearchForm .form-select:focus {
  border-color: #0e1534;
  box-shadow: 0 0 0 3px rgba(23, 59, 108, 0.1);
}

/* Responsive Tabs */
@media (max-width: 767px) {
  .sc-search-tabs {
    justify-content: center;
  }
  
  .sc-search-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .btn-search-tours {
    margin-top: 0.5rem;
  }
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */

/* Search box slide up animation */
.sc-hero-search-wrap {
  animation: slideUpFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tabs entrance animation */
.sc-search-tabs {
  animation: fadeInTabs 0.6s ease-out 0.8s both;
}

.sc-search-tabs .nav-item:nth-child(1) {
  animation: slideInTab 0.5s ease-out 0.9s both;
}

.sc-search-tabs .nav-item:nth-child(2) {
  animation: slideInTab 0.5s ease-out 1s both;
}

@keyframes fadeInTabs {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInTab {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab content fade */
.sc-search-content .tab-pane {
  animation: fadeInContent 0.4s ease-out;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab switch animation */
.sc-search-tabs .nav-link {
  position: relative;
  overflow: hidden;
}

.sc-search-tabs .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #AB801C;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.sc-search-tabs .nav-link:hover::after {
  width: 60%;
}

.sc-search-tabs .nav-link.active::after {
  width: 0;
}

/* Input focus animations */
.sc-hero-search .form-control,
.sc-hero-search .form-select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-hero-search .form-control:focus,
.sc-hero-search .form-select:focus {
  transform: scale(1.01);
}

/* Button pulse on hover - Apply to all search buttons */
.btn-search-tours,
.sc-hero-search .searchForm-list .btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-search-tours::before,
.sc-hero-search .searchForm-list .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-search-tours:hover::before,
.sc-hero-search .searchForm-list .btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Search icon spin on hover */
.btn-search-tours:hover svg,
.sc-hero-search .searchForm-list .btn-primary:hover i {
  animation: searchSpin 0.5s ease;
  display: inline-block;
}

@keyframes searchSpin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-15deg) scale(1.1); }
  100% { transform: rotate(0deg); }
}

/* Hero content animations */
.sc-hero-content {
  animation: fadeInHeroContent 1s ease-out 0.2s both;
}

@keyframes fadeInHeroContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero buttons hover effect */
.sc-hero-btn {
  position: relative;
  overflow: hidden;
}

.sc-hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.sc-hero-btn:hover::before {
  left: 100%;
}

/* Carousel slide transitions */
.sc-hero-carousel .carousel-item {
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .sc-hero-search-wrap,
  .sc-search-tabs,
  .sc-search-tabs .nav-item,
  .sc-search-content .tab-pane,
  .sc-hero-content,
  .sc-hero-carousel .carousel-item {
    animation: none !important;
  }
  
  .sc-hero-search .form-control:focus,
  .sc-hero-search .form-select:focus {
    transform: none;
  }
}
