
/* Horizontal Scroll */
.permits-container {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
.permits-container::-webkit-scrollbar {
  height: 7px;
}
.permits-container::-webkit-scrollbar-track {
  background: #eef2f6;
  border-radius: 10px;
}
.permits-container::-webkit-scrollbar-thumb {
  background: #c5cde0;
  border-radius: 10px;
}
.permits-container::-webkit-scrollbar-thumb:hover {
  background: #a2adc8;
}

/* Permit Card */
.permit-card {
  text-align: center;
  transition: transform 0.25s ease;
}
.permit-card:hover {
  transform: translateY(-4px);
}

/* Wider & Taller Frame */
.permit-frame {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.permit-frame:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.15);
}

/* Wider & Taller Image */
.permit-image {
  width: 100%;
  max-width: 100%;
  max-height: 290px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* Button */
.view-document-btn {
  border-radius: 10px;
  font-weight: 500;
  padding: 10px 0;
  transition: all 0.25s ease;
}
.view-document-btn:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

/* Hover Preview */
.hover-preview {
  position: fixed;
  z-index: 9999;
  max-width: 350px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  padding: 16px;
  display: none;
  pointer-events: none;
  border: 1px solid #e5e7eb;
}
.hover-preview img {
  width: 100%;
  border-radius: 8px;
}

/* Modal Header */
.custom-modal {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.custom-modal-header {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border-bottom: 1px solid #e0e7ff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
}
.custom-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e2e8f0;
  margin: 0;
  opacity: 1;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.custom-close-btn:hover {
  background: #cbd5e1;
}
.modal-header-text {
  flex: 1;
  text-align: left;
}
.modal-header-text h5 {
  margin: 0 0 4px 0;
  line-height: 1.4;
}
.modal-header-text p {
  margin: 0;
  line-height: 1.5;
}

/* Modal Image */
.custom-modal-body {
  background: #ffffff;
  padding: 2.5rem 2rem;
}
.modal-document-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.custom-modal-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem;
}
