/* 
 * The Big Reference - Apple-Inspired Modern Design
 * Clean, minimalistic, and elegant styling with enhanced colors
 */

/* Global Styles */
:root {
  /* Enhanced color palette with more vibrant options */
  --primary: #0071e3;
  --primary-dark: #0051a2;
  --primary-light: #e0f0ff;
  --secondary: #86868b;
  --success: #34c759;
  --success-light: #e3f9eb;
  --info: #5ac8fa;
  --info-light: #e8f7fd;
  --warning: #ff9f0a;
  --warning-light: #fff4e5;
  --danger: #ff3b30;
  --danger-light: #ffebea;
  --light: #f5f5f7;
  --dark: #1d1d1f;
  --purple: #5e5ce6;
  --purple-light: #eeeeff;
  --pink: #ff2d55;
  --pink-light: #ffe0e6;
  --teal: #64d2ff;
  --teal-light: #e6f8ff;
  --body-bg: #f9fafc;
  --card-bg: #ffffff;
  --subtle-text: #86868b;
  --border-color: #e6e6e6;
  --section-bg-1: #f9f0ff;
  --section-bg-2: #e6f2ff;
  --section-bg-3: #e9fff0;

  /* Container width */
  --container-width: 1280px;
  --container-padding: 2rem;

  /* Shadow and effects */
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  --transition-speed: 0.25s;
  --border-radius: 12px;
  --small-radius: 8px;

  /* Gradient backgrounds */
  --gradient-blue: linear-gradient(135deg, #0071e3, #64d2ff);
  --gradient-purple: linear-gradient(135deg, #5e5ce6, #9198e5);
  --gradient-pink: linear-gradient(135deg, #ff2d55, #ff9f0a);
  --gradient-green: linear-gradient(135deg, #34c759, #64d2ff);

  /* Logo styling variables */
  --logo-icon-size: 32px;
  --logo-font-size: 1.4rem;
}

/* Logo styles */
.logo-icon {
  width: var(--logo-icon-size);
  height: var(--logo-icon-size);
  font-size: 1.4rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 113, 227, 0.2);
  transform: rotate(-5deg);
}

.logo-text {
  font-size: var(--logo-font-size);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.navbar-brand:hover .logo-icon {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 5px 12px rgba(0, 113, 227, 0.3);
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--body-bg);
  color: var(--dark);
  line-height: 1.47059;
  letter-spacing: -0.015em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Container consistency */
.container {
  max-width: var(--container-width);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Header Styling */
header {
  margin-bottom: 0rem;
}

.navbar {
  padding: 1rem 0;
  box-shadow: none;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1040;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.navbar-light {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: var(--small-radius);
  transition: all var(--transition-speed);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Enhanced User Dropdown Styling */
.user-profile-toggle {
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 5px;
}

.user-profile-toggle:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.user-avatar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.user-profile-toggle:hover .user-avatar {
  transform: scale(1.05);
}

.user-avatar-large {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hide default dropdown arrow when using our custom one */
.dropdown-toggle-no-caret::after {
  display: none !important;
}

/* Animation for dropdown opening */
@keyframes dropdown-animation {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown z-index fixes */
.dropdown-menu {
  z-index: 1050 !important;
  /* Higher z-index to ensure it's always on top */
}

.user-dropdown-wrapper {
  position: relative;
  /* Ensure dropdown positions relative to this wrapper */
  z-index: 1050 !important;
  /* Match the dropdown z-index */
}

.dropdown-menu.show {
  animation: dropdown-animation 0.2s ease forwards;
}

/* Improve dropdown on mobile */
@media (max-width: 768px) {
  .user-dropdown-wrapper .dropdown-menu {
    width: calc(100vw - 30px) !important;
    max-width: 320px !important;
  }
}

/* Main Content Styling */
main.container {
  padding-bottom: 3rem;
  max-width: var(--container-width);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.8rem;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: 2rem;
  color: var(--dark);
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  color: var(--dark);
  line-height: 1.25;
}

.lead {
  font-size: 1.2rem;
  color: var(--subtle-text);
  line-height: 1.5;
  font-weight: 400;
}

/* Page Section */
.page-section {
  padding: 3rem 0;
}

/* Color accent sections */
.section-colored-1 {
  background-color: var(--section-bg-1);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-colored-2 {
  background-color: var(--section-bg-2);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-colored-3 {
  background-color: var(--section-bg-3);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-gradient-blue {
  background: var(--gradient-blue);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.section-gradient-purple {
  background: var(--gradient-purple);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.decoration-circle-1 {
  width: 300px;
  height: 300px;
  background-color: var(--purple);
  top: -150px;
  right: -150px;
}

.decoration-circle-2 {
  width: 200px;
  height: 200px;
  background-color: var(--info);
  bottom: -100px;
  left: -100px;
}

/* Card Styling with more character */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed);
  overflow: hidden;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-3px);
}

.card-header {
  background-color: var(--card-bg);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.card-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--card-bg);
  padding: 1rem 1.5rem;
}

/* Colorful Card Variations */
.card-primary {
  border-top: 3px solid var(--primary);
}

.card-success {
  border-top: 3px solid var(--success);
}

.card-info {
  border-top: 3px solid var(--info);
}

.card-warning {
  border-top: 3px solid var(--warning);
}

.card-danger {
  border-top: 3px solid var(--danger);
}

.card-purple {
  border-top: 3px solid var(--purple);
}

.card-pink {
  border-top: 3px solid var(--pink);
}

.card-teal {
  border-top: 3px solid var(--teal);
}

/* List Group Styling */
.list-group {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.list-group-item {
  border-left: none;
  border-right: none;
  border-color: var(--border-color);
  padding: 1.2rem 1.5rem;
  transition: all var(--transition-speed);
}

.list-group-item:first-child {
  border-top: none;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item-action:hover {
  background-color: rgba(0, 113, 227, 0.05);
  transform: translateX(3px);
}

/* Button Styling - Apple inspired with enhanced colors */
.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 980px; /* Apple's rounded button style */
  font-weight: 500;
  transition: all var(--transition-speed);
  letter-spacing: -0.01em;
  text-transform: none;
}

.btn-primary {
  background: var(--gradient-blue);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

.btn-primary:hover {
  background: var(--gradient-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-success {
  background: var(--gradient-green);
  border: none;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.2);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

/* Buildings button - matches Architecture & Engineering color scheme */
.btn-buildings {
  background: linear-gradient(135deg, #6e7c8c, #a8b8c9);
  border: none;
  color: white;
  box-shadow: 0 2px 8px rgba(110, 124, 140, 0.2);
}

.btn-buildings:hover {
  background: linear-gradient(135deg, #6e7c8c, #a8b8c9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(110, 124, 140, 0.3);
  color: white;
}

.btn-purple {
  background: var(--gradient-purple);
  border: none;
  box-shadow: 0 2px 8px rgba(94, 92, 230, 0.2);
  color: white;
}

.btn-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 92, 230, 0.3);
  color: white;
}

.btn-light {
  background: var(--light);
  color: var(--dark);
}

.btn-light:hover {
  background: #e5e5e7;
  color: var(--dark);
  transform: translateY(-1px);
}

/* Form Styling */
.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-color: var(--border-color);
  transition: all var(--transition-speed);
  font-size: 0.95rem;
  background-color: rgba(0, 0, 0, 0.02);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
  background-color: #fff;
}

/* Fix for dropdown selects */
.form-select {
  padding-right: 2rem !important; /* Ensure enough space for the dropdown arrow */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* Custom Form Text */
.form-text {
  color: var(--subtle-text);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Breadcrumbs */
.breadcrumb {
  padding: 0.85rem 1.2rem;
  background-color: transparent;
  border-radius: var(--small-radius);
  margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  font-weight: bold;
  color: var(--subtle-text);
}

/* Alert Styling - Enhanced with colors */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--card-shadow);
}

.alert-primary {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.alert-success {
  background-color: var(--success-light);
  color: var(--success);
}

.alert-info {
  background-color: var(--info-light);
  color: var(--info);
}

.alert-warning {
  background-color: var(--warning-light);
  color: var(--warning);
}

.alert-danger {
  background-color: var(--danger-light);
  color: var(--danger);
}

/* Badge Styling - More colorful */
.badge {
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  white-space: normal;
  text-align: center;
}

.badge-primary-light {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-success-light {
  background-color: var(--success-light);
  color: var(--success);
}

.badge-info-light {
  background-color: var(--info-light);
  color: var(--info);
}

.badge-warning-light {
  background-color: var(--warning-light);
  color: var(--warning);
}

.badge-danger-light {
  background-color: var(--danger-light);
  color: var(--danger);
}

.badge-purple-light {
  background-color: var(--purple-light);
  color: var(--purple);
}

.badge-pink-light {
  background-color: var(--pink-light);
  color: var(--pink);
}

/* Category Card Styling - Enhanced with colors */
.category-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--card-shadow);
  height: 100%;
  position: relative;
  z-index: 1;
}

.category-card:hover {
  box-shadow: var(--hover-shadow);
}

.category-card .card-img-overlay {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.category-card .card-footer,
.category-card .btn {
  z-index: 2;
  pointer-events: auto;
}

/* Enhanced category text readability */
.category-card .card-title,
.category-card .card-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Remove unwanted glow effect on badge text inside category cards */
.category-card .badge {
  text-shadow: none !important;
}

/* Hero Section - Enhanced with more color */
.hero-section {
  padding: 4rem 0;
  background: var(--gradient-blue);
  position: relative;
  overflow: hidden;
  color: white;
  margin-bottom: 3rem;
  border-radius: var(--border-radius) !important;
}

.hero-section h1,
.hero-section p {
  color: white;
}

.hero-section .btn-light {
  background: white;
  color: var(--primary);
}

.hero-section.hero-light {
  background: var(--light);
  color: var(--dark);
}

.hero-section.hero-light h1,
.hero-section.hero-light p {
  color: var(--dark);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-blob {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle at 70% 50%,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0) 60%
  );
  border-radius: 50%;
  filter: blur(50px);
  z-index: 1;
  animation: float 20s infinite alternate;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.hero-circle-1 {
  width: 100px;
  height: 100px;
  bottom: -30px;
  left: 10%;
  animation: float 15s infinite alternate;
}

.hero-circle-2 {
  width: 150px;
  height: 150px;
  top: -50px;
  left: 20%;
  animation: float 18s infinite alternate-reverse;
}

.hero-circle-3 {
  width: 70px;
  height: 70px;
  bottom: 20%;
  right: 20%;
  animation: float 12s infinite alternate;
}

/* Footer Styling - Consistent width */
footer {
  background: var(--gradient-purple);
  margin-top: 4rem !important;
  color: white;
  position: relative;
  overflow: hidden;
}

footer .container {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
}

footer a {
  transition: all var(--transition-speed);
  color: white !important; /* Force white color for all links */
  opacity: 0.9;
}

footer a:hover {
  color: white !important;
  opacity: 1;
  text-decoration: none;
}

footer p,
footer li,
footer h5,
footer h6,
footer span {
  color: white !important; /* Force white color for all text elements */
}

footer .footer-blob {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  filter: blur(50px);
  z-index: 1;
}

footer .social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s;
}

footer .social-link:hover {
  background-color: white;
  color: var(--purple) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Article Content - Enhanced with colors */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #222;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-light);
}

/* Back to top button */
.back-to-top {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  background: var(--gradient-blue);
  color: white;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Search Bar */
.search-bar {
  position: relative;
  max-width: 500px;
}

.search-bar .form-control {
  padding-left: 3rem;
  height: 50px;
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid transparent;
  transition: all 0.3s;
  color: white;
}

.search-bar .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar .form-control:focus {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.search-bar .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

/* Light version of search bar */
.search-bar-light .form-control {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--dark);
}

.search-bar-light .form-control::placeholder {
  color: var(--subtle-text);
}

.search-bar-light .form-control:focus {
  background-color: white;
  border-color: var(--border-color);
}

.search-bar-light .search-icon {
  color: var(--subtle-text);
}

/* Custom hover effect for text links */
a:not(.btn):not(.navbar-brand):not(.nav-link):not(.list-group-item):not(
    .social-link
  ):not(.card) {
  color: var(--primary);
  position: relative;
  text-decoration: none;
  transition: all var(--transition-speed);
  font-weight: 500;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f7;
}

::-webkit-scrollbar-thumb {
  background: #d1d1d6;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  :root {
    --container-padding: 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .card-header,
  .card-body {
    padding: 1.2rem;
  }

  .hero-section {
    padding: 2.5rem 0;
  }

  /* Building detail hero section mobile improvements */
  .building-detail-hero {
    min-height: auto !important;
    padding: 2rem 0 !important;
  }

  .building-detail-hero .row {
    margin: 0 !important;
  }

  .building-detail-hero .col-lg-8,
  .building-detail-hero .col-lg-4 {
    padding: 1rem !important;
  }

  /* Mobile spacing for building detail badges */
  .building-detail-hero .badge {
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
    margin-bottom: 0.5rem;
    display: inline-block;
  }

  /* Mobile spacing for building name */
  .building-detail-hero .display-4 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Mobile spacing for location section */
  .building-detail-hero .bg-white.bg-opacity-80 {
    padding: 1rem !important;
    margin-bottom: 2rem !important;
  }

  /* Mobile spacing for key metrics */
  .building-detail-hero .d-flex.flex-wrap.gap-3 {
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
  }

  .building-detail-hero .d-flex.flex-wrap.gap-3 > div {
    min-width: calc(50% - 0.375rem);
    margin-bottom: 0.5rem;
  }

  /* Mobile spacing for edit button */
  .building-detail-hero .mt-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  /* Mobile icon display adjustments */
  .building-detail-hero .col-lg-4.text-center {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .building-detail-hero .position-relative.d-inline-block {
    margin-bottom: 1rem;
  }

  /* Adjust icon size on mobile */
  .building-detail-hero .rounded-4[style*="width: 140px"] {
    width: 100px !important;
    height: 100px !important;
  }

  .building-detail-hero .fas[style*="font-size: 3.5rem"] {
    font-size: 2.5rem !important;
  }

  /* Decorative elements - reduce opacity and size on mobile */
  .building-detail-hero .position-absolute[style*="width: 300px"] {
    width: 200px !important;
    height: 200px !important;
    opacity: 0.08 !important;
  }

  .building-detail-hero .position-absolute[style*="width: 200px"] {
    width: 120px !important;
    height: 120px !important;
    opacity: 0.05 !important;
  }

  /* Hide smaller decorative elements on mobile for cleaner look */
  .building-detail-hero .position-absolute[style*="width: 60px"],
  .building-detail-hero .position-absolute[style*="width: 80px"] {
    display: none !important;
  }

  .section-colored-1,
  .section-colored-2,
  .section-colored-3,
  .section-gradient-blue,
  .section-gradient-purple {
    padding: 2rem 1rem;
  }
}

/* Additional mobile improvements for building detail page */
@media (max-width: 575.98px) {
  .building-detail-hero {
    padding: 1.5rem 0 !important;
    margin-bottom: 2rem !important;
  }

  .building-detail-hero .row {
    padding: 1rem !important;
  }

  .building-detail-hero .display-4 {
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
  }

  .building-detail-hero .badge {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.8rem !important;
    margin: 0.2rem 0.2rem 0.5rem 0;
  }

  .building-detail-hero .d-flex.flex-wrap.gap-3 > div {
    min-width: 100%;
    margin-bottom: 0.75rem;
  }

  .building-detail-hero .bg-white.bg-opacity-80 {
    padding: 0.8rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Stack icon below content on very small screens */
  .building-detail-hero .col-lg-4.text-center {
    order: 2;
    margin-top: 1rem;
  }

  .building-detail-hero .col-lg-8 {
    order: 1;
  }
}

/* CSS Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    transform: translate(-5%, 5%) scale(1.05) rotate(10deg);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
  }
  100% {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Styles for the animated elements */
.central-circle {
  animation: pulse 3s ease-in-out infinite;
}

.ripple-circle {
  animation: ripple 3s infinite;
}

.category-animated-icon {
  animation: float 3s ease-in-out infinite;
}

.animated-icon {
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

.category-central-element {
  animation: pulse 2s ease-in-out infinite;
}

.category-connection-line {
  animation: glow 4s infinite;
}

#index-animation-container,
#category-animation-container {
  background: linear-gradient(
    135deg,
    rgba(0, 71, 227, 0.95),
    rgba(0, 113, 227, 0.85)
  );
  border-radius: var(--border-radius);
}

/* Delay animations for a more natural feel */
.animated-icon:nth-child(2n) {
  animation-delay: 0.4s;
}

.animated-icon:nth-child(3n) {
  animation-delay: 0.8s;
}

.animated-icon:nth-child(5n) {
  animation-delay: 1.2s;
}

.category-animated-icon:nth-child(2n) {
  animation-delay: 0.5s;
}

.category-animated-icon:nth-child(3n) {
  animation-delay: 1s;
}

.category-group-label {
  animation: glow 3s infinite;
  text-shadow: 0 0 5px currentColor;
}

/* Search Results Highlighting */
.highlight {
  background-color: rgba(255, 243, 148, 0.5);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: bold;
}

/* Hover lift effect for cards */
.hover-lift {
  transition: transform 0.2s, box-shadow 0.2s;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced Article Page Styles */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #222;
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Image modal styles */
.modal-fullscreen-img {
  max-height: 90vh;
  margin: 0 auto;
}

/* Reading progress bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 5px;
  background: transparent;
  z-index: 1050;
}

.reading-progress-bar {
  height: 5px;
  background: var(--primary);
  width: 0%;
}

/* Article like button */
.like-button {
  border: none;
  background: transparent;
  color: #6c757d;
  transition: all 0.2s ease;
  outline: none !important;
  box-shadow: none !important;
}

.like-button:hover,
.like-button.active {
  color: #dc3545;
  transform: scale(1.2);
}

.like-button.active i {
  font-weight: 900;
}

/* Article share dropdown */
.share-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.share-dropdown .dropdown-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Related articles section */
.related-article-card {
  transition: all 0.3s ease;
}

.related-article-card:hover {
  transform: translateY(-5px);
}

.related-article-card .card-img-overlay {
  opacity: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.related-article-card:hover .card-img-overlay {
  opacity: 1;
}

/* Share buttons styling */
.share-divider {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.btn-twitter {
  color: #1da1f2;
}

.btn-twitter:hover {
  background-color: #1da1f2;
  color: white;
}

.btn-facebook {
  color: #4267b2;
}

.btn-facebook:hover {
  background-color: #4267b2;
  color: white;
}

.btn-linkedin {
  color: #0077b5;
}

.btn-linkedin:hover {
  background-color: #0077b5;
  color: white;
}

.btn-email {
  color: #ea4335;
}

.btn-email:hover {
  background-color: #ea4335;
  color: white;
}

.btn-copy {
  color: #6c757d;
}

.btn-copy:hover {
  background-color: #6c757d;
  color: var(--light);
}

.btn-social .btn-social-hover {
  position: absolute;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  bottom: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-social:hover .btn-social-hover {
  opacity: 1;
  bottom: -25px;
}

/* Date badge styling for better mobile display */
.date-badge {
  white-space: nowrap;
  margin-left: 8px;
  min-width: 85px;
  text-align: right;
}

@media (max-width: 576px) {
  .date-badge {
    margin-left: 0;
    margin-bottom: 5px;
    display: block !important;
    text-align: left;
  }

  .article-title-row {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

/* Enhanced Article Card Hover Effects */
.article-card-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
  overflow: hidden;
  border-left: 3px solid transparent;
}

.article-card-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 113, 227, 0.04),
    rgba(100, 210, 255, 0.03)
  );
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s ease-out;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-card-link:hover {
  transform: translateX(2px) translateY(-1px);
  border-left-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-card-link:hover::before {
  transform: scaleX(1);
}

.article-image-container {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.article-card-link:hover .article-image-container {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-image-container img {
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card-link:hover .article-image-container img {
  transform: scale(1.03);
}

/* Featured Articles Enhanced Hover */
.featured-article-card {
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.featured-article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
}

.featured-image-container {
  position: relative;
  overflow: hidden;
}

.featured-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.featured-article-card:hover .featured-image-container::after {
  opacity: 1;
}

.featured-image-container img {
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.featured-article-card:hover .featured-image-container img {
  transform: scale(1.12) rotate(2deg);
}

/* Pulse effect for category badge */
@keyframes badge-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 113, 227, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
  }
}

.featured-article-card:hover .badge.bg-primary {
  animation: badge-pulse 1.5s infinite;
}

/* Category page article cards */
.category-article-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  position: relative;
  /* Fix for blurry text */
  backface-visibility: hidden;
  transform: translateZ(0);
}

.category-article-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 113, 227, 0.03),
    rgba(94, 92, 230, 0.02)
  );
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 0;
}

.category-article-card:hover {
  /* Modified for more subtle effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07) !important;
}

/* Create wrapper for the hover movement effect */
.category-article-card .card-body {
  transform: translateZ(0);
}

/* Move the transform to a pseudo-element to keep text sharp */
.category-article-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-article-card:hover::after {
  transform: translateY(-3px);
}

.category-article-card:hover::before {
  transform: translateY(0);
}

/* 3D tilt effect for category cards */
.category-article-card,
.featured-article-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.js-tilt-container {
  transition: all 0.2s ease;
  transform: rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg))
    scale3d(1, 1, 1);
  will-change: transform;
}

/* Footer Styling */
.footer {
  background-color: #2c3e50;
  color: #fff;
  margin-top: 4rem;
}

.footer-heading {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
  display: inline-block;
}

.footer-divider {
  background-color: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
  border: none;
  height: 1px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Search Page Styles */
.highlight {
  background-color: rgba(255, 213, 0, 0.4);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 500;
}

/* Enhanced Search Results Styling */
.search-result-item {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-result-item:hover {
  background-color: rgba(78, 84, 200, 0.03);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.search-result-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  transition: width 0.3s ease;
}

.search-result-item:hover::after {
  width: 100%;
}

.search-result-image img,
.placeholder-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover .search-result-image img,
.search-result-item:hover .placeholder-image {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Grid View Styles */
.search-result-card {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top-container img {
  transition: transform 0.5s ease;
}

.search-result-card:hover .card-img-top-container img {
  transform: scale(1.1);
}

.card-hover-overlay {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(78, 84, 200, 0.8) 0%,
    rgba(90, 95, 199, 0.95) 100%
  );
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: bottom 0.3s ease;
  opacity: 0;
}

.search-result-card:hover .card-hover-overlay {
  bottom: 0;
  opacity: 1;
}

.read-more-btn {
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Mobile optimized search page styles */
@media (max-width: 576px) {
  /* Search page header */
  .search-bar-light .input-group {
    display: flex;
    flex-direction: column;
  }

  .search-bar-light .input-group .form-control {
    border-radius: 10px;
    margin-bottom: 0.5rem;
    width: 100%;
    display: block;
  }

  .search-bar-light .input-group .btn {
    border-radius: 10px !important;
    width: 100%;
    display: block;
  }

  /* Advanced search options */
  #advancedSearchOptions {
    padding: 0.75rem !important;
  }

  #advancedSearchOptions .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    margin-right: 0 !important;
  }

  #advancedSearchOptions .text-end {
    text-align: center !important;
  }

  /* Search result items */
  .search-result-item {
    padding: 0.75rem !important;
  }

  /* Make article image full width on mobile */
  .search-result-image {
    width: 100% !important;
  }

  .search-result-image img,
  .placeholder-image {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover;
  }

  .search-result-content h5 {
    font-size: 1rem;
  }

  .search-result-content p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  /* Date badges */
  .date-badge {
    font-size: 0.75rem;
  }

  /* Grid view adjustments */
  .search-result-card .card-title {
    font-size: 0.9rem !important;
  }

  .search-result-card .card-text {
    font-size: 0.8rem !important;
  }

  /* View toggle buttons */
  .btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
  }
}

/* Fix for search pagination on mobile */
@media (max-width: 450px) {
  .pagination
    .page-item:not(.active):not(.disabled):not(:first-child):not(:last-child) {
    display: none;
  }

  .pagination .page-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* Cookie Consent Banner Styles */
#cookieConsent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  padding: 15px 25px;
  text-align: center;
  z-index: 1000;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  transition: opacity 0.3s ease;
}

.cookie-text {
  flex: 1;
  text-align: left;
  line-height: 1.5;
}

.cookie-button {
  background: var(--gradient-blue);
  border: none;
  color: white;
  padding: 8px 20px;
  margin-left: 15px;
  cursor: pointer;
  border-radius: 980px;
  font-weight: 500;
  transition: all var(--transition-speed);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
  white-space: nowrap;
}

.cookie-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

@media (max-width: 576px) {
  #cookieConsent {
    flex-direction: column;
    padding: 15px;
    bottom: 10px;
    max-width: 100%; /* changed from 92% */
    left: 0;
    transform: none;
    width: 100vw; /* ensure full viewport width */
    border-radius: 0;
  }

  .cookie-text {
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  .cookie-button {
    margin-left: 0;
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 350px) {
  #cookieConsent {
    padding: 12px;
    bottom: 5px;
  }

  .cookie-text {
    font-size: 0.85rem;
  }
}

/*
TBR Custom Editor Styles
*/
.tbr-editor-container {
  border: 1px solid #ddd;
  border-radius: 0.375rem;
}

.tbr-editor-toolbar {
  padding: 10px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0 !important; /* Remove any extra margin below toolbar */
}

.tbr-editor-btn {
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  color: #212529;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  transition: all 0.2s ease-in-out;
}

.tbr-editor-btn:hover {
  background-color: #e9ecef;
}

.tbr-editor-btn.active {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.tbr-editor-content {
  padding: 15px;
  min-height: 300px;
  overflow-y: auto;
  background-color: #fff;
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  padding-top: 4px !important; /* Reduce top padding */
}

.tbr-editor-content:focus {
  outline: none;
}

.tbr-editor-group {
  display: inline-flex;
  margin-right: 5px;
}

.tbr-editor-group .tbr-editor-btn {
  border-radius: 0;
  margin-left: -1px;
}

.tbr-editor-group .tbr-editor-btn:first-child {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.tbr-editor-group .tbr-editor-btn:last-child {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

/* Remove left margin and padding from category badge and its container in article view */
.article-content .badge {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Remove left margin from the flex container holding the badge */
.mb-4.bg-light.rounded-3.rounded-md-4.p-2.p-md-3.d-flex.flex-wrap.align-items-center.gap-2.gap-md-3
  > a {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Mobile-specific adjustment for the category link <a> tag in the article metadata bar */
@media (max-width: 767.98px) {
  .mb-4.bg-light.rounded-3.rounded-md-4.p-2.p-md-3.d-flex.flex-wrap.align-items-center.gap-3
    > a:first-child {
    /* The badge inside <a> typically has 'px-2' (0.5rem padding-left) on mobile.
       This negative margin pulls the <a> tag (and thus its badge) to the left by that amount.
       This aligns the badge's icon with other metadata items that start directly after the parent container's padding. */
    margin-left: -0.5rem !important;
  }
}

/* Featured Image Styling */
.featured-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Map Page Styles */
.map-fullscreen {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.map-fullscreen #buildings-map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.map-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-info-panel {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  transform: translateX(-320px);
  transition: transform 0.3s ease;
}

.map-info-panel.show {
  transform: translateX(0);
}

.leaflet-popup-content {
  margin: 8px 12px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .map-info-panel {
    left: 10px;
    right: 10px;
    max-width: none;
    top: 70px;
    transform: translateY(-120%);
    display: none;
    /* Ensure the panel is hidden */
  }

  .map-info-panel.show {
    transform: translateY(0);
    display: block;
    /* Show the panel when active */
  }

  .map-controls {
    bottom: 10px;
    right: 10px;
  }
}

/* Enhanced Map Styles */

/* Building Popup Styles */
.building-popup {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.building-popup .popup-image img {
  transition: transform 0.3s ease;
  border: 2px solid #e6e6e6;
}

.building-popup .popup-image img:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.building-popup .popup-header {
  padding-bottom: 8px;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 12px;
}

.building-popup .popup-header h6 {
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.building-popup .popup-info {
  margin-bottom: 12px;
}

.building-popup .popup-info p {
  margin-bottom: 6px;
  color: var(--subtle-text);
  font-size: 13px;
  line-height: 1.4;
}

.building-popup .popup-info i {
  width: 14px;
  color: var(--primary);
}

.building-popup .popup-actions .btn {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.building-popup .popup-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* Override Leaflet popup styles */
.leaflet-popup-content-wrapper {
  border-radius: var(--border-radius) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
}

.leaflet-popup-content {
  margin: 16px !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
}

/* Compact popup content adjustments */
.leaflet-popup-content-wrapper .compact-popup {
  margin: 12px !important;
}

.leaflet-popup-content:has(.compact-popup) {
  margin: 12px !important;
}

.leaflet-popup-tip {
  background: white !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1) !important;
}

/* Custom Building Markers */
.custom-building-marker {
  background: transparent;
  border: none;
}

.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: #007bff;
  position: relative;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}

.marker-pin i {
  transform: rotate(45deg);
  color: white;
  font-size: 12px;
}

/* User Location Marker */
.user-location-pin {
  background-color: #007bff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

/* Enhanced Popup Styles */
.building-popup {
  min-width: 280px;
  max-width: 320px;
}

/* Compact popup styles for smaller, easier to read popups */
.compact-popup {
  min-width: 220px !important;
  max-width: 260px !important;
  font-size: 12px;
}

.compact-popup .popup-header {
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.compact-popup .popup-header h6 {
  font-size: 14px !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
}

.compact-popup .popup-info {
  margin-bottom: 6px;
}

.compact-popup .popup-info p {
  margin-bottom: 3px !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.compact-popup .popup-actions {
  margin-top: 6px;
}

.compact-popup .popup-actions .btn {
  font-size: 11px !important;
  padding: 6px 12px !important;
}

.compact-popup .popup-image img {
  height: 80px !important;
  border-radius: 6px !important;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.popup-info {
  margin-bottom: 12px;
}

.popup-actions {
  margin-top: 12px;
}

/* Legend Panel */
.map-legend-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 250px;
  min-width: 200px;
  transform: translateX(280px);
  transition: transform 0.3s ease;
}

.map-legend-panel.show {
  transform: translateX(0);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  margin-right: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.legend-label {
  color: #495057;
  font-weight: 500;
}

/* Filter Panel */
.map-filter-panel {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  transform: translateX(-300px);
  transition: transform 0.3s ease;
}

.map-filter-panel.show {
  transform: translateX(0);
}

.form-check-sm {
  margin-bottom: 4px;
}

.form-check-sm .form-check-input {
  margin-top: 0.25rem;
}

.form-check-sm .form-check-label {
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Cluster Customization */
.marker-cluster-small {
  background-color: rgba(181, 226, 140, 0.6);
  border: 2px solid rgba(181, 226, 140, 0.8);
}

.marker-cluster-small div {
  background-color: rgba(110, 204, 57, 0.8);
  color: white;
  font-weight: bold;
}

.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0.6);
  border: 2px solid rgba(241, 211, 87, 0.8);
}

.marker-cluster-medium div {
  background-color: rgba(240, 194, 12, 0.8);
  color: white;
  font-weight: bold;
}

.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0.6);
  border: 2px solid rgba(253, 156, 115, 0.8);
}

.marker-cluster-large div {
  background-color: rgba(241, 128, 23, 0.8);
  color: white;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .map-legend-panel {
    left: 10px;
    right: 10px;
    max-width: none;
    top: 70px;
    transform: translateY(-120%);
  }

  .map-legend-panel.show {
    transform: translateY(0);
  }

  .map-filter-panel {
    left: 10px;
    right: 10px;
    max-width: none;
    top: 70px;
    transform: translateY(-120%);
  }

  .map-filter-panel.show {
    transform: translateY(0);
  }

  .marker-pin {
    width: 25px;
    height: 25px;
    margin: -12px 0 0 -12px;
  }

  .marker-pin i {
    font-size: 10px;
  }

  .building-popup {
    min-width: 240px;
    max-width: 280px;
  }

  .compact-popup {
    min-width: 200px !important;
    max-width: 240px !important;
    font-size: 11px !important;
  }

  .compact-popup .popup-header h6 {
    font-size: 13px !important;
  }

  .compact-popup .popup-info p {
    font-size: 10px !important;
  }

  .compact-popup .popup-actions .btn {
    font-size: 10px !important;
    padding: 5px 10px !important;
  }

  .compact-popup .popup-image img {
    height: 60px !important;
  }
}

/* Performance optimizations - Disable transitions for all Leaflet map elements */
.leaflet-marker-icon,
.leaflet-map-pane,
.leaflet-map-pane *,
.leaflet-layer,
.leaflet-layer *,
.leaflet-tile,
.leaflet-tile *,
.leaflet-zoom-box,
.leaflet-zoom-box *,
.leaflet-control,
.leaflet-control *,
.leaflet-popup,
.leaflet-popup *,
.leaflet-div-icon,
.leaflet-div-icon * {
  transition: none !important;
  animation: none !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-tip {
  background: white;
}

/* Enhanced Building Detail Page Animations and Effects */

/* Shimmer animation for badges */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced float animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Enhanced pulse animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Enhanced backdrop blur effect */
.backdrop-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Hover lift effect for small elements */
.hover-lift-sm {
  transition: all 0.3s ease;
}

.hover-lift-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Enhanced gradient backgrounds */
.bg-opacity-90 {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.bg-opacity-80 {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Improved shadow effects for building detail page */
.shadow-lg {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Enhanced border radius for modern look */
.rounded-4 {
  border-radius: 1rem !important;
}

/* Improved text shadows */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced button hover effects */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4) !important;
}

/* Floating element animations with different speeds */
.position-absolute[style*="animation: float 5s"] {
  animation-delay: 0.5s;
}

.position-absolute[style*="animation: float 7s"] {
  animation-delay: 1s;
}

.position-absolute[style*="animation: float 8s"] {
  animation-delay: 1.5s;
}

/* Enhanced card hover effects */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Smooth transitions for all interactive elements - exclude Leaflet map elements */
*:not(.leaflet-map-pane):not(.leaflet-map-pane *):not(.leaflet-layer):not(
    .leaflet-layer *
  ):not(.leaflet-tile):not(.leaflet-tile *):not(.leaflet-zoom-box):not(
    .leaflet-zoom-box *
  ) {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states */
.btn:focus,
.card:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Improved mobile responsiveness for building detail */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem !important;
  }

  .col-lg-4 .position-relative .d-flex {
    width: 100px !important;
    height: 100px !important;
    transform: none !important;
  }

  .col-lg-4 .position-relative .d-flex i {
    font-size: 2.5rem !important;
  }

  .hover-lift-sm:hover {
    transform: translateY(-2px);
  }

  .floating-elements {
    display: none;
  }
}

/* Enhanced z-index layering */
.position-relative {
  z-index: 1;
}

.position-relative .position-absolute {
  z-index: 0;
}

.z-3 {
  z-index: 3 !important;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced badge styling */
.badge {
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Improved gradient text effects */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern 3D Orbital Icon Display for Categories Page */
.modern-icon-display {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(0, 71, 227, 0.1),
    rgba(0, 113, 227, 0.05),
    rgba(100, 210, 255, 0.03)
  ) !important;
}

.icon-grid-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
}

/* Central Hub */
.central-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hub-circle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0071e3, #64d2ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
  animation: hub-pulse 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.hub-circle i {
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Energy Rings */
.energy-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.ring {
  position: absolute;
  border: 2px solid rgba(0, 113, 227, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 80px;
  height: 80px;
  animation: ring-pulse 2s ease-in-out infinite;
}

.ring-2 {
  width: 100px;
  height: 100px;
  animation: ring-pulse 2s ease-in-out infinite 0.5s;
}

.ring-3 {
  width: 120px;
  height: 120px;
  animation: ring-pulse 2s ease-in-out infinite 1s;
}

/* Orbital Paths */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.orbit-1 {
  width: 140px;
  height: 140px;
  animation: orbit-rotate 20s linear infinite;
}

.orbit-2 {
  width: 200px;
  height: 200px;
  animation: orbit-rotate 30s linear infinite reverse;
}

.orbit-3 {
  width: 260px;
  height: 260px;
  animation: orbit-rotate 40s linear infinite;
}

/* Orbit Icons */
.orbit-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: icon-counter-rotate 20s linear infinite;
  transition: all 0.3s ease;
  cursor: pointer;
}

.orbit-2 .orbit-icon {
  animation: icon-counter-rotate 30s linear infinite;
}

.orbit-3 .orbit-icon {
  animation: icon-counter-rotate 40s linear infinite reverse;
}

.orbit-icon i {
  font-size: 1.2rem;
  background: linear-gradient(135deg, #0071e3, #64d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.orbit-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.3);
  background: linear-gradient(
    135deg,
    rgba(0, 113, 227, 0.9),
    rgba(100, 210, 255, 0.8)
  );
}

.orbit-icon:hover i {
  color: white;
  -webkit-text-fill-color: white;
}

/* Position icons on orbits */
.orbit-1 .orbit-icon:nth-child(1) {
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}
.orbit-1 .orbit-icon:nth-child(2) {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}
.orbit-1 .orbit-icon:nth-child(3) {
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.orbit-2 .orbit-icon:nth-child(1) {
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}
.orbit-2 .orbit-icon:nth-child(2) {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}
.orbit-2 .orbit-icon:nth-child(3) {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}
.orbit-2 .orbit-icon:nth-child(4) {
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.orbit-3 .orbit-icon:nth-child(1) {
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}
.orbit-3 .orbit-icon:nth-child(2) {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}
.orbit-3 .orbit-icon:nth-child(3) {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}
.orbit-3 .orbit-icon:nth-child(4) {
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}
.orbit-3 .orbit-icon:nth-child(5) {
  top: -10px;
  right: 30%;
  transform: rotate(45deg);
}

/* Floating Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0)
  );
  border-radius: 50%;
  animation: particle-float 6s ease-in-out infinite;
}

.particle-1 {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.particle-2 {
  width: 6px;
  height: 6px;
  top: 60%;
  right: 20%;
  animation-delay: 1s;
}

.particle-3 {
  width: 3px;
  height: 3px;
  bottom: 30%;
  left: 25%;
  animation-delay: 2s;
}

.particle-4 {
  width: 5px;
  height: 5px;
  top: 15%;
  right: 30%;
  animation-delay: 3s;
}

.particle-5 {
  width: 4px;
  height: 4px;
  bottom: 15%;
  right: 15%;
  animation-delay: 4s;
}

.particle-6 {
  width: 7px;
  height: 7px;
  top: 40%;
  left: 10%;
  animation-delay: 5s;
}

/* Network Connection Lines */
.network-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.connection-svg {
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

/* Animations */
@keyframes hub-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 113, 227, 0.6);
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.6;
  }
}

@keyframes orbit-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes icon-counter-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-15px) translateX(5px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
    opacity: 1;
  }
  75% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
}

/* Enhanced Feature Cards for "Why The Big Reference?" section */
.feature-card {
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(0, 0, 0, 0.05);
}

.feature-card:hover .position-absolute.opacity-0 {
  opacity: 0.05 !important;
}

.feature-card .feature-icon-wrapper {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon-wrapper .position-absolute:last-child {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Enhanced gradient text for section title */
.display-5 {
  position: relative;
}

/* Feature card content enhancements */
.feature-card .card-body h3 {
  transition: color 0.3s ease;
}

.feature-card:hover .card-body h3 {
  color: var(--primary) !important;
}

.feature-card .card-body p {
  transition: color 0.3s ease;
}

.feature-card:hover .card-body p {
  color: var(--dark) !important;
}

/* Responsive adjustments for feature cards */
@media (max-width: 767.98px) {
  .feature-card {
    margin-bottom: 1.5rem;
  }

  .feature-icon-wrapper {
    width: 70px !important;
    height: 70px !important;
  }

  .feature-icon-wrapper .position-absolute:last-child {
    width: 50px !important;
    height: 50px !important;
  }

  .feature-card .card-body {
    padding: 2rem 1.5rem !important;
  }
}

/* Enhanced hover effects with subtle animations */
@keyframes feature-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.feature-card:hover {
  animation: feature-float 2s ease-in-out infinite;
}

/* Icon pulse effect on hover */
@keyframes icon-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.feature-card:hover .feature-icon-wrapper i {
  animation: icon-pulse 1.5s ease-in-out infinite;
}

/* 
 * Admin Panel - Modern Apple-inspired Design
 * Clean dashboard interface for content management
 */

/* Admin Hero Section */
.admin-hero {
  padding: 2rem 0 1rem;
}

.admin-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15);
}

/* Admin Cards */
.admin-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}

.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.admin-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.admin-card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: var(--dark);
}

.admin-card-body {
  padding: 1.5rem;
}

/* Admin Stats */
.admin-stats {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--subtle-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Admin Actions */
.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-btn {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.875rem;
  display: block;
}

.admin-btn.primary {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

.admin-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
  color: white !important;
}

.admin-btn.secondary {
  background: var(--light);
  color: var(--dark);
  border: 1px solid var(--border-color);
}

.admin-btn.secondary:hover {
  background: var(--border-color);
  transform: translateY(-1px);
  color: var(--dark);
}

.admin-btn.disabled {
  background: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
  border: 1px solid #e9ecef;
}

.admin-btn.disabled small {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Activity Timeline */
.activity-timeline {
  max-height: 400px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-icon {
  width: 36px;
  height: 36px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.activity-meta {
  font-size: 0.875rem;
  color: var(--subtle-text);
  margin-bottom: 0.25rem;
}

.activity-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.activity-status.status-pending {
  background: var(--warning-light);
  color: var(--warning);
}

.activity-status.status-approved {
  background: var(--success-light);
  color: var(--success);
}

.activity-time {
  font-size: 0.8rem;
  color: var(--subtle-text);
}

/* Overview Stats */
.overview-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.overview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.overview-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.overview-label {
  font-size: 0.875rem;
  color: var(--subtle-text);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--light);
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.quick-action-btn:hover {
  background: white;
  border-color: var(--border-color);
  transform: translateY(-1px);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-action-btn i {
  width: 16px;
  text-align: center;
  color: var(--primary);
}

/* User Info */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--light);
  border-radius: 12px;
  margin-top: 1rem;
}

.user-avatar-small {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.role-admin {
  background: var(--danger-light);
  color: var(--danger);
}

.role-badge.role-editor {
  background: var(--info-light);
  color: var(--info);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

/* Color Utilities for Admin Panel */
.bg-warning-light {
  background-color: var(--warning-light) !important;
}

.bg-info-light {
  background-color: var(--info-light) !important;
}

.bg-success-light {
  background-color: var(--success-light) !important;
}

.bg-primary-light {
  background-color: var(--primary-light) !important;
}

.bg-purple-light {
  background-color: var(--purple-light) !important;
}

.bg-teal-light {
  background-color: var(--teal-light) !important;
}

.text-teal {
  color: var(--teal) !important;
}

.text-purple {
  color: var(--purple) !important;
}

/* Admin Panel Responsive Design */
@media (max-width: 768px) {
  .admin-hero {
    padding: 1rem 0;
  }

  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }

  .admin-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .overview-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .user-info {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .admin-card-header,
  .admin-card-body {
    padding: 1rem;
  }

  .admin-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .admin-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Admin Panel Activity Timeline Scrollbar */
.activity-timeline::-webkit-scrollbar {
  width: 4px;
}

.activity-timeline::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 2px;
}

.activity-timeline::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.activity-timeline::-webkit-scrollbar-thumb:hover {
  background: var(--subtle-text);
}

/* Building detail description card mobile fixes */
.building-detail-description-card {
  margin-bottom: 2rem !important;
}

.building-detail-description-card .card-body {
  padding: 1.5rem !important;
}

.building-detail-description-card .d-flex.align-items-center {
  margin-bottom: 1rem !important;
}

.building-detail-description-card .rounded-circle {
  width: 36px !important;
  height: 36px !important;
  margin-right: 0.75rem !important;
}

.building-detail-description-card .fs-3 {
  font-size: 1.4rem !important;
}

/* Building detail description card for very small screens */
.building-detail-description-card {
  margin-bottom: 2rem !important;
}

.building-detail-description-card .card-body {
  padding: 1.25rem !important;
}

.building-detail-description-card .d-flex.align-items-center {
  margin-bottom: 0.75rem !important;
}

.building-detail-description-card .fs-3 {
  font-size: 1.25rem !important;
}

/* End Admin Panel Styles */
