/* Form message styles */
.form-message {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    position: relative;
    padding-left: 40px;
    transition: all 0.3s ease;
}

.form-message:not(:empty) {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.form-message.success {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.form-message.success::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.form-message.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-message.error::before {
    content: '!';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading spinner */
.spinner-border {
    vertical-align: middle;
    margin-left: 8px;
}

/* Button loading state */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    position: relative;
}

/* Success message after form submission */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

.success-message i {
    color: #22c55e;
    font-size: 18px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo h2 {
  color: #ef4444;
  font-size: 1.5rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: #ef4444;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.1) 0%, rgba(254, 243, 199, 0.1) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f1f5f9" opacity="0.1"/></svg>');
}

.hero-overlay::before,
.hero-overlay::after {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(3rem);
}

.hero-overlay::before {
  top: 0;
  left: 0;
  background: rgba(239, 68, 68, 0.1);
}

.hero-overlay::after {
  bottom: 0;
  right: 0;
  background: rgba(251, 146, 60, 0.1);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
  color: #111827;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #f59e0b;
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #111827;
  font-size: 1.125rem;
}

.hero-tag {
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #eab308;
  color: #111827;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Tabs */
.tabs {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-list {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.tab-trigger {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
}

.tab-trigger.active {
  background: white;
  color: #111827;
  border-bottom: 2px solid #f59e0b;
}

.tab-trigger:hover {
  background: #f1f5f9;
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

.overview-text {
  color: #64748b;
  margin-bottom: 1.5rem;
}

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

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
}

.info-item i {
  color: #f59e0b;
}

.description-section,
.highlights-section {
  margin-top: 1.5rem;
}

.description-section h4,
.highlights-section h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.highlights-list {
  list-style: none;
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.highlights-list i {
  color: #f59e0b;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.included-list {
  list-style: none;
}

.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.included-list i {
  color: #10b981;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.itinerary-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.day-badge {
  background: #f59e0b;
  color: #111827;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.day-header h4 {
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  height: 200px;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-content {
  color: #64748b;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Quote Card */
.quote-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}

.quote-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.quote-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.quote-free {
  font-size: 0.875rem;
  color: #64748b;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: #f59e0b;
  color: #111827;
}

.btn-primary:hover {
  background: #e4960f;
}

.btn-outline {
  background: transparent;
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.btn-outline:hover {
  background: #fef2f2;
}

.btn-full {
  width: 100%;
}

/* Success Message */
.success-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdf4;
  color: #166534;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #bbf7d0;
  margin-bottom: 1rem;
}

.success-message i {
  color: #10b981;
}

/* Error Styles */
.error-container {
  padding: 2rem 0;
  text-align: center;
}

.error-card {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 1rem;
}

.error-message {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-content img {
  width: 100%;
  height: auto;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-close:hover {
  color: #bbb;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  text-align: center;
}

/* Responsive Design */
/* Gallery Preview */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-preview-item:hover img {
  transform: scale(1.05);
}

.gallery-preview-item.more-images {
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border: 2px dashed #e2e8f0;
}

.gallery-preview-item.more-images span:first-child {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f59e0b;
}

.gallery-preview-item.more-images span:last-child {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.close-lightbox {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1002;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-slide {
  display: none;
  width: 100%;
  height: 100%;
  text-align: center;
}

.lightbox-slide.active {
  display: block;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: calc(80vh - 60px);
  object-fit: contain;
  border-radius: 8px;
}

.image-caption {
  color: white;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.prev, .next {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 1rem;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  cursor: pointer;
  z-index: 1001;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .gallery-preview {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .tab-list {
    flex-wrap: wrap;
  }

  .tab-trigger {
    flex: none;
    min-width: 120px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .error-actions {
    flex-direction: column;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .tab-content {
    padding: 1rem;
  }

  .quote-card {
    padding: 1rem;
  }
}
