.hike-title a {
  color: #212529;
}

#selectedCity {
  font-size: x-large;
}

/* Event image wrapper */
.event-img-wrapper {
  position: relative;
  overflow: hidden;
}

/* Date badge inside image */
.event-date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 128, 0, 0.9);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

/* Image credit (bottom right, subtle) */
.event-img-credit {
  position: absolute;
  bottom: 5px;
  right: 8px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 10px;
}

.event-img-credit a {
  color: #fff;
  text-decoration: none;
}

.event-img-credit a:hover {
  text-decoration: underline;
}

/* FRIEND SUGGESTIONS */

/* Horizontal scroll (mobile) */
.suggestions-scroll {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.suggestions-scroll::-webkit-scrollbar {
  display: none;
}

.suggestion-card {
  min-width: 110px;
  max-width: 110px;
  margin-right: 10px;
  flex: 0 0 auto;
}

/* Desktop vertical scroll */
.suggestions-vertical {
  max-height: 400px;
  overflow-y: auto;
}

.suggestion-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.badge-notify {
  position: absolute;
  top: -5px;
  right: -8px;
  font-size: 10px;
}

.icon-wrapper {
  position: relative;
  margin-left: 20px;
}

.event-specs {
  font-size: 12px;
}

/* GUIDE SECTION */
.spec-guide {
  margin-bottom: 6px;
}

.spec-guide-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6c757d;
  margin-right: 6px;
}

.spec-guide-name i {
  margin-right: 5px;
  color: #0d6efd;
  font-size: 11px;
}

/* CHIPS SECTION */
.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
  font-size: 12px;
  /* Ensure chip font is consistent */
}

.spec-chip i {
  font-size: 11px;
  /* Keep icons small */
  margin-right: 5px;
  flex-shrink: 0;
  /* Prevent scaling with text */
}

/* Color coding */
.spec-chip.price {
  background: #e8f8f1;
  color: #198754;
}

.spec-chip.distance {
  background: #fff4e5;
  color: #fd7e14;
}

.spec-chip.duration {
  background: #f3e8ff;
  color: #6f42c1;
}

.spec-chip.elevation {
  background: #f1f3f5;
  color: #495057;
}

/* HIKING CLUB */
.spec-club img {
  object-fit: cover;
}

.spec-club-name {
  font-weight: 600;
  font-size: 12px;
  color: #212529 !important;
}

/* Adjust spacing */
.spec-club {
  gap: 6px;
}

/* ========================= */
/* DARK MODE */
/* ========================= */

body {
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: #121212 !important;
  color: #e4e4e4;
}

body.dark-mode .hike-title a {
  color: #fff !important;
}

/* Cards */
body.dark-mode .card {
  background-color: #1e1e1e;
  color: #e4e4e4;
  border-color: #2c2c2c;
}

/* Navbar */
.navbar.bg-success {
  background-color: #28a745 !important;
}

body.dark-mode .navbar {
  background-color: #0f5132 !important;
}

/* Top city bar */
body.dark-mode .bg-white {
  background-color: #1a1a1a !important;
  border-color: #2c2c2c !important;
}

/* Bottom mobile nav */
body.dark-mode .navbar-light {
  background-color: #1a1a1a !important;
}

/* Inputs */
body.dark-mode .form-control {
  background-color: #2a2a2a;
  border-color: #444;
  color: #fff;
}

body.dark-mode .form-control::placeholder {
  color: #aaa;
}

/* Dropdown */
body.dark-mode .dropdown-menu {
  background-color: #1e1e1e;
  border-color: #333;
  color: #fff;
}

body.dark-mode .dropdown-item {
  color: #ddd;
}

body.dark-mode .dropdown-item:hover {
  background-color: #2a2a2a;
}

/* Buttons */
body.dark-mode .btn-light {
  background-color: #2a2a2a;
  border-color: #444;
  color: #fff;
}

body.dark-mode .btn-outline-secondary {
  color: #ccc;
  border-color: #555;
}

body.dark-mode .btn-outline-secondary:hover {
  background-color: #333;
}

/* Text muted */
body.dark-mode .text-muted {
  color: #aaa !important;
}

/* Alerts */
body.dark-mode .alert-info {
  background-color: #1f3a4a;
  border-color: #2c5566;
  color: #cce5ff;
}

/* DARK MODE TABLE FIX */
.dark-mode table {
  color: #f1f1f1;
}

.dark-mode .table {
  background-color: #1e1e1e;
}

.dark-mode .table thead th {
  border-color: #444;
}

.dark-mode .table td,
.dark-mode .table th {
  border-color: #444;
}

.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background-color: #2a2a2a;
}

.dark-mode .table-striped tbody tr:nth-of-type(even) {
  background-color: #1e1e1e;
}

.dark-mode .multiselect-container .checkbox {
  color: #fff;
}
/* EVENT PAGE CARDS */
body.dark-mode .event-card {
  background-color: #1e1e1e;
  color: #e4e4e4;
  border: 1px solid #2c2c2c;
}

/* MAP BOX */
/* body.dark-mode .map-box {
  background-color: #1e1e1e;
  border: 1px solid #2c2c2c;
  color: #aaa;
} */

/* HERO OVERLAY */
body.dark-mode .hero-overlay {
  background: linear-gradient(transparent,
      rgba(0, 0, 0, 0.85));
}

body.dark-mode hr {
  border-color: #333;
}

body.dark-mode .gallery img {
  opacity: 0.95;
}

body.dark-mode .stat-number {
  color: #ffffff;
}

.dark-mode .nav-tabs .nav-link.active {
  background-color: #495057;
  color: #fff;
}

.dark-mode .page-link {
  background-color: #1e1e1e;
}

.dark-mode .spec-club-name {
  color: #fff !important;
}

.dark-mode .event-description {
  color: #fff;
}

body.dark-mode .event-card span {
  color: #fff !important;
}

body.dark-mode .datepicker table tr td span.focused {
  background-color: #0d6efd;
  color: #fff;
}

body.dark-mode .datepicker table tr td span:hover {
  background-color: #0d6efd;
  color: #fff;
}

body.dark-mode .ql-editor.ql-blank::before {
  color: #aaa !important;
}

/* ========================= */
/* FULLSCREEN GALLERY */
/* ========================= */

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  /* ✅ enables scroll */
  padding: 40px 20px;
}

.gallery-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  position: relative;
}

.gallery-main-img {
  max-height: 75vh;
  /* prevents pushing */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;

  cursor: pointer;
  transition: background 0.2s ease;

  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.85);
}

.gallery-prev {
  left: 10px;
  color: white;
}

.gallery-next {
  right: 10px;
  color: white;
}

.event-img-wrapper {
  cursor: pointer;
}

.event-img-wrapper:hover img {
  transform: scale(1.03);
  transition: 0.3s ease;
}


@media (min-width: 768px) {
  .sticky {
    position: sticky;
    top: 20px;
  }

  .gallery-nav {
    font-size: 24px;
    padding: 10px;
  }

  .gallery-modal {
    padding-top: 50px;
  }

  /* Club Profile */
  #club-title-section {
    width: 80%;
    max-width: 60%;
  }

  #profile-title-section {
    width: 80%;
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .gallery-modal {
    align-items: self-end;
  }

  .gallery-close {
    position: static;
  }

  /* Club Profile */
  #club-title-section {
    width: 85%;
    max-width: 100%;
  }

  #profile-title-section {
    width: 90%;
    max-width: 100%;
  }
}

/* Image preview inside share box */
.preview-img-wrapper {
  position: relative;
  margin-right: 8px;
  margin-bottom: 8px;
}

.preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.remove-img {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Post image meta (location + tagged users) */
.post-meta {
  font-size: 13px;
  margin-top: 6px;
}

.post-meta a {
  text-decoration: none;
  font-weight: 500;
}

.post-meta a:hover {
  text-decoration: underline;
}

.post-location {
  color: #198754;
  margin-right: 10px;
}

.post-users {
  color: #6c757d;
}

.gallery-description {
  max-width: 800px;
}

/* ============================= */
/* DARK GALLERY COMMENT SECTION */
/* ============================= */

.gallery-comments {
  max-width: 900px;
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 12px;
  color: #f1f1f1;
}

/* Comment input row */
.gallery-comments .media {
  background: transparent;
  margin-bottom: 15px;
}

.gallery-comments input.form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 20px;
  padding: 8px 15px;
}

.gallery-comments input.form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #0d6efd;
  box-shadow: none;
}

.gallery-comments input::placeholder {
  color: #aaa;
}

/* Comments list */
#galleryCommentsList .media {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#galleryCommentsList .media:last-child {
  border-bottom: none;
}

#galleryCommentsList strong {
  color: #ffffff;
}

#galleryCommentsList .media-body div {
  color: #ddd;
}

/* Actions (like / reply) */
.comment-actions {
  font-size: 13px;
  margin-top: 4px;
}

.comment-actions span {
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.comment-actions span:hover {
  color: #fff;
}

.comment-like.liked {
  color: #0d6efd;
  font-weight: 600;
}

/* Reply box */
.reply-box input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 15px;
}

.reply-box input::placeholder {
  color: #aaa;
}

/* CITY DROPDOWN */

.city-dropdown {
  position: absolute;
  top: 100%;
  right: 20px;
  width: 260px;
  background: #fff;
  border-radius: 8px;
  display: none;
  z-index: 1000;
  padding: 10px 0;
  max-height: 400px;
  overflow-y: auto;
}

.country-item {
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
}

.country-item:hover {
  background: #f5f5f5;
}

.city-list {
  padding-left: 15px;
  display: none;
}

.city-item {
  padding: 6px 16px;
  font-weight: 400;
  cursor: pointer;
}

.city-item:hover {
  background: #e9f7ef;
  color: #28a745;
}

/* ========================= */
/* DARK MODE - CITY DROPDOWN */
/* ========================= */

.dark-mode .city-dropdown {
  background: #1e1e1e;
  border: 1px solid #2c2c2c;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.dark-mode .country-item {
  color: #f1f1f1;
}

.dark-mode .country-item:hover {
  background: #2a2a2a;
}

.dark-mode .city-item {
  color: #ccc;
}

.dark-mode .city-item:hover {
  background: #163d2b;
  color: #4ddc8c;
}

.dark-mode .city-list {
  border-left: 2px solid #2e7d32;
}

/* Month navigation */
.month-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.events-title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.month-navigation h3 {
  margin: 0;
}

.month-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.share-menu {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.share-item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  color: white;
  transition: 0.2s ease;
}

.facebook {
  background: #1877f2;
}

.whatsapp {
  background: #25d366;
}

.viber {
  background: #7360f2;
}

.email {
  background: #6c757d;
}

.copy {
  background: #343a40;
}

.share-item:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.month-nav {
  gap: 18px;
}

.month-current {
  font-size: 20px;
  font-weight: 600;
  color: #198754;
  min-width: 160px;
  text-align: center;
  transition: 0.3s ease;
}

.month-arrow {
  border: 0px solid #198754;
  background: transparent;
  color: #198754;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  padding: 0px;
}

.month-arrow:hover {
  color: white;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.month-arrow i {
  font-size: 14px;
}
.page-link {
  border-radius: .25rem;
}

.month-current.fade {
  opacity: 0;
  transform: translateY(6px);
}

#tigil-logo {
  width: 80px;
  height: auto;
}

.ls-1 {
  letter-spacing: 0.05rem;
}

.transition-all {
  transition: all 0.3s ease;
}

.hover-opacity-100:hover {
  opacity: 1 !important;
}

.footer-link:hover {
  color: #198754 !important; /* Green from the theme */
  text-decoration: underline !important;
}

/* ========================= */
/* DARK MODE FOOTER */
/* ========================= */

body.dark-mode footer {
  background-color: #1a1a1a !important;
  border-color: #2c2c2c !important;
}

body.dark-mode .footer-title {
  color: #ffffff !important;
}

body.dark-mode .footer-link {
  color: #aaa !important;
}

body.dark-mode .footer-link:hover {
  color: #4ddc8c !important; /* Lighter green for dark mode */
}

/* Dark mode — events by category sidebar list */
body.dark-mode #hikesList {
  border-color: #333;
}

body.dark-mode #hikesList .list-group-item {
  background-color: #1e1e1e;
  color: #f1f1f1;
  border-color: #333;
}

body.dark-mode #hikesList .list-group-item:hover {
  background-color: #2a2a2a;
  color: #fff;
}

body.dark-mode #hikesList .list-group-item-success {
  background-color: #214d3b;
  color: #d1f2df;
  border-color: #2d6a4f;
}

body.dark-mode #hikesList .list-group-item-success:hover {
  background-color: #2d6a4f;
  color: #d1f2df;
}

body.dark-mode #hikesList .badge {
  background-color: #6c757d !important;
}

/* Form icons dark mode */
body.dark-mode .icon-right {
  color: #bbb;
}

/* Map dark mode */
body.dark-mode #location-search-container {
  background: #2a2a2a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
body.dark-mode #location-search-input {
  background: #2a2a2a;
  color: #e0e0e0;
}
body.dark-mode #location-search-input::placeholder {
  color: #888;
}
body.dark-mode #location-suggestions {
  background: #2a2a2a;
  border-top: 1px solid #444;
}
body.dark-mode #location-suggestions li {
  color: #e0e0e0;
  border-bottom: 1px solid #444;
}
body.dark-mode #location-suggestions li:hover {
  background-color: #3a3a3a;
}
body.dark-mode .filter-panel {
  background: #2a2a2a;
  color: #e0e0e0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
body.dark-mode .filter-panel label {
  color: #e0e0e0;
}
body.dark-mode .mountain-tooltip {
  background: #2a2a2a;
  color: #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
body.dark-mode .leaflet-popup-content-wrapper,
body.dark-mode .leaflet-popup-tip {
  background: #2a2a2a;
  color: #e0e0e0;
}
body.dark-mode .leaflet-popup-content a {
  color: #7ec8a0;
}

body.dark-mode .filter-header {
  background-color: #0f5132 !important;
}

.datepicker-dropdown {
  position: fixed !important;
  top: 40% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 9999 !important;
}

.datepicker-months .close, .prev, .next {
  padding: 0px !important;
}

.datepicker-days .prev {
  left: 5px !important;
}

.datepicker-days .next {
  right: 5px !important;
}