/* Custom styles for Tripok.es */

:root {
  --primary-color: #0066cc;
  --secondary-color: #ff6b35;
  --success-color: #28a745;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Navigation improvements */
.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.dropdown-menu {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: none;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.6rem 1.5rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
  color: var(--primary-color);
}

/* Cards and containers */
.card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #0052a3;
  border-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,102,204,0.3);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-success:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40,167,69,0.3);
}

.btn-warning {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-warning:hover {
  background-color: #e55a2b;
  border-color: #e55a2b;
  color: white;
  transform: translateY(-2px);
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hero-section h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* City cards */
.city-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.city-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.city-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

/* Info boxes */
.info-box {
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box.warning {
  border-left-color: var(--secondary-color);
  background: #fff5f0;
}

.info-box.success {
  border-left-color: var(--success-color);
  background: #f0f9f4;
}

/* Budget calculator form */
#budget-form {
  background: white;
  border: 2px solid #e9ecef;
}

#budget-form:hover {
  border-color: var(--primary-color);
}

#budget-form .form-label {
  font-weight: 600;
  color: var(--text-dark);
}

#budget-form .form-control {
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  padding: 0.75rem;
}

#budget-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.15);
}

/* Result display */
#result {
  font-size: 1.8rem;
  color: var(--primary-color);
  padding: 1rem;
  background: #f0f7ff;
  border-radius: var(--border-radius);
}

/* Booking sections */
#booking, #centauro, #aviasales, #guide {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

footer a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #5dade2;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h5 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

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

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

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* Sections styling */
section {
  margin-bottom: 3rem;
}

section h2 {
  color: var(--text-dark);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

section h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
}

/* Lists */
ul li, ol li {
  margin-bottom: 0.5rem;
}

ul li strong, ol li strong {
  color: var(--text-dark);
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  #result {
    font-size: 1.4rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Mobile navigation improvements */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  .navbar-collapse {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 0.5rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
  }
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Highlight boxes */
.highlight-box {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Price tags */
.price-tag {
  background: var(--success-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  font-size: 0.9rem;
}

/* Table improvements */
table {
  border-radius: var(--border-radius);
  overflow: hidden;
}

table th {
  background: var(--primary-color);
  color: white;
}

table tr:hover {
  background: #f8f9fa;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Back to top button (if needed) */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
}

.back-to-top:hover {
  background: #0052a3;
  transform: translateY(-3px);
}

/* 404 Error Page Styles */
.error-page {
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

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

.error-message {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

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

.error-actions .btn {
  min-width: 180px;
  padding: 0.75rem 2rem;
  font-weight: 600;
}

/* Mobile responsiveness for 404 page */
@media (max-width: 768px) {
  .error-code {
    font-size: 6rem;
  }
  
  .error-title {
    font-size: 2rem;
  }
  
  .error-message {
    font-size: 1rem;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .error-actions .ms-3 {
    margin-left: 0 !important;
    margin-top: 1rem;
  }
}

