body {
  font-family: 'Montserrat', sans-serif;
  color: #111111;
  background: #f7f7f7;
  margin: 0;
  padding-top: 50px;
  
  
}
html, body {
  overflow-x: hidden;
}

.listing-page {
  overflow-x: clip;
  max-width: 100%;
}

.listing-gallery,
.listing-body,
.booking-card {
  max-width: 100%;
}
/* =========================
   OLD LOG TOP
========================= */ 
.hero {
  position: relative;
  min-height: 35vh;
  background: url('../images/phuket-villa-hero.webp') center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  padding: 60px 0 50px;
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  margin-top: 30px;
  background-position: 10% 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #f7f7f7;
  width: 100%;
  
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0 0 32px 32px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.50) 50%,
    rgba(0, 0, 0, 0.70) 100%
  );
}
.hero__title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  margin-top: 5px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  justify-content: flex-start;
}

.hero-stat {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 32px 40px;
  border-radius: 24px;
  min-width: 240px;
  flex: 1 1 100px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.hero-stat-number {
  font-size: 36px;
  font-weight: 800;
  color: #D4AF37;
  margin-bottom: 8px;
  line-height: 1;
}

.hero-stat-text {
  font-size: 15px;
  color: #111;
}

@media (max-width: 768px) {
  .hero {
    background: url('../images/phuket-villa-hero-mobile.webp') center/cover no-repeat;
    min-height: 25vh;
    padding: 20px 0px 57px;
    border-radius: 0 0 25px 25px;
    background-position: 10% 40%;
    margin-top: 25px;
  }

  .hero__title {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  .hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0 0 25px 25px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.40) 50%,
    rgba(0, 0, 0, 0.60) 100%
  );
}
}

@media (min-width: 993px) {
  .hero__content {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* =========================
   TELEGRAM SECTION
========================= */
.telegram-section {
  padding: 50px 0;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.telegram-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
}

.telegram-phone {
  flex: 1;
}

.telegram-phone img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: 30% center;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.telegram-text {
  flex: 1;
  max-width: 40%;
  text-align: left;
  margin-top: 20px;
  padding: 0 20px;
}

.telegram-text h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
  margin-top: 5px;
  color: #111;
}


.social-buttons {
  display: flex;
  
  gap: 20px;
  justify-content: flex-start;    
  margin-top: 10px;
  margin-bottom: 40px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 300px;
  transition: all 0.35s ease;
  
}

.btn-social img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);   
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc, #00aaff, #0088cc, #006699);
  background-size: 300% 300%;
  color: white;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
  animation: telegramFlow 5s ease-in-out infinite;
  padding: center;
  justify-content: center;
}

.btn-telegram:hover {
  animation-duration: 3s;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,136,204,0.45);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
  background-size: 300% 300%;
  color: white;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
  animation: instaFlow 6s ease-in-out infinite;
  justify-content: center;
}

.btn-instagram:hover {
  animation-duration: 3.5s;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(188,24,136,0.4);
}

@keyframes telegramFlow {
  0%, 100% {
    background-position: 0% 50%;
    transform: scale(1);
  }
  50% {
    background-position: 100% 50%;
    transform: scale(1.025);
  }
}

@keyframes instaFlow {
  0%, 100% {
    background-position: 0% 50%;
    transform: scale(1);
  }
  50% {
    background-position: 100% 50%;
    transform: scale(1.02);
  }
}
/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #f8f9fa;
  padding: 12px 0;
  z-index: 100;
  border-bottom: 1px solid #eee;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 50px;
  text-decoration: none;
}

.logo img {
  height: 42px;
}

.logo__text {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}



/* =========================
   MEDIA QUERIES ДЛЯ СОЦКНОПОК И МОБИЛКИ
========================= */
@media (max-width: 992px) {
  .telegram-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .telegram-text {
    max-width: 100%;
    padding: 0;
  }

  .telegram-text h2 {
    font-size: 28px;
  }

  .social-buttons {
    justify-content: center;
    gap: 14px;
    width: 100%;
  }

  .btn-social {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding: 14px 18px;
    font-size: 15px;
    justify-content: center;
    margin-right: 0;
  }
}

@media (max-width: 576px) {
  .social-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-social {
    width: 100%;
    max-width: 280px;
    padding: 13px 16px;
    font-size: 14px;
  }

  .btn-social img {
    width: 22px;
    height: 22px;
  }

  .telegram-text h2 {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .social-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn-social {
    max-width: 100%;
  }

  .telegram-text h2 {
    font-size: 25px;
    margin-top: 5px;
  }
}
/* =========================
   OLD LOG DOWN
========================= */ 

.search-bar {
  margin-top: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 50px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-bar input {
  border: none;
  padding: 10px;
  font-size: 14px;
}

.search-bar button {
  background: #2f6fed;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.card {
  cursor: pointer;
  transition: 0.2s;
}

.card:hover {
  transform: scale(1.02);
}

/* картинка */
.card img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 15px;
}
@media (max-width: 768px) {
  .card img {
    object-position: 50% 100%;
  }
}
/* контент */
.card-content {
  padding: 10px 5px;
}

/* название */
.card h3 {
  font-size: 16px;
  margin: 5px 0;
}

/* описание */
.card p {
  font-size: 13px;
  color: #666;
}

/* цена */
.price {
  margin-top: 5px;
  font-weight: bold;
  font-size: 15px;
}

/* тег (район) */
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
}

/* обертка картинки */
.card-image {
  position: relative;
}

/* кнопка load more */
.load-more {
  margin: 40px auto;
  display: block;
  padding: 15px 30px;
  border-radius: 30px;
  border: none;
  background: black;
  color: white;
  cursor: pointer;
}

/* ФИЛЬТР */
.search-bar {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid #eee;
}

/* мобилка */
@media (max-width: 768px) {

  .cards {
    grid-template-columns: 1fr;
  }

  .search-bar {
    position: static;
  }

  .mobile-filter-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    z-index: 1000;
  }
}
/* =========================
   FILTER BAR
========================= */

.filters {
  display: grid;
  grid-template-columns: 1.15fr 1.45fr 1fr auto;
  gap: 30px;
  position: relative;
  z-index: 50;
  margin-top: -40px;
  margin-bottom: 40px;
  background: #fff;
  padding: 24px;
  border-radius: 28px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border-radius: 24px;
  border: 1px solid #cdb889;
  font-size: 16px;
  font-weight: 600;
  color: #2d2418;
  background: #fffdf8;
  box-sizing: border-box;
}

.filters button {
  height: 58px;
  padding: 0 34px;
  border-radius: 24px;
  font-size: 17px;
  font-weight: 800;
}

#dates {
  min-width: 280px;
}
.filters input::placeholder {
  color: #8b7a5a;
  font-weight: 500;
}

.filters select {
  appearance: none;
}
@media (max-width: 1024px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .filters {
    grid-template-columns: 1fr;
  }

  #dates {
    min-width: 0;
  }
}

.search-btn {
  min-width: 190px;
  height: 56px;
  border-radius: 24px;
  font-size: 17px;
  font-weight: 800;
  padding: 0 32px;
}
/* =========================
   GRID
========================= */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}


/* =========================
   CARD
========================= */

.property-card {
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.property-card:hover {
  transform: translateY(-6px);
}

.property-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.property-info {
  padding: 20px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 992px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-direction: column;
  }
}
/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #f8f9fa;
  padding: 12px 0;
  z-index: 100;
  border-bottom: 1px solid #eee;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 42px;
}

.logo__text {
  font-size: 20px;
  font-weight: 600;
  color: #111;
}

.btn-gold {
  background: linear-gradient(135deg, #c6a55c, #e5c97a, #c6a55c);
  color: #000000;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  align-items: center;      
  justify-content: center;  
  text-decoration: none;
  white-space: nowrap;
  border: none;
  box-shadow: 0 10px 24px rgba(198, 165, 92, 0.68);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-size: 100% 100%;
  animation: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(198, 165, 92, 0.32);
}

@keyframes goldPulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Мобильная версия лого и кнопки */
@media (max-width: 768px) {
  .logo {
    gap: 8px;
  }
  .logo__text {
    font-size: 17px;
  }
  .btn-gold {
    padding: 10px 18px;
    font-size: 14px;
  }
}
.listing-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.listing-hero {
  margin-bottom: 28px;
}

.listing-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  background: #d7defe;
  color: #5463b8;
  font-weight: 600;
  font-size: 14px;
}

.listing-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.gallery-main,
.gallery-thumb {
  border-radius: 22px;
  overflow: hidden;
  background: #f2f2f2;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main {
  min-height: 520px;
}

.gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-thumb {
  min-height: 252px;
}

.listing-body {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.listing-content h1 {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.05;
}

.listing-meta {
  font-size: 18px;
  margin-bottom: 24px;
  color: #22314d;
}

.listing-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
  color: #24364f;
}

.booking-card {
  border: 1px solid #e6e6e6;
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
:root {
  --gold: linear-gradient(135deg, #c6a55c, #e5c97a, #c6a55c);
}
.booking-price {
  font-size: 32px;
  font-weight: 800;
  color: #3b6db1;
  margin-bottom: 24px;
}

.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.booking-pill {
  border: 1px solid #cfd8ea;
  border-radius: 999px;
  padding: 16px 18px;
  text-align: center;
  font-weight: 600;
  color: #22314d;
}

.booking-breakdown {
  border-top: 1px solid #e7e7e7;
  padding-top: 18px;
}

.breakline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
  font-size: 15px;
}

.breakline.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e7e7e7;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .listing-gallery,
  .listing-body {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    min-height: 360px;
  }

  .gallery-side {
    grid-template-columns: 1fr 1fr;
  }

  .listing-content h1 {
    font-size: 34px;
  }
}
.card {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(16, 24, 40, 0.12);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #eef3fb;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #17324d;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.card:hover .card-nav {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .card-nav {
    opacity: 1;
    pointer-events: auto;
  }
}

.card-nav-prev {
  left: 10px;
}

.card-nav-next {
  right: 10px;
}

.card-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #17324d;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.card-content {
  padding: 28px 18px 20px;
}

.card-topline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-chip {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e6ecff;
  color: #5b6fd6;
  font-size: 12px;
  font-weight: 700;
}

.card-chip-soft {
  background: #eef3fb;
  color: #60708a;
}

.card-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  color: #17324d;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #60708a;
  font-size: 14px;
  margin-bottom: 14px;
}

.card-location {
  margin: 0 0 10px;
  color: #7b889a;
  font-size: 13px;
}

.price {
  font-size: 18px;
  font-weight: 800;
  color: #17324d;
}
.gallery-main-wrap:hover .gallery-arrow {
  opacity: 1;
}
.location-pill {
  
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c6a55c, #e5c97a, #c6a55c);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(198, 165, 92, 0.24);
  
}
.btn-gold,
.btn-outline,
.booking-select,
.booking-pill,
input,
textarea,
select,
button,
a {
  outline: none;
}

.btn-gold:focus,
.btn-outline:focus,
.booking-select:focus,
.booking-pill:focus,
input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
  outline: none;
  box-shadow: none;
}
.filters-clear-btn {
  height: 56px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
}

.filters-period {
  margin-top: -20px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 700;
  color: #7a6641;
  text-align: center;
}
.gallery-modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.2s ease;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.gallery-modal__panel {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
}

.gallery-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  font-size: 28px;
  cursor: pointer;
  z-index: 5;
}

.gallery-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  font-size: 30px;
  cursor: pointer;
  z-index: 5;
}

.gallery-modal__arrow--left {
  left: 10px;
}

.gallery-modal__arrow--right {
  right: 10px;
}

.gallery-modal__content {
  display: grid;
  gap: 16px;
}

.gallery-modal__item--full img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

.gallery-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-modal__row img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

@media (max-width: 768px) {
  .gallery-modal__row {
    grid-template-columns: 1fr;
  }
}
/* ===== ГЛАВНАЯ: КРАСИВЫЙ ПЕРИОД В КАЛЕНДАРЕ ===== */

.calendar-bottom {
  margin-top: 18px;
  padding: 16px 16px 14px;
  border-top: 1px solid rgba(199, 166, 89, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.calendar-period {
  font-size: 14px;
  font-weight: 800;
  color: #7a6641;
  line-height: 1.5;
  padding-left: 2px;
}

.calendar-clear-btn {
  border: 1px solid rgba(199, 166, 89, 0.55);
  background: linear-gradient(135deg, #fffaf0, #f8ecd0);
  color: #5f4c28;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(198, 165, 92, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-right: 2px;
}

.calendar-clear-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(198, 165, 92, 0.2);
}
.results-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 8px;
}

.results-loader__dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.results-loader__dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c6a55c, #e5c97a, #c6a55c);
  box-shadow: 0 8px 18px rgba(198, 165, 92, 0.28);
  animation: loaderPulse 1.2s infinite ease-in-out;
}

.results-loader__dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.results-loader__dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.results-loader__text {
  font-size: 14px;
  font-weight: 700;
  color: #7a6641;
  text-align: center;
}

@keyframes loaderPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.45;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
  }
}
#dates + .flatpickr-calendar .flatpickr-day.minstay-blocked,
.flatpickr-calendar .flatpickr-day.minstay-blocked {
  background: #f3eee4 !important;
  color: #b9a98a !important;
  border-color: #eadfca !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}
/* ===== ФИЛЬТРЫ НА ГЛАВНОЙ: ТЕКСТ ПО ЦЕНТРУ ===== */

.filters input,
.filters select {
  text-align: center;
  text-align-last: center;
}

.filters input::placeholder {
  text-align: center;
}

#dates {
  text-align: center;
}

@media (max-width: 768px) {
  .filters input,
  .filters select,
  #dates {
    text-align: center;
    text-align-last: center;
  }
}
/* ===== HERO CONTACT ===== */

.hero-contact {
  margin-top: 26px;
  max-width: 520px;
}

.hero-contact__line {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(198, 165, 92, 0),
    rgba(229, 201, 122, 0.95),
    rgba(198, 165, 92, 0)
  );
  box-shadow: 0 6px 18px rgba(198, 165, 92, 0.22);
  margin-bottom: 14px;
}

.hero-contact__phone {
  font-size: 35px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.hero-contact__apps {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-contact {
    margin-top: 20px;
    max-width: 100%;
  }

  .hero-contact__line {
    margin-bottom: 12px;
  }

  .hero-contact__phone {
    font-size: 24px;
  }

  .hero-contact__apps {
    font-size: 14px;
  }
}
/* ===== FIX: текст не вылезает из превью-карточек ===== */

.card {
  overflow: hidden;
}

.card-content {
  padding: 28px 18px 20px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.card-title,
.card-description,
.card-meta,
.card-location,
.price,
.card-contact-block,
.card-contact-phone,
.card-contact-messengers {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  color: #17324d;
}

.card-description {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #60708a;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #60708a;
  font-size: 14px;
  margin-bottom: 14px;
}

.price {
  font-size: 18px;
  font-weight: 800;
  color: #17324d;
  line-height: 1.3;
}

.card-contact-block {
  width: 100%;
}

.card-contact-phone {
  font-size: 18px;
  font-weight: 900;
  color: #2d2418;
  line-height: 1.2;
}

.card-contact-messengers {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  color: #8a6d3b;
  line-height: 1.3;
  text-transform: uppercase;
}
/* ===== BIG BANNER (FOOTER BLOCK) ===== */
.big-banner {
  font-family: 'Montserrat', sans-serif;
}
.big-banner {
  position: relative;
  min-height: 40vh; 
  background: url('../images/villa-banner.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: 20px 20px; 
  margin-top: 0px; 
  border-bottom-left-radius: 32px; 
  border-bottom-right-radius: 32px; 
}

.big-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  border-bottom-left-radius: 32px; 
  border-bottom-right-radius: 32px; 
}

.big-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.big-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -2px;
  color: white;
  transform: translateY(0px); 
  margin-left: 0%;
  margin-right: 0%; 
}


.counter-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}

.counter-big {
  font-size: 68px;
  font-weight: 800;
  color: #D4AF37;
  line-height: 1;
}

.counter-text {
  font-size: 22px;
  font-weight: 500;
  color: #f0f0f0;
  margin-top: 8px;
}


.big-btn {
  background: #D4AF37;
  color: white;
  padding: 18px 48px;
  border-radius: 50px;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(212,175,55,0.4);
  transition: all 0.3s;
}

.big-btn:hover {
  background: #b8962e;
  transform: translateY(-4px);
}

.copyright {
  font-size: 14px;
  opacity: 0.82;
  line-height: 1.45;
  margin-top: 4px;
}

@media (max-width: 992px) {
  .big-banner {
    min-height: 30vh;
    padding: 48px 16px 40px;
    margin-top: 0;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }

  .big-banner-content {
    gap: 18px;
  }

  .big-title {
    font-size: 44px;
  }

  .counter-wrapper {
    flex-direction: column; 
    gap: 4px;
  }

  .counter-big {
    font-size: 68px;
  }

  .counter-text {
    font-size: 20px;
    margin-top: 0;
  }


  .big-btn {
    padding: 16px 36px;
    font-size: 17px;
  }

  .copyright {
    font-size: 12px;
  }
}

.form-section {
    padding: 80px 0;
    background: #f8f8f8;
    text-align: center;
    
}
.social-icons a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-icons a:hover img {
  transform: scale(1.15);
}

.social-icons img {
  width: 120%;
  height: 120%;
  transition: transform 0.3s ease; 
  overflow: hidden;
}


.social-icons a:hover img {
  transform: scale(1.15);
}
.social-icons a:active {
  transform: scale(1);
}
@media (max-width: 768px) {
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 20px;
  }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}
.phone-center {
  font-size: 18px;
}
/* ===== fixed buttons stack ===== */

.scroll-top-btn {
  right: 30px;
  bottom: 115px;
}

.support {
  right: 30px;
  bottom: 30px;
}

/* меню открывается вверх над help-кнопкой */
.support-menu {
  right: 0;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* на мобилке тоже одна над другой */
@media (max-width: 768px) {
  .scroll-top-btn {
    right: 15px;
    bottom: 90px;
  }

  .support {
    right: 15px;
    bottom: 25px;
  }

  .support-menu {
    bottom: 62px;
  }
}
.support {
  position: fixed;
  bottom: 25px;
  right: 25px;
}

.support {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  
}


/* Меню */
.support-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  bottom: 75px;
  right: 0;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.support-menu a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}
/* ===== SUPPORT BUTTON ===== */

.support {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 10000;
}

/* кнопка */
.support-toggle {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c6a55c, #e5c97a);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52);
  transition: 0.3s ease;

}

.support-toggle:hover {
  transform: scale(1.08);
}



.help-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  
}

.help-ring circle {
  fill: none;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ringDraw 2.2s ease forwards;
  
}



.help-icon {
  position: relative;
  z-index: 2;
  font-size: 26px;
  font-weight: 800;
  color: #111010;

  
  animation: iconRotate 5s linear infinite;
}
/* =========================
   SCROLL TOP BUTTON
========================= */

.scroll-top-btn {
  position: fixed;
  right: 32px;
  bottom: 115px;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #c6a55c, #e5c97a);
  color: #111;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.28s ease;
  z-index: 10001;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

/* =========================
   OVERLAY
========================= */

.support-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
  z-index: 10010;
}

.support-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   SUPPORT WRAP
========================= */

.support {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 10020;
  
}


.help-icon {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: helpFloat 2.6s ease-in-out infinite;
  
}

.help-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: #070707;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

@keyframes helpFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
  }
}

@media (max-width: 768px) {
  .support {
    right: 15px;
    bottom: 20px;
  }

  .support-toggle {
    width: 54px;
    height: 54px;
  }

  .help-icon {
    width: 24px;
    height: 24px;
  }
}
/* =========================
   SUPPORT MENU ICONS
========================= */

.support-menu {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: 0.28s ease;
}

.support-menu.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.support-menu a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  
  background: rgba(255, 255, 255, 0.18);

  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.support-menu a:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
  background: rgba(255, 255, 255, 0.92);
}

.support-menu a img {
  width: 99%;
  height: 99%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}


.support-menu a.telegram img,
.support-menu a.whatsapp img,
.support-menu a.max img {
  border-radius: 50%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .support-menu {
    bottom: 66px;
  }

  .support-menu a {
    width: 48px;
    height: 48px;
  }

  .support-menu a img {
    width: 80%;
    height: 80%;
  }
}
@media (max-width: 768px) {
  .mobile-booking-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 10030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.96);
    border: 1px solid rgba(199, 166, 89, 0.24);
    box-shadow: 0 18px 40px rgba(0,0,0,0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.25s ease;
  }

  .mobile-booking-bar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-booking-bar__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-booking-bar__price {
    font-size: 18px;
    font-weight: 800;
    color: #9b7531;
    line-height: 1.1;
  }

  .mobile-booking-bar__dates {
    font-size: 12px;
    color: #6d5c3f;
    line-height: 1.3;
  }

  .mobile-booking-bar__btn {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #c6a55c, #e5c97a, #c6a55c);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(198, 165, 92, 0.22);
  }
}
.mobile-calendar-modal {
  display: none;
}

@media (max-width: 768px) {
  .scroll-top-btn {
    position: fixed !important;
    right: 16px !important;
    left: auto !important;
    bottom: 88px !important;
    width: 55px !important;
    height: 55px !important;
    font-size: 20px !important;
    transform: translateY(20px);
    z-index: 10001 !important;
  }

  .scroll-top-btn.show {
    transform: translateY(0) !important;
  }

  .support {
    position: fixed !important;
    right: 15px !important;
    left: auto !important;
    bottom: 20px !important;
    z-index: 10020 !important;
  }
}
.mobile-filters,
.mobile-main-calendar,
.mobile-filters-modal {
  display: none;
}

@media (max-width: 768px) {
  .filters {
    display: none !important;
  }

  .mobile-filters,
  .mobile-main-calendar,
  .mobile-filters-modal {
    display: none;
  }
  
  
}
/* =========================
   HERO + FILTERS OVER HERO
========================= */

.hero {
  position: relative;
  overflow: visible;
}

.properties {
  position: relative;
  z-index: 5;
}

.filters {
  display: grid;
  grid-template-columns: 1.15fr 1.45fr 1.15fr 1.15fr;
  gap: 16px;
  position: relative;
  z-index: 20;
  margin-top: -58px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.98);
  padding: 22px;
  border-radius: 28px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid #cdb889;
  font-size: 16px;
  font-weight: 700;
  color: #2d2418;
  background: #fffdf8;
  box-sizing: border-box;
}

.filters input::placeholder {
  color: #8b7a5a;
  font-weight: 600;
}

#dates {
  text-align: center;
}

.filters-search-row {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.search-btn {
  min-width: 220px;
  min-height: 56px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  padding: 0 28px;
}

/* =========================
   MOBILE FILTERS
========================= */

.mobile-filters,
.mobile-main-calendar,
.mobile-filters-modal {
  display: none;
}

@media (max-width: 768px) {
  .filters {
    display: none !important;
  }

  .mobile-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 20;
    margin-top: -42px;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.98);
    padding: 18px;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.14);
  }

  .mobile-filters__dates,
.mobile-filters__row select,
.mobile-filters__open,
.mobile-filters__search {
  width: 100%;
  min-height: 56px;
  border-radius: 22px;
  font-size: 12px;
  font-weight: 700;
  box-sizing: border-box;
  text-align: center;
  text-align-last: center;
  padding-left: 14px;
  padding-right: 14px;
}
  #mobileFiltersClear {
    font-weight: 700;
    border-radius: 22px;
  }
  .mobile-sort-buttons button {
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  
  .mobile-sort-buttons button:active {
    transform: scale(0.98);
  }
  .mobile-filters__dates {
    border: 1px solid #cdb889;
    background: #fffdf8;
    color: #2d2418;
    padding: 0 16px;
    text-align: left;
    display: flex;
    align-items: center;
  }

  .mobile-filters__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    
  }

  .mobile-filters__row select {
    border: 1px solid #cdb889;
    background: #fffdf8;
    color: #2d2418;
    padding: 0 16px;
    height: 50px;
    border-radius: 22px;
  
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  
    text-align: center;
    text-align-last: center;
  }

  .mobile-filters__search {
    margin-top: 5px;
    
  }

  .mobile-main-calendar,
  .mobile-filters-modal {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10060;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .mobile-main-calendar.is-open,
  .mobile-filters-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-main-calendar__overlay,
  .mobile-filters-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,16,10,0.42);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  

  .mobile-main-calendar__header,
  .mobile-filters-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }

  .mobile-main-calendar__header h3,
  .mobile-filters-modal__header h3 {
    margin: 0;
    font-size: 22px;
    color: #2d2418;
  }

  .mobile-main-calendar__header button,
  .mobile-filters-modal__header button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #f7edd0;
    font-size: 26px;
    color: #2d2418;
  }

  .mobile-main-calendar__summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: #fffaf1;
    border: 1px solid rgba(199,166,89,0.18);
    margin-top: 14px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #6d5c3f;
  }

  .mobile-main-calendar__actions,
  .mobile-filters-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobile-filters-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .mobile-filters-field label,
.mobile-filters-bedrooms label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #6d5c3f;

  text-align: center; /* ВОТ ЭТО ДОБАВЬ */
}

.mobile-filters-sort {
  margin-bottom: 14px;
}

.mobile-filters-sort label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #6d5c3f;
  text-align: center;
}

.mobile-sort-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-sort-buttons button {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #cdb889;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 700;
  color: #2d2418;
  background: #fffdf8;
  cursor: pointer;
  transition: 0.2s ease;
}

.mobile-sort-buttons button.is-active {
  background: linear-gradient(135deg, #c6a55c, #e5c97a, #c6a55c);
  color: #2d2418;
  border-color: #c6a55c;
  box-shadow: 0 8px 18px rgba(198, 165, 92, 0.22);
}

  .mobile-filters-field input {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid #cdb889;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 15px;
  }

  .mobile-filters-bedrooms {
    margin-bottom: 14px;
  }

  .mobile-filters-bedrooms__stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 56px;
    border: 1px solid #cdb889;
    border-radius: 16px;
    background: #fffdf8;
  }

  .mobile-filters-bedrooms__stepper button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #f7edd0;
    font-size: 24px;
  }

  .mobile-filters-bedrooms__stepper span {
    font-size: 18px;
    font-weight: 800;
    color: #2d2418;
  }
  #mobileFiltersClear {
    font-weight: 800;
  }

}
.results-empty-hint {
  text-align: center;
  padding: 28px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #030303;

  max-width: 520px;   /* ограничиваем ширину */
  margin: 40px auto;  /* центрируем по горизонтали */
}
.results-empty-hint {
  grid-column: 1 / -1;     /* занять всю ширину grid */
  justify-self: center;    /* центр внутри grid */
}

.mobile-filters__search.btn-gold,
.mobile-filters__open.btn-gold {
  width: 100%;
  min-height: 50px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-contact__phone,
.phone-center {
  color: #ffffff;
  text-decoration: none;
}

.hero-contact__phone:hover,
.hero-contact__phone:active,
.hero-contact__phone:visited {
  color: #ffffff;
  text-decoration: none;
}

.phone-center:hover,
.phone-center:active,
.phone-center:visited {
  color: #ffffff;
  text-decoration: none;
}
#dates {
  text-align: center !important;
  text-align-last: center !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

#dates::placeholder {
  text-align: center;
}
.mobile-filters__dates {
  justify-content: center;
  text-align: center;
}

#mobileDatesBtnText {
  width: 100%;
  text-align: center;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.price {
  margin-top: 8px;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.price-main {
  font-size: 20px;
  font-weight: 800;
  color: #c6a55c;
  line-height: 1.1;
}

.price-note {
  font-size: 13px;
  font-weight: 600;
  color: #8a6d3b;
}

.price-separator {
  margin: 0 4px;
  color: #cbb57c;
  font-size: 14px;
}

.price-total {
  font-size: 16px;
  font-weight: 700;
  color: #6d5c3f;
}

.price-total-note {
  font-size: 16px;
  color: #9b927f;
}
/* HERO REVIEWS */
.hero-reviews {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 10px;
  flex-wrap: wrap;
}

.hero-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px; 
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);

  width: auto;        
  min-width: unset;   
}

.hero-review-badge:hover {
  transform: translateY(-3px);
}

.hero-review-badge img {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.hero-review-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.hero-review-title {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  margin: 0 0 4px;
}

.hero-review-rating {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-review-rating .rating-value {
  color: #111;
  font-weight: 700;
}

.hero-review-rating .stars {
  color: #D4AF37;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .hero-reviews {
    gap: 10px;
    margin: 14px 0 8px;
  }

  .hero-review-badge {
    min-width: unset;
    width: 100%;
    max-width: 290px;
    padding: 10px 14px;
  }

  .hero-review-badge img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }
}
@media (max-width: 768px) {

  .hero-reviews {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap; 
  }

  .hero-review-badge {
    flex: 1;                 
    max-width: 160px;        
    padding: 6px 8px;        
    gap: 6px;
  }

  .hero-review-title {
    font-size: 10px;
  }

  .hero-review-rating {
    font-size: 12px;
  }

  .hero-review-badge img {
    width: 18px;
    height: 18px;
  }

  .stars {
    letter-spacing: 0.5px;
  }

}
.desktop-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.2s ease;
}

.desktop-filters-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.desktop-filters-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,16,10,0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.desktop-filters-modal__panel {
  position: relative;
  z-index: 2;
  width: min(560px, 92vw);
  margin: 10vh auto 0;
  padding: 20px;
  border-radius: 24px;
  background: #fffdf7;
  border: 1px solid rgba(199,166,89,0.24);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  box-sizing: border-box;
}

.desktop-filters-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.desktop-filters-modal__header h3 {
  margin: 0;
  font-size: 24px;
  color: #2d2418;
}

#desktopFiltersModalClose {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f7edd0;
  font-size: 26px;
  color: #2d2418;
  cursor: pointer;
}

.desktop-filters-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.desktop-filters-field label,
.desktop-filters-bedrooms label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #6d5c3f;
}

.desktop-filters-field input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid #cdb889;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 15px;
  background: #fffdf8;
}

.desktop-filters-bedrooms {
  margin-bottom: 18px;
}

.desktop-filters-bedrooms__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  border: 1px solid #cdb889;
  border-radius: 18px;
  background: #fffdf8;
}

.desktop-filters-bedrooms__stepper button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f7edd0;
  font-size: 24px;
  cursor: pointer;
}

.desktop-filters-bedrooms__stepper span {
  font-size: 20px;
  font-weight: 800;
  color: #2d2418;
}

.desktop-filters-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* =========================
   DESKTOP ADVANCED FILTERS
========================= */

.desktop-advanced-filters {
  display: none;
  grid-template-columns: auto 1fr 1fr auto auto;
  gap: 14px;
  align-items: end;
  margin-top: 12px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
  border: 1px solid rgba(199, 166, 89, 0.18);
}

.desktop-advanced-filters__label {
  font-size: 15px;
  font-weight: 800;
  color: #7a6641;
  padding-bottom: 14px;
  white-space: nowrap;
}

.desktop-advanced-filters__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desktop-advanced-filters__field label {
  font-size: 13px;
  font-weight: 700;
  color: #6d5c3f;
}

.desktop-advanced-filters__field input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid #cdb889;
  font-size: 15px;
  font-weight: 700;
  color: #2d2418;
  background: #fffdf8;
  box-sizing: border-box;
}

.desktop-advanced-filters__field--bedrooms {
  min-width: 220px;
}

.desktop-bedrooms-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #cdb889;
  border-radius: 18px;
  background: #fffdf8;
}

.desktop-bedrooms-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f7edd0;
  font-size: 22px;
  color: #2d2418;
  cursor: pointer;
}

.desktop-bedrooms-stepper span {
  min-width: 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #2d2418;
}

.desktop-advanced-filters__reset {
  min-height: 54px;
  align-self: end;
  white-space: nowrap;
}

/* =========================
   MOBILE ACTIONS AFTER SEARCH
========================= */

.mobile-search-actions {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1px;
}

.mobile-search-actions .mobile-filters__search {
  width: 100%;
  min-height: 40px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.12s ease, box-shadow 0.12s ease;
  transform: scale(1); 
}

.mobile-search-actions .mobile-filters__search:active {
  transform: scale(0.96);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  .desktop-advanced-filters {
    grid-template-columns: 1fr 1fr;
  }

  .desktop-advanced-filters__label {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }

  .desktop-advanced-filters__field--bedrooms {
    min-width: 0;
  }

  .desktop-advanced-filters__reset {
    width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .desktop-advanced-filters {
    display: none !important;
  }

  .mobile-search-actions {
    display: grid;
  }
}
/* ===== DESKTOP FILTERS FINAL FIX ===== */
#desktopAdvancedFilters {
  display: grid;
  grid-template-columns: 1fr 1fr 180px 170px;
  grid-template-rows: auto 58px;
  gap: 10px 16px;
  align-items: center;
  margin: 10px 0 25px;
}

/* Заголовки */
#desktopAdvancedFilters .daf-title {
  font-size: 16px;
  font-weight: 800;
  color: #7a6641;
  text-align: center;
}

/* Раскладка заголовков */
#desktopAdvancedFilters .daf-title-price {
  grid-column: 1 / span 2;
}

#desktopAdvancedFilters .daf-title-rooms {
  grid-column: 3;
}

/* Поля */
#desktopAdvancedFilters #desktopPriceFrom {
  grid-column: 1;
}

#desktopAdvancedFilters #desktopPriceTo {
  grid-column: 2;
}

#desktopAdvancedFilters .desktop-bedrooms-stepper {
  grid-column: 3;
}

#desktopAdvancedFilters #desktopResetAllBtn {
  grid-column: 4;
}

/* Стили инпутов */
#desktopAdvancedFilters input {
  height: 58px;
  padding: 0 18px;
  border-radius: 24px;
  border: 1px solid #cdb889;
  font-size: 16px;
  font-weight: 600;
  background: #fffdf8;
  text-align: center;
}

/* Степпер */
#desktopAdvancedFilters .desktop-bedrooms-stepper {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 24px;
  border: 1px solid #cdb889;
  background: #fffdf8;
}

#desktopAdvancedFilters .desktop-bedrooms-stepper button {
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
}

#desktopAdvancedFilters .desktop-bedrooms-stepper span {
  font-weight: 700;
}

/* Кнопка */
#desktopAdvancedFilters #desktopResetAllBtn {
  height: 58px;
}

/* mobile скрываем */
@media (max-width: 992px) {
  #desktopAdvancedFilters {
    display: none !important;
  }
}
/* ===== FIX NATIVE BUTTON BORDER / SHADOW ===== */
.btn-outline,
.calendar-clear-btn,
#mobileFiltersClear,
#mobileResetAllBtn,
#desktopResetAllBtn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(199, 166, 89, 0.45);
  background: #fffdf8;
  box-shadow: none;
  outline: none;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-outline:hover,
.calendar-clear-btn:hover,
#mobileFiltersClear:hover,
#mobileResetAllBtn:hover,
#desktopResetAllBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(198, 165, 92, 0.14);
}

.btn-outline:active,
.calendar-clear-btn:active,
#mobileFiltersClear:active,
#mobileResetAllBtn:active,
#desktopResetAllBtn:active {
  transform: scale(0.98);
  box-shadow: none;
}

.btn-outline:focus,
.calendar-clear-btn:focus,
#mobileFiltersClear:focus,
#mobileResetAllBtn:focus,
#desktopResetAllBtn:focus {
  outline: none;
  box-shadow: none;
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 8px;
}

.pagination__btn {
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(199, 166, 89, 0.35);
  background: #fffdf8;
  color: #2d2418;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.pagination__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(198, 165, 92, 0.12);
}

.pagination__btn.is-active {
  background: linear-gradient(135deg, #c6a55c, #e5c97a, #c6a55c);
  border-color: transparent;
  color: #111;
}

.pagination__btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  transform: none;
}
