/* Destinations Page Custom CSS */

/* Import base styles */
:root {
  --iraq-orange: #f97316;
  --iraq-orange-dark: #ea580c;
  --iraq-orange-darker: #c2410c;
  --sand-light: #fdf2e7;
  --sand-medium: #f7cd9f;
  --sand-dark: #ed9455;
  --emerald: #10b981;
  --emerald-dark: #059669;
}

/* Base Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* Custom Utilities */
.text-primary-custom {
  color: var(--iraq-orange) !important;
}

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

.btn-primary-custom {
  background: linear-gradient(
    135deg,
    var(--iraq-orange),
    var(--iraq-orange-dark)
  );
  border: none;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background: linear-gradient(
    135deg,
    var(--iraq-orange-dark),
    var(--iraq-orange-darker)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
  color: white;
}

.hero-gradient {
  background: linear-gradient(
    135deg,
    var(--iraq-orange) 0%,
    var(--iraq-orange-dark) 50%,
    var(--iraq-orange-darker) 100%
  );
}

/* Glass Effect */
.glass-nav {
  backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(251, 226, 199, 0.3);
}

/* Hover Lift Effect */
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

/* Navigation */
.navbar-brand .brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--iraq-orange-darker);
  margin: 0;
}

.navbar-brand .brand-subtitle {
  font-size: 0.75rem;
  color: var(--sand-dark);
  margin: -0.25rem 0 0 0;
}

.logo-icon {
  background: linear-gradient(
    135deg,
    var(--iraq-orange),
    var(--iraq-orange-dark)
  );
  padding: 0.5rem;
  border-radius: 0.75rem;
}

.logo-icon i {
  color: white;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link.active {
  color: var(--iraq-orange) !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--iraq-orange),
    var(--iraq-orange-dark)
  );
  border-radius: 1px;
}

/* Page Header */
.page-header {
  padding: 120px 0 80px;
  position: relative;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Section */
.stats-section {
  border-bottom: 1px solid #e5e7eb;
}

.stat-item {
  padding: 1rem;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item i {
  font-size: 2rem;
  display: block;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--iraq-orange);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Interactive Map */
.interactive-map-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.map-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.map-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 10;
}

.marker-pulse {
  width: 100%;
  height: 100%;
  background: var(--iraq-orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
  position: relative;
}

.marker-pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.marker-tooltip {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.marker-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.map-marker:hover .marker-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 30px;
}

.marker-tooltip h6 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.marker-tooltip p {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Map marker positions */
.marker-baghdad {
  top: 35%;
  left: 45%;
}

.marker-babylon {
  top: 45%;
  left: 40%;
}

.marker-najaf {
  top: 55%;
  left: 35%;
}

.marker-karbala {
  top: 50%;
  left: 38%;
}

.marker-erbil {
  top: 15%;
  left: 60%;
}

.marker-basra {
  top: 80%;
  left: 50%;
}

/* Destination Cards */
.destination-item {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s ease-out forwards;
}

.destination-item:nth-child(1) {
  animation-delay: 0.1s;
}
.destination-item:nth-child(2) {
  animation-delay: 0.2s;
}
.destination-item:nth-child(3) {
  animation-delay: 0.3s;
}
.destination-item:nth-child(4) {
  animation-delay: 0.4s;
}
.destination-item:nth-child(5) {
  animation-delay: 0.5s;
}
.destination-item:nth-child(6) {
  animation-delay: 0.6s;
}

.destination-card {
  border: none;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  position: relative;
}

.destination-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-img-container {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.destination-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.destination-card:hover .destination-overlay {
  opacity: 1;
}

.overlay-content {
  align-self: flex-end;
  text-align: left;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.destination-card:hover .overlay-content {
  transform: translateY(0);
}

.destination-name {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.destination-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin: 0;
}

.overlay-actions {
  align-self: flex-start;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.destination-card:hover .overlay-actions {
  transform: translateY(0);
}

.explore-btn {
  border-radius: 2rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9) !important;
  border: none;
}

/* Destination Card Content */
.destination-header {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 1rem;
}

.destination-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.destination-type {
  font-size: 0.875rem;
  color: #6b7280;
}

.destination-type i {
  color: var(--iraq-orange);
}

.highlights-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights-list li {
  font-size: 0.875rem;
  color: #6b7280;
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.highlights-list li::before {
  content: "▸";
  color: var(--iraq-orange);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.destination-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.info-item i {
  width: 16px;
  text-align: center;
}

/* Travel Tips */
.tip-card {
  padding: 2rem 1rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tip-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(
    135deg,
    var(--iraq-orange),
    var(--iraq-orange-dark)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.tip-card:hover .tip-icon {
  transform: scale(1.1);
}

.tip-icon i {
  font-size: 1.5rem;
  color: white;
}

.tip-card h5 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.tip-card p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* Filter Buttons */
.btn-group .btn {
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0.25rem;
}

.btn-group .btn.active {
  background: var(--iraq-orange);
  border-color: var(--iraq-orange);
  color: white;
}

/* Filter States */
.destination-item.hidden {
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.destination-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

/* CTA Section */
.cta-section {
  position: relative;
}

/* Footer */
.footer-section {
  background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--iraq-orange);
}

.contact-links a {
  transition: all 0.3s ease;
}

.contact-links a:hover {
  color: var(--iraq-orange) !important;
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 60px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

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

  .stat-item {
    padding: 0.5rem;
  }

  .stat-item i {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .interactive-map-container {
    margin: 0 -1rem;
  }

  .map-marker {
    width: 16px;
    height: 16px;
  }

  .marker-tooltip {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .card-img-container {
    height: 200px;
  }

  .destination-name {
    font-size: 1.25rem;
  }

  .destination-tagline {
    font-size: 0.75rem;
  }

  .tip-card {
    padding: 1.5rem 1rem;
  }

  .tip-icon {
    width: 3rem;
    height: 3rem;
  }

  .btn-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-group .btn {
    margin: 0.25rem;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .navbar-brand .brand-title {
    font-size: 1.1rem;
  }

  .navbar-brand .brand-subtitle {
    font-size: 0.7rem;
  }

  .destination-item {
    margin-bottom: 1.5rem;
  }

  .card-img-container {
    height: 180px;
  }

  .destination-overlay {
    padding: 1rem;
  }

  .destination-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .highlights-list li {
    font-size: 0.8rem;
  }

  .info-item {
    font-size: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
.destination-card:focus,
.map-marker:focus {
  outline: 2px solid var(--iraq-orange);
  outline-offset: 2px;
}

.destination-card {
  cursor: pointer;
}

.destination-card:focus {
  transform: translateY(-4px);
}

.map-marker {
  cursor: pointer;
}

.map-marker:focus .marker-tooltip {
  opacity: 1;
  visibility: visible;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .destination-overlay {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.9) 100%
    );
  }

  .destination-card {
    border: 1px solid #333;
  }

  .tip-card {
    border: 1px solid #333;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .destination-overlay,
  .btn-group,
  .cta-section,
  .footer-section {
    display: none !important;
  }

  .destination-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
    margin-bottom: 1rem;
  }

  .tip-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .interactive-map-container {
    box-shadow: none;
  }
}

/* Loading Animation for images */
.card-img-top {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.card-img-top[src] {
  background: none;
  animation: none;
}

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

/* === Responsive Fixes for Tours Page === */
@media (max-width: 991.98px) {
  .row.g-4 > [class^="col-"],
  .row.g-4 > [class*=" col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .destination-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .btn-group {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: auto;
    gap: 0.5rem;
  }
  .btn-group .btn {
    min-width: 120px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
  }
  .destination-card {
    margin-bottom: 1.5rem;
  }
  .card-img-container {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .btn-group .btn {
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
    min-width: 100px;
  }
  .destination-card {
    margin-bottom: 1.2rem;
  }
  .card-img-container {
    height: 110px;
  }
  .section-title {
    font-size: 1.3rem;
  }
}

/* توحيد شكل البتنات */
.btn,
.btn-group .btn,
.btn-primary-custom,
.btn-outline-primary {
  border-radius: 2rem !important;
  font-weight: 500 !important;
  transition: all 0.2s;
}

/* معالجة مشاكل التراكب */
.tours-filter-section {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* إصلاح الصور داخل البطاقات */
.card-img-top {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 1.2rem 1.2rem 0 0;
}

/* === Tour Cards Enhanced Styling === */
.tour-card {
  border: none;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Simple fix for tour images */
.tour-card .tour-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.tour-card .card-img-container {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
  border-radius: 1.5rem 1.5rem 0 0;
}

.tour-card .card-img-top {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease;
  border-radius: 1.5rem 1.5rem 0 0;
  display: block;
}

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

/* Image Overlay Styles */
.tour-card .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  pointer-events: none;
  z-index: 3;
  border-radius: 1.5rem 1.5rem 0 0;
}

.tour-card .tour-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.tour-card .tour-icon i {
  font-size: 1.2rem;
  color: white;
}

.tour-card .region-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 4;
  pointer-events: auto;
}

.tour-card .tour-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.tour-card .tour-icon i {
  font-size: 1.2rem;
  color: white;
}

.tour-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0 0 1.5rem 1.5rem;
}

.tour-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--iraq-orange);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  text-align: center;
}

.tour-card .card-description {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tour-card .highlights-list {
  margin-bottom: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tour-card .highlight-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

.tour-card .highlight-item i {
  color: var(--iraq-orange);
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.tour-card .btn-book-now {
  width: 100%;
  background: linear-gradient(135deg, var(--iraq-orange) 0%, var(--iraq-orange-dark) 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  text-decoration: none;
}

.tour-card .btn-book-now:hover {
  background: linear-gradient(135deg, var(--iraq-orange-dark) 0%, var(--iraq-orange-darker) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
  color: white;
}

.tour-card .btn-book-now i {
  font-size: 1.1rem;
}

.tour-card .list-unstyled {
  margin-bottom: 1.5rem;
  padding: 0;
}

.tour-card .list-unstyled li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: #4b5563;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.tour-card .list-unstyled li i {
  color: var(--iraq-orange);
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.tour-card .card-footer {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tour-card .badge {
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tour-card .btn {
  border-radius: 2rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tour-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

/* === Mobile Responsive Enhancements === */
@media (max-width: 768px) {
  .tour-card {
    margin-bottom: 1.5rem;
    border-radius: 1.2rem;
  }
  
  .tour-card .card-img-container {
    height: 280px;
    min-height: 280px;
  }
  
  .tour-card .card-img-top {
    min-height: 280px;
  }
  
  .tour-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  
  .tour-card .card-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .tour-card .highlight-item {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .tour-card .card-body {
    padding: 1.25rem;
  }
  
  .tour-card .btn-book-now {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .tour-card .tour-icon {
    width: 3rem;
    height: 3rem;
    top: 0.75rem;
    left: 0.75rem;
  }
  
  .tour-card .tour-icon i {
    font-size: 1rem;
  }
  
  .tour-card .region-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 4px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .tour-card {
    margin-bottom: 1rem;
    border-radius: 1rem;
  }
  
  .tour-card .card-img-container {
    height: 240px;
    min-height: 240px;
  }
  
  .tour-card .card-img-top {
    min-height: 240px;
  }
  
  .tour-card .tour-icon {
    width: 2.5rem;
    height: 2.5rem;
    top: 0.5rem;
    left: 0.5rem;
  }
  
  .tour-card .tour-icon i {
    font-size: 0.9rem;
  }
  
  .tour-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .tour-card .card-description {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .tour-card .highlight-item {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }
  
  .tour-card .highlight-item i {
    font-size: 0.75rem;
    margin-right: 0.4rem;
  }
  
  .tour-card .card-body {
    padding: 1rem;
  }
  
  .tour-card .btn-book-now {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .tour-card .region-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 3px 8px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .tour-card .card-img-container {
    height: 200px;
    min-height: 200px;
  }
  
  .tour-card .card-img-top {
    min-height: 200px;
  }
  
  .tour-card .card-title {
    font-size: 1.1rem;
  }
  
  .tour-card .card-description {
    font-size: 0.85rem;
  }
  
  .tour-card .highlight-item {
    font-size: 0.75rem;
  }
  
  .tour-card .card-body {
    padding: 0.75rem;
  }
  
  .tour-card .btn-book-now {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .tour-card .tour-icon {
    width: 2rem;
    height: 2rem;
    top: 0.5rem;
    left: 0.5rem;
  }
  
  .tour-card .tour-icon i {
    font-size: 0.8rem;
  }
  
  .tour-card .region-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 2px 6px;
    font-size: 0.65rem;
  }
}

/* === Enhanced Grid Layout === */
@media (max-width: 991.98px) {
  .tours-section .row.g-4 > [class^="col-"] {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .tours-section .row.g-4 > [class^="col-"] {
    margin-bottom: 1rem;
  }
}

/* === Loading State for Images === */
.tour-card .card-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  z-index: 1;
  border-radius: 1.5rem 1.5rem 0 0;
}

.tour-card .card-img-top[src] ~ .card-img-container::before,
.tour-card .card-img-top[src] + .card-img-container::before {
  display: none;
}

/* === Loading Animation Keyframes === */
@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === Force Image Display === */
.tour-card .card-img-top {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 1.5rem 1.5rem 0 0 !important;
  min-height: 200px !important;
}

.tour-card .card-img-container {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb) !important;
  border-radius: 1.5rem 1.5rem 0 0 !important;
  min-height: 200px !important;
}

/* === Ensure Images Load Properly === */
.tour-card img.card-img-top {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 1.5rem 1.5rem 0 0 !important;
  min-height: 200px !important;
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb) !important;
  transition: opacity 0.3s ease, transform 0.5s ease !important;
}

/* === Image Loading Animation === */
.tour-card .card-img-top:not([src]) {
  opacity: 0;
}

.tour-card .card-img-top[src] {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* === Image Loaded State === */
.tour-card .card-img-top.loaded {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* === Image Error Handling === */
.tour-card .card-img-top[src*="error"] {
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.tour-card .card-img-top[src*="error"]::before {
  content: "🖼️ Image not available";
  text-align: center;
}

/* === Hover Effects Enhancement === */
.tour-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(249, 115, 22, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 1.5rem;
}

.tour-card:hover::before {
  opacity: 1;
}

