/* main section */

.card {
  background-color: #FFFFFF;
  padding: 0;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

.card-title_contact {
  color: #262626;
  font-size: 1.5em;
  line-height: normal;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.small-desc {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5em;
  color: #452c2c;
}

.small-desc {
  font-size: 1em;
}

.go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 2em;
  height: 2em;
  overflow: hidden;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #009c45, #ffd300);
  border-radius: 0 4px 0 32px;
}

.wrapper_contact {
  display: flex;
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
}

.card_contact {
  display: block;
  position: relative;
  width: 90%;
  max-height: 320px;
  border-radius: 10px;
  padding: 2em 1.2em;
  margin: 12px;
  text-decoration: none;
  text-align: center;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f0e6cc, #8fbf97);
  font-family: Arial, Helvetica, sans-serif;
}

.card_contact:before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: linear-gradient(135deg, #009c45, #ffd300);
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 1.2s ease-out;
}

.card_contact:hover:before {
  transform: scale(600);
  transition: all 3.5s ease-out;
}



.card_contact:hover .card-title_contact {
  transition: all 0.5s ease-out;
  color: #ffffff;
}



.card:hover {
  box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.3);
  color: black;
}

address {
  margin-bottom: 0px;
}


.waze {
  display: inline-block;
  width: 20% !important;
}

.address-link {
  font-style: inherit;
  /* Inherit italic style from the parent */
  color: #007bff;
  /* Standard link color, you can change it to fit your design */
  text-decoration: none;
  /* Remove underline */
  cursor: pointer;
  /* Pointer cursor for links */
  transition: color 0.2s ease-in-out;
  /* Smooth color transition on hover */
}

.address-link:hover {
  color: #0056b3;
  /* Darker blue on hover */
  text-decoration: underline;
  /* Underline on hover */
}

/* buton de pop up */
dialog {
  padding: 1rem 3rem;
  background: white;
  max-width: 500px;
  padding-top: 2rem;
  border-radius: 20px;
  border: 0;
  box-shadow: 0 5px 30px 0 rgb(0 0 0 / 10%);
  animation: fadeIn 1s ease both;
}

dialog::backdrop {
  animation: fadeIn 1s ease both;
  background: rgb(255 255 255 / 40%);
  z-index: 2;
  backdrop-filter: blur(20px);
}

dialog .x {
  filter: grayscale(1);
  border: none;
  background: none;
  position: absolute;
  top: 15px;
  right: 10px;
  transition: ease filter, transform 0.3s;
  cursor: pointer;
  transform-origin: center;
}

dialog .x:hover {
  filter: grayscale(0);
  transform: scale(1.1);
}

dialog h2 {
  font-weight: 600;
  font-size: 2rem;
  padding-bottom: 1rem;
}

dialog p {
  font-size: 1rem;
  line-height: 1.3rem;
  padding: 0.5rem 0;
}

dialog p a:visited {
  color: rgb(var(--vs-primary));
}

button.primary {
  display: inline-block;
  transition: background-color 0.1s ease;
  box-sizing: border-box;
  transition: all 0.25s ease;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 20px -10px rgb(var(--vs-primary) / 50%);
}



@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* styling pop up detalii */
.company-info {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.company-info p {
  margin: 10px 0;
}

.company-info strong {
  color: #009c45;
}

.company-info a {
  color: #009c45;
  text-decoration: none;
}

.company-info a:hover {
  text-decoration: underline;
}

/* styling pentru wrpperul de locatii */
.wrapper_locatii {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  justify-items: center;
}


.card {
  width: 100%;
  max-width: 500px;
}


.col-md-6 {
  display: flex;
  justify-content: center;
  /* Horizontal alignment */
  align-items: center;
  /* Vertical alignment */
  width: 100% !important;

}

@media (max-width: 1015px) {
  .wrapper_locatii {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 1015px){
  main{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .wrapper_locatii{
    width: 90%;
  }
}
@media (max-width: 365px){
  .card-body > iframe{
    display: none;
  }
  .card-body > :last-child{
    display: none;
  }
}