/* Landing Page Specific Styles */

/* Page background */
body {
  background-color: #fff;
}

.landing-headline {
  font-size: 15px;
  font-weight: 400;
  color: #666;
  text-align: center;
  margin: 16px 0 6px 0;
  letter-spacing: 0;
}

/* Search container styling */
.container > section.search-container {
  margin: 0 calc(-50vw + 50%) 0 calc(-50vw + 50%);
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

/* Advertiser bar styling */
.advertiser-bar {
  margin: 12px auto;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  color: #6b6b6b;
  background-color: transparent;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

.hotel-chains-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.hotel-chains-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.chain-logo {
  height: 34px;
  width: auto;
  filter: grayscale(0);
  opacity: 1;
  transition: all 0.3s ease;
}

.chain-logo:hover {
  transform: scale(1.05);
}


.search-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.search-input-wrapper {
  position: relative;
  isolation: isolate;
}



/* Search form styling */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #ffffff;
  padding: 8px 0 0 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Search parameters container */
.search-form .search-params-container {
  background-color: transparent;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 682px;
  max-width: 682px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Form row for 2-column layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Form column */
.form-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Form labels */
.form-column label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

/* Search button */
.search-button {
  width: 100%;
  height: 42px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  margin-top: 8px;
}

.search-button:hover {
  background-color: #0056b3;
}

.search-button:active {
  background-color: #004085;
}

.search-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* Autocomplete listbox */
/* Note: Autocomplete listbox styles are managed in shared.css for site-wide consistency */


/* ========================================
   DATE PICKER MODAL STYLES
   ======================================== */

/* Form inputs (text for date picker) */
.form-column input[type="text"][readonly] {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
}

.form-column input[type="text"][readonly]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

/* Modal content — shared size across all modals */
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  width: 90%;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

/* Modal header */
.modal-header {
  background-color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #666;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

/* Modal body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* Date selection row */
.date-selection-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.date-box {
  background-color: white;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.date-box.selected {
  border-color: #007bff;
}

.date-label {
  font-size: 13px;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 2px;
}

.date-value {
  font-size: 14px;
  color: #666;
}

/* Calendar container */
.calendar-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Month container */
.month-container {
  background-color: white;
  border-radius: 8px;
  padding: 12px;
}

/* Month header */
.month-header {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Weekday row */
.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.weekday-header {
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: #666;
  padding: 4px 0;
}

/* Calendar grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* Calendar day */
.calendar-day {
  aspect-ratio: 1;
  border: none;
  background-color: transparent;
  font-size: 13px;
  font-weight: 400;
  color: #333;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:not(.empty):not(.past):hover {
  background-color: #f0f0f0;
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.past {
  color: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
}

.calendar-day.today {
  background-color: #f5f5f5;
}

.calendar-day.selected {
  background-color: #007bff;
  color: white;
  font-weight: 600;
}

.calendar-day.selected:hover {
  background-color: #0056b3;
}

.calendar-day.in-range {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Modal footer */
.modal-footer {
  background-color: white;
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.btn-secondary,
.btn-primary {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.btn-secondary {
  background-color: transparent;
  color: #666;
}

.btn-secondary:hover {
  background-color: #f0f0f0;
}

.btn-secondary:disabled {
  opacity: 0.5;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  flex: 1;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Responsive styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 2% auto;
    max-height: 95vh;
  }
  
  .date-selection-row {
    grid-template-columns: 1fr;
  }
  
  .calendar-day {
    font-size: 14px;
  }
  
  .month-header {
    font-size: 18px;
  }
}

/* ========================================
   TRAVELERS PICKER MODAL STYLES
   ======================================== */

/* Rooms container */
.rooms-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Room container */
.room-container {
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Room header */
.room-header {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

/* Counter row */
.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.counter-label-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.counter-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.counter-subtitle {
  font-size: 13px;
  color: #666;
}

/* Counter controls */
.counter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-button {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background-color: white;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.counter-button:hover:not(:disabled) {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.counter-button:disabled {
  opacity: 0.3;
}

.counter-value {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  min-width: 20px;
  text-align: center;
}

/* Child ages container */
.child-ages-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
}

.child-age-select-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.child-age-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.child-age-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #007bff;
  border-radius: 4px;
  background-color: white;
  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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.child-age-select:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Remove room button */
.remove-room-button {
  align-self: flex-start;
  padding: 8px 0;
  background: none;
  border: none;
  color: #007bff;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.remove-room-button:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Add another room button in footer */
#add-room {
  flex: 1;
}

/* ========================================
   EXPLORE SECTION CAROUSEL STYLES
   ======================================== */

.explore-section {
  margin-top: 20px;
  margin-bottom: 8px;
}

.explore-header {
  margin-bottom: 8px;
}

.explore-header h2 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.explore-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b6b6b;
}

.explore-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.explore-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}

.explore-carousel::-webkit-scrollbar {
  display: none;
}

.destination-card {
  flex: 0 0 auto;
  width: 200px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.destination-card:hover {
  transform: translateY(-3px);
}

.destination-card:hover .destination-image {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.destination-image {
  width: 200px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background-color: #e8e8e8;
}

.destination-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.destination-card:hover .destination-image img {
  transform: scale(1.05);
}

.destination-info {
  padding: 0 8px;
}

.destination-info h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  position: relative;
}

.destination-image {
  position: relative;
}

/* Responsive adjustments for explore carousel */
@media (max-width: 768px) {
  .explore-section {
    margin-top: 16px;
    padding: 16px;
    border-radius: 0;
  }
  
  .explore-carousel {
    gap: 12px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .destination-card {
    width: 244px;
    padding: 0 8px;
  }
  
  .destination-image {
    width: 244px;
    height: 200px;
  }
  
  .destination-info h3 {
    font-size: 16px;
  }
}



/* ========================================
   LANDING PAGE - MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
  /* Main container */
  .container {
    padding: 16px;
  }
  
  
  /* Search container */
  .container > section.search-container {
    margin: 12px 0 0 0;
    width: 100%;
    max-width: 100%;
  }
  
  /* Search params container */
  .search-form .search-params-container {
    background-color: transparent;
    padding: 16px;
    width: 100%;
    max-width: 100%;
  }
  
  /* Advertiser bar */
  .advertiser-bar {
    width: 100%;
    max-width: 100%;
  }
  
  /* Form row - stack on mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  
  /* Modal - full screen on mobile */
  .modal-content {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  
  .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
  }
  
  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }
  
  .modal-footer {
    position: sticky;
    bottom: 0;
    background: white;
  }
  
  /* Explore section header */
  .explore-header h2 {
    font-size: 20px;
  }
  
  .explore-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* Main container - tighter padding */
  .container {
    padding: 12px;
  }
  
  
  /* Advertiser bar */
  .advertiser-bar {
    margin: 12px 0;
    padding: 12px 16px;
    font-size: 14px;
    height: auto;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
  }
  
  .hotel-chains-list {
    gap: 16px;
  }
  
  .hotel-chains-list li svg {
    height: 36px;
    max-width: 135px;
  }
  
  
  /* Search params container */
  .search-form .search-params-container {
    background-color: transparent;
    padding: 12px;
    width: 100%;
    max-width: 100%;
  }
  
  /* Search container */
  .container > section.search-container {
    width: 100%;
    max-width: 100%;
  }
  
  /* Search input and button */
  #destination,
  .form-column input[type="text"][readonly],
  .search-button {
    height: 48px;
    font-size: 16px;
  }
  
  /* Form labels */
  .form-column label {
    font-size: 13px;
  }
  
  
  /* Modal adjustments */
  .modal-header {
    padding: 12px 16px;
  }
  
  .modal-header h2 {
    font-size: 16px;
  }
  
  .modal-body {
    padding: 12px;
  }
  
  .modal-footer {
    padding: 12px 16px;
  }
  
  /* Calendar day smaller */
  .calendar-day {
    font-size: 14px;
  }
  
  /* Counter controls */
  .counter-button {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .counter-value {
    font-size: 16px;
  }
  
  /* Explore section */
  .explore-section {
    padding: 12px;
  }
  
  .explore-carousel {
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
  }
  
  .destination-card {
    width: 196px;
    padding: 0 12px;
  }
  
  .destination-image {
    width: 196px;
    height: 170px;
  }
  
  .explore-header h2 {
    font-size: 18px;
  }
  
}

.featured-hotels-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.featured-hotels-nav {
  display: flex;
  gap: 8px;
}

.featured-hotels-nav-button {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.featured-hotels-nav-button:hover {
  border-color: #333;
  background-color: #f5f5f5;
}

.featured-hotels-nav-button svg {
  color: #333;
  pointer-events: none;
}


@media (max-width: 768px) {
  .featured-hotels-title-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .featured-hotels-nav {
    align-self: flex-end;
  }
}

/* ========================================
   TRAVEL TRENDS SECTION
   ======================================== */

.tt-tabs {
  display: flex;
  column-gap: 2px;
  row-gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  border-bottom: 1px solid #e8e8e8;
}

.tt-tab {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
  transition: color 0.12s;
  margin-bottom: -1px;
}

.tt-tab:hover {
  color: #007bff;
}

.tt-tab.active {
  color: #007bff;
  font-weight: 600;
  border-bottom-color: #007bff;
}

.tt-panel {
  display: none;
}

.tt-panel.active {
  display: block;
}

.tt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 12px;
  padding-bottom: 16px;
  row-gap: 4px;
  column-gap: 24px;
}

.tt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  text-decoration: none;
  min-width: 0;
}

.tt-item:hover .tt-item-name {
  text-decoration: underline;
}

.tt-item-name {
  font-size: 13px;
  color: #007bff;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-item-detail {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}


@media (max-width: 900px) {
  .tt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tt-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
/* ========================================
   COMPACT SEARCH BAR
   ======================================== */

.search-bar-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 40px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  max-width: 860px;
  margin: 16px auto;
  transition: box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.search-bar-compact:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.sbc-fields {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* Destination input — direct flex child, same as spans */
.sbc-dest-input {
  flex: 2;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  padding: 0 10px;
  font-family: inherit;
  height: 1.2em;
  box-sizing: content-box;
  -webkit-appearance: none;
  appearance: none;
}

.sbc-dest-input::placeholder {
  color: #999;
}

.sbc-dest-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

#destination-listbox {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07);
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow: hidden;
}

/* Clickable date / travelers spans */
.sbc-clickable {
  flex: 1.5;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 20px;
  transition: background 0.15s, box-shadow 0.15s;
}

.sbc-clickable:hover {
  outline: 2px solid #007bff;
  outline-offset: 5px;
}

/* Destination field highlight on focus */
.sbc-dest-input:focus {
  outline: 2px solid #007bff;
  outline-offset: 5px;
  border-radius: 20px;
}

.sbc-sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: #ddd;
  flex-shrink: 0;
  margin: 0 6px;
}

.sbc-search-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}

.sbc-search-btn:hover {
  background: #0066dd;
}

/* Hidden inputs that power date/travelers pickers */
.sbc-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

@media (max-width: 768px) {
  .sbc-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 13px;
    min-height: 38px;
    border-radius: 30px;
    flex-shrink: 0;
  }

  .search-bar-compact {
    padding: 6px 8px 6px 12px;
    gap: 4px;
  }

  .sbc-dest-input {
    flex: 1 1 0px;
    font-size: 13px;
    padding: 0 4px;
  }

  .sbc-clickable {
    font-size: 13px;
    padding: 0 4px;
  }

  #sbc-dates {
    flex: 1.2 1 0px;
    min-width: 0;
  }

  #sbc-travelers {
    flex: 1 1 0px;
    min-width: 0;
  }

  .sbc-sep {
    margin: 0 4px;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }
}

@media (max-width: 480px) {
  .search-bar-compact {
    padding: 4px 6px 4px 10px;
    gap: 2px;
  }

  .sbc-search-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 36px;
    border-radius: 20px;
  }
}

/* SEO Destinations Section by Continent */
.continent-sections-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.continent-section-block {
  padding: 0;
}

.continent-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 6px 0;
}



