.gicg-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

.gicg-details-content-wrapper {
  display: flex;
  gap: 16px;
}

.gicg-top-section {
  display: flex;
  gap: 16px;
}

.gicg-map-section {
  order: 2;
  margin-top: 16px;
  width: 100%;
  height: 500px;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f8ecd4;
  position: relative;
}

#gicg-country-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Fix SVG sizing and interaction issues */
.leaflet-container .leaflet-overlay-pane svg {
  width: unset !important;
  height: unset !important;
  pointer-events: auto !important;
}

.leaflet-container .leaflet-overlay-pane svg path {
  pointer-events: auto !important;
}

.leaflet-container .leaflet-overlay-pane {
  pointer-events: auto !important;
}

/* Increase popup/tooltip font size */
.leaflet-popup-content {
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.leaflet-popup-content strong {
  font-size: 12px !important;
  display: block;
}

.gicg-map-legend {
  position: absolute;
  top: 16px;
  left: 16px;
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.gicg-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #374151;
}

.gicg-legend-item:last-child {
  margin-bottom: 0;
}

.gicg-legend-icon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

.gicg-legend-icon.visa-free {
  background-color: #1f4e5e;
}

.gicg-legend-icon.visa-on-arrival {
  background-color: #64b6d1;
}

.gicg-legend-icon.e-visa {
  background-color: #93ddf6;
}

/* Details Panel */
.gicg-details-panel {
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  border: 1px solid #c08e54;
}

.gicg-details-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  gap: 24px;
}

.gicg-flex-container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.gicg-passport-details {
  width: 38%;
  height: 100%;
}

.gicg-passport-image-details {
  width: 100%;
  height: 100%;
  object-fit: contain; /* This ensures the image maintains its aspect ratio */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gicg-passport-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #c08e54;
}

.gicg-details-wrapper {
  flex: 1;
  width: 100%;
}

.gicg-flag-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gicg-country-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #c08e54;
}

.gicg-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f4e5e;
  margin: 0;
}

.gicg-details-description {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 16px;
}

/* Stats Section */
.gicg-stats-container {
  display: grid;
  grid-template-columns: auto 1fr !important;
  gap: 20px;
  margin-bottom: 16px;
}

.gicg-stat-group {
  background-color: #fff;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  border: 1px solid #c08e54;
}

.gicg-stat-group h3 {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.gicg-big-stat {
  font-size: 20px;
  font-weight: 600;
  color: #cca55c;
}

.gicg-big-stat .gicg-rank-number {
  margin-right: -4px;
}

.gicg-destinations {
  font-size: 12px;
  color: #6b7280;
}

/* Action Buttons */
.gicg-action-buttons {
  margin-top: auto;
  display: flex;
  gap: 8px;
  width: 100%;
  position: relative;
}

.gicg-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #f8ecd4;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.gicg-btn-compare {
  background-color: #fff;
  color: #374151;
}

.gicg-btn-compare:hover {
  background-color: #c08e54;
}

.gicg-btn-compare:hover .gicg-icon {
  color: #fff;
}

.gicg-btn-primary {
  background-color: #c08e54;
  color: #fff;
  border-color: #c08e54;
}

.gicg-btn-primary:hover {
  background-color: #c08e54;
  border-color: #c08e54;
}

/* Empty State */
.gicg-empty-state {
  width: 100%;
  text-align: center;
  margin-top: 0;
}

.gicg-empty-icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: #cca55c;
}

.gicg-empty-state h3 {
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
}

.gicg-empty-state p {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  text-align: left;
}

/* Passport Ranking Section */
.gicg-passport-ranking {
  width: 400px;
  flex-shrink: 0;
}

.gicg-search-container {
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
  background-color: #fff;
}

.gicg-compare-button {
  margin-top: 8px;
  padding: 8px 16px;
  width: 100%;
  border: 1px solid #c08e54;
  background-color: #c08e54;
  color: #fff;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gicg-compare-button:hover {
  background-color: #a67a45;
  border-color: #a67a45;
}

.gicg-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background-color: #fff;
  border: 1px solid #c08e54 !important;
  border-radius: 3px;
  font-size: 12px;
  color: #374151;
}

.gicg-search-input:focus {
  outline: none;
  border-color: #c08e54;
  box-shadow: 0 0 0 2px rgba(204, 165, 92, 0.1);
}

.gicg-content-wrapper {
  background-color: #fff;
  padding: 16px 8px;
  border-radius: 6px;
  border: 1px solid #c08e54;
  max-height: 800px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c08e54 #fff;
}

/* Country List Styles */
.gicg-rank-group {
  padding: 10px;
  border-bottom: 1px solid #f8ecd4;
}

.gicg-rank-group:last-child {
  border-bottom: none;
}

.gicg-rank-header {
  background-color: #f8ecd4;
  border-radius: 3px;
  padding: 5px 10px;
  margin-bottom: 6px;
}

.gicg-rank-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gicg-country-item {
  display: block;
  padding: 5px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.gicg-country-item:hover {
  text-decoration: none;
}

.gicg-country-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gicg-flag-container {
  width: 20px;
  height: 20px;
}

.gicg-flag-container img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border: 1px solid #c08e54;
  border-radius: 20px;
  overflow: hidden;
}

.gicg-country-name {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

.gicg-country-name:hover {
  color: #c08e54;
}

.gicg-country-name-title {
  font-size: 16px;
  color: #c08e54;
}

.gicg-country-item:hover .gicg-country-name {
  color: #c08e54;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .gicg-top-section {
    flex-direction: column;
  }

  .gicg-map-section {
    min-height: 400px;
  }

  .gicg-passport-ranking {
    width: 100%;
  }

  .gicg-flex-container {
    flex-direction: column;
    align-items: center;
  }

  .gicg-passport-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .gicg-details-wrapper {
    width: 100%;
  }

  .gicg-stats-container {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .gicg-action-buttons {
    flex-direction: column;
    position: relative;
  }
}

/* Visa Categories */
.gicg-visa-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px;
  background: transparent;
  padding: 0;
}

.gicg-visa-category {
  background: #fff;
}

.gicg-category-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f4e5e;
  margin-bottom: 4px;
}

.gicg-category-count {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

.gicg-countries-list {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  max-height: 30rem;
  overflow-y: auto;
  border: 1px solid #c08e54;
}

.gicg-country-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.gicg-country-entry:hover {
  background-color: #f8ecd4;
  cursor: pointer;
  color: #c08e54;
}

.gicg-country-flag-small {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #c08e54;
  object-fit: cover;
}

#gicg-searched-flag {
  display: none; /* Hide by default */
}

.gicg-country-name-small {
  font-size: 13px;
  font-weight: 500;
}

.gicg-country-name-small:hover {
  color: #c08e54;
}

/* Responsive styles for visa categories */
@media (max-width: 1200px) {
  .gicg-visa-categories {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .gicg-visa-categories {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .gicg-visa-categories {
    grid-template-columns: 1fr !important;
  }
}

.gicg-compare-dropdown {
  position: absolute;
  background-color: #fff;
  border: 1px solid #f8ecd4;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  left: 0;
  top: 100%;
  margin-top: 4px;
}

.gicg-compare-item {
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gicg-compare-item:hover {
  background-color: #f8ecd4;
}

.gicg-compare-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid #f8ecd4;
  padding: 8px;
  background-color: #fff;
}

.gicg-compare-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gicg-country {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gicg-arrow {
  font-size: 20px;
  font-weight: bold;
}

.gicg-visa-status {
  font-weight: bold;
  font-size: 11px;
}

.gicg-passport-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  background: #fff;
  border-radius: 8px;
  margin-top: 16px;
}

.gicg-passport-item {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  transform: unset !important;
  display: flex !important;
}

.gicg-passport-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gicg-passport-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gicg-passport-item-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 10px 14px;
}

.gicg-passport-item-flag {
  width: 20px;
  height: 20px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 1px solid #f8ecd4 !important;
}

.gicg-passport-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.gicg-passport-item-country {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 2px 0;
}

.gicg-passport-item-rank {
  font-size: 9px !important;
  color: #6b6b6b;
  margin: 0;
}

.gicg-no-results {
  width: 100%;
  text-align: center;
  padding: 32px 16px;
}

.gicg-empty-message {
  font-size: 1em;
  color: #666;
}

/* Responsive adjustments for passport grid */
@media (max-width: 1200px) {
  .gicg-passport-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .gicg-passport-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .gicg-passport-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .gicg-passport-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   SHIMMER LOADING EFFECTS
   ============================================ */

/* Shimmer animation keyframes */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

/* Base shimmer class */
.gicg-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #f8f8f8 20%,
    #f0f0f0 40%,
    #f0f0f0 100%
  );
  background-size: 200px 100%;
  animation: shimmer 4.5s infinite;
}

.gicg-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  animation: shimmer 4.5s infinite;
}

/* Shimmer for images */
.gicg-shimmer-image {
  background: linear-gradient(
    90deg,
    #e5e7eb 0%,
    #f3f4f6 20%,
    #e5e7eb 40%,
    #e5e7eb 100%
  );
  background-size: 200px 100%;
  animation: shimmer 4s infinite;
  border-radius: 8px;
}

.gicg-shimmer-image::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 100%
  );
  animation: shimmer 4s infinite;
  border-radius: 8px;
}

/* Shimmer for cards */
.gicg-shimmer-card {
  background: linear-gradient(
    90deg,
    #f9fafb 0%,
    #ffffff 20%,
    #f9fafb 40%,
    #f9fafb 100%
  );
  background-size: 200px 100%;
  animation: shimmer 4.5s infinite;
  border-radius: 12px;
}

.gicg-shimmer-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  animation: shimmer 4.5s infinite;
  border-radius: 12px;
}

/* Shimmer for text lines */
.gicg-shimmer-text {
  background: linear-gradient(
    90deg,
    #e5e7eb 0%,
    #f3f4f6 20%,
    #e5e7eb 40%,
    #e5e7eb 100%
  );
  background-size: 200px 100%;
  animation: shimmer 4.2s infinite;
  border-radius: 4px;
  height: 1em;
}

.gicg-shimmer-text::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  animation: shimmer 4.2s infinite;
  border-radius: 4px;
}

/* Shimmer for circular elements (flags, avatars) */
.gicg-shimmer-circle {
  background: linear-gradient(
    90deg,
    #e5e7eb 0%,
    #f3f4f6 20%,
    #e5e7eb 40%,
    #e5e7eb 100%
  );
  background-size: 200px 100%;
  animation: shimmer 4s infinite;
  border-radius: 50%;
}

.gicg-shimmer-circle::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 100%
  );
  animation: shimmer 4s infinite;
  border-radius: 50%;
}

/* Shimmer for map container */
.gicg-shimmer-map {
  background: linear-gradient(
    90deg,
    #e5e7eb 0%,
    #f3f4f6 20%,
    #e5e7eb 40%,
    #e5e7eb 100%
  );
  background-size: 200px 100%;
  animation: shimmer 5s infinite;
  border-radius: 8px;
}

.gicg-shimmer-map::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  animation: shimmer 5s infinite;
  border-radius: 8px;
}

/* Image loading states */
.gicg-image-loading {
  position: relative;
}

.gicg-image-loading img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.gicg-image-loading.gicg-image-loaded img {
  opacity: 1;
}

.gicg-image-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.gicg-image-loaded .gicg-image-shimmer {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Card loading states */
.gicg-card-loading {
  position: relative;
}

.gicg-card-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.gicg-card-loaded .gicg-card-shimmer {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Map loading state */
.gicg-map-loading {
  position: relative;
}

.gicg-map-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

.gicg-map-loaded .gicg-map-shimmer {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

/* Specific shimmer sizes */
.gicg-shimmer-passport-image {
  width: 100%;
  aspect-ratio: 3/4;
}

.gicg-shimmer-flag {
  width: 28px;
  height: 28px;
}

.gicg-shimmer-flag-small {
  width: 20px;
  height: 20px;
}

.gicg-shimmer-text-title {
  height: 20px;
  width: 60%;
  margin-bottom: 8px;
}

.gicg-shimmer-text-subtitle {
  height: 16px;
  width: 40%;
}

.gicg-shimmer-text-line {
  height: 14px;
  width: 100%;
  margin-bottom: 6px;
}

.gicg-shimmer-text-line-short {
  height: 14px;
  width: 70%;
}
