/* Tour Grid 2025 - Enhanced Styles */

/* Custom styles to enhance Bootstrap */
.overflow-auto::-webkit-scrollbar {
  display: none;
}

.card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease-in-out;
}

.card-img-top {
  transition: transform 0.3s ease-in-out;
}

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

/* Skeleton Loading Styles */
.skeleton-card {
  background: #f8f9fa;
  animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes skeleton-loading {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Button Loading States */
button[data-loading="true"] {
  position: relative;
  color: transparent !important;
}

button[data-loading="true"]:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid #ccc;
  border-top-color: #333;
  animation: button-spin 1s ease-in-out infinite;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

/* Screen Reader Only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
  .col-xl-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .card-body {
    padding: 1rem !important;
  }
}

/* Enhanced Focus States for Accessibility */
button:focus,
.btn:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* Tour Card Specific Styles */
.tour-card {
  transition: all 0.2s ease-in-out;
}

.tour-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   COLOR SYSTEM - Brand Palette
   ============================================ */
:root {
  --primary-color: #f4821e;        /* Orange brand color */
  --primary-hover: #e56d0a;        /* Darker orange for hover */
  --secondary-color: #6c757d;      /* Medium gray */
  --light-gray: #e9ecef;           /* Light background */
  --medium-gray: #dee2e6;          /* Medium background/borders */
  --dark-gray: #495057;            /* Dark text */
  --text-muted: #6c757d;           /* Muted text */
  --border-light: #dee2e6;         /* Light borders */
  --border-default: #e0e0e0;       /* Default borders */
  --white: #ffffff;
  --black: #000000;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
.page-title { 
  font-size: 2rem; 
  font-weight: 700; 
  margin-bottom: 0.25rem;
}

.section-title { 
  font-size: 1.5rem; 
  font-weight: 600; 
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
}

.card-title { 
  font-size: 1.125rem; 
  font-weight: 500; 
}

.body-text { 
  font-size: 1rem; 
  line-height: 1.6; 
  color: var(--dark-gray);
}

.small-text { 
  font-size: 0.875rem; 
  color: var(--text-muted);
}

.tiny-text { 
  font-size: 0.75rem;  /* 12px at 16px base */
  color: var(--text-muted);
}

/* ============================================
   CONTACT INFORMATION STYLES
   ============================================ */
.contact-info {
  font-size: 12px;
}

.contact-info-text {
  color: var(--text-muted);
}

.contact-info-link {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.contact-info-link:hover {
  color: var(--dark-gray);
  text-decoration: underline;
}

/* ============================================
   TAXONOMY PILLS / CATEGORY BUTTONS
   ============================================ */
.btn-tour-category {
  background-color: var(--light-gray);
  color: var(--black);
  border: 1px solid var(--border-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-tour-category:hover {
  background-color: var(--medium-gray);
  color: var(--black);
  text-decoration: none;
}

.btn-tour-category.active {
  background-color: var(--secondary-color);
  color: var(--black);
  border-color: var(--secondary-color);
}

.btn-tour-category.active:hover {
  background-color: var(--dark-gray);
  border-color: var(--dark-gray);
}

/* Scrollable Pills Container */
.pills-container {
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.pills-container::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

/* ============================================
   FILTER CONTROLS
   ============================================ */
.filter-controls {
  gap: 0.5rem;
}

.results-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   PAGINATION STYLES
   ============================================ */
.pagination.moderm-pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.pagination.moderm-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pagination.moderm-pagination ul.page-numbers li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pagination.moderm-pagination a.page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-default) !important;
  border-radius: 50% !important;
  background: var(--white) !important;
  color: #666 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  line-height: 1;
}

.pagination.moderm-pagination a.page-numbers:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-1px);
  background: var(--white) !important;
}

.pagination.moderm-pagination a.page-numbers.current {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  font-weight: 600;
}

.pagination.moderm-pagination a.page-numbers.prev,
.pagination.moderm-pagination a.page-numbers.next {
  background: var(--white) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  font-size: 16px;
}

.pagination.moderm-pagination a.page-numbers.prev:hover,
.pagination.moderm-pagination a.page-numbers.next:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.pagination.moderm-pagination a.page-numbers.dots {
  border: none !important;
  background: transparent !important;
  color: #999 !important;
  cursor: default;
  transform: none !important;
}

.pagination.moderm-pagination a.page-numbers.dots:hover {
  border: none !important;
  background: transparent !important;
  color: #999 !important;
  transform: none !important;
}

/* ============================================
   SEO CONTENT SECTIONS
   ============================================ */
.content-section {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.content-section:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

/* FAQ Section */
.faq-section-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  min-height: 200px;
  contain: layout style;
}

/* Hotel Links Section */
.hotel-links-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  min-height: 200px;
  contain: layout style;
}

/* Fallback Placeholder Styling */
.faq-placeholder,
.hotel-links-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.faq-placeholder h2,
.hotel-links-placeholder h2 {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

/* SEO Enhancement - Typography */
.content-section h2 {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.content-section p {
  line-height: 1.6;
  color: #5a6c7d;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .content-section {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
  }
  
  .faq-section-wrapper,
  .hotel-links-wrapper {
    padding: 1.5rem 1rem;
    margin: 0 -15px;
    border-radius: 8px;
  }
}

@media (max-width: 576px) {
  .pagination.moderm-pagination ul.page-numbers {
    gap: 6px;
  }
  
  .pagination.moderm-pagination a.page-numbers {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */
/* Focus states for keyboard navigation */
.btn-tour-category:focus,
.contact-info-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.btn-tour-category.active {
  /* Adding a slight text shadow for better contrast on gray background */
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-tour-category {
    border-width: 2px;
  }
  
  .btn-tour-category.active {
    background-color: var(--black);
    color: var(--white);
  }
} 