/* Общие стили карты карьеров: маркеры, кластеры, мини-карточка карьера и
   маркер пользователя. Используются страницей карты карьеров и страницей
   списка карьеров (там карта открывается по переключателю «Список / Карта»).
   //
   The common styles of the quarry map: markers, clusters, the quarry mini card
   and the user marker. Used by the map page and by the list of quarries page
   (there the map is opened with the "List / Map" switch). */
/* Видимые маркеры */
.cluster-class {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #596a43;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кластер, в котором все карьеры временно недоступны, отображается сереньким */
.cluster-class--unavailable {
    background: #8C8C8C;
}

.cluster-content {
    color: white;
    font-weight: bold;
}


.marker-container {
    width: auto;
    display: inline-flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.marker-container:hover {
    .marker-title {
        display: block;
    }
}

.marker-title{
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  width: 200px;
  max-width: 200px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  pointer-events: none;

}

.marker-outer {
    width: 48px;
    height: 48px;
    border: 4px solid #646B41;  
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: transform 0.2s ease;
}

.marker-container:hover .marker-outer {
    transform: scale(1.2);
}

.marker-inner {
    width: 32px;
    height: 32px;
    background-color: #646B41;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

/* Временно недоступные карьеры отображаются сереньким */
.marker-container--unavailable .marker-outer {
    border-color: #8C8C8C;
}

.marker-container--unavailable .marker-inner {
    background-color: #8C8C8C;
}

.marker-favorite-visual {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marker-container--favorite .marker-favorite-icon {
  width: 48px;
  height: 48px;
  display: block;
  pointer-events: none;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.marker-container--favorite:hover .marker-favorite-icon {
  transform: scale(1.2);
}

/* Container for info about quarry */
.container_for_info_about_quarry{
  display: none;
  position: absolute;
  top: 20px;
  right: 10px;
  width: 25%;
  box-sizing: border-box;
}

.container_for_info_about_quarry .button_close{
  cursor: pointer;
}

.container_for_info_about_quarry .info_about_quarry{
  position: relative;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  font-size: 14px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.container_for_info_about_quarry .button_close{
  display: flex;
  justify-content: flex-end;
}

.container_for_info_about_quarry .quarry_name_row{
  display: block;
}

.container_for_info_about_quarry .quarry_name_block{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.container_for_info_about_quarry .quarry_name_line{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.container_for_info_about_quarry  .quarry_name_line .quarry_name{
  font-size: 16px;
  font-weight: 400;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.container_for_info_about_quarry .quarry_badge_container{
  display: block;
}

.container_for_info_about_quarry .container_for_favorite_quarry_button {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.container_for_info_about_quarry .btn_favorite_quarry {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  line-height: 0;
  flex-shrink: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.container_for_info_about_quarry .favorite_quarry_icon {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}

.container_for_info_about_quarry .favorite_quarry_icon_filled {
  display: none;
}

.container_for_info_about_quarry .btn_favorite_quarry.is_favorite .favorite_quarry_icon_filled {
  display: block;
}

.container_for_info_about_quarry .btn_favorite_quarry.is_favorite .favorite_quarry_icon_outline {
  display: none;
}

.container_for_info_about_quarry .quarry_name_block{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.container_for_info_about_quarry .quarry_badge_container{
  display: block;
}

.container_for_info_about_quarry .quarry_address{
  padding: 10px 0px;
  font-size: 14px;
  opacity: 0.6;
}

.container_for_info_about_quarry hr{
  width: 100%;
  border: 1px solid #D8DACF;
  margin: 10px 0px;
}

.container_for_info_about_quarry  .quarry_distance{
  display: flex;
  justify-content: flex-start;
  padding: 10px 0px;
  font-size: 14px;
  font-weight: 100;
}

.container_for_info_about_quarry .quarry_distance_value {
  padding-left: 10px;
  font-weight: 400;
}

.container_for_info_about_quarry .link_to_calulate{
  padding-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: black;
  
}

.container_for_info_about_quarry .link_to_calulate button{
  width: 300px;
  height: 50px;
  padding: 10px;
  font-size: 14px;
  font-weight: 400;
  background-color: #ED8C33;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.container_for_info_about_quarry .quarry_mini_section_title{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}

.container_for_info_about_quarry .quarry_mini_main_phone,
.container_for_info_about_quarry .quarry_mini_contacts_content{
  padding-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.container_for_info_about_quarry .contacts_reveal_wrapper{
  position: relative;
}

.container_for_info_about_quarry .contacts_blurred{
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.container_for_info_about_quarry .contacts_revealed{
  filter: none;
  user-select: auto;
  pointer-events: auto;
}

.container_for_info_about_quarry .button_show_contacts{
  display: block;
  margin-top: 8px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background-color: #ED8C33;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.container_for_info_about_quarry .button_show_contacts_hidden{
  display: none;
}

.container_for_info_about_quarry .button_expand_price_list{
  display: block;
  margin-top: 8px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background-color: #ED8C33;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.container_for_info_about_quarry .quarry_mini_price_list{
  padding-top: 6px;
  overflow-x: auto;
}

.container_for_info_about_quarry .quarry_mini_price_table{
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.container_for_info_about_quarry .quarry_mini_price_table th,
.container_for_info_about_quarry .quarry_mini_price_table td{
  padding: 4px 6px;
  border-bottom: 1px solid #D8DACF;
  text-align: left;
  vertical-align: top;
}

.container_for_info_about_quarry .quarry_mini_price_table th{
  font-weight: 500;
  white-space: nowrap;
}

.container_for_info_about_quarry .quarry_mini_price_list_empty{
  font-size: 13px;
  opacity: 0.7;
}

/* User location marker styles */
.user-location-marker-container {
  position: relative;
  transform: translate(-50%, -100%);
}

.user-location-marker {
  width: 32px;
  height: 32px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
}

.user-location-cross {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  color: #666;
  z-index: 1000;
  transition: all 0.2s ease;
}

.user-location-cross:hover {
  background-color: #f0f0f0;
  border-color: #999;
  color: #333;
  transform: scale(1.1);
}

