* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  body {
    background-color: #f5f7fa;
    padding: 20px;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
h
  h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #334155;
    font-weight: 700;
    font-size: 2.5rem;
  }

  .pharmacy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  .pharmacy-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
  }

  .pharmacy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  }

  .card-image {
    overflow: hidden;
    position: relative;
  }

  .card-image img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .pharmacy-card:hover .card-image img {
    transform: scale(1.1);
  }
  

  .card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  }

  .card-content {
    padding: 20px;
  }

  .shop-name {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
    transition: color 0.3s ease;
  }

  .pharmacy-card:hover .shop-name {
    color: #2563eb;
  }

  .shop-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
  }

  .info-item i {
    color: #2563eb;
    font-size: 16px;
    width: 20px;
    text-align: center;
  }

  .card-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
  }

  .action-icon {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .action-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .action-icon:hover {
    background-color: #d4ebff;
  }


  .card-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .pharmacy-card:hover .card-wave {
    opacity: 1;
  }

  @media (max-width: 1024px) {
    .pharmacy-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 768px) {
    .pharmacy-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .pharmacy-grid {
      grid-template-columns: 1fr;
    }
    
    .pharmacy-card {
      max-width: 400px;
      margin: 0 auto;
    }
  }
  /* Like button styles */
/* Like button styles */
.like-button {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
}

.like-count {
font-size: 12px;
font-weight: 600;
color: #64748b;
transition: color 0.3s ease;
margin-bottom: 5px;
}

.like-button.active {
background-color: rgba(37, 99, 235, 0.1);
}

.like-button.active img {
filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(1222%) hue-rotate(208deg) brightness(95%) contrast(96%);
}

.like-button.active .like-count {
color: #2563eb;
}
.pharmacy-card .views-container {
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 14px;
font-weight: bold;
color: #333;
margin: 5px 0;
}

.pharmacy-card .views-container img {
width: 20px;
height: auto;
margin-right: 5px;
}
.bottom-nav {
background-color: white;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
padding: 10px 0;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}

.fixed-bottom {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 1030;
}

*, ::after, ::before {
box-sizing: border-box;
}

.bottom-nav .row {
display: flex;
justify-content: space-around; /* Ensures equal spacing */
align-items: center;
text-align: center;
}

.bottom-nav .col {
flex: 1;
}

.bottom-nav a {
text-decoration: none;
color: #4a4a4a;
font-size: 0.8rem;
display: flex;
flex-direction: column; /* Keep text below icon */
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}

.bottom-nav .icon img {
width: 30px;
display: block;
}

.bottom-nav a.active,
.bottom-nav a:hover {
color: #764ba2;
}

.complain-btn {
cursor: pointer; 
}

/* Add Card Button */
.add-card-button {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px dashed #d1d5db;
  min-height: 250px;
  opacity: 1;
  transform: translateY(0);
}

.add-card-button:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
}

.add-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.add-icon i {
  color: white;
  font-size: 24px;
}

.add-card-button span {
  color: #64748b;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.add-card-button:hover span {
  color: #2563eb;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: white;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(50px);
  transition: all 0.4s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

/* Quadrilateral Image Upload Area */
.image-upload-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(125deg, #2563eb, #3b82f6, #60a5fa);
}

.quadrilateral-image-area {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
  background-color: rgba(255, 255, 255, 0.1);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.placeholder-content i {
  font-size: 48px;
  margin-bottom: 10px;
}

.placeholder-content p {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.preview-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quadrilateral-image-area.has-image .preview-image {
  opacity: 1;
}

.quadrilateral-image-area.has-image .placeholder-content {
  opacity: 0;
}

.upload-image-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #2563eb;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.upload-image-btn:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  color: #334155;
}

.close-modal {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background-color: #f1f5f9;
  color: #334155;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #334155;
  font-size: 14px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  transition: color 0.3s ease;
}

.input-with-icon input {
  width: 100%;
  padding: 14px 16px 14px 45px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}

.input-with-icon input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  outline: none;
  background-color: white;
}

.input-with-icon input:focus + i {
  color: #2563eb;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
}

.cancel-btn, 
.submit-btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cancel-btn {
  background-color: #f1f5f9;
  color: #64748b;
}

.cancel-btn:hover {
  background-color: #e2e8f0;
  color: #334155;
}

.submit-btn {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.submit-btn i {
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .image-upload-container {
    height: 180px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .cancel-btn, .submit-btn {
    width: 100%;
  }
}
 /* Modal Styles */
 .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 400px;
    margin: 15% auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}