/* Custom CSS for Wanderlust Chronicles Travel Blog - Modern Design */

/* Root Variables */
:root {
  --primary-color: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary-color: #10b981;
  --dark-color: #111827;
  --light-color: #f9fafb;
  --gray-color: #6b7280;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --font-heading: "DM Serif Display", serif;
  --font-body: "Sora", sans-serif;
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 2rem;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.btn {
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.section-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.section-subtitle {
  color: var(--gray-color);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* Navigation */
.navbar {
  padding: 1.5rem 0;
  transition: var(--transition);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 30px;
}

.btn-nav {
  background: var(--gradient-primary);
  color: white !important;
  border-radius: var(--border-radius-md);
  padding: 0.5rem 1.5rem;
}

.btn-nav:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: #f8f9ff;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

/* Small Hero Section for inner pages */
.hero-section-small {
  position: relative;
  background-color: #f8f9ff;
  padding: 8rem 0 2rem;
  overflow: hidden;
}

.hero-text {
  padding-top: 3rem;
}

.badge-pill {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  margin-top: 2rem;
}

/* Search container styles */
.search-container {
  position: relative;
}

.search-container .input-group {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.search-container .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.search-container .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0;
}

/* Destination tags */
.destination-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid rgba(99, 102, 241, 0.2);
  margin: 0.25rem;
}

.destination-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  border-color: var(--primary-color);
}

.destination-tag:active {
  transform: translateY(-1px);
}

.hero-image-container {
  position: relative;
  height: 100%;
}

.hero-image {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  height: 100%;
}

/* Update the floating-card position to move it more to the right */
.floating-card {
  position: absolute;
  bottom: 30px;
  left: 20px; /* Changed from -30px to 20px to move it right */
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1rem;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.card-content h5 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.card-content p {
  font-size: 0.875rem;
  color: var(--gray-color);
  margin-bottom: 0;
}

.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

/* Featured Adventure */
.featured-section {
  padding: 5rem 0;
}

.featured-adventure {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.featured-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
}

.featured-image img {
  transition: var(--transition);
  width: 100%;
  border-radius: var(--border-radius-md);
}

.featured-image:hover img {
  transform: scale(1.05);
}

.image-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--dark-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-content {
  padding: 2rem;
}

.adventure-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

.featured-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-description {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.adventure-stats {
  background: #f8f9ff;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-color);
}

/* Adventures Grid */
.adventures-grid {
  background-color: #f8f9ff;
  padding: 5rem 0;
}

.adventure-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
}

.adventure-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.adventure-card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
}

.card-location {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.card-body {
  padding: 1.5rem;
}

.adventure-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.date {
  color: var(--gray-color);
}

.duration {
  color: var(--primary-color);
  font-weight: 500;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-text {
  color: var(--gray-color);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
  background-color: white;
}

.gallery-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  height: 100%;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  border-radius: var(--border-radius-md);
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
}

.gallery-caption h5 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.gallery-caption p {
  margin-bottom: 0;
  font-size: 0.875rem;
  opacity: 0.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  height: 300px;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  height: auto;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Newsletter Section */
.newsletter-section {
  padding: 5rem 0;
  background-color: #f8f9ff;
}

.newsletter-container {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.newsletter-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
  transform: translate(150px, -150px);
}

.newsletter-content h3 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  color: var(--gray-color);
  margin-bottom: 0;
}

.newsletter-form .input-group {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.newsletter-form .btn {
  padding: 1rem 2rem;
  border-radius: 0;
}

.newsletter-form small {
  display: block;
  margin-top: 0.75rem;
  color: var(--gray-color);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-brand h5 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer h6 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-bottom i {
  color: #f43f5e;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter Section Styles */
.filter-section {
  padding-top: 2rem;
  padding-bottom: 1rem;
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  background-color: transparent;
  color: var(--gray-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.adventure-item {
  transition: all 0.4s ease;
}

/* Breadcrumb styles */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--gray-color);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "•";
  color: var(--gray-color);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .featured-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-section {
    padding: 7rem 0 3rem;
  }

  .hero-section-small {
    padding: 7rem 0 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
    height: 300px;
  }

  .newsletter-container {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-gap: 1rem;
  }

  .gallery-item,
  .gallery-item.large {
    grid-column: span 1;
    height: 250px;
  }

  .newsletter-container {
    padding: 1.5rem;
  }

  .newsletter-form {
    margin-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-buttons .btn:last-child {
    margin-left: 0 !important;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .adventure-stats {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Button and Interactive Element Cursor Fixes */
.btn,
.btn-primary,
.btn-outline,
.btn-nav,
.card-link,
.social-icon,
.gallery-item,
.adventure-card,
a[href],
button {
  cursor: pointer !important;
}

/* Ensure all clickable elements have pointer cursor */
.hero-buttons .btn,
.hero-buttons a,
.navbar-brand,
.nav-link,
.footer-links a,
.newsletter-form .btn,
#loadMoreBtn,
#subscribeBtn {
  cursor: pointer !important;
}

/* Hover states for buttons */
.btn:hover,
.btn-primary:hover,
.btn-outline:hover {
  cursor: pointer !important;
}

/* Disabled state should show not-allowed cursor */
.btn:disabled,
.btn.loading {
  cursor: not-allowed !important;
}

/* Gallery and card interactions */
.gallery-card:hover,
.adventure-card:hover {
  cursor: pointer !important;
}

/* Timeline marker styles for adventure detail pages */
.timeline-marker {
  min-width: 3rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  border-radius: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  position: absolute;
  left: -3rem;
  padding: 0 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}
