/*
Theme Name: RentalHive Child
Template: rentalhive
Version: 1.0.0
*/

/* Показываем только на мобилке (до 768px) */
.header-telegram-mobile {
  display: inline-flex;
  margin-left: 23px;

}

.telegram-desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .header-telegram-mobile {
    display: none;
  }
  .telegram-desktop-only {
    display: inline-flex;
    align-items: center;
  }
}



@media (max-width: 768px) {
  .header-hero {
    border-radius: 0 !important;
  }
}

.hp-listing__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.vnsco-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  margin: 0.75rem 0 1rem;
  word-break: break-word;
}

.vnsco-breadcrumbs a {
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.vnsco-breadcrumbs a:hover {
  text-decoration: underline;
}

.vnsco-breadcrumbs .separator {
  color: #d1d5db;
  font-weight: 400;
}

/* Mobile optimization */
@media (max-width: 480px) {
  .vnsco-breadcrumbs {
    font-size: 12px;
    line-height: 1.3;
    gap: 0.2rem;
    margin-top: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .vnsco-breadcrumbs a {
    font-size: 12px;
    white-space: nowrap;
  }

  .vnsco-breadcrumbs .separator {
    font-size: 12px;
    margin: 0 2px;
  }
}

.vnsco-breadcrumbs.breadcrumbs-light {
  color: #fff;
}

.vnsco-breadcrumbs.breadcrumbs-light a {
  color: #fff;
}

.vnsco-breadcrumbs.breadcrumbs-light .separator {
  color: #ffffff80;
}

@media (max-width: 480px) {
  .hp-listing__location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hp-listing__location svg,
  .hp-listing__location i {
    flex-shrink: 0;
  }
}

.hp-listing__title {
  margin-bottom: 0.2rem !important;
}

.hp-field--radio {
  max-height: none !important;
  overflow: visible !important;
}

/* === 1. Карточки одинаковой высоты === */
.hp-listing--view-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  border: 1px solid #e0e0e0; /* 3. Серая обводка */
  box-shadow: none;
  transition: box-shadow 0.25s, border-color 0.25s;
}

/* === 4. Только верхнее закругление изображения === */
.hp-listing--view-block .hp-listing__image img {
  border-radius: 10px 10px 0 0 !important;
}

/* Убираем нижнее округление если где-то добавлено */
.hp-listing--view-block .hp-listing__image,
.hp-listing--view-block .hp-listing__image-slider {
  border-radius: 10px 10px 0 0 !important;
}

/* === 5. Меньший заголовок карточки === */
.hp-listing--view-block .hp-listing__title {
  font-size: 1rem !important;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

/* === 6. Меньший location === */
.hp-listing--view-block .hp-listing__location {
  font-size: 0.75rem !important;
}

/* === 7. Меньшие атрибуты (цены и т.п.) === */
.hp-listing--view-block .hp-listing__attributes--primary .hp-listing__attribute,
.hp-listing--view-block .hp-listing__attributes--secondary .hp-listing__attribute {
  font-size: 0.75rem !important;
}



/* === Очищаем все следы тени по умолчанию === */
.hp-listing--view-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  border: 1px solid #e0e0e0; /* светлая серая рамка */
  box-shadow: none !important; /* УБИВАЕМ тень */
  transition: box-shadow 0.25s ease, border 0.25s ease;
}

/* === Тень ТОЛЬКО при наведении === */
.hp-listing--view-block:hover {
  box-shadow: 0 10px 30px rgba(7, 36, 86, 0.1) !important;
  border-color: transparent;
}

/* Убираем border у .featured */
.hp-listing--view-block.hp-listing--featured {
  border: 1px solid #e0e0e0 !important;
}

/* Удаляем все box-shadow из вложенных блоков */
.hp-listing--view-block *,
.hp-listing--view-block *::before,
.hp-listing--view-block *::after {
  box-shadow: none !important;
}

.post__excerpt {
  font-size: 0.765rem;
  line-height: 1;
  color: #666;
  margin: 0.75rem 0 1.25rem;
}

.post__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  color: #666;
  max-width: 45ch;
}

.post__title__vnsco {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0.5rem 0;
  color: rgba(15, 23, 39, .85);
  text-wrap: balance; /* красиво разбивает длинные заголовки */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* максимум 2 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post__title__vnsco a {
  color: inherit;
  text-decoration: none;
}
.post__title__vnsco a:hover {
  text-decoration: underline;
}

.post--archive .post__content {
	box-shadow: 0 5px 30px rgba(7, 36, 86, 0.075);
	background-color: #fff;
	border-radius: 0px 0px 15px 0px !important;
	padding: 1.25rem 1.5rem;
	position: relative;
	z-index: 1;
}

.post--archive.has-post-thumbnail .post__categories a::before,
.post--single .post__categories a::before {
	background-color: rgba(255, 255, 255, 0.3);
}
.post--archive {
  box-shadow: none !important; /* отключаем базовую тень */
  background-color: #fff !important;
  border: 1px solid #e0e0e0 !important; /* серая рамка */
  border-radius: 10px !important;
  overflow: hidden !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.post--archive:hover {
  box-shadow: 0 10px 30px rgba(7, 36, 86, 0.1) !important; /* тень ТОЛЬКО при наведении */
  border-color: transparent !important; /* прячем рамку, если хочешь — можно оставить */
}

.post--archive {
  position: relative;
  cursor: pointer;
}

.post__link-overlay {
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0; */
  z-index: 10;
  text-indent: -9999px;
  overflow: hidden;
}

.hp-vnsco-card {
  border: 1px solid #E0E0E0;
  border-radius: 15px;
  padding: 16px 20px;
  background-color: #fff;
  transition: box-shadow 0.2s;
  margin-bottom: 12px;
}

.hp-vnsco-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hp-vnsco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hp-vnsco-icon-wrap {
  width: 36px;
  height: 36px;
  background: #F5F5F5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-vnsco-icon {
  width: 20px;
  height: 20px;
}

.hp-vnsco-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
  color: #1F2937;
  flex-grow: 1;
}

.hp-vnsco-arrow {
  font-size: 20px;
  color: #999;
  line-height: 1;
  transform: translateY(1px);
  transition: transform 0.2s;
  display: none;
}

.hp-vnsco-card.is-open .hp-vnsco-arrow {
  transform: rotate(90deg) translateY(1px);
}

.hp-vnsco-subcategories {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

.hp-vnsco-subcategories li {
  margin-bottom: 4px;
}

.hp-vnsco-subcategories a {
  color: inherit;
  text-decoration: none;
}

.hp-vnsco-subcategories a:hover {
  text-decoration: underline;
}

.vnsco-card-link {
  color: #E63946;
  font-weight: 500;
}

@media (max-width: 768px) {
  .hp-vnsco-card {
    padding: 14px 16px;
    margin-bottom: 10px;
  }

  .hp-vnsco-header {
    gap: 10px;
    margin-bottom: 0px;
    
  }

  .hp-vnsco-icon-wrap {
    width: 32px;
    height: 32px;
  }

  .hp-vnsco-icon {
    width: 18px;
    height: 18px;
  }

  .hp-vnsco-title {
    font-size: 15px;

  }

  .hp-vnsco-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .hp-vnsco-card.is-open .hp-vnsco-subcategories {
    max-height: 300px;
  }
}



.hp-vnsco-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: #6B7280; /* или другой основной */
}

a.vnsco-card-link {
  color: #fc5761;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.vnsco-card-link:hover {
  color: #039be5;
}

@media (max-width: 768px) {
  .hp-vnsco-card.is-collapsible .hp-vnsco-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .hp-vnsco-card.is-collapsible.is-open .hp-vnsco-subcategories {
    max-height: 300px;
  }

  .hp-vnsco-card.is-collapsible {
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .hp-vnsco-arrow {
    display: inline-block;
  }
}

@media (min-width: 768px) {
  .hp-vnsco-header {
    justify-content: center;
    gap: 9px;
  }
}

@media (max-width: 768px) {
  .hp-listing-categories .hp-grid__item {
    margin-bottom: 8px;
  }

  .hp-listing-categories .hp-grid__item:last-child {
    margin-bottom: 0;
  }
}

h1.post__title {
  font-size: 1.9rem;
}

.vnsco-hero__title {
  margin-bottom: 25px;
  
}


.vnsco-blog-meta {
  padding: 80px 20px;
  background-color: #f5f5f5;
  margin-top: 60px;
  border-top: 1px solid #e0e0e0;
}

.vnsco-blog-meta__title {
  margin-bottom: 24px;
}

.vnsco-blog-meta__text {
  font-size: 14px;
  max-width: 900px;
  margin-bottom: 20px;
}

.vnsco-subscribe-widget {
  display: flex;
  align-items: center;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 12px 16px;
  gap: 12px;
  max-width: 100%;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

.vnsco-subscribe-widget__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.vnsco-subscribe-widget__link {
  color: #0088cc;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vnsco-subscribe-widget__link:hover {
  color: #0077b3;
}

.vnsco-subscribe-widget:hover {
  border-color: #0088cc;
}

.vnsco-subscribe-widget__link:hover {
  color: #fc5761;
  text-decoration: underline;
  transition: color 0.2s ease;
}

body.hide-vendor-block .hp-vendor {
  display: none !important;
}
