/* Visiting Card CSS  */
.visiting-cards-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 20px;
  justify-content: space-between; 
}

.visiting-card {
  width: 30%; 
  height: 210px; 
  margin: 0 auto;
  border: 2px solid #ddd;
  display: flex;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  background-color: #f9f9f9;
}

.card-left {
  flex: 1.2;
  background-color: #f4f4f4;
  background-size: 95%; /* Ensure the image scales smaller */
  background-repeat: no-repeat; /* Avoid repeating the background image */
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  position: relative;
  height: 100%; 
}
.card-left::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 4px solid #f7941e;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  background-size: 50%; /* Reduce background image size further */
  background-position: center;
}

.card-right {
  flex: 1.5;
  padding: 5px 10px; /* Reduced padding */
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.logo-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px; /* Adjusted margin */
}

.logo {
  font-size: 16px; /* Reduced font size */
  font-weight: bold;
  color: #f7941e;
}

.qr-code {
  width: 110px;
  height: 110px;
  margin: 10px 0;
}


.vet-name {
  font-size: 22px; /* Reduced font size */
  font-weight: bold;
  color: #000;
  margin: 8px 0;
}

.description {
  font-size: 13px; /* Reduced font size */
  color: #555;
  margin-bottom: 15px; /* Adjusted margin */
}

.card-right p {
  margin: 4px 0;
  font-size: 12px; /* Reduced font size */
  color: #333;
}

.card-right p strong {
  color: #000;
}

.orange-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px; /* Reduced height */
  background-color: #f7941e;
}

/*Map Icon*/

.maps-location {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-block;
}

.map-icon {
  width: 35px; 
  height: 30px; 
  border-radius: 4px; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Map Modal Overlay */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: black;
}

/* Visiting Card CSS for Mobile */
@media (max-width: 600px) {
  .visiting-card {
    display: flex;
    flex-direction: row; 
    width: 100%; 
    height: auto; 
  }

  .card-left {
    flex: 0.8; 
    height: 100px; 
    /*background-size: cover; */
    background-position: center;
    margin-top: 5px;
    margin-left: 5px;
  }

.card-left::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 2px solid #f7941e;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  background-size: 50%; /* Reduce background image size further */
  background-position: center;
}
  .card-right {
    flex: 2; 
    padding: 15px;
  }
}
