/* ==============================================================================
   4Achievers - City Course Directory Pages (/courses-in-[city]/) Styling
   Bespoke, High-Converting, Accessible, and Fully Responsive Layouts
   ============================================================================== */

/* Hidden class for real-time category & search filtering */
.loc-card-hidden {
  display: none !important;
}

/* Hero Enhancements for Directory */
.city-dir-hero .loc-hero-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 12px 0 16px;
}

.city-dir-hero .text-highlight {
  color: #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Salary Strip */
.loc-salary-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.loc-sal-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 130px;
}

.loc-sal-item .sal-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.loc-sal-item .sal-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
}

/* Filter Tabs Enhancements */
.loc-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.loc-filter-btn {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.loc-filter-btn:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-1px);
}

.loc-filter-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

/* Search Bar */
.loc-search-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.loc-search-box {
  position: relative;
  flex: 1 1 340px;
  max-width: 580px;
  display: flex;
  align-items: center;
}

.loc-search-box svg {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.loc-search-box input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
}

.loc-search-box input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.loc-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.loc-search-clear:hover {
  color: #ef4444;
}

.loc-search-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
}

/* Course Cards Grid */
.loc-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.loc-course-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  position: relative;
}

.loc-course-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
}

.loc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.loc-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.loc-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #059669;
}

.loc-course-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 10px;
}

.loc-course-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.loc-course-title a:hover {
  color: #0284c7;
}

.loc-course-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.loc-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.loc-card-pill {
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 6px;
}

.loc-card-meta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  margin-bottom: 18px;
}

.loc-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.loc-meta-icon {
  color: #64748b;
  font-size: 1rem;
}

.loc-meta-text {
  display: flex;
  flex-direction: column;
}

.loc-meta-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.loc-meta-lbl {
  font-size: 0.72rem;
  color: #64748b;
}

/* Card Actions */
.loc-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.loc-course-btn-solid {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.loc-course-btn-solid:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.loc-btn-circle-disc {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-course-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.loc-course-btn-outline:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

/* Empty State */
.loc-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
}

.loc-empty-state h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 12px 0 6px;
}

.loc-empty-state p {
  color: #64748b;
  font-size: 0.94rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Modal Overlay */
.loc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loc-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.loc-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
}

.loc-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Nearby Localities Tags */
.nearby-loc-tag {
  display: inline-block;
  color: #475569;
  font-weight: 500;
}

.other-city-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.other-city-link:hover {
  background: #e0f2fe;
  color: #0369a1;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .city-dir-hero .loc-hero-title {
    font-size: 2rem;
  }
  .loc-courses-grid {
    grid-template-columns: 1fr;
  }
  .loc-salary-strip {
    flex-direction: column;
    gap: 12px;
  }
  .loc-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
  .loc-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
