:root {
  --basque-red: #d94e41;
  --basque-green: #009b48;
  --ocean-blue: #1d68a7;
  --sand-beige: #f5f1e3;
  --dark-gray: #333333;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: #fafbfc;
  margin: 0;
  padding: 0;
  padding-top: 80px;
}

/* Header Styles */
.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--basque-red) !important;
  letter-spacing: 1px;
}

.brand-circle {
  width: 40px;
  height: 40px;
  background-color: var(--basque-red);
  border-radius: 50%;
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
}

.navbar-nav .nav-link {
  color: var(--dark-gray) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s;
  padding: 8px 12px;
  border-radius: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--basque-red) !important;
  background-color: rgba(217, 78, 65, 0.08);
}

.language-btn {
  background-color: var(--basque-red);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s;
  cursor: pointer;
  outline: none;
}

.language-btn:hover,
.language-btn:focus {
  background-color: #b8402f;
  color: #fff;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  background: linear-gradient(135deg, var(--ocean-blue) 0%, #2980b9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/images/herobasque.png") center/cover no-repeat;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-primary-custom {
  background-color: var(--basque-red);
  border: none;
  color: #fff;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: #b8402f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(217, 78, 65, 0.25);
  color: #fff;
}

/* Section Titles */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--dark-gray);
  letter-spacing: 0.5px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--basque-red);
  border-radius: 2px;
}

.section-title.green::after {
  background-color: var(--basque-green);
}

.section-title.blue::after {
  background-color: var(--ocean-blue);
}

/* Destination Cards */
.destination-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 2rem;
  height: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.destination-card:hover,
.destination-card:focus-within {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
}

.destination-card .card-img-top {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.destination-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.destination-card .card-title {
  color: var(--dark-gray);
  font-weight: bold;
  margin-bottom: 1rem;
}

.destination-card .card-text {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.btn-secondary-custom {
  background-color: var(--sand-beige);
  border: 1px solid var(--basque-red);
  text-decoration: none;
  text-align: center;
  color: var(--basque-red);
  padding: 10px 25px;
  border-radius: 20px;
  font-weight: bold;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  cursor: pointer;
  outline: none;
  align-self: flex-start;
}

.btn-secondary-custom:hover,
.btn-secondary-custom:focus {
  background-color: #e8e4d7;
  border-color: var(--basque-red);
  color: var(--basque-red);
}

/* Culture Section */
.culture-section {
  background-color: #f8f9fa;
  padding: 5rem 0;
}

.culture-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.culture-image {
  height: 300px;
  background: linear-gradient(45deg, var(--basque-green), #00b851);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
}

.culture-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* Image Grid Section */
.image-grid-section {
  padding: 5rem 0;
}

.image-card {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  margin-bottom: 2rem;
}

.image-card:hover,
.image-card:focus-within {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
}

.image-container {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--basque-red);
  margin-bottom: 1rem;
  background: #f5f5f5;
}

.image-card.variant-green .image-container {
  border-color: var(--basque-green);
}

.image-card.variant-blue .image-container {
  border-color: var(--ocean-blue);
}

.grid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.image-card:hover .grid-image,
.image-card:focus-within .grid-image {
  transform: scale(1.05);
}

.image-caption {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-top: 1rem;
  line-height: 1.4;
}

/* Video Section */
.video-section {
  background-color: var(--ocean-blue);
  padding: 5rem 0;
  color: #fff;
}

.video-container {
  position: relative;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Cuisine Section */
.cuisine-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  min-height: 200px;
  background: #fff;
}

.cuisine-image {
  height: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.cuisine-image.pintxos {
  background: linear-gradient(45deg, var(--basque-red), #e55a4f);
}

.cuisine-image.michelin {
  background: linear-gradient(45deg, var(--basque-green), #00b851);
}

/* Table Section */
.table-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.table-responsive {
  border-radius: 15px;
  overflow-x: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.basque-tourism-table {
  margin: 0 auto;
  background-color: #fff;
  border: none;
  font-size: 1rem;
  max-width: 90%;
}

.basque-tourism-table th,
.basque-tourism-table td {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: middle;
}

.basque-tourism-table thead th {
  background: var(--sand-beige);
  color: var(--dark-gray);
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}

.basque-tourism-table tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.basque-tourism-table tbody tr:hover {
  background-color: rgba(217, 78, 65, 0.05);
}

/* Footer */
.footer {
  background-color: var(--dark-gray);
  color: #fff;
  padding: 3rem 0;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover,
.footer a:focus {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  justify-content: end;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s, color 0.3s;
  font-size: 1.3rem;
}

.social-icon:hover,
.social-icon:focus {
  background-color: var(--basque-red);
  color: #fff;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .brand-circle {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-right: 10px;
  }

  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

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

  .culture-image {
    height: 200px;
    font-size: 2rem;
  }

  .image-container {
    height: 200px;
  }

  .image-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .image-caption {
    font-size: 1rem;
  }

  .cuisine-image {
    min-height: 120px;
    font-size: 1.5rem;
  }

  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }

  .footer {
    text-align: center;
    padding: 2rem 0;
  }

  .footer .row > div {
    text-align: center !important;
  }

  .footer .d-flex {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 50vh;
    min-height: 350px;
  }

  .btn-primary-custom {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .image-container {
    height: 150px;
  }

  .culture-image {
    height: 150px;
    font-size: 1.5rem;
  }

  .cuisine-image {
    min-height: 100px;
    font-size: 1.2rem;
  }

  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .basque-tourism-table th,
  .basque-tourism-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}
