/* The Itinerary Builder and Power Search. */



.header-block {
  text-align: center;
  border: 3px solid green;
  padding: 10px 10px 10px 10px;
  margin: 10px 20% 10px 20%;
  background-color: #cccccc;
}
@media (max-width: 900px) {
  .itinerary-summary {
    padding: 0.7em 0.5em;
    font-size: 0.98em;
  }}

/* END Mobile Responsive Enhancements */

/* Leading Cruises Dropdown Styles */
.dropdown-leading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2.5em 0 2em 0;
}

#leading-dropdown-header {
  text-align: center;
}

#toggle-leading-dropdown, #next-dropdown {
  display: inline-block;
  padding: 1em 2.5em;
  font-size: 1.2rem;
  font-weight: 700;
  background: #337ab7;
  color: #fff;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 1.4em;
  cursor: pointer;
  text-align: center;
}
#toggle-leading-dropdown:hover, #toggle-leading-dropdown:focus {
  background: #23527c;
  transform: translateY(-2px) scale(1.04);
  color: #fff;
}
#leading-dropdown-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.gap-days-label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
}
.gap-days-input {
    width: 3em;
    margin: 0 0.3em;
    font-size: 1em;
    padding: 0.2em 0.4em;
    border-radius: 6px;
    border: 1px solid #b3b3cc;
    background: #f8fafd;
    text-align: center;
}
.cruise-search-input {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1em;
    border-radius: 8px;
    border: 1px solid #cce;
    font-size: 1em;
}
.itinerary-summary {
    margin: 1.5em 0;
    padding: 1em;
    background: #f8f8ff;
    border-radius: 10px;
    border: 1px solid #cce;
}
.itinerary-btn {
    margin-top: 1em;
    padding: 0.5em 1.5em;
    border-radius: 7px;
    background: #3a6ee8;
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 0.5em;
}
.itinerary-btn:hover {
    background: #224a99;
}

/* Access Banner Styles */
#access-warning-banner {
  transition: background 0.2s, color 0.2s, border-bottom 0.2s;
  padding: 1em;
  text-align: center;
  font-weight: bold;
}
.access-banner-warning {
  background: #ffc;
  color: #a00;
  border-bottom: 2px solid #faa;
  display: block;
}
.access-banner-welcome {
  background: linear-gradient(90deg,#eaf2fb 0,#cbe2fa 100%);
  color: #123;
  border-bottom: 2px solid #4682b4;
  display: block;
}

/* Loading Modal */
#loading-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.loading-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sortable Table Styles */
.sortable-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 0.85em;
}
.hidden-row {
  display: none;
}
.show-more-btn {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 4px 8px;
  cursor: pointer;
  margin-top: 5px;
  font-size: 0.9em;
  border-radius: 4px;
}
.sortable-table th,
.sortable-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.sortable-table th {
  background-color: #f2f2f2;
  cursor: pointer;
  position: relative;
}
.sortable-table th::after {
  content: ' \2195';
  opacity: 0.2;
}
.sortable-table th.sort-asc::after {
  content: ' \25B2';
  opacity: 1;
}
.sortable-table th.sort-desc::after {
  content: ' \25BC';
  opacity: 1;
}

/* Power Search (moved from its page) */
.power-search-form {
  margin: 0;
  font-size: 1em;
}
/* The site hides .filter-dropdown-group labels below 900px (the filter
   bar's buttons say what they are), but here the dates and numbers
   would be unlabeled, so they stay; on phones each field gets its own
   full-width line, and the empty spacer cells go */
.power-search-form .filter-dropdown-group > label {
  display: block;
  margin-bottom: 0.2em;
}
@media (max-width: 600px) {
  .power-search-form .responsive-three-equal-columns {
    flex-direction: column !important;
    gap: 0.4em !important;
  }
  .power-search-form .builder-step {
    width: 100%;
  }
  .power-search-form .builder-step:has(.spacer) {
    display: none;
  }
  .power-search-form input[type=date],
  .power-search-form input[type=number],
  .power-search-form select,
  .power-search-form .filter-dropdown-btn {
    width: 100%;
    box-sizing: border-box;
  }
  /* The script sizes each dropdown to its longest choice (367px for
     the ports), wider than a phone; here they're full width already */
  .power-search-form .filter-dropdown-btn,
  .power-search-form .filter-dropdown-list {
    min-width: 0 !important;
    max-width: calc(100vw - 3em);
  }
}
