/* styles/globals.css */
.dropdownglobal {
    position: relative;
  }
  
  .dropdownglobal-item {
    position: relative;
  }
  
  .dropdownglobal-content {
    display: none;
    position: absolute;
    left: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdownglobal-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdownglobal-item:hover .dropdownglobal-content {
    display: block;
  }
  
  /* styles/CategoryDropdown.css */
.categories-container {
    
    display: flex; /* Aligns categories horizontally */

    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 8px;
  }
  
  .category {
    position: relative;
    background-color: #E7E7E7;
    border-radius: 10%;
    flex-grow: 1;
    height: 400px;
    overflow-y: auto;
    border-radius: 4px;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .category-name {
    background: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 5px;
  }
  
  .sub-category-list {
    position: absolute;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    width: 200px;
    padding: 10px;
    border-radius: 8px;
  }
  
  .sub-category {
    padding: 8px 16px;
    border-bottom: 1px solid #eeeeee;
  }
  
  .sub-category:last-child {
    border-bottom: none;
  }
  

  .sub-category {
    padding: 8px 16px;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
  }
  
  .sub-category input[type="checkbox"] {
    margin-right: 1px;
  }
  
  /* ... other styles ... */
  
  /* styles/MultiSelectDropdown.css */
.multi-select-dropdown {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .selected-items {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    width: 100%;
  }
  
  .selected-item {
    color: #fff;
    background: #3554d1;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
  }
  
  .selected-item button {
    background: transparent;
    border: none;
    margin-left: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
  }
  
  .multi-select-dropdown input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    transition: border-color 0.2s ease;
  }
  
  .multi-select-dropdown input[type="text"]:focus {
    border-color: #3554d1;
    outline: none;
  }
  
  .categories {
    display: flex;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .category {
    min-width: 200px;
    margin-bottom: 15px;
  }
  
  .category-title {
    display: flex;
    font-weight: bold;
    margin-bottom: 10px;
    color: #051036;
    font-size: 16px;
  }
  
  .category-items {
    margin-bottom: 15px;
  }
  
  .category-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 3px 0;
    font-size: 14px;
  }
  
  .category-item:hover {
    color: #3554d1;
  }

  .category-item input[type="checkbox"] {
    -webkit-appearance: none;
    margin-right: 8px;
    width: 18px; 
    height: 18px; 
    display: inline-block;
    border: 1px solid #bcbcbc;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
  }

  .category-item input[type="checkbox"]:checked {
    background-color: #3554d1;
    border: none;
  }
  
  .category-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  /* Responsive styles */
  @media (max-width: 991px) {
    .categories {
      gap: 15px;
    }
    
    .category {
      min-width: 180px;
    }
  }
  
  @media (max-width: 767px) {
    .multi-select-dropdown {
      padding: 8px;
    }
    
    .categories {
      flex-direction: column;
      align-items: flex-start;
      padding: 5px;
      gap: 10px;
    }
    
    .category {
      width: 100%;
      min-width: unset;
      margin-bottom: 10px;
    }
    
    .selected-item {
      padding: 4px 10px;
      font-size: 13px;
    }
    
    .selected-item button {
      margin-left: 5px;
    }
    
    .category-title {
      font-size: 15px;
      margin-bottom: 8px;
    }
  }
  
  @media (max-width: 480px) {
    .multi-select-dropdown input[type="text"] {
      padding: 8px;
      font-size: 13px;
    }
    
    .category-item {
      font-size: 13px;
      margin-bottom: 6px;
    }
    
    .category-item input[type="checkbox"] {
      width: 16px;
      height: 16px;
    }
  }
  
  /* Touch device optimizations */
  @media (hover: none) {
    .category-item {
      padding: 6px 0;
    }
    
    .category-item input[type="checkbox"] {
      width: 20px;
      height: 20px;
    }
    
    .selected-item button {
      min-width: 24px;
      min-height: 24px;
    }
  }
  
  .nested-dropdown {
    margin-left: 20px;
    border-left: 1px solid #ccc;
    padding-left: 10px;
  }
  
  .nested-item {
    display: block;
    margin-bottom: 5px;
  }

  .error {
    color: red;
    background-color: #ffe5e5;
    border: 1px solid red;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    border-radius: 4px;
  }

  .error-message {
    color: red;
    padding: 0px 2px;
  }
  
  .success-message {
    color: green;
    background-color: #e5ffe5;
    border: 1px solid green;
    margin-top: 4px;
    padding: 8px;
    border-radius: 4px;
  }

  .remove-from-the-cart-message {
    width: -webkit-fill-available;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    position: fixed;
    color: green;
    background-color: #e5ffe5;
    border: 1px solid green;
    margin-top: 5px;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);

  }

  .add-to-the-cart-message {
    width: -webkit-fill-available;
    color: green;
    background-color: #e5ffe5;
    border: 1px solid green;
    margin-top: 5px;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  
  .title-header {
    padding: 1rem;
    background-color: #2c3e50;
    /* color: white; */
    text-align: center;
}

.rooms-container {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.room-buttons {
    flex: 1;
    margin-right: 1rem;
}

.calendar-container {
    flex: 4;
}

@media screen and (max-width: 768px) {
    .rooms-container {
        flex-direction: column;
    }

    .room-buttons {
        margin-bottom: 1rem;
    }
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    margin: 0px 0.9rem;
}

.fc-h-event .fc-event-title {
    display: block;

    text-align: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: top;
  justify-content: center;
  z-index: 1000;
}

.modalContent {
  margin-top: 50px;
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  width: 70%;
  height: fit-content;
  max-width: 800px;
}

.modalHeader,
.modalFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modalHeader {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 10px;
}

.modalTitle {
  margin: 0;
}

.modalCloseButton {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modalBody {
  padding-top: 10px;
}

.formGroup {
  margin-bottom: 1rem;
}

.formGroup label {
  display: block;
  margin-bottom: .5rem;
}

.formControl {
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}

.formCheckbox {
  margin-right: .5rem;
}

.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  cursor: pointer;
}

.btnSecondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btnPrimary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn:not(:disabled):not(.disabled):active,
.btn:not(:disabled):not(.disabled).active {
  background-color: #0056b3;
  border-color: #0053a0;
}

.btn:not(:disabled):not(.disabled):hover {
  background-color: #0069d9;
  border-color: #0062cc;
}

.dropdown-above {
  bottom: 100%;
}

.dropdown-below {
  top: 100%;
}

.text-pre-wrap {
  white-space: pre-wrap; 
}


.banner-message {
  background-color: #007bff;
  color: white;
  text-align: center;
  font-size: 16px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}


.funding-images {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  bottom: 30px;
  left: 10px;
  gap: 10px;
  max-width: 100%;
  z-index: -1;

}

.funding-images img {
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: 300px;
}

@media (max-width: 768px) {
  .funding-images {
    bottom: 10px;
    left: 5px;
    max-width: 90%;
  }

  .funding-images img {
    max-width: 150px;
  }
}


/* Keep the same aspect ration for images in photoswipe gallery */
.pswp img {
  max-width: none;
  object-fit: contain;
}

.difficulty-container {
  display: grid;
  max-width: fit-content;
  flex-direction: column;
  align-items: center;
}

.difficulty-label {
  text-align: center;
  margin-bottom: 5px;
}

.difficulty-bars {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.difficulty-bar {
  border-radius: 10px;
  height: 15px;
  width: 30px;
  background-color: #D0D0D0;
}

.difficulty-bar.active {
  background-color: #000000;
}

.modal-footer {
  justify-content: space-between;
}

/* Spinner styles */
.spinner {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left-color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.recommendation-image-container {
  width: 300px;
  height: 300px;
  overflow: hidden;
}
.recommendation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.map-container {
  position: -webkit-sticky;
  position: fixed;
  top: 100px;
  width: 50%;
  height: 30%;
  right: 0;
  z-index: 1;
}


@media (max-width: 1200px) {
  .map-container {
    position: relative;
    width: 100%;
    height: 300px;
    top: 0;
  }
}

.room-recommendation-card {
  border: 1px solid #e5e5e5;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-top: 10px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.room-recommendation-card:hover {
  background-color: #f1f7ff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* TouristPackages.css */
.tourist-packages-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.package-header {
  text-align: center;
  margin-bottom: 3rem;
}

.package-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2b49;
  margin-bottom: 0.5rem;
}

.package-subtitle {
  font-size: 1.125rem;
  color: #5e6d77;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
}

.package-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.package-image-container {
  position: relative;
  height: 250px;
  width: 100%;
}

.package-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.package-card-header {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  color: white;
}

.package-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.package-card-location {
  color: rgba(255,255,255,0.9);
}

.package-content {
  padding: 1.5rem;
}

.package-description {
  color: #5e6d77;
  margin-bottom: 1.5rem;
}

.services-list {
  margin-bottom: 1.5rem;
}

.services-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a2b49;
  margin-bottom: 1rem;
}

.service-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.service-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 1rem;
  position: relative;
}

.service-details {
  flex: 1;
}

.service-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a2b49;
  margin: 0 0 0.25rem 0;
  text-decoration: none;
}

.service-name:hover {
  color: #2a4b8d;
}

.service-duration {
  font-size: 0.75rem;
  color: #5e6d77;
  margin: 0;
}

.package-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.price-label {
  font-size: 0.875rem;
  color: #5e6d77;
}

.price-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a2b49;
}

.cta-button {
  padding: 0.5rem 1rem;
  background-color: #1a73e8;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: #1557b0;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 16rem;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.error-container {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-content {
  display: flex;
  align-items: center;
}

.error-icon {
  color: #ef4444;
  margin-right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
}

.error-text {
  color: #b91c1c;
  font-size: 0.875rem;
}

.retry-button {
  color: #b91c1c;
  font-weight: 500;
  text-decoration: underline;
  margin-left: 0.25rem;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background-color: #f8f9fa;
  border-radius: 12px;
}

.empty-icon {
  width: 3rem;
  height: 3rem;
  color: #9ca3af;
  margin: 0 auto 1rem;
}

.empty-title {
  font-size: 1rem;
  font-weight: 500;
  color: #1a2b49;
  margin: 0 0 0.5rem 0;
}

.empty-text {
  color: #5e6d77;
  margin-bottom: 1.5rem;
}

.explore-button {
  padding: 0.5rem 1rem;
  background-color: #1a73e8;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.explore-button:hover {
  background-color: #1557b0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Add these new styles */
.package-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.generate-btn, .clear-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.generate-btn {
  background-color: #1a73e8;
  color: white;
  border: none;
}

.generate-btn:hover:not(:disabled) {
  background-color: #1557b0;
}

.generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.generate-btn.loading {
  position: relative;
  padding-left: 2.5rem;
}

.clear-btn {
  background-color: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
}

.clear-btn:hover {
  background-color: #fef2f2;
}

.last-updated {
  display: block;
  font-size: 0.875rem;
  color: #5e6d77;
  margin-top: 0.5rem;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 2rem;
}

.error-message-package {
  background-color: #fef2f2;
  color: #b91c1c;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  text-align: center;
}

.error-message-package button {
  background: none;
  border: none;
  color: #b91c1c;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 0.5rem;
}


.custom-multi-value {
  display: flex;
  align-items: center;
  background-color: #f0f2f5;
  border-radius: 4px;
  margin-right: 4px;
  padding: 2px 8px;
}
.custom-multi-value-label {
  padding: 2px 5px 2px 5px;
  font-size: 0.9rem;
}
.custom-multi-value-remove {
  margin-left: 4px;
  cursor: pointer;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-multi-value-remove:hover {
  background-color: #ddd;
}
.custom-multi-value-more {
  margin-left: 6px;
  font-size: 0.85rem;
  color: #5c6670;
}

.manual-links {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.manual-item {
  padding: 15px;
  border-left: 3px solid #3b82f6;
  transition: all 0.3s ease;
}

.manual-item:hover {
  background: #f8fafc;
}