:root {
  --helloSoin: #5DA781;
  --helloGray: #9095A1;
  --helloBlue: #405969;
  --helloBeige: #D9CAB3;
  --helloOrange: #FFC700;
  --helloPurple: #7239EA;
  --background: #FFFFFF;
  --foreground: #0A0A0B;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --input: #E2E8F0;
  --muted: #F1F5F9;
  --muted-foreground: #71717A;
  --greenNuance: #BFE3D1;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--helloSoin), var(--helloBlue));
  color: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(93, 167, 129, 0.2);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Main page search section */
.search-section {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.search-title {
  color: var(--helloBlue);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--helloBlue);
  font-size: 1rem;
}

.form-input {
  padding: 16px;
  border: 2px solid var(--input);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--background);
  color: var(--foreground);
}

.form-input:focus {
  outline: none;
  border-color: var(--helloSoin);
  box-shadow: 0 0 0 3px rgba(93, 167, 129, 0.1);
}

.search-button,
.upload-button {
  background: linear-gradient(135deg, var(--helloSoin), var(--helloBlue));
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-button:hover,
.upload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(93, 167, 129, 0.3);
}

.search-button:active,
.upload-button:active {
  transform: translateY(0);
}

.search-button:disabled,
.upload-button:disabled {
  background: var(--helloGray);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.search-icon {
  width: 20px;
  height: 20px;
}

.loading {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--helloGray);
  font-style: italic;
}

.loading.show {
  display: block;
}

.results-section {
  margin-top: 40px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.results-title {
  color: var(--helloBlue);
  font-size: 1.5rem;
  font-weight: 600;
}

.results-count {
  background: var(--helloSoin);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.practitioner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.practitioner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.practitioner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.practitioner-name {
  color: var(--helloBlue);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.practitioner-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.practitioner-specialty {
  background: var(--greenNuance);
  color: var(--helloBlue);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.practitioner-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.detail-icon {
  width: 16px;
  height: 16px;
  color: var(--helloSoin);
}

/* GDPR-compliant reveal styles */
.gdpr-reveal-container {
  display: inline-block;
}

.gdpr-hidden-content {
  cursor: pointer;
  color: var(--helloSoin);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 2px 4px;
  border-radius: 4px;
}

.gdpr-hidden-content:hover {
  background-color: rgba(93, 167, 129, 0.1);
  text-decoration: underline;
}

.gdpr-placeholder {
  font-style: italic;
  font-size: 0.9em;
  opacity: 0.9;
}

.gdpr-hidden-content:hover .gdpr-placeholder {
  opacity: 1;
}

/* Tooltip hint for GDPR elements */
.gdpr-hidden-content::after {
  content: "🔒";
  font-size: 0.8em;
  margin-left: 4px;
  opacity: 0.7;
}

.gdpr-hidden-content:hover::after {
  opacity: 1;
}

.department-link {
  color: var(--helloBlue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.department-link:hover {
  color: var(--helloSoin);
  border-bottom-color: var(--helloSoin);
}

.no-results,
.no-specialties {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

.no-results-icon,
.no-specialties-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.5;
}

.links-section {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  background: var(--muted);
  border-radius: 12px;
}

.link-button,
.nav-link {
  display: inline-block;
  color: var(--helloBlue);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid var(--helloBlue);
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 0 8px;
}

.link-button:hover,
.nav-link:hover {
  background-color: var(--helloBlue);
  color: white;
}

.navigation {
  margin-top: 60px;
  text-align: center;
  padding: 20px;
  background: var(--muted);
  border-radius: 12px;
}

/* Upload page specific */
.upload-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px dashed var(--helloSoin);
  border-radius: 8px;
  background-color: #f8f9fa;
  color: var(--helloGray);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input:hover {
  border-color: var(--helloBlue);
  background-color: #e9ecef;
}

.file-input:focus {
  outline: none;
  border-color: var(--helloBlue);
  box-shadow: 0 0 0 3px rgba(93, 167, 129, 0.1);
}

.message {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.message.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.info-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.info-section h2 {
  color: var(--helloBlue);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.info-section ul {
  list-style: none;
  padding: 0;
}

.info-section li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: var(--helloGray);
}

.info-section li:last-child {
  border-bottom: none;
}

.info-section li::before {
  content: "✓";
  color: var(--helloSoin);
  font-weight: bold;
  margin-right: 10px;
}

/* Department page specific */
.breadcrumb {
  margin-bottom: 30px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: var(--helloBlue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.breadcrumb-link:hover {
  color: var(--helloSoin);
  border-bottom-color: var(--helloSoin);
}

.breadcrumb-separator {
  color: var(--muted-foreground);
  margin: 0 4px;
}

.specialties-section {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.specialties-title {
  color: var(--helloBlue);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.specialty-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a.specialty-card {
  text-decoration: none;
  color: inherit;
}

.specialty-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--helloSoin);
}

.specialty-info {
  flex: 1;
}

.specialty-name {
  color: var(--helloBlue);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.specialty-description {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.specialty-count {
  background: var(--helloSoin);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 60px;
  text-align: center;
}

.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* NEW: Admin actions bar for the add button */
.admin-actions-bar {
  margin-bottom: 24px;
  text-align: right;
}

.add-speciality-button {
  background: linear-gradient(135deg, var(--helloSoin), var(--helloBlue));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-speciality-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(93, 167, 129, 0.3);
}

/* NEW: Modal Styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1000;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--background);
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

@media (min-width: 768px) {
  .map-fixed {
    position: fixed;
    right: 4vw; /* ou adaptée */
    top: 100px;
    width: 40%;
    max-width: 520px;
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-button {
  color: var(--helloGray);
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
  color: var(--helloBlue);
  text-decoration: none;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--helloBlue);
  margin-bottom: 24px;
  text-align: center;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions button {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.modal-actions .cancel-button {
  background-color: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.modal-actions .cancel-button:hover {
  background-color: var(--border);
}

.modal-actions .submit-button {
  background-color: var(--helloSoin);
  color: white;
  border: none;
}

.modal-actions .submit-button:hover {
  background-color: #4a8c6a;
  /* Darker shade of helloSoin */
}


/* Responsive Design */
@media (min-width: 768px) {
  .container {
    padding: 0px;
  }

  .search-form {
    flex-direction: row;
    align-items: end;
  }

  .form-group {
    flex: 1;
  }

  .search-button,
  .upload-button {
    width: auto;
    min-width: 140px;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .practitioner-details {
    grid-template-columns: 1fr 1fr;
  }

  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .upload-card,
  .info-section {
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0px;
  }

  .header h1 {
    font-size: 3rem;
  }

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.search-banner {
  background: linear-gradient(135deg, #5DA781, #405969);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(93, 167, 129, 0.3);
}

.search-banner p {
  opacity: 0.95;
  font-size: 1rem;
  margin: 0;
}

.results-section {
  margin-top: 10px;
}

.results-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.results-title {
  color: #111827;
  font-weight: 600;
}

.results-count {
  font-size: 0.875rem;
}

.no-results {
  padding: 64px 16px;
  text-align: center;
}

.no-results-icon {
  color: #9ca3af;
  margin-bottom: 16px;
}

/* Custom scrollbar for results list */
.space-y-4::-webkit-scrollbar {
  width: 8px;
}

.space-y-4::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.space-y-4::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.space-y-4::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Ensure proper spacing between cards */
.space-y-4>*+* {
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {

  .w-2\/3,
  .w-1\/3 {
    width: 100%;
  }

  .flex {
    flex-direction: column;
  }

  .gap-6 {
    gap: 1.5rem;
  }

  .h-\[75vh\] {
    height: 50vh;
  }
}

@media (max-width: 768px) {
  .search-banner {
    margin: 16px;
    padding: 12px 16px;
  }

  .px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .p-8 {
    padding: 1rem;
  }
}

.bg-helloSoin {
  background-color: #5DA781;
}

/* vert */
.text-helloSoin {
  color: #5DA781;
}

.map-container {
  width: 100%;
  height: 100%;
}

.gm-info-window a {
  color: #2563eb;
  text-decoration: underline;
}

/* assure que les liens & boutons internes restent au-dessus et reçoivent des clics */
.practitioner-list-card {
  position: relative;
  
}

.practitioner-list-card a,
.practitioner-list-card button,
.practitioner-list-card [role="button"],
.practitioner-list-card input,
.practitioner-list-card select,
.practitioner-list-card textarea {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

/* évite que pseudo-éléments décoratifs gênent */
.practitioner-list-card::before,
.practitioner-list-card::after {
  pointer-events: none;
}

/* reste sûr pour le focus */
.practitioner-list-card a:focus,
.practitioner-list-card button:focus {
  z-index: 4;
}

.practitioner-list-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  transition: box-shadow 0.2s ease;
  margin-bottom: 16px;
}

.practitioner-list-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.card-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Avatar and rating section */
.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.practitioner-avatar {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f3f4f6;
}

.practitioner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating-section {
  text-align: center;
}

.rating-score {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.score {
  font-size: 18px;
  font-weight: bold;
  color: #1f2937;
}

.review-count {
  font-size: 12px;
  color: #6b7280;
}

.star-display {
  font-size: 12px;
  color: #10b981;
  transform: scale(0.75);
}

/* Main content section */
.main-content {
  flex: 1;
  min-width: 0;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.name-specialties {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.practitioner-name-link {
  text-decoration: none;
  color: inherit;
}

.practitioner-name {
  font-size: 18px;
  font-weight: bold;
  color: #1f2937;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.practitioner-name:hover {
  text-decoration: underline;
}

.specialties-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.specialty-badge {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.badge-green {
  background-color: #dcfce7;
  color: #166534;
}

.badge-purple {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.badge-blue {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.badge-gray {
  background-color: #f3f4f6;
  color: #374151;
}

.certification-badge {
  flex-shrink: 0;
}

.badge-placeholder {
  width: 48px;
  height: 48px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: bold;
}

/* Details section */
.details-section {
  margin-bottom: 12px;
}

.address-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.address-item,
.price-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.price-item {
  color: #374151;
}

.price-text {
  font-weight: 600;
  font-size: 14px;
}

.icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.consultation-types {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.consultation-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.consultation-office {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.consultation-icon {
  width: 12px;
  height: 12px;
}

/* Appointments section */
.appointments-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

#appointment-booking-container{
  height: 100%;
}


.appointment-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.appointment-slot {
  padding: 4px 12px;
  background: #405969;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  margin-right: 4px;
  margin-top: 4px;
}

.appointment-slot:hover {
  background: #059669;
}

.no-slots-available {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  padding: 8px 0;
}

/* NEW: Grouped availability styles - specific to avoid conflicts */
.appointment-slots-grouped {
  max-width: 100%;
}

.speciality-group {
  margin-bottom: 12px;
  padding: 8px;
  background-color: rgba(93, 167, 129, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--helloSoin);
}

.speciality-group h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--helloBlue);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.appointment-type-group {
  margin-bottom: 8px;
  padding-left: 8px;
}

.appointment-type-group h6 {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 4px 0;
  font-style: italic;
}

.appointment-type-group .appointment-slots {
  gap: 4px;
  margin-left: 8px;
}

.appointment-type-group .appointment-slot {
  padding: 3px 8px;
  font-size: 11px;
  background: #405969;
  color: white;
  border-radius: 12px;
  margin: 0;
}

.appointment-type-group .appointment-slot:hover {
  background: var(--helloSoin);
  transform: translateY(-1px);
}

/* Bottom section */
.bottom-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.view-profile-btn {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.2s;
}

.view-profile-btn:hover {
  background: #e5e7eb;
}

/* GDPR content styles */
.gdpr-hidden-content {
  cursor: pointer;
  color: #3b82f6;
  text-decoration: underline;
}

.gdpr-placeholder {
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-content {
    flex-direction: row;
    align-items: start;
    text-align: start;
  }

  .avatar-section {
    margin-bottom: 16px;
  }

  .header-section {
    flex-direction: row;
    align-items: start;
  }

  .certification-badge {
    margin-top: 8px;
  }

  .address-price {
    align-items: start;
  }

  .consultation-types {
    justify-content: start;
  }

  .appointment-slots {
    justify-content: start;
  }

  /* Mobile responsive for grouped availability */
  .speciality-group {
    padding: 6px;
    margin-bottom: 10px;
  }

  .appointment-type-group {
    padding-left: 4px;
  }

  .appointment-type-group .appointment-slot {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* Focus accessibility */
.appointment-slot:focus,
.view-profile-btn:focus,
.specialty-badge:focus {
  outline: 3px solid rgba(59, 130, 246, 0.25);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Ajouter dans votre CSS */
#map-loading {
  transition: opacity 0.3s ease;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Optimisation pour les marqueurs */
.gm-info-window {
  max-width: 300px !important;
}

/* Amélioration de la performance de la carte */
.map-container {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}

/* NEW: Sticky positioning for the right column on desktop */
@media (min-width: 1024px) {
  .right-column {
    position: sticky;
    top: 100px; /* Offset from top to account for fixed header */
  }
}

/* Week calendar time-aligned grid styles */
.day-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.day-header {
  font-weight: 600;
  color: var(--helloBlue);
  text-align: center;
  padding: 4px 0;
  font-size: 14px;
}

.day-sub {
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.slots-container {
  flex: 1;
  position: relative;
  border-left: 1px solid #e5e7eb;
}

.day-column:first-child .slots-container {
  border-left: none;
}

.slot {
  padding: 6px 8px;
  background: #405969;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-align: center;
  margin: 2px 4px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot:hover:not(:disabled) {
  background: var(--helloSoin);
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slot.selected {
  background: var(--helloSoin);
  font-weight: 600;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--helloSoin);
  z-index: 11;
}

.slot:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Week navigation */
.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.week-nav-btn {
  background: var(--helloSoin);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 40px;
}

.week-nav-btn:hover:not(:disabled) {
  background: var(--helloBlue);
  transform: scale(1.05);
}

.week-nav-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Date picker styles */
.date-picker-container {
  margin: 12px 0;
}

.date-picker-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  width: 150px;
  margin: 0 auto;
  display: block;
}

.date-picker-input:focus {
  outline: none;
  border-color: var(--helloSoin);
  box-shadow: 0 0 0 3px rgba(93, 167, 129, 0.1);
}

/* Responsive adjustments for time-aligned grid */
@media (max-width: 768px) {
  #week-grid {
    gap: 4px;
  }

  .slot {
    font-size: 10px;
    padding: 4px 6px;
    min-height: 24px;
    margin: 1px 2px;
  }

  .day-header {
    font-size: 12px;
  }

  .day-sub {
    font-size: 11px;
  }
}

/* Ensure proper grid layout */
#week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

/* Accessibility improvements */
.slot:focus-visible {
  outline: 3px solid rgba(93, 167, 129, 0.5);
  outline-offset: 2px;
}

/* Loading and error states */
#calendar-loading,
#no-slots {
  padding: 20px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 14px;
}

