/* NC_CATALOG_MOBILE_20261127: компактная карточка санатория в каталоге на телефоне.
   Только экраны до 767px, только страница каталога (body.nc-catalogue-page), режим приложения не затрагивается. */
@media (max-width: 767px) {
  html:not(.nc-app) body.nc-catalogue-page #dle-content .nc-hotel-card {
    padding: 10px 10px 4px !important;
    margin-bottom: 14px !important;
    border-radius: 16px !important;
  }
  /* Фото */
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-photos { margin: 0 !important; padding: 0 !important; height: auto !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-gallery,
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-main-photo,
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-main-photo img {
    height: 210px !important; min-height: 0 !important; max-height: 210px !important;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-main-photo img { width: 100% !important; object-fit: cover !important; border-radius: 12px !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-cat-prev,
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-cat-next {
    width: 38px !important; height: 38px !important; font-size: 22px !important; line-height: 36px !important; opacity: .9;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-photo-link { display: none !important; }

  /* Информация */
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-info { padding: 10px 4px 0 !important; margin: 0 !important; border: 0 !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-topline { margin: 0 0 4px !important; gap: 8px; align-items: center; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-stars img { height: 14px !important; width: auto !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-name { margin: 0 0 4px !important; font-size: 20px !important; line-height: 1.2 !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-room {
    margin: 0 0 4px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-room > span { display: none !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-room strong { font-size: 14px !important; font-weight: 600 !important; color: #4a5a6a !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-cat-review-row { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; gap: 8px; font-size: 13px !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-cat-review-row a,
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-cat-review-row span { font-size: 13px !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-subhead { display: none !important; }
  /* Удобства — одна прокручиваемая строка */
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-amenities {
    display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; overflow-x: auto !important;
    margin: 0 -4px 2px !important; padding: 2px 4px 6px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-amenities::-webkit-scrollbar { display: none; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-amenities > div {
    flex: 0 0 auto !important; display: inline-flex !important; align-items: center; gap: 5px; width: auto !important; float: none !important;
    margin: 0 !important; padding: 5px 9px !important; border: 1px solid #e1e7ee; border-radius: 999px; background: #f6f8fb; white-space: nowrap;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-amenities img { width: 15px !important; height: 15px !important; margin: 0 !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-amenities span { font-size: 12.5px !important; line-height: 1.2 !important; }

  /* Цена и кнопка */
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-quote {
    display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: flex-start !important; align-items: baseline; column-gap: 8px; row-gap: 0;
    margin: 6px 0 0 !important; padding: 10px 4px 8px !important; border-top: 1px solid #edf1f5 !important; text-align: left !important;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-total-label,
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-quote-note { display: none !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-stay,
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-dates,
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-guests {
    display: inline !important; margin: 0 !important; text-align: left !important; width: auto !important; font-size: 13px !important; line-height: 1.5 !important; color: #5a6878 !important;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-dates::before { content: "· "; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-guests { flex: 1 0 100%; font-size: 12.5px !important; line-height: 1.4 !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-old-price {
    flex: 0 0 auto; order: 10; align-self: center; margin: 8px 0 0 !important; text-align: left !important; font-size: 14px !important; color: #8794a3 !important;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-current-price {
    flex: 0 0 auto; order: 11; margin: 8px 0 0 !important; text-align: left !important;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-current-price .prc { font-size: 26px !important; font-weight: 800 !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-saving {
    flex: 0 0 auto; order: 12; margin: 8px 0 0 auto !important; font-size: 12.5px !important; color: #1b7a3e !important; text-align: right !important;
  }
  /* Акция — только заголовок, без повтора текста */
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-promo-state {
    order: 13; flex: 1 0 100%; display: block !important; box-sizing: border-box; min-height: 0 !important; height: auto !important; margin: 6px 0 0 !important; padding: 6px 10px !important;
    font-size: 0 !important; line-height: 0 !important; border-radius: 10px !important;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-promo-state strong { font-size: 13px !important; line-height: 1.35 !important; display: block; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-button {
    order: 14; flex: 1 0 100%; display: flex !important; box-sizing: border-box; height: auto !important; width: 100% !important; position: relative !important; align-items: center; justify-content: center;
    margin: 10px 0 0 !important; min-height: 48px !important; border-radius: 12px !important; font-size: 16px !important;
  }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-details { margin: 0 !important; }
  html:not(.nc-app) body.nc-catalogue-page .nc-hotel-card .nc-hotel-details > summary { padding: 10px 4px !important; font-size: 14px !important; }
}
