.grid3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 20px;
}

.routing-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: var(--color-white-warm);
    border-radius: 8px;
}

.routing-map {
    height: 150px;
}

.navigation-app,
.virtual-app {
  display: flex;
  justify-content:space-around;
  height: 50px;
  background-color: var(--color-gray-mid); 
  align-items: center;
  border-radius: 8px;
  padding-left: 30px;
  padding-right: 30px;
}


.navigation-app img,
.virtual-app img{
  height: 30px;
  width: 30px;
}

.routing-location-wrapper {
    height: 90px;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white-aqua);
    border-radius: 8px;
}

.routing-location {
    display: flex;

}

.routing-location-description {
    font-size: 0.75rem;
    margin-right: 10px;
    margin-top: 10px;
    text-align: right;
}

.location-icon-routing {
    margin-top: 10px;
    font-size: 1.25rem;
    color: var(--color-primary-hover);
    justify-content: start;
    margin-right: 20px;
}

.routing-buttom {
    margin-top: auto;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-evenly;
}

.btn-routing,
.btn-share {
    width: 40%;
    font-size: 0.75rem;
    color: var(--color-navy-deep);
    transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-routing {
    background-color: var(--color-primary);

}

.btn-share {
    background-color: var(--color-white-soft);
}

.btn-routing:hover,
.btn-share:hover,
.btn-routing:focus,
.btn-share:focus {
    background-color: var(--color-primary-hover) !important;
    border: none;
}

@media (min-width: 1200px) {
    .routing-wrapper {
        width: 650px;
        height: 300px;
        margin-top: 0;
    }

    .routing-map {
        height: 200px;
    }

    .routing-location-wrapper {
        height: 100px;
    }

    .routing-location-description {
        font-size: 0.875rem;
    }
}

/* فایل: tomb-routing.css */



@media (min-width: 992px) and (max-width: 1199.98px) {
  .routing-wrapper {
    width: 465px; /* (عرض 220px * 2) + 25px فاصله */
    height: 220px;
    margin-top: 0;
  }

}

@media (min-width: 768px) and (max-width: 991.98px) {
  .routing-wrapper {
    width: 370px; /* (عرض 180px * 2) + 25px فاصله */
    height: 270px;
    margin-top: 0;
  }

    .routing-map {
    height: 200px ;
  }

}

/* این کد تضمین می‌کند که بلوک مسیریابی هم‌تراز با بلوک‌های اشتراک‌گذاری باشد */
@media (min-width: 768px) {
  .middle-column-content > .grid3 {
    display: flex;
    justify-content: start; /* یا center، مطابق با استایل در tomb-layout.css */
  }
}

.custom-btn-close-routing {
  right: 96%;
  font-size: 0.75rem;
}

/* حذف حاشیه (outline) و سایه (box-shadow) دکمه بستن هنگام فوکوس */
.custom-btn-close-routing:focus,
.custom-btn-close-routing:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important; /* برای اطمینان از حذف هرگونه حاشیه */
}

@media (max-width: 576px) {
  .navigation-app img, .virtual-app img {
    height: 25px;
    width: 25px;
  }
}