/* Reset margins/padding and set global font */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#preloader img {
  width: 100px;
  height: auto;
}

/* Map container styling */
#mapContainer {
  position: relative;
  width: 100%;
  height: 100vh;
}

#map {
  width: 100%;
  height: 100%;
}

/* Floating country select styling */
 #floatingSelect {
  position: absolute;
  top: 20px;
  border-radius: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 6px;
} 

/* push all vertically-centered Bootstrap modals down by 4rem */
 .modal-dialog {
  padding-top: 4rem !important;  /* ← tweak this value up or down */
}

.form-control {
  display: block;
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Easy Buttons styling */
#easyButtons {
  position: absolute;
  top: 97px;
  left: 11px;
  z-index: 1100;
}

#easyButtons button {
  margin-bottom: 5px;
}

/* Custom button style for a modern look */
.custom-btn {
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(63, 106, 217, 0.345);
}

.custom-btn:hover {
  background-color: #0056b3;
  color: #fff;
}

/* Modern Modal Styles */
.modal-content {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.modal-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.modal-footer {
  padding-top: 0.5rem;
  border-top: 1px solid #e5e5e5;
}

.modal-title {
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
}


.modal-body > div[id$="Content"] {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem;
  margin-bottom: 1rem;
}

#wikiContent, #newsContent {
  padding: 1rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#currencyResult[disabled] {
  background-color: #cfd7e5be;  /* light gray */
  color: #000000;             /* medium gray text */
  opacity: 1;                 /* keep text fully opaque */
  cursor: not-allowed;        /* show the “no-pointer” cursor */
}

/* Style the news list items */
#newsContent .list-group-item {
  border: none;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.news-item {
  display: flex;
  align-items: flex-start;  /* top‐align text & thumb */
  margin-bottom: 1rem;      /* whatever spacing you like */
}

.news-thumb {
  flex: 0 0 100px;      /* fixed 100px wide */
  height: 80px;         /* fixed 80px tall */
  object-fit: cover;    /* crop/center nicely */
  margin-right: 1rem;   /* gap between image & text */
}

.news-content {
  flex: 1 1 auto;  /* fill remaining space, but allowed to shrink */
  min-width: 0;    /* critical: lets it actually shrink & wrap */
}

/* just to keep your links from being weirdly huge: */
.news-content a {
  word-break: break-word;
}



.modal-footer .btn {
  transition: transform 0.2s;
}
.modal-footer .btn:hover {
  transform: translateY(-2px);
}

.modal-body i.bi {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}


.weather-container {
  padding: 15px;
}

.weather-icon {
  width: 100px;
  height: 100px;
}

#countryInfoContent p {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#countryInfoContent p i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* Flag in Wikipedia modal */
.flag-icon {
  display: block;
  margin: 0 auto 1rem;
  width: 64px;
  height: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 4px;
}

/* Optional: Wikipedia thumbnail */
.wiki-thumb {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* make a white circle with a colored border behind each icon */
.custom-div-icon {
  background: #fff;
  border: 2px solid #007bff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.custom-div-icon i {
  color: #007bff;
  font-size: 16px;
}

/* category‑specific marker colors */
.custom-div-icon.hospitals { border-color: #e74c3c; }
.custom-div-icon.hospitals i { color: #e74c3c; }

.custom-div-icon.airports { border-color: #007bff; }
.custom-div-icon.airports i { color: #007bff; }

.custom-div-icon.parks { border-color: #28a745; }
.custom-div-icon.parks i { color: #28a745; }

.custom-div-icon.subways { border-color: #6c757d; }
.custom-div-icon.subways i { color: #6c757d; }

.custom-div-icon.major-places { border-color: #17a2b8; }
.custom-div-icon.major-places i { color: #17a2b8; }




/* Responsive adjustments */
@media (max-width: 768px) {
  #floatingSelect {
    top: 10px;
    font-size: 0.9rem;
  }
  #easyButtons {
    top: 85px;
    left: 11px;
  }
  .custom-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
