:root {
  --federal-blue: #03045eff;
  --marian-blue: #023e8aff;
  --honolulu-blue: #0077b6ff;
  --blue-green: #0096c7ff;
  --pacific-cyan: #00b4d8ff;
  --vivid-sky-blue: #48cae4ff;
  --non-photo-blue: #90e0efff;
  --non-photo-blue-2: #ade8f4ff;
  --light-cyan: rgb(223, 245, 249);
}

.alert {
  padding: 4px 8px !important;
  margin-bottom: 0 !important;
  border-radius: 10px !important;
}

.alert-warning {
  background: linear-gradient(90deg, #fff3cd, #ffeeba);
  border: 1px solid #ffc107;
  color: #4b3d02;
  font-weight: 500;
  font-size: 13px;
  padding: 4px 8px !important;
  line-height: 1.4;
  letter-spacing: 0.3px;
  box-shadow: inset 0 -5px 10px rgba(228, 125, 46, 0.3);
  animation: fadeInAlert 0.4s ease-in-out;
}

.alert-warning i {
  color: #ff6f00;
  font-size: 10px;
}

.alert-warning strong {
  color: #ff6f00;
  margin-right: 4px;
}

@keyframes fadeInAlert {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-warning:hover {
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
  transform: scale(1.01);
  transition: 0.3s ease;
}

.village-info-container {
  color: #333;
}

.section-title {
  color: #007bff;
  font-weight: 700;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: #0056b3;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Card Section */
.card-section {
  background-color: var(--light-cyan);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  line-height: 1.7;
}

.card-section p {
  background-color: var(--non-photo-blue-2);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  line-height: 1.7;
  font-size: 1.2rem;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  margin: 1rem 0;
}

.info-grid > div {
  background-color: #e9f2ff;
  border-radius: 0.75rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  width: 280px;
  min-height: 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-grid > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.info-grid i {
  font-size: 1.2rem;
  color: #007bff;
}

.info-grid strong {
  font-weight: 600;
}

.info-value {
  font-weight: 500;
  color: #333;
  word-break: break-word;
}

@media (max-width: 992px) {
  .info-grid > div {
    width: 240px;
    min-height: 110px;
  }
}

@media (max-width: 768px) {
  .info-grid > div {
    width: 100%;
    min-height: auto;
  }
}

.info-grid div i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  color: #007bff;
}

.info-grid div strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-value {
  font-weight: 400;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.info-table th,
.info-table td {
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  text-align: center;
}

.info-table th {
  background-color: #e9f2ff;
  font-weight: 600;
}

.info-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.enhanced-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-weight: 500;
}

.enhanced-table th,
.enhanced-table td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
}

.enhanced-table th {
  background-color: #e9f2ff;
  color: #0056b3;
  font-size: 1rem;
}

.enhanced-table td {
  background-color: #f8f9fa;
  color: #333;
  font-size: 0.95rem;
}

.enhanced-table tbody tr:hover td {
  background-color: #d0e4ff;
}

.enhanced-table i {
  margin-right: 0.3rem;
  color: #007bff;
}

.population-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-weight: 500;
}

.population-table th,
.population-table td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
}

.population-table thead th {
  background: linear-gradient(90deg, var(--honolulu-blue), var(--blue-green));
  font-size: 1rem;
  color: #333;
}

.population-table tbody tr:nth-child(odd) td {
  background-color: #f9f9f9;
}

.population-table tbody tr:hover td {
  background-color: #e6f0ff;
}

.population-table i {
  margin-right: 0.3rem;
}

.text-primary {
  color: #007bff;
}

.text-pink {
  color: #e83e8c;
}

.text-success {
  color: #28a745;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #dee2e6;
  font-size: 1rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list i {
  margin-right: 0.6rem;
  font-size: 1.1rem;
}

.history-container {
  width: 100%;
  margin-top: 1.5rem;
  display: block;
}

.history-container p {
  display: block;
  width: 100%;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  margin-bottom: 1.5rem;
  background-color: var(--non-photo-blue-2);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  box-sizing: border-box;
}

.history-text,
.history-image {
  display: none;
}

.history-container h2 {
  color: #0056b3;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pacific-cyan);
}

.history-container h2:first-of-type {
  margin-top: 0;
}

@media (max-width: 768px) {
  .history-container p {
    font-size: 0.9rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .history-container h2 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
  }
}

@media (max-width: 480px) {
  .history-container p {
    font-size: 0.85rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
  }

  .history-container h2 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
  }
}
.village-search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.village-search-box {
  background: white;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #e9ecef;
}

.village-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.village-search-icon {
  color: #007bff;
  margin-right: 0.5rem;
}

.village-search-input {
  border: none;
  outline: none;
  width: 100%;
  padding: 0.5rem 0;
  background: transparent;
}

.village-clear-search {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
}

.village-search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 1rem;
  right: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #dee2e6;
  z-index: 1000;
  margin-top: 0.5rem;
}

.village-search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
}

.village-close-results {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
}

.village-search-results-body {
  max-height: 300px;
  overflow-y: auto;
}

.village-search-results-list {
  padding: 0.5rem;
}

.village-search-result-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 0.25rem;
}

.village-search-result-item:hover {
  background: #f8f9fa;
}

.village-result-content {
  flex: 1;
}

.village-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.village-result-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.village-result-category {
  background: #007bff;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
}

.village-result-description {
  margin: 0;
  font-size: 0.8rem;
  color: #6c757d;
}

.village-result-arrow {
  color: #007bff;
  font-size: 0.8rem;
}

.village-no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: #6c757d;
}

.village-no-results-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
  .village-search-container {
    padding: 0.5rem;
  }

  .village-search-results-dropdown {
    left: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .village-result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .village-result-category {
    margin-top: 0.25rem;
  }
}
