/* General Styles */
body {
    background: linear-gradient(to right, #8e9eab, #eef2f3);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

/* Map Container */
.map-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    border-radius: 15px;
    margin-top: 30px; /* Added top margin */
    margin-bottom: 20px; /* Added margin for spacing on mobile */
}

svg {
    width: 100%;
    height: auto;
}

path.active {
  fill: yellow;
}

/* Info Container */
#info-container {
    background-color: #f0f4f8;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    text-align: center; /* Center align text */
    margin-top: 30px; /* Added top margin */
}

#info-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Títulos dentro del panel de info */
#info-container h2 {
  font-size: 1.2rem;     /* antes 2rem */
  font-weight: 900;
  color: #2c3e50;
  margin-bottom: 6px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

#info-container h3 {
  font-size: 2.2rem;   /* antes 5rem */
  font-weight: 900;
  color: #2c3e50;
  margin-top: 4px;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}


#info-container p {
    font-size: 1.2rem;
    font-weight: 500;
}


/* General Headings (for other sections) */
h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

h3 {
    font-size: 22px;
    font-weight: 600;
}

/* Tourism Section */
.tourism-section {
    background-color: #f0f4f8;
    padding: 30px;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.tourism-section h2 {
    text-align: center;
    font-weight: 900;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.tourism-entries {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.tourism-entry {
    flex: 0 0 calc(48% - 20px);
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #ddd; /* Add border for card effect */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add box-shadow for card effect */
}

.tourism-entry img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid #ddd; /* Separator line */
    transition: transform 0.3s ease;
}

.tourism-entry img:hover {
    transform: scale(1.03);
}

.tourism-description {
    padding: 20px;
}

.tourism-description h4 {
    font-weight: bold;
    font-size: 28px;
    margin-top: 0;
}

.tourism-description p {
    font-size: 1.2rem;
}


/* Ocultar la scrollbar interna del contenedor (sigue funcionando el scroll) */
#provincesTableContainer {
  scrollbar-width: none;           /* Firefox */
}
#provincesTableContainer::-webkit-scrollbar { /* Chrome/Edge/Safari */
  width: 0;
  height: 0;
}



#provincesTableContainer h1 {
    text-align: center;
    padding: 20px;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Evita glitches con sticky */
#provincesTable {
  border-collapse: separate;  /* en vez de collapse */
  border-spacing: 0;
}

/* Header pegado, por encima de las filas */
#provincesTable thead th {
  position: sticky;
  top: 0;
  z-index: 5;                 /* <-- clave */
  background-color: #007bff;  /* fondo sólido */
  /* opcional: pequeña sombra para separar visualmente */
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}


#provincesTable thead th a {
    color: #fff;
    text-decoration: none;
}

#provincesTable thead th a:hover {
    color: yellow;
}

#provincesTable tbody td {
    padding: 15px;
    border-bottom: 1px solid #d4dde5;
    color: #333;
    font-size: 15px;
    font-weight: 500; /* Bolder table text */
}

#provincesTable tbody tr {
    background-color: #fff;
    transition: background-color 0.3s ease;
}

#provincesTable tbody tr:nth-of-type(even) {
    background-color: #e9f5ff;
}

#provincesTable tbody tr:hover {
    background-color: #d1e9ff;
    cursor: pointer;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .tourism-entry {
        flex: 0 0 calc(100% - 20px);
    }
    #info-container {
        margin-bottom: 20px; /* Added margin for spacing on mobile */
    }
    #info-container h3 {
        font-size: 2rem;
    }
    #provincesTableContainer {
        margin-top: 20px; /* Added margin for spacing on mobile */
    }
}

/* 🔸 Estado activo del encabezado ordenado (mismo amarillo del hover del mapa SVG) */
#provincesTable th a.active-sort {
  color: #ffff00 !important; /* mismo amarillo del fill del mapa */
  font-weight: bold;
  text-decoration: underline;
}

#provincesTable th a:hover,
#provincesTable th a.active-sort:hover {
  color: #ffff00 !important;
}


