:root {
  --primary-color: #00afef;
  --primary-color-dark: #008fbf;
  --primary-color-light: #e0f7ff;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --delete-red: #e53935;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fcfdff;
  padding: 0 1rem;
}


/* Header Styles */
.itinerary-header {
  text-align: center;
  padding: 1rem 0;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.itinerary-header, .tagline {
  text-align: center;
}

.itinerary-header span {
  font-size: 1.5rem;
  text-transform: uppercase;
}

.tagline {
  font-size: 1rem;
  color: #00afef;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.itinerary-header h1 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  margin-top: -10px;
}

/* Main Container Layout */
.builder-container {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: flex-start;
}

/* Form Column */
.form-column {
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  order: 1; /* Default order for larger screens */
}

/* Summary Column */
.summary-column {
  width: 360px;
  position: sticky;
  top: 20px;
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  order: 2; /* Default order for larger screens */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto; /* Center the summary column */
  max-width: 100%; /* Ensure it doesn't overflow its container */
}

.summary-content {
  margin-top: 1rem;
}

/* Responsive Adjustments */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  html {
    font-size: 15px; /* Slightly reduce base font size for tablets */
  }
  
  .builder-container {
    gap: 1.25rem;
    padding: 0 1rem;
  }
  
  .summary-column {
    width: 320px;
  }
  
  /* Make cards more compact */
  .summary-card {
    padding: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .summary-card__header h3 {
    font-size: 1rem;
  }
  
  .summary-card__activities {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
}

/* Small Tablets (600px - 768px) */
@media (max-width: 768px) {
  html {
    font-size: 14.5px;
  }
  
  .builder-container {
    gap: 1rem;
  }
  
  .form-column,
  .summary-column {
    padding: 1rem;
  }
  
  /* Make form elements more compact */
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    margin-bottom: 0.5rem;
  }
  
  .form-group input {
    padding: 0.6rem 0.8rem;
  }
  
  /* Adjust summary cards */
  .summary-card {
    padding: 0.9rem;
  }
  
  .summary-card__header h3 {
    font-size: 0.95rem;
  }
  
  .summary-card__activities {
    font-size: 0.85rem;
  }
}

/* Mobile (below 600px) */
@media (max-width: 600px) {
  .builder-container {
    flex-direction: column;
    padding: 0 0.8rem;
    gap: 1rem;
  }
  
  .form-column,
  .summary-column {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .form-column {
    order: 1;
  }
  
  .summary-column {
    order: 2;
    max-width: 100%;
  }
  
  /* Adjust header for mobile */
  .itinerary-header {
    padding: 0.5rem 0;
  }
  
  .tagline {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  
  .itinerary-header h1 {
    font-size: 1.1rem;
    margin: 0.2rem 0 0.8rem;
  }
  
  /* Summary card adjustments */
  .summary-card {
    padding: 0.8rem;
    margin-bottom: 0.6rem;
  }
  
  .summary-card__header h3 {
    font-size: 0.95rem;
  }
  
  .summary-card__header span {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }
  
  .summary-card__activities {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
  
  .summary-card__activities h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }
}


/* Add-ons Section */
.addons-form-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.addon-option {
  display: block;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.addon-option input[type="checkbox"] {
  display: none;
}

.addon-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.addon-option input[type="checkbox"]:checked + .addon-card {
  border-color: var(--primary-color);
  background-color: var(--primary-color-light);
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.2);
}

.addon-card h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .addons-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }
  
  .addon-card {
    padding: 1rem 0.75rem;
  }
  
  .addon-card h4 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .addons-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .form-actions {
    justify-content: center;
  }
  
  .form-actions button {
    width: 100%;
    padding: 0.8rem;
  }
}

/* Modal Styling */
.swal2-container {
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.3);
}

.swal2-popup {
  font-family: 'Poppins', sans-serif !important;
}

.swal2-modal {
  border-radius: var(--border-radius) !important;
  padding: 0 !important;
  max-width: 95% !important;
  width: 1000px !important;
  box-shadow: var(--box-shadow) !important;
}

/* Flight Form Styles */
.flight-form {
  margin-top: 1rem;
}

.flight-form .form-group {
  margin-bottom: 0.9rem;
}

.flight-form label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 500;
  font-size: 0.75rem;
  color: #555;
}

.flight-form input[type="text"],
.flight-form input[type="date"],
.flight-form select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
  height: 32px;
}

.flight-form select {
  padding: 1rem;
}

/* Adjust date input calendar icon size */
.flight-form input[type="date"]::-webkit-calendar-picker-indicator {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.flight-form input[type="text"]:focus,
.flight-form input[type="date"]:focus,
.flight-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 175, 239, 0.2);
}

.dietary-tags {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.2rem;
  width: 100%;
}

.dietary-tag {
  background-color: #e9f7fe;
  color: #0366d6;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  border: 1px solid #b3e0ff;
  display: inline-block;
  width: fit-content;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: normal;
  cursor: pointer;
  font-size: 0.6rem;
  margin-bottom: 0;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  transition: background-color 0.2s;
}

/* Smaller font size for phones */
@media (max-width: 480px) {
  .radio-group label {
    font-size: 0.5rem;
    gap: 0.3rem;
  }
  
  .radio-group input[type="radio"] {
    width: 12px;
    height: 12px;
  }
}

.radio-group label:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.radio-group input[type="radio"] {
  margin: 0;
  width: 14px;
  height: 14px;
}

.save-flight-prefs-btn {
  background: linear-gradient(135deg, var(--primary-color), #008fd9);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.3rem;
  align-self: center;
}

.save-flight-prefs-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 175, 239, 0.3);
}

.save-flight-prefs-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 175, 239, 0.2);
}

/* Form Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 12px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.1);
}

/* Button Styles */
.submit-btn {
  background: linear-gradient(135deg, var(--primary-color), #008fd9);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 175, 239, 0.2);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 175, 239, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 175, 239, 0.2);
}

.summary-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 0.8rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  max-width: 300px;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 175, 239, 0.12);
}

/* Header */
.summary-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.summary-card__header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.summary-card__header span {
  font-size: 0.95rem;
  background: var(--primary-color);
  color: #fff;
  padding: 0.35em 1em;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 175, 239, 0.15);
}

/* Content */
.summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-card__activities {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.95rem;
  color: #333;
  box-shadow: inset 0 0 0 1px rgba(0, 175, 239, 0.08);
}

.summary-card__activities h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color-dark);
  border-bottom: 1px solid rgba(0, 175, 239, 0.15);
  padding-bottom: 0.4rem;
}

.summary-card__activities ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.summary-card__activities li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.summary-card__activities li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #00afef;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
}


.summary-card__accommodation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #555;
  text-transform: capitalize;
}

.summary-card__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

/* Action Buttons */
.summary-card__info,
.summary-card__remove {
  border: none;
  outline: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.summary-card__info {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 175, 239, 0.08);
}

.summary-card__info:hover {
  background: var(--primary-color-dark);
}

.summary-card__remove {
  background: var(--delete-red);
  color: #fff;
  border: 2px solid var(--delete-red);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.06);
}

.summary-card__remove:hover {
  transform: scale(1.1);
}

/* Flex container for actions if you want to align them side by side */
.summary-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 700px) {
  .summary-card {
    padding: 1rem;
  }

  .summary-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .summary-card__actions {
    justify-content: flex-end;
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .summary-card {
    padding: 0.75rem;
    gap: 10px;
  }

  .summary-card__header h3 {
    font-size: 1rem;
  }

  .summary-card__header span {
    font-size: 0.85rem;
    padding: 0.3em 0.75em;
  }

  .summary-card__info,
  .summary-card__remove {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .summary-card__activities li, .summary-card__accommodation span {
    font-size: 0.85rem;
  }
}


/* Add Destination Button */
.add-destination-btn {
  background: linear-gradient(135deg, var(--primary-color), #008fd9);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-destination-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 175, 239, 0.3);
}

.add-destination-btn i {
  font-size: 1.1rem;
}

/* Summary Button */
.summary-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.summary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.summary-btn i {
  font-size: 1.1rem;
}

/* Summary Section Styling */
.summary-section {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.summary-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.summary-section h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.summary-section p {
  margin: 0.5rem 0;
  color: #666;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .swal2-modal {
    width: 90% !important;
  }
}

@media (max-width: 768px) {
  .swal2-modal {
      width: 95% !important;
  }
  
  .summary-section {
      padding: 1rem;
  }
}

/* Flight Form Styles */
.flight-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.flight-form h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
}

.flight-form .form-group {
  margin-bottom: 1rem;
}

.flight-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: #555;
}

.flight-form input[type="text"],
.flight-form input[type="date"],
.flight-form select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.flight-form .radio-group,
.flight-form .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flight-form .radio-group label,
.flight-form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}

.flight-form input[type="radio"],
.flight-form input[type="checkbox"] {
  margin: 0;
  width: auto;
}

.flight-form .form-actions {
  margin-top: 1rem;
  text-align: center;
}

.flight-form .save-flight-prefs-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.flight-form .save-flight-prefs-btn:hover {
  background: var(--primary-color-dark);
}

/* Custom SweetAlert2 Modal */
.custom-swal-container {
  font-family: 'Poppins', sans-serif;
}

.custom-swal-popup {
  max-width: 300px !important;
  width: 90% !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  margin: 0 auto !important;
}

.custom-swal-title {
  font-size: 1.1rem !important;
  color: #e53935 !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.4 !important;
  text-align: center !important;
  font-weight: 600 !important;
}

.custom-swal-html {
  margin: 0.5rem 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  text-align: left !important;
  color: #555 !important;
}

.custom-swal-html ul {
  margin: 0.5rem 0 0 0 !important;
  padding-left: 1.2rem !important;
  text-align: left !important;
}

.custom-swal-html li {
  margin-bottom: 0.2rem !important;
  text-align: left !important;
  list-style-type: disc !important;
}

.custom-swal-confirm {
  background-color: #00afef !important;
  font-size: 0.85rem !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px !important;
  margin: 1rem 0 0 0 !important;
  transition: all 0.2s ease !important;
}

.custom-swal-confirm:hover {
  background-color: #008fbf !important;
  transform: translateY(-1px);
}

/* Hide close button */
.custom-swal-close {
  display: none !important;
  opacity: 0 !important;
}

/* Error icon styling */
.custom-swal-popup .swal2-x-mark {
  width: 50px !important;
  height: 50px !important;
  margin: 10px auto !important;
  position: relative;
}

.custom-swal-popup .swal2-x-mark-line-left,
.custom-swal-popup .swal2-x-mark-line-right {
  width: 4px !important;
  height: 40px !important;
  background-color: #f27474 !important;
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  margin: -15px 0 0 -2px !important;
  border-radius: 2px;
}

.custom-swal-popup .swal2-x-mark-line-left {
  transform: rotate(45deg);
}

.custom-swal-popup .swal2-x-mark-line-right {
  transform: rotate(-45deg);
}


/* Error messages */
.error-message {
  color: #e53935;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

/* Form Column Styles */
.form-column {
  flex: 2;
  padding: 2rem;
  padding-top: 1rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-column h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-align: center;
}

/* Summary Column Styles */
.summary-column {
  flex: 1;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 1.2rem;
  box-shadow: var(--box-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  order: 2; /* Ensures summary comes second by default */
}

.summary-column h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-align: center;
}

.empty-message {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}

/* Additional global styles can be added here */

/* Medium Zoom Z-Index and Responsive Sizing */
.medium-zoom-overlay,
.medium-zoom-image--opened {
  z-index: 3000 !important; /* Ensure it's on top of SweetAlert modal */
}

.medium-zoom-image--opened {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  background: white;
  object-fit: contain;
  margin: auto;
  display: block;
}

/* Responsive fine-tuning for small screens */
@media (max-width: 768px) {
  .medium-zoom-image--opened {
    max-width: 95vw;
    max-height: 60vh;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .medium-zoom-image--opened {
    max-width: 90vw;
    max-height: 50vh;
    border-radius: 8px;
  }
}
/* Destinations Grid (3x3 layout for all screen sizes) */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* Ensure cards maintain consistent width */
.destination-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Adjust grid for smaller screens if needed */
@media (max-width: 1280px) {
  .destinations-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 1024px) {
  .destinations-grid {
    gap: 1rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 900px) {
  .destinations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

/* Mobile - Single column layout */
@media (max-width: 700px) {
  .destinations-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 1.5rem auto 0;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .destination-card {
    max-width: 100%;
  }
  
  .card-image {
    height: 180px;
  }
}

/* Responsive Layout */
@media (max-width: 900px) {
  .builder-container {
    flex-direction: column;
  }
  
  .form-column {
    order: 1;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .summary-column {
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: unset;
    margin: 0;
  }
}

/* Utility Classes */


/* Destination Cards */
.destination-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.destination-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px #00afef;
}

.destination-card.active {
  background-color: var(--secondary-color);
  outline: 2px solid var(--primary-color);
}

.card-image {
  height: 150px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-content {
  padding: 1rem;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}


/* Flight Preferences Form Styles */
.flight-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Poppins', sans-serif;
  background: white;
  border-radius: 12px;
}

.flight-form h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.75rem;
  text-align: center;
  font-weight: 600;
}

/* Form Groups */
.flight-form .form-group {
  margin-bottom: 1.5rem;
}

.flight-form .form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Input Fields */
.flight-form input[type="text"],
.flight-form input[type="date"],
.flight-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.flight-form select {
  padding: 0;
}

/* Close button styles */
.swal2-close {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
}

/* Make close button smaller on mobile */
@media (max-width: 600px) {
  .swal2-close {
    font-size: 1.2rem;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
  }
}

.flight-form input[type="text"]:focus,
.flight-form input[type="date"]:focus,
.flight-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.1);
}

/* Radio Group */
.flight-form .radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.flight-form .radio-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  max-width: 300px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  background: #f9f9f9;
}

.flight-form .radio-group label:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.flight-form .radio-group input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.flight-form .radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.flight-form .radio-group label:hover {
  background: var(--light-gray);
}

.flight-form .radio-group input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
}

/* Checkbox Group */
.flight-form .checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.flight-form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.flight-form .checkbox-group label:hover {
  background: var(--light-gray);
}

.flight-form .checkbox-group input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
}

/* Form Actions */
.flight-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.save-flight-prefs-btn {
  background: linear-gradient(135deg, var(--primary-color), #008fd9);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.save-flight-prefs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 175, 239, 0.3);
}

.save-flight-prefs-btn i {
  font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .flight-form {
      padding: 1.5rem;
  }
  
  .flight-form .radio-group,
  .flight-form .checkbox-group {
      grid-template-columns: 1fr;
  }
}

/* Form Group Styling */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 12px;
}

/* Input Fields */
input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: #00afef;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.1);
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #00afef;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Submit Button */
.submit-btn {
  background-color: #00afef;
  color: white;
  border: none;
  padding: 14px 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background-color: #0095d1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 175, 239, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  #flight-preferences-form {
      padding: 20px;
  }
  
  .radio-group,
  .checkbox-group {
      gap: 8px;
  }
}


.budget-summary {
background: #f8f9fa;
border: 1px solid #dee2e6;
padding: 1.5rem;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
max-width: 300px;
margin-top: -1rem;
margin-bottom: 0.5rem;
margin-inline: auto;
text-align: left;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.budget-summary h3 {
margin-bottom: 1rem;
color: #2c3e50;
font-size: 1.2rem;
border-bottom: 2px solid #3498db;
padding-bottom: 0.5rem;
}

.budget-summary p {
font-size: 1rem;
color: #333;
margin: 0.5rem 0;
}

.budget-summary strong {
color: #2c3e50;
}

/* Flight Summary Card */
.flight-summary {
  background: white;
  margin: 1rem 0;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 0.75rem;
}

.flight-summary h3 {
  margin: 0 0 0.75rem 0;
  color: #333;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.flight-summary h3 i {
  color: var(--primary-color);
  font-size: 0.9em;
}

.flight-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* Individual detail rows */
.flight-details p {
  margin: 0;
  font-size: 0.8rem;
  color: #4a5568;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: flex-start;
}

.flight-details strong {
  color: #2d3748;
  font-weight: 500;
  margin-right: 5px;
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .flight-summary {
    padding: 1rem;
  }
  
  .flight-summary h3 {
    font-size: 1rem;
  }
  
  .flight-row {
    gap: 0.8rem;
  }
  
  .flight-details p {
    font-size: 0.7rem;
  }
}

/* Animation for flight details */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.flight-details > * {
  animation: fadeIn 0.3s ease-out forwards;
  opacity: 0;
}

.flight-details > *:nth-child(1) { animation-delay: 0.1s; }
.flight-details > *:nth-child(2) { animation-delay: 0.15s; }
.flight-details > *:nth-child(3) { animation-delay: 0.2s; }

.destination-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  padding: 1rem 1.5rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Emphasize labels like "Duration", "Accommodation", etc. */
.destination-details strong {
  display: inline-block;
  width: 140px;
  font-weight: 600;
  color: #222;
}

/* Activities List */
.destination-details ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  padding-left: 0;
}

.destination-details ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* Responsive refinements */
@media (max-width: 768px) {
  .destination-details {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .destination-details strong {
    width: 100%;
    margin-bottom: 0.25rem;
    display: block;
  }
}


#accomodation {
  padding: 10px;
}

/* Add-ons Form Styles */
.addons-form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.addons-form-container h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.addon-option {
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.addon-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.addon-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.addon-card h4 {
  color: var(--text-color);
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0;
  transition: var(--transition);
}

@media (max-width: 480px) {
  .addons-form-container {
    padding: 2rem 0rem;
  }
  .addon-card {
    padding: 1rem;
    margin: auto;
  }

  .addon-card h4 {
    font-size: 0.8rem;
  }
}

/* Checked state */
.addon-option input[type="checkbox"]:checked + .addon-card {
  border-color: var(--primary-color);
  background-color: var(--primary-color-light);
  box-shadow: 0 4px 12px rgba(0, 175, 239, 0.2);
}

.addon-option input[type="checkbox"]:checked + .addon-card h4 {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hover state */
.addon-option:not(:has(input[type="checkbox"]:checked)):hover .addon-card {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

button#continue-summary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.75rem;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 175, 239, 0.3);
  display: inline-block;
  margin: auto;
}

@media (max-width: 480px) {
  button#continue-summary {
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 375px) {
  button#continue-summary {
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
  }
}

button#continue-summary:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 175, 239, 0.4);
}

/* Trip Summary Modal Styles */
.swal2-popup.trip-summary-modal {
  max-width: 380px !important;
  width: 90% !important;
  padding: 1.5rem 0 0 0 !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.swal2-popup.trip-summary-modal .swal2-title {
  font-size: 1.3rem !important;
  margin: 0 1.5rem 1rem 1.5rem !important;
  padding: 0 0 0.75rem 0 !important;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-weight: 600;
  color: var(--primary-color);
}

.swal2-popup .trip-summary {
  text-align: left;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 1rem 1rem 1rem;
  max-height: 60vh;
  overflow-y: auto;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: #fff;
}

/* Reset any inherited borders */
.swal2-popup .trip-summary * {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.swal2-popup .summary-section {
  background: #fff;
  border-radius: 0;
  padding: 0.5rem 0;
  margin: 0;
  box-shadow: none;
}

.swal2-popup .summary-section h3 {
  color: #333;
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: none;
  padding: 0;
}

.swal2-popup .summary-section p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
}

.swal2-popup .summary-section strong {
  color: #333;
  font-weight: 500;
  min-width: auto;
  margin-right: 1rem;
  display: inline;
}

/* Customer Details Modal */
.swal2-popup.customer-details-modal {
  max-width: 380px !important;
  width: 90% !important;
  padding: 1.5rem 0 0 0 !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.swal2-popup.customer-details-modal .swal2-title {
  font-size: 1.3rem !important;
  margin: 0 1.5rem 1.25rem 1.5rem !important;
  padding: 0 0 0.75rem 0 !important;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-weight: 600;
  color: var(--primary-color);
}

/* Customer Details Form Styles */
.swal2-popup #customer-details-form {
  text-align: left;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.swal2-popup .form-group {
  margin-bottom: 1rem;
  width: 100%;
}

.swal2-popup .form-group:last-child {
  margin-bottom: 0;
}

.swal2-popup label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #555;
  font-size: 0.9rem;
}

.swal2-popup input[type="text"],
.swal2-popup input[type="email"],
.swal2-popup input[type="tel"] {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
}

.swal2-popup input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 175, 239, 0.15);
}

/* Form validation styles */
.swal2-popup input:invalid {
  border-color: #ff6b6b;
}

.swal2-popup input:valid {
  border-color: #51cf66;
}

/* SweetAlert2 Button Styles */
.swal2-styled.swal2-confirm {
  background-color: var(--primary-color) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.7rem 2rem !important;
  font-weight: 500 !important;
  font-family: 'Poppins', sans-serif !important;
  transition: var(--transition) !important;
}

.swal2-styled.swal2-confirm:hover {
  background-color: var(--primary-color-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 175, 239, 0.3) !important;
}

.swal2-styled.swal2-cancel {
  background-color: #f1f1f1 !important;
  color: #555 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.7rem 2rem !important;
  font-weight: 500 !important;
  font-family: 'Poppins', sans-serif !important;
  transition: var(--transition) !important;
}

.swal2-styled.swal2-cancel:hover {
  background-color: #e0e0e0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Hide close button in success modal */
.swal2-popup.success-modal .swal2-close {
  display: none !important;
}

/* Success Modal */
.swal2-popup.success-modal {
  max-width: 320px !important;
  width: 90% !important;
  padding: 1.75rem 1.5rem 1.5rem 1.5rem !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  text-align: center;
}

.swal2-popup .success-title {
  font-size: 1.3rem !important;
  margin: 0.5rem 0 0.75rem 0 !important;
  padding: 0 !important;
  color: #28a745 !important;
  font-weight: 600;
  line-height: 1.4;
}

/* Let SweetAlert2 handle the success icon styling */
.swal2-popup .swal2-icon {
  margin: 1rem auto 1.25rem !important;
}

.swal2-popup .swal2-icon.swal2-success {
  border-color: #a5dc86 !important;
}

.swal2-popup .swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #a5dc86 !important;
}

.swal2-popup .success-confirm {
  background-color: #28a745 !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.6rem 1.75rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  font-family: 'Poppins', sans-serif !important;
  margin-top: 0.5rem !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.swal2-popup .success-confirm:hover {
  background-color: #218838 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3) !important;
}

.swal2-popup .success-confirm:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(40, 167, 69, 0.3) !important;
}

/* Add to existing styles */
.required {
  color: #e53935;
}

.error-input {
  border-color: #e53935 !important;
}

.error-message {
  color: #e53935;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}


@media screen and (max-width: 425px) {
  .itinerary-header h1, .tagline {
    font-size: 0.8rem;
  }

  .itinerary-header h1 span {
    font-size: 0.8rem;
  }

  .itinerary-header {
    margin-bottom: 0;
  }

  .form-column {
    margin-top: -0.5rem;
  }
}

