/* ==========================================================================
   CSR SRI LANKA - FACILITIES SHOWCASE SECTION
   Clean, High-Contrast Executive Design Matching CSR Brand Theme
   Brand Palette: CSR Navy (#0a2540), CSR Crimson (#8b181b), Slate (#f8fafc / #f1f5f9)
   ========================================================================== */

/* Section Outer Container */
.csr-fac-showcase-section {
  position: relative;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(30, 64, 175, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(139, 24, 27, 0.04) 0%, transparent 40%);
  color: #0f172a;
  padding: 85px 0 95px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Outfit', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

.csr-fac-container {
  position: relative;
  max-width: 1360px;
}

/* Header Elements */
.csr-fac-header-wrapper {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px auto;
}

.csr-fac-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(139, 24, 27, 0.08);
  border: 1px solid rgba(139, 24, 27, 0.22);
  color: #8b181b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.csr-fac-badge-pill i {
  color: #8b181b;
}

.csr-fac-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0a2540;
  margin: 0 0 14px 0;
  line-height: 1.2;
}

.csr-fac-title-highlight {
  color: #8b181b;
}

.csr-fac-header-line {
  width: 60px;
  height: 3px;
  background: #8b181b;
  margin: 0 auto 16px auto;
  border-radius: 2px;
}

.csr-fac-header-desc {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 760px;
  font-weight: 400;
}

/* Header Metrics Ribbon */
.csr-fac-metrics-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 30px;
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.csr-fac-metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.csr-fac-metric-item i {
  font-size: 1.35rem;
  color: #1e40af;
}

.csr-fac-metric-item .fab.fa-whatsapp {
  color: #25d366;
}

.csr-fac-metric-item div {
  display: flex;
  flex-direction: column;
}

.csr-fac-metric-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a2540;
  line-height: 1.2;
}

.csr-fac-metric-item span {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.csr-fac-metric-separator {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
}

@media (max-width: 768px) {
  .csr-fac-metric-separator {
    display: none;
  }
  .csr-fac-metrics-bar {
    gap: 14px;
    padding: 12px 18px;
  }
}

/* ==========================================================================
   TOOLBAR: CATEGORY TABS & VIEW SWITCHER
   ========================================================================== */
.csr-fac-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 32px 0 28px 0;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.csr-fac-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.csr-fac-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  outline: none;
}

.csr-fac-tab-btn:hover {
  background: #ffffff;
  color: #0a2540;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.csr-fac-tab-btn.active {
  background: #0a2540;
  color: #ffffff;
  border-color: #0a2540;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.csr-fac-tab-btn.active i {
  color: #60a5fa;
}

.csr-fac-tab-count {
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: inherit;
}

.csr-fac-tab-btn.active .csr-fac-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.csr-fac-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* View Mode Switcher (Carousel vs Grid) */
.csr-fac-view-toggle {
  display: inline-flex;
  padding: 3px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
}

.csr-fac-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.csr-fac-view-btn:hover {
  color: #0a2540;
}

.csr-fac-view-btn.active {
  background: #ffffff;
  color: #0a2540;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Slider Arrow Buttons */
.csr-fac-slider-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.csr-fac-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #0a2540;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.csr-fac-arrow-btn:hover {
  background: #0a2540;
  border-color: #0a2540;
  color: #ffffff;
  transform: scale(1.06);
}

.csr-fac-arrow-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   CARDS & SHOWCASE
   ========================================================================== */
.csr-fac-showcase-wrapper {
  position: relative;
  margin-top: 10px;
}

.csr-fac-swiper {
  padding-bottom: 35px;
  overflow: hidden;
}

/* Card Outer Architecture */
.csr-fac-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.csr-fac-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 18px 36px rgba(10, 37, 64, 0.12);
}

/* Card Visual Header */
.csr-fac-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #0f172a;
}

.csr-fac-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.csr-fac-card:hover .csr-fac-card-img {
  transform: scale(1.07);
}

.csr-fac-media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.05) 50%, rgba(15, 23, 42, 0.85) 100%);
  pointer-events: none;
}

/* Floating Badges */
.csr-fac-media-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.csr-fac-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.csr-fac-category-chip i {
  color: #60a5fa;
}

.csr-fac-capacity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(139, 24, 27, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.csr-fac-index-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(6px);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.csr-fac-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  text-decoration: none;
}

.csr-fac-zoom-btn:hover {
  background: #1e40af;
  color: #ffffff;
  transform: scale(1.1);
}

/* Card Body */
.csr-fac-card-body {
  padding: 20px 20px 16px 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.csr-fac-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.csr-fac-num-label {
  color: #64748b;
}

.csr-fac-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #059669;
}

.csr-fac-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.csr-fac-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px 0;
  color: #0a2540;
}

.csr-fac-card-title a {
  color: #0a2540;
  text-decoration: none;
  transition: color 0.2s;
}

.csr-fac-card-title a:hover {
  color: #8b181b;
}

.csr-fac-card-desc {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 14px 0;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Subspaces Breakdown Box */
.csr-fac-subspaces-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.csr-fac-subspaces-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.csr-fac-subspaces-label i {
  color: #d97706;
}

.csr-fac-subspaces-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.csr-fac-subspace-pill {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.4;
}

.csr-fac-subspace-pill strong {
  color: #0f172a;
}

/* Amenities Tags */
.csr-fac-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.csr-fac-feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.74rem;
  color: #334155;
  font-weight: 500;
}

.csr-fac-feat-tag i {
  color: #1e40af;
  font-size: 0.7rem;
}

.csr-fac-feat-more {
  background: rgba(30, 64, 175, 0.08);
  color: #1e40af;
  border-color: rgba(30, 64, 175, 0.2);
  font-weight: 700;
}

/* Card Action Footer */
.csr-fac-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.csr-fac-btn-specs {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #0a2540;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.csr-fac-btn-specs:hover {
  background: #0a2540;
  border-color: #0a2540;
  color: #ffffff;
  transform: translateY(-1px);
}

.csr-fac-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  background: #25d366;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.csr-fac-btn-wa:hover {
  background: #1ebc59;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.csr-fac-btn-detail {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.csr-fac-btn-detail:hover {
  background: #1e40af;
  color: #ffffff;
  transform: scale(1.06);
}

/* Swiper Pagination */
.csr-fac-swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.csr-fac-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  opacity: 1;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.csr-fac-swiper-pagination .swiper-pagination-bullet-active {
  width: 28px;
  background: #0a2540;
}

/* ==========================================================================
   GRID VIEW MODE (When toggled to Grid)
   ========================================================================== */
.csr-fac-showcase-wrapper.is-grid-view .csr-fac-swiper {
  overflow: visible;
  padding-bottom: 0;
}

.csr-fac-showcase-wrapper.is-grid-view .csr-fac-cards-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  transform: none !important;
  width: 100% !important;
}

.csr-fac-showcase-wrapper.is-grid-view .swiper-slide {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}

.csr-fac-showcase-wrapper.is-grid-view .csr-fac-swiper-pagination,
.csr-fac-showcase-wrapper.is-grid-view .csr-fac-slider-arrows {
  display: none !important;
}

/* Filtering Display states */
.csr-fac-card-item.is-filtered-out {
  display: none !important;
}

/* ==========================================================================
   BOTTOM INQUIRY RIBBON
   ========================================================================== */
.csr-fac-inquiry-bar {
  margin-top: 45px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #8b181b;
  border-radius: 20px;
  padding: 26px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.csr-fac-inquiry-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 500px;
}

.csr-fac-inquiry-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(139, 24, 27, 0.08);
  border: 1px solid rgba(139, 24, 27, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #8b181b;
  flex-shrink: 0;
}

.csr-fac-inquiry-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #0a2540;
  line-height: 1.3;
}

.csr-fac-inquiry-text p {
  font-size: 0.88rem;
  color: #475569;
  margin: 0;
  line-height: 1.55;
}

.csr-fac-inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.csr-fac-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  color: #0a2540;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.csr-fac-cta-phone:hover {
  background: #0a2540;
  border-color: #0a2540;
  color: #ffffff;
  transform: translateY(-2px);
}

.csr-fac-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #25d366;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.csr-fac-cta-whatsapp:hover {
  background: #1ebc59;
  color: #ffffff;
  transform: translateY(-2px);
}

.csr-fac-cta-directory {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #0a2540;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.csr-fac-cta-directory:hover {
  background: #1e40af;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   ISOLATED IN-PAGE QUICK SPECS MODAL (Pure White with High-Contrast Text)
   Prefixed with .csr-home-fac-modal-* to eliminate any class clashes
   ========================================================================== */
.csr-home-fac-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.csr-home-fac-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.csr-home-fac-modal-dialog {
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.csr-home-fac-modal-backdrop.is-open .csr-home-fac-modal-dialog {
  transform: scale(1) translateY(0);
}

.csr-home-fac-modal-container {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.csr-home-fac-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.csr-home-fac-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

.csr-home-fac-modal-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
}

.csr-home-fac-modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.csr-home-fac-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.csr-home-fac-modal-hero-content {
  position: absolute;
  bottom: 18px;
  left: 24px;
  right: 24px;
  z-index: 2;
}

.csr-home-fac-modal-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.csr-home-fac-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.csr-home-fac-modal-capacity-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #8b181b;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Modal Body */
.csr-home-fac-modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  max-height: calc(92vh - 300px);
  background: #ffffff !important;
}

.csr-home-fac-modal-subheading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a2540 !important;
  margin: 0 0 8px 0;
}

.csr-home-fac-modal-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #334155 !important;
  margin: 0 0 20px 0;
}

.csr-home-fac-modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.csr-home-fac-modal-spec-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.csr-home-fac-modal-spec-card i {
  color: #1e40af;
  font-size: 1.15rem;
  margin-top: 2px;
}

.csr-home-fac-modal-spec-card div {
  display: flex;
  flex-direction: column;
}

.csr-home-fac-modal-spec-card strong {
  font-size: 0.75rem;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.csr-home-fac-modal-spec-card span {
  font-size: 0.88rem;
  color: #0f172a !important;
  font-weight: 600;
  line-height: 1.35;
}

.csr-home-fac-modal-section {
  margin-bottom: 22px;
}

.csr-home-fac-modal-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a2540 !important;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.csr-home-fac-modal-heading i {
  color: #1e40af;
}

.csr-home-fac-modal-subspaces {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.csr-home-fac-modal-subspace-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.csr-home-fac-modal-subspace-item strong {
  font-size: 0.9rem;
  color: #0f172a !important;
}

.csr-home-fac-modal-subspace-item span {
  font-size: 0.8rem;
  color: #8b181b !important;
  background: rgba(139, 24, 27, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.csr-home-fac-modal-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.csr-home-fac-modal-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #334155 !important;
}

.csr-home-fac-modal-feat-item i {
  color: #059669;
}

/* Modal Footer */
.csr-home-fac-modal-footer {
  padding: 16px 26px;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.csr-home-fac-modal-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #25d366;
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.csr-home-fac-modal-wa-btn:hover {
  background: #1ebc59;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.csr-home-fac-modal-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  color: #0a2540 !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.csr-home-fac-modal-call-btn:hover {
  background: #0a2540;
  border-color: #0a2540;
  color: #ffffff !important;
}

.csr-home-fac-modal-full-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1e40af !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.csr-home-fac-modal-full-link:hover {
  color: #8b181b !important;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 991px) {
  .csr-fac-showcase-section {
    padding: 65px 0 75px 0;
  }
  .csr-fac-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .csr-fac-filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .csr-fac-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .csr-fac-actions-group {
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .csr-fac-main-title {
    font-size: 1.85rem;
  }
  .csr-fac-card-media {
    height: 190px;
  }
  .csr-fac-inquiry-bar {
    padding: 20px 18px;
  }
  .csr-fac-inquiry-left {
    flex-direction: column;
    text-align: center;
  }
  .csr-fac-inquiry-actions {
    flex-direction: column;
    width: 100%;
  }
  .csr-fac-cta-phone,
  .csr-fac-cta-whatsapp,
  .csr-fac-cta-directory {
    width: 100%;
    justify-content: center;
  }
  .csr-home-fac-modal-footer {
    flex-direction: column;
  }
  .csr-home-fac-modal-wa-btn,
  .csr-home-fac-modal-call-btn,
  .csr-home-fac-modal-full-link {
    width: 100%;
    justify-content: center;
  }
}
