body { background:#f8fafc; }
h1 { font-size:1.6rem; font-weight:700; }

/* CITY CARD */
.city-card {
  background:#fff;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  overflow:hidden;
  transition:transform .25s ease;
}
.city-card:hover { transform:translateY(-4px); }

.city-img {
  width:100%;
  height:220px;
  object-fit:cover;
}

/* DESCRIPTION */
.city-desc {
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:.95rem;
  color:#444;
}
.city-desc.expanded {
  -webkit-line-clamp:unset;
}

/* READ MORE */
.read-toggle {
  border:none;
  background:none;
  padding:0;
  color:#0d6efd;
  font-weight:600;
  cursor:pointer;
}
.read-toggle:hover { text-decoration:underline; }

/* ðŸ”¥ BOOTSTRAP FIX â€” THIS SOLVES EVERYTHING */
#city-wrapper {
  align-items: flex-start;
}

/* LOADER */
#loader {
  text-align:center;
  padding:20px;
  color:#666;
}
/* ===============================
   BADGES – BASE (MOBILE FIRST)
================================ */
.city-card {
  position: relative;
}

.city-badge {
  position: absolute;
  z-index: 5;
  font-size: .75rem;
  padding: .35rem .55rem;
  border-radius: 20px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  opacity: .95;
}

/* Hover animation */
.city-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  opacity: 1;
}

/* ---- Mobile positioning ---- */
.badge-visit {
  top: 8px;
  left: 8px;
}

.badge-share {
  top: 8px;
  right: 8px;
}

.badge-up {
  bottom: 8px;
  left: 8px;
}

.badge-down {
  bottom: 8px;
  right: 8px;
}

/* ===============================
   DESKTOP / TABLET TWEAK
================================ */
@media (min-width: 768px) {
  .city-badge {
    font-size: .8rem;
    padding: .4rem .6rem;
  }

  .badge-visit,
  .badge-share {
    top: 12px;
  }

  .badge-up,
  .badge-down {
    bottom: 12px;
  }
}

/* ===============================
   ICON ALIGNMENT
================================ */
.city-badge span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* ===============================
   FIX VOTE BADGES — IMAGE ANCHORED
   (NO HTML CHANGE)
================================ */

/* Remove bottom anchoring */
.badge-up,
.badge-down {
  bottom: auto;
  top: calc(220px - 36px); /* image height - badge height */
}

/* Fine-tune horizontal placement */
.badge-up {
  left: 8px;
}

.badge-down {
  right: 8px;
}

/* Desktop tweak */
@media (min-width: 768px) {
  .badge-up,
  .badge-down {
    top: calc(220px - 40px);
  }
}

/* ===============================
   COUNTRY HERO
================================ */
.country-hero-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;

  /* animation */
  opacity: 0;
  transform: scale(1.02);
  animation: heroFadeIn 0.9s ease forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.country-hero-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 16px;

  opacity: 0;
  transform: translateY(6px);
  animation: heroTextUp 0.6s ease forwards;
  animation-delay: 0.25s;
}

.country-short-desc {
  max-width: 720px;
  margin: 10px auto 0;
  color: #555;
  font-size: 1rem;

  opacity: 0;
  transform: translateY(6px);
  animation: heroTextUp 0.6s ease forwards;
  animation-delay: 0.4s;
}

@keyframes heroTextUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   FUN FACTS CARD
================================ */
.funfacts-card {
  max-width: 820px;
  margin: 30px auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);

  opacity: 0;
  transform: translateY(12px);
  animation: cardFadeUp 0.7s ease forwards;
}

@keyframes cardFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main heading */
.funfacts-main-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

/* ===============================
   FUN FACT BLOCKS
================================ */
.ff-block {
  border-top: 1px solid #eee;
}

.ff-block:first-child {
  border-top: none;
}

/* Clickable title */
.ff-title {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 10px;

  position: relative;
  transition: background .25s ease;
}

.ff-title:hover {
  background: rgba(0,0,0,.015);
}

/* Chevron */
.ff-title::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.2rem;
  transition: transform .25s ease;
}

.ff-block.active .ff-title::after {
  content: "–";
}

/* ===============================
   ICON + TEXT ANIMATION
================================ */
.ff-title .ff-text h3 {
    font-size: 1rem; /* visually consistent with other text */
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.ff-icon {
  font-size: 1.2rem;
  flex-shrink: 0;

  transition: transform .25s ease;
}

.ff-text {
  line-height: 1.4;
  transition: color .25s ease;
}

/* Hover interaction */
.ff-title:hover .ff-icon {
  transform: scale(1.12) rotate(-3deg);
}

.ff-title:hover .ff-text {
  color: #0d6efd;
}

/* Active state */
.ff-block.active .ff-icon {
  transform: rotate(90deg);
}

/* ===============================
   LIST REVEAL (SMOOTH)
================================ */
.funfact-list {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-left: 18px;
  margin-bottom: 0;

  transition:
    max-height .45s ease,
    opacity .35s ease,
    margin-bottom .35s ease;
}

.funfact-list li {
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 4px;
  color: #444;
}

/* Active block */
.ff-block.active .funfact-list {
  max-height: 1000px;
  opacity: 1;
  margin-bottom: 12px;
}

/*Search BAR CSS*/
.city-search-wrap {
  padding: 40px 15px;
  background: #f8fafc;
}

.city-search-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.search-text {
  flex: 1;
}

.search-text h2 {
  margin: 0;
  font-size: 28px;
}

.search-text p {
  color: #6b7280;
}

.search-box {
  flex: 1;
  position: relative;
}

.city-search-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.search-results {
  position: absolute;
  top: 105%;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 999;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #f1f1f1;
}

.search-item:hover {
  background: #f9fafb;
}

.search-icon {
  font-size: 18px;
}

/* Skeleton */
.skeleton {
  padding: 12px 16px;
}
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg,#eee,#f5f5f5,#eee);
  margin-bottom: 8px;
  border-radius: 4px;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0%{background-position:-200px}
  100%{background-position:200px}
}
/* ===== CITY SEARCH PROFESSIONAL WRAP ===== */
.city-search-wrap {
  padding: 45px 20px;
  background: linear-gradient(180deg,#ffffff,#f4f7fb);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  margin: 30px auto;
  max-width: 1200px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.city-search-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Text */
.search-text h2 {
  font-size: 30px;
  font-weight: 700;
}
.search-text p {
  font-size: 15px;
  color: #6b7280;
}

/* Input */
.city-search-input {
  background: #fff;
  border: 1px solid #d1d5db;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.05);
}

/* Results box */
.search-results {
  border: 1px solid #e5e7eb;
}

@media(max-width:768px){
  .city-search-inner {
    flex-direction: column;
  }
}
/*--share button css---*/
/* ===============================
   HERO SHARE BUTTON
================================ */
.country-hero-img {
  position: relative;
}

.hero-share-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

/* 🔑 ICON COLOR FIX */
.hero-share-btn i {
  font-size: 1.2rem;
  color: #333; /* THIS is the missing piece */
}

