/* Custom Styles for Last Minute Availability Search 2026 */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,500,500i,600,600i,700,700i&display=swap');

:root {
  --primary-accent: hsl(201, 80%, 48%);
  /* #1797DC */
  --primary-accent-hover: hsl(201, 88%, 33%);
  --success-color: hsl(145, 63%, 42%);
  --text-color: hsl(217, 19%, 20%);
  --text-muted: hsl(215, 16%, 47%);
  --bg-color: #ffffff;
  --panel-bg: #ffffff;
  --border-color: hsl(214, 32%, 91%);

  --font-family-title: 'Open Sans', sans-serif;
  --font-family-body: 'Open Sans', sans-serif;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-title);
  font-weight: 700;
}

/* Hero & Header Branding */
.navbar-brand {
  font-family: var(--font-family-title);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-banner {
  position: relative;
  background: #ffffff;
  padding: 1rem 0 3rem 0;
  overflow: hidden;
  color: var(--text-color);
}

/*
.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(23, 151, 220, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
*/

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--text-color);
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Glassmorphic Search Panel */
.search-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  color: var(--text-color);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.hero-banner .badge-light {
  background: hsl(201, 80%, 96%) !important;
  color: hsl(201, 80%, 35%) !important;
  border: 1px solid hsl(201, 80%, 90%) !important;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 0.85rem !important;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.hero-banner .badge-light:hover {
  background: hsl(201, 80%, 93%) !important;
  border-color: hsl(201, 80%, 85%) !important;
}

.search-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
}

/* Form Controls Styling */
.form-group label {
  /* font-size: 0.85rem; */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-family-body);
  transition: all 0.2s ease;
  height: auto;
}

.form-control:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 4px rgba(23, 151, 220, 0.15);
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.22 4.47a.75.75 0 0 1 1.06 0L6 7.19l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L2.22 5.53a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
}

#mainChildAgeContainer .col-12.mb-3:last-child {
  margin-bottom: 0 !important
}

/* Buttons */
.btn-search {
  background: var(--primary-accent);
  border: none;
  color: #fff;
  font-family: var(--font-family-title);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(23, 151, 220, 0.3);
}

.btn-search:hover:not(:disabled) {
  background: var(--primary-accent-hover);
  /* transform: translateY(-2px); */
  /* box-shadow: 0 6px 15px rgba(23, 151, 220, 0.4); */
  color: #fff;
}

.btn-search:active:not(:disabled) {
  transform: translateY(0);
}

.btn-search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading & Progress States */
.loading-wrapper {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.progress-bar-custom {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-accent) 0%, #4fc3f7 100%);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.pulse-spinner {
  width: 45px;
  height: 45px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Results Section Header */
.results-header {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.results-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-accent);
}

/* Hotel Grid Card Styling */
.hotel-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hotel-card:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: hsl(201, 80%, 80%);
}

.hotel-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background-color: #e5e7eb;
}

.hotel-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/*
.hotel-card:hover .hotel-card-image {
  transform: scale(1.05);
}
*/

/* Badges */
.hotel-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-badge {
  background: rgba(23, 151, 220, 0.95);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.discount-badge {
  background: rgba(220, 53, 69, 0.95);
  backdrop-filter: blur(4px);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Card Body Details */
.hotel-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hotel-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.rating-number {
  font-weight: 700;
  color: var(--primary-accent);
}

.rating-word {
  font-weight: 600;
  color: var(--text-color);
}

.price-divider {
  border-top: 1px solid var(--border-color);
  margin: auto 0 0.75rem 0;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.price-values {
  text-align: right;
}

.price-from-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: lowercase;
  margin-bottom: -4px;
  font-weight: 500;
  display: block;
}

.strikethrough-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: #dc3545;
  margin-right: 4px;
}

.gross-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-color);
  font-family: var(--font-family-title);
}

/* Action Button */
.btn-select-room,
.btn-select-room:visited,
.gtm-lmaa-booking-btn,
.gtm-lmaa-booking-btn:visited {
  display: block;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
  font-family: var(--font-family-title);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-select-room:hover,
.gtm-lmaa-booking-btn:hover,
.gtm-lmaa-booking-btn:focus,
.gtm-lmaa-booking-btn:active {
  text-decoration: none;
  color: #fff;
}

.hotel-card:hover .btn-select-room,
.hotel-card:hover .gtm-lmaa-booking-btn {
  background: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
  box-shadow: 0 4px 10px rgba(23, 151, 220, 0.2);
  text-decoration: none;
}

/* Modal UI overrides to look cohesive */
#siteModal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/*
#siteModal .modal-header {
  background: linear-gradient(135deg, hsl(201, 85%, 20%) 0%, hsl(201, 60%, 40%) 100%);
  color: #fff;
  border-bottom: none;
  padding: 1.5rem;
}
*/

#siteModal .modal-header .close {
  color: #fff;
  opacity: 0.8;
  text-shadow: none;
}

#siteModal .modal-header .close:hover {
  opacity: 1;
}

/*
#siteModal .modal-body {
  background-color: var(--bg-color);
  padding: 2rem 1.5rem;
}
*/

/* Quick Animation utilities */
.fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media only screen and (max-width: 767px) {
  #mainChildAgeContainer .col-12.mb-3:last-child {
    margin-bottom: 1rem !important;
  }
}

@media only screen and (max-width: 640px) {
  #mainSearchPanel.search-card {
    padding: 1.4rem;
  }
}

@media only screen and (max-width: 480px) {
  #mainSearchPanel.search-card {
    padding: 1rem;
  }

  .hero-banner .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-banner .badge-light {
    font-size: 0.75rem;
  }

  #mainSearchForm {
    font-size: .95em;
  }

  #mainSearchForm .form-control {
    font-size: 0.85rem;
  }


  .btn-select-room,
  .btn-select-room:visited,
  .gtm-lmaa-booking-btn,
  .gtm-lmaa-booking-btn:visited {
    font-size: 1em;
  }
}