/* TGExplores Utilities Frontend Styles */
/* Primary Color: #8a008b */

:root {
  --primary-color: #8a008b;
  --primary-dark: #6a006b;
  --primary-light: #a533a6;
  --primary-extra-light: #f5e6f5;
  --text-dark: #333333;
  --text-light: #666666;
  --text-lighter: #888888;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
  --white: #ffffff;
  --black: #000000;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
.tgexplores-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
/*   padding-top: 4rem; */
}

.tour-archive-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}

.tour-filter {
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--white);
  font-size: 14px;
  transition: var(--transition);
}

.tour-filter:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-extra-light);
}

/* Tours Grid */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.tour-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tour-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.tour-difficulty-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tour-card-content {
  padding: 25px;
}

.tour-card-title {
  margin: 0 0 15px 0;
  font-size: 1.4em;
  line-height: 1.3;
  font-weight: 700;
}

.tour-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.tour-card-title a:hover {
  color: var(--primary-color);
}

.tour-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tour-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  color: var(--text-light);
}

.tour-meta-item .icon {
  font-size: 1.1em;
}

.tour-destinations {
  margin-bottom: 15px;
  font-size: 0.95em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-card-excerpt {
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95em;
}

.tour-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.tour-price {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--primary-color);
}

/* Buttons */
.tour-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  text-align: center;
  cursor: pointer;
}

.tour-button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.tour-button.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.tour-button.secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.tour-button.secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Single Tour Styles */
.single-tour-container {
  margin: 40px auto;
}

.tour-header {
  margin-bottom: 40px;
  text-align: center;
}

.tour-breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9em;
  color: var(--text-light);
}

.tour-breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.tour-breadcrumb a:hover {
  text-decoration: underline;
}

.tour-breadcrumb .sep {
  margin: 0 8px;
}

.tour-title {
  font-size: 2.5em;
  margin: 0 0 20px 0;
  color: var(--text-dark);
  font-weight: 700;
}

.tour-meta-header {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tour-meta-header .tour-meta-item {
  font-size: 1em;
  background: var(--primary-extra-light);
  padding: 8px 16px;
  border-radius: var(--border-radius);
}

.tour-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  margin-bottom: 60px;
}

.tour-main-content {
  min-width: 0; /* Prevent grid blowout */
}

.tour-featured-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.tour-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tour-content {
  line-height: 1.7;
  color: var(--text-dark);
}

.tour-content h2,
.tour-content h3,
.tour-content h4 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.tour-content h2 {
  font-size: 1.8em;
  border-bottom: 2px solid var(--primary-extra-light);
  padding-bottom: 10px;
}

.tour-content ul,
.tour-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.tour-content li {
  margin-bottom: 8px;
}

/* Tour Gallery */
.tour-gallery {
  margin-top: 50px;
}

.tour-gallery h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8em;
}

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

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

/* Tour Sidebar */
.tour-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.tour-booking-widget {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  margin-bottom: 30px;
}

.tour-price-main {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.tour-price-main .price {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.tour-price-main .price-unit {
  font-size: 1em;
  color: var(--text-light);
  font-weight: 400;
}

.tour-quick-info {
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  color: var(--text-dark);
}

.info-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

.tour-booking-form,
.tour-contact-info {
  margin-top: 25px;
}

.tour-booking-form h3,
.tour-contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3em;
}

.tour-contact-info p {
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Includes & Excludes */
.tour-includes-excludes {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
}

.includes-section,
.excludes-section {
  margin-bottom: 25px;
}

.includes-section:last-child,
.excludes-section:last-child {
  margin-bottom: 0;
}

.includes-section h4,
.excludes-section h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2em;
}

.includes-content,
.excludes-content {
  line-height: 1.6;
  color: var(--text-dark);
}

/* Related Tours */
.related-tours {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.related-tours h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 2em;
  text-align: center;
}

.related-tours-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Pagination */
.tour-pagination {
  margin: 50px 0;
  text-align: center;
}

.tour-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tour-pagination .page-numbers li {
  margin: 0;
}

.tour-pagination .page-numbers a,
.tour-pagination .page-numbers span {
  display: inline-block;
  padding: 12px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
}

.tour-pagination .page-numbers a:hover,
.tour-pagination .page-numbers .current {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* No Tours Found */
.no-tours-found {
  text-align: center;
  padding: 60px 20px;
  background: var(--background-light);
  border-radius: var(--border-radius);
  margin: 40px 0;
}

.no-tours-found h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.5em;
}

.no-tours-found p {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1.1em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.search-suggestions {
  margin: 30px 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.search-suggestions h4 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.1em;
}

.search-suggestions ul {
  text-align: left;
  margin-left: 20px;
  color: var(--text-light);
}

.search-suggestions li {
  margin-bottom: 8px;
}

.search-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Page Headers */
.page-header {
  text-align: center;
  margin: 40px 0;
  padding: 40px 0;
  background: linear-gradient(
    135deg,
    var(--primary-extra-light) 0%,
    var(--white) 100%
  );
  border-radius: var(--border-radius);
}

.page-title {
  font-size: 2.8em;
  margin: 0 0 20px 0;
  color: var(--primary-color);
  font-weight: 700;
}

.archive-description {
  font-size: 1.2em;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.search-info {
  font-size: 1.1em;
  color: var(--text-light);
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tour-content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tour-sidebar {
    position: static;
  }

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

@media (max-width: 768px) {
  .tgexplores-container {
    padding: 0 15px;
  }

  .tour-archive-filters {
    flex-direction: column;
    gap: 15px;
  }

  .filter-group {
    min-width: 100%;
  }

  .tours-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tour-card-footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .tour-button {
    text-align: center;
  }

  .tour-title {
    font-size: 2em;
  }

  .tour-meta-header {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .page-title {
    font-size: 2.2em;
  }

  .search-actions {
    flex-direction: column;
    align-items: center;
  }

  .search-actions .tour-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .tour-card-content {
    padding: 20px;
  }

  .tour-content-wrapper {
    gap: 20px;
  }

  .tour-booking-widget,
  .tour-includes-excludes {
    padding: 20px;
  }

  .page-header {
    padding: 30px 20px;
    margin: 20px 0;
  }

  .page-title {
    font-size: 1.8em;
  }
}

/* Loading States */
.tour-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.tour-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--primary-extra-light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

/* Fluent Form Styles */
.tour-booking-form .fluentform {
  margin-top: 25px;
}

/* Style for each form field group */
.fluentform .ff-el-group {
  margin-bottom: 20px;
}

/* General styles for all input fields (text, email, etc.) */
.fluentform .ff-el-form-control {
  width: 100%;
  padding: 12px 15px;
  font-size: 14px;
  color: var(--text-dark);
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: none;
}

/* Style for input fields when they are focused (clicked on) */
.fluentform .ff-el-form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-extra-light);
}

/* Style for placeholder text */
.fluentform .ff-el-form-control::placeholder {
  color: var(--text-light);
  opacity: 1;
}

/* Style for the submit button */
.fluentform .ff-btn-submit {
  width: 100%;
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  text-align: center;
  cursor: pointer;
}

/* Hover state for the submit button */
.fluentform .ff-btn-submit:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* Style for form error messages */
.fluentform .ff-errors-in-stack .error {
  background-color: var(--danger-color);
  color: var(--white);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  font-size: 14px;
  margin-bottom: 15px;
}

/* Style for success messages */
.fluentform .ff-message-success {
  background-color: var(--success-color);
  color: var(--white);
  padding: 15px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 20px;
}

/* Style for the submit button */
.fluentform .ff-btn-submit {
  width: 100%;
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color) !important;
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  text-align: center;
  cursor: pointer;
}

/* Hover state for the submit button */
.fluentform .ff-btn-submit:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}
