﻿html,
body {
  overflow-x: hidden;
}

.search-hero {
  position: relative;
  min-height: 240px;
  overflow: visible;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid #dbe4eb;
}

.search-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) brightness(0.78);
  transform: scale(1.06);
}

.search-hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.search-hero .container {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.search-ui {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  width: min(1120px, calc(100% - 24px));
  margin-inline: auto;
  z-index: 80;
}

.search-bar {
  display: grid;
  grid-template-columns: 1.25fr 1.2fr 0.9fr auto;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #d5e0e8;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(13, 24, 35, 0.16);
  overflow: visible;
}

.search-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 18px;
  min-height: 74px;
  background: #fff;
  border-right: 1px solid #d7e1e8;
}

.search-item:first-child {
  border-radius: 999px 0 0 999px;
}

.search-item label {
  margin: 0;
  font-size: 13px;
  color: #3a566b;
  font-weight: 700;
}

.search-item input {
  border: 0;
  background: transparent;
  font: inherit;
  color: #243d50;
  font-weight: 600;
  padding: 0;
}

.search-item input:focus {
  outline: none;
}

.search-btn {
  border-radius: 999px;
  margin: 8px;
  min-width: 112px;
  padding: 10px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.dates-wrap,
.travelers-wrap {
  z-index: 30;
}

.travelers-wrap {
  border-right: 0;
}

.dates-trigger,
.travelers-trigger {
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: #2f4b5f;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dates-trigger::after,
.travelers-trigger::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: #2d5162;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.dates-trigger[aria-expanded="true"]::after,
.travelers-trigger[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dates-panel,
.travelers-panel {
  position: absolute;
  top: calc(100% + 14px);
  background: #fff;
  border: 1px solid #d7e2ea;
  border-radius: 24px;
  box-shadow: 0 24px 42px rgba(15, 28, 41, 0.2);
  z-index: 120;
}

.dates-panel {
  left: -20px;
  width: min(760px, 94vw);
  padding: 16px;
}

.dates-tabs {
  display: inline-flex;
  gap: 8px;
  background: #edf2f6;
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 14px;
}

.dates-tab {
  border: 0;
  background: transparent;
  color: #2d4659;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}

.dates-tab.active {
  background: #fff;
  box-shadow: 0 1px 6px rgba(21, 35, 50, 0.14);
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calendar-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #c7d5e0;
  background: #fff;
  color: #2d5162;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.calendar-month h5 {
  margin: 0 0 7px;
  text-transform: capitalize;
  font-size: 1.05rem;
}

.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 12px;
  color: #5f7789;
  margin-bottom: 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day-btn {
  border: 0;
  border-radius: 10px;
  min-height: 34px;
  background: #f4f7fa;
  color: #233d4f;
  font-weight: 600;
  cursor: pointer;
}

.day-btn.empty {
  visibility: hidden;
}

.day-btn.past {
  background: #edf1f4;
  color: #9aa9b6;
  cursor: not-allowed;
}

.day-btn.range-edge,
.day-btn.active {
  background: #2d5162;
  color: #fff;
}

.day-btn.in-range {
  background: #e6eef4;
}

.calendar-note {
  margin-top: 8px;
  color: #5c7688;
  font-size: 13px;
}

.travelers-panel {
  right: 0;
  width: min(430px, 94vw);
  padding: 14px 16px;
}

.traveler-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid #e8edf2;
}

.traveler-row:last-child {
  border-bottom: 0;
}

.traveler-row strong {
  display: block;
  color: #20384a;
}

.traveler-row small {
  color: #5f7788;
}

.counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.counter button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #b9c9d4;
  background: #fff;
  color: #2d5162;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.counter span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  color: #20384a;
}

.results-section {
  position: relative;
  z-index: 5;
  padding-top: 26px;
}

.listing-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 98px;
  background: #fff;
  border: 1px solid #d8e0e7;
  border-radius: 14px;
  padding: 16px;
  max-height: none;
  overflow: visible;
}

.filter-block {
  border-bottom: 1px solid #e5ebf0;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.filter-block:last-of-type {
  border-bottom: 0;
}

.filter-block h3,
.filter-block h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.filter-block h4 {
  font-size: 14px;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.filter-block input,
.filter-block select {
  width: 100%;
  border: 1px solid #c7d3dd;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.budget-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #2f4b5f;
  font-weight: 700;
  margin-bottom: 8px;
}

.budget-sliders {
  display: grid;
  gap: 8px;
}

.budget-sliders .label {
  margin-bottom: 0;
  font-size: 12px;
  color: #4f6778;
}

.budget-sliders input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #d7e3ec;
  padding: 0;
}

.budget-sliders input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #2d5162;
  box-shadow: 0 4px 10px rgba(17, 37, 51, 0.2);
  cursor: pointer;
}

.budget-sliders input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #2d5162;
  box-shadow: 0 4px 10px rgba(17, 37, 51, 0.2);
  cursor: pointer;
}

.budget-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #5f7788;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 14px;
}

.checkline input {
  width: 16px;
  height: 16px;
  accent-color: #2d5162;
}

.reset-btn {
  width: 100%;
}

.mobile-filters-toggle {
  display: none;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 14px;
}

.results-head h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.results-head p {
  margin: 0;
  color: #496072;
}

.sort-row {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-row label {
  font-size: 13px;
  font-weight: 700;
}

.sort-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 220px;
  border: 1px solid #c6d4de;
  border-radius: 12px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232d5162' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  color: #1f3a4c;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 36px 10px 12px;
  box-shadow: 0 2px 8px rgba(22, 40, 58, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.sort-row select:hover {
  border-color: #9fb7c7;
  box-shadow: 0 6px 16px rgba(23, 44, 63, 0.12);
}

.sort-row select:focus {
  outline: none;
  border-color: #2d5162;
  box-shadow: 0 0 0 3px rgba(45, 81, 98, 0.18), 0 8px 20px rgba(18, 34, 47, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232d5162' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.sort-row select:active {
  transform: translateY(1px);
}

.sort-row select option {
  color: #1f3a4c;
  background: #ffffff;
}

.cards-wrap {
  display: grid;
  gap: 14px;
}

.property-card {
  border: 1px solid #d8e0e7;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 290px 1fr;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(22, 35, 48, 0.08);
}

.property-media {
  position: relative;
  min-height: 220px;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.media-prev,
.media-next,
.fav-btn {
  position: absolute;
  top: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(12, 20, 28, 0.42);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.media-prev {
  left: 10px;
}

.media-next {
  left: 48px;
}

.media-prev,
.media-next {
  font-size: 0;
  line-height: 0;
}

.media-prev::before,
.media-next::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.media-prev::before {
  transform: rotate(180deg);
}

.fav-btn {
  right: 10px;
  display: grid;
  place-items: center;
}

.fav-btn img {
  width: 16px;
  height: 16px;
}

.property-info {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.property-main h3 {
  margin: 0 0 4px;
  font-size: 2.2rem;
  color: #122330;
  line-height: 1.1;
}

.property-main p {
  margin: 0 0 8px;
}

.property-main {
  padding: 14px 14px 12px;
}

.property-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.meta-line {
  color: #4e6577;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-line img {
  width: 14px;
  height: 14px;
}

.property-confirm {
  margin: 2px 0 6px;
  color: #0b9b43;
  font-weight: 700;
  font-size: 14px;
}

.feature-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: #f5f8fb;
  border: 1px solid #dbe6ee;
  color: #35566f;
  border-radius: 999px;
  padding: 4px 9px;
}

.feature-chip .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-chip .feature-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.property-main .desc {
  font-size: 14px;
  color: #304959;
  line-height: 1.35;
}

.property-bottom {
  margin-top: auto;
  border-top: 1px solid #dbe5ec;
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: stretch;
}

.card-amenities {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
}

.card-amenity-icon {
  position: relative;
  width: 100%;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-amenity-icon::before,
.card-amenity-icon::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 15;
}

.card-amenity-icon::before {
  content: attr(data-tip);
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  background: rgba(25, 25, 25, 0.96);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 4px;
}

.card-amenity-icon::after {
  content: "";
  bottom: calc(100% + 4px);
  transform: translate(-50%, 4px);
  width: 10px;
  height: 10px;
  background: rgba(25, 25, 25, 0.96);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.card-amenity-icon:hover::before,
.card-amenity-icon:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.card-amenity-icon svg {
  width: 27px;
  height: 27px;
  display: block;
  color: #1a1a1a;
}

.card-amenity-icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  display: block;
}

.card-amenity-icon:hover svg,
.card-amenity-icon:hover img {
  transform: scale(1.08);
  transition: transform 0.15s ease;
}

.property-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  border-left: 1px solid #dbe5ec;
  padding: 10px 14px;
  justify-content: center;
}

.score-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.score-row strong {
  font-size: 14px;
}

.score-box {
  background: #2d5162;
  color: #fff;
  border-radius: 8px 8px 8px 0;
  padding: 6px 8px;
  font-weight: 700;
}

.price {
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  color: #1e2f3a;
}

.price small {
  display: block;
  font-size: 12px;
  color: #557286;
  font-weight: 500;
  line-height: 1.35;
}

.detail-btn {
  width: 100%;
  border-radius: 0;
  padding: 11px 12px;
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 18, 0.6);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 1300;
}

.overlay.open {
  display: grid;
}

.detail-modal {
  width: min(1180px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  position: relative;
  padding: 24px;
}

.close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d9e0e5;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}

.detail-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.detail-head h2 {
  margin: 0;
  font-size: 2rem;
}

.detail-head p {
  margin: 0;
}

.detail-score {
  border: 1px solid #d4e0e8;
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 180px;
  text-align: right;
}

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

.gallery {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, 1fr);
  gap: 8px;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

.gallery img:first-child {
  grid-row: span 2;
  height: 308px;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.amenity-box {
  border: 1px solid #d9e0e5;
  border-radius: 10px;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.amenity-box .amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.amenity-box .amenity-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.amenity-box .amenity-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.sticky-inquiry {
  position: sticky;
  top: 16px;
  border: 1px solid #d9e0e5;
  border-radius: 14px;
  padding: 14px;
}

.sticky-inquiry .field {
  margin-bottom: 10px;
}

.similar-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.similar-item {
  border: 1px solid #d9e0e5;
  border-radius: 10px;
  padding: 10px;
}

.lightbox img {
  width: min(1000px, 100%);
  max-height: 90vh;
  object-fit: contain;
}

.lightbox {
  background: rgba(12, 15, 20, 0.94);
  grid-template-rows: 1fr;
  padding: 0;
}

.lightbox-topbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: rgba(18, 22, 28, 0.86);
  color: #f2f6fa;
  z-index: 3;
}

#lightboxCounter {
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.lightbox .lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
}

.lightbox img {
  width: min(1160px, calc(100vw - 120px));
  max-height: calc(100vh - 92px);
  object-fit: contain;
  margin: 42px auto 0;
  display: block;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.property-full {
  padding-bottom: 60px;
}

.property-full-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.property-full-actions {
  display: flex;
  gap: 10px;
}

.property-hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 280px;
  gap: 8px;
  max-width: 100%;
}

.property-hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.property-hero-gallery .hero-main {
  grid-row: 1 / span 2;
}

.property-hero-gallery.gallery-single {
  grid-template-columns: 1fr;
  grid-auto-rows: 420px;
}

.property-hero-gallery.gallery-single .hero-main {
  grid-row: auto;
}

.property-hero-gallery.gallery-double {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 260px;
}

.property-hero-gallery.gallery-rich {
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-auto-rows: 190px;
}

.property-hero-gallery.gallery-many {
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  grid-auto-rows: 170px;
}

.property-hero-gallery.gallery-rich .hero-main,
.property-hero-gallery.gallery-many .hero-main {
  grid-row: 1 / span 2;
}

.hero-more {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 3;
  background: #ffffff;
  border-color: #ffffff;
  color: #123247;
  box-shadow: 0 10px 24px rgba(12, 28, 42, 0.24);
}

.hero-more:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f2b3f;
}

.property-full-top {
  position: relative;
}

.property-specs-bar {
  background: #ecf1f5;
  border-top: 1px solid #d8e0e7;
  border-bottom: 1px solid #d8e0e7;
}

.property-specs-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 14px 0;
}

.property-specs-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d4d60;
  font-weight: 700;
}

.property-specs-bar img {
  width: 18px;
  height: 18px;
}

.property-tabs {
  background: #fff;
  border-bottom: 1px solid #dce4ea;
}

.property-tabs .container {
  display: flex;
  gap: 20px;
}

.property-tabs a {
  padding: 14px 4px;
  color: #2d5162;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.property-tabs a:hover {
  border-color: #2d5162;
}

.property-full-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  padding-top: 28px;
  align-items: start;
}

.property-full-main {
  display: grid;
  gap: 16px;
}

.detail-headline p,
.detail-headline h2 {
  margin: 0;
  color: #4f6778;
}

.detail-headline h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: #122330;
}

.detail-headline h2 {
  font-size: 1.15rem;
}

.detail-block {
  padding: 22px;
}

.detail-block h3 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.property-booking-card {
  position: sticky;
  top: 96px;
  border: 1px solid #d5e0e8;
  border-radius: 16px;
  background: #fff;
  padding: 0;
  overflow: visible;
  box-shadow: 0 16px 30px rgba(16, 29, 41, 0.12);
  z-index: 40;
}

.book-price {
  background: #2d5162;
  color: #fff;
  padding: 14px 16px;
  display: grid;
  gap: 2px;
}

.book-price small {
  opacity: 0.9;
}

.book-price strong {
  font-size: 2rem;
  line-height: 1;
}

.property-booking-card form {
  padding: 16px;
}

.monthly-contact-form {
  padding: 16px;
}

.monthly-contact-note {
  margin: 0 0 14px;
  color: #2f4b5f;
  font-weight: 600;
  line-height: 1.45;
}

.monthly-contact-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.monthly-contact-form .field + .field {
  margin-top: 0;
}

.monthly-contact-form input,
.monthly-contact-form textarea {
  width: 100%;
}

.monthly-contact-form .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.monthly-contact-form .check input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.monthly-contact-form .check label {
  margin: 0;
  line-height: 1.45;
}

.property-booking-card form .field {
  position: relative;
}

.property-booking-card form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
  margin-bottom: 10px;
}

.property-booking-card form .field + .field {
  margin-top: 10px;
}

.property-booking-card form .form-grid .field + .field {
  margin-top: 0;
}

.property-booking-card form select {
  min-height: 56px;
}

.booking-dates-trigger {
  width: 100%;
  border: 1px solid #c7d3dd;
  border-radius: 10px;
  background: #fff;
  color: #2f4b5f;
  text-align: left;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-caret {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  background-color: #2d5162;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.booking-dates-trigger[aria-expanded="true"] .booking-caret {
  transform: rotate(180deg);
}

.booking-dates-panel {
  right: 0;
  left: auto;
  width: min(720px, calc(100vw - 40px));
  margin-top: 8px;
  z-index: 2500;
}

.booking-total {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #102430;
  padding: 8px 2px 2px;
  margin-top: 4px;
  display: none;
  align-items: flex-end;
  justify-content: space-between;
}

.booking-total strong {
  font-size: 2.55rem;
  line-height: 1;
  color: #263d4f;
}

.booking-total small {
  display: block;
  color: #4f6778;
  margin-top: 0;
  font-size: 1.05rem;
}

.booking-confirm {
  margin: 8px 0 4px;
  color: #2b4c3f;
  font-weight: 700;
}

.booking-msg {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #2d5162;
}

.booking-reserve-btn {
  width: 100%;
  margin-top: 12px;
  border-radius: 0;
  background: #2d5162;
  box-shadow: none;
  letter-spacing: 0.02em;
}

.booking-reserve-btn:hover {
  background: #23424f;
}

.property-booking-card form.booking-ready .booking-reserve-btn {
  background: #2d5162;
}

.property-booking-card form.booking-ready .booking-total {
  display: flex;
}

.booking-check {
  margin-top: 12px;
}

.property-booking-card .btn.btn-primary {
  margin-top: 14px;
}

.book-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #dce4ea;
  margin-top: 14px;
}

.book-actions a {
  text-align: center;
  padding: 10px 8px;
  font-weight: 600;
  color: #2d5162;
}

.similar-item-link {
  border: 1px solid #dce4ea;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.similar-item-link strong {
  font-size: 1.1rem;
  color: #15314a;
}

#reviewsSummary {
  margin-bottom: 14px;
}

.reviews-score-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.reviews-score-head strong {
  font-size: 2rem;
}

.reviews-score-head span {
  color: #4f6778;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  border-top: 1px solid #e1e8ed;
  border-bottom: 1px solid #e1e8ed;
  padding: 14px 0;
}

.reviews-bars {
  display: grid;
  gap: 8px;
}

.reviews-bars > div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
}

.reviews-bars .bar {
  height: 6px;
  background: #e6edf2;
  border-radius: 999px;
  overflow: hidden;
}

.reviews-bars .bar i {
  display: block;
  height: 100%;
  background: #2d5162;
}

.reviews-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reviews-metrics div {
  border-left: 1px solid #e1e8ed;
  padding-left: 10px;
}

.reviews-metrics strong {
  display: block;
  font-size: 1.3rem;
}

.reviews-metrics span {
  color: #4f6778;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 14px;
}

.review-item {
  border-bottom: 1px solid #e3eaf0;
  padding-bottom: 10px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-head .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d9e7f0;
  color: #23424f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.review-head p {
  margin: 0;
  color: #5e7789;
}

.review-meta {
  margin: 8px 0 4px;
  color: #344b5b;
}

.review-text {
  margin: 0;
  color: #253e50;
}

.review-more {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: #1f4d6c;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.review-form {
  margin-top: 16px;
  border-top: 1px solid #e1e8ed;
  padding-top: 14px;
}

@media (max-width: 1120px) {
  .property-full-layout {
    grid-template-columns: 1fr;
  }

  .property-booking-card {
    position: static;
  }

  .property-hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }

  .property-hero-gallery.gallery-rich,
  .property-hero-gallery.gallery-many {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .property-hero-gallery.gallery-single {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .property-hero-gallery.gallery-double {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .property-hero-gallery .hero-main {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .search-hero {
    min-height: 320px;
  }

  .search-hero .container {
    min-height: 320px;
  }

  .search-ui {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    padding-top: 26px;
  }

  .search-bar {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .search-item {
    border-right: 0;
    border-bottom: 1px solid #e5edf3;
  }

  .search-btn {
    border-radius: 14px;
    margin: 12px;
    min-height: 52px;
  }

  .dates-panel,
  .travelers-panel {
    left: 0;
    right: auto;
    width: min(560px, calc(100vw - 28px));
  }

  .calendar-months {
    grid-template-columns: 1fr;
  }

  .listing-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    max-height: none;
  }

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

  .results-section {
    padding-top: 22px;
  }
}

@media (max-width: 860px) {
  .search-hero {
    min-height: 220px;
  }

  .search-hero .container {
    min-height: 220px;
  }

  .search-ui {
    margin-top: 0;
  }

  .search-item {
    padding: 12px 14px;
  }

  .property-card {
    grid-template-columns: 1fr;
  }

  .property-info {
    min-height: auto;
  }

  .property-side {
    align-items: flex-end;
    text-align: right;
  }

  .property-main h3 {
    font-size: 1.9rem;
  }

  .property-bottom {
    grid-template-columns: 1fr;
  }

  .card-amenities {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .property-side {
    border-left: 0;
    border-top: 1px solid #dbe5ec;
  }

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

  .gallery img:first-child {
    grid-column: span 2;
  }

  .similar-list,
  .amenity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .search-hero {
    min-height: 240px;
  }

  .search-hero .container {
    min-height: 240px;
  }

  .search-hero img {
    transform: scale(1.1);
  }

  .search-ui {
    width: calc(100% - 18px);
    max-width: 420px;
    padding-top: 10px;
  }

  .search-bar {
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(13, 24, 35, 0.11);
  }

  .search-item:first-child {
    border-radius: 10px 10px 0 0;
  }

  .search-item {
    min-height: 46px;
    padding: 5px 10px;
    gap: 2px;
  }

  .search-item label {
    font-size: 11px;
  }

  .search-item input,
  .dates-trigger,
  .travelers-trigger {
    font-size: 0.86rem;
  }

  .search-btn {
    margin: 7px;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  .dates-panel,
  .travelers-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 16px);
    max-width: 560px;
    border-radius: 16px;
  }

  .dates-panel {
    padding: 12px;
  }

  .travelers-panel {
    padding: 10px 12px;
  }

  .calendar-nav-btn {
    width: 32px;
    height: 32px;
  }

  .day-btn {
    min-height: 32px;
  }

  .results-section {
    padding-top: 14px;
  }

  .filters {
    border-radius: 12px;
    padding: 12px;
    display: none;
  }

  .filters.open {
    display: block;
  }

  .mobile-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    margin-left: auto;
  }

  .results-head h1 {
    font-size: 1.9rem;
    width: 100%;
  }

  .sort-row {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 2px;
  }

  .sort-row label {
    font-size: 13px;
    flex: 0 0 auto;
  }

  .sort-row select {
    min-width: 0;
    width: min(100%, 176px);
    max-width: 176px;
    font-size: 13px;
    padding: 8px 30px 8px 9px;
    background-position: right 10px center;
    background-size: 12px;
  }

  .mobile-filters-toggle {
    margin-left: 0;
    order: 3;
  }

  .sort-row {
    order: 2;
  }

  .results-head p {
    width: 100%;
    order: 1;
  }
}

@media (max-width: 520px) {
  .results-head {
    gap: 8px 10px;
  }

  .results-head h1 {
    font-size: 1.75rem;
  }

  .sort-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .sort-row label {
    font-size: 12px;
  }

  .sort-row select {
    width: min(100%, 168px);
    max-width: 168px;
    font-size: 12px;
    padding: 7px 28px 7px 8px;
    background-size: 11px;
    background-position: right 8px center;
  }

  .property-main {
    padding: 12px 12px 10px;
  }

  .property-main h3 {
    font-size: 2rem;
  }

  .property-media img {
    object-position: center center;
  }

  .card-amenities {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 10px 12px;
  }

  .card-amenity-icon {
    height: 36px;
  }

  .card-amenity-icon svg,
  .card-amenity-icon img {
    width: 24px;
    height: 24px;
  }

  .property-side {
    padding: 10px 12px;
  }

  .price {
    font-size: 38px;
  }

  .property-full-head {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .property-full-actions {
    width: 100%;
    justify-content: space-between;
  }

  .property-full-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .property-hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
    gap: 6px;
  }

  .property-hero-gallery.gallery-rich,
  .property-hero-gallery.gallery-many {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .property-hero-gallery.gallery-single {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .property-hero-gallery.gallery-double {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 170px;
  }

  .hero-more {
    right: 10px;
    bottom: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
  }

  .property-specs-bar .container {
    gap: 14px;
    padding: 10px 0;
  }

  .property-tabs .container {
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .property-full-layout {
    gap: 14px;
    padding-top: 16px;
  }

  .detail-block {
    padding: 14px;
    border-radius: 14px;
  }

  .detail-block h3 {
    font-size: 1.6rem;
  }

  .booking-dates-panel {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: none;
    border-radius: 14px;
    max-height: min(72vh, 520px);
    overflow-y: auto;
  }

  .property-booking-card form .form-grid {
    margin-top: 14px;
    margin-bottom: 12px;
  }

  .lightbox {
    padding: 56px 12px 14px;
  }

  .lightbox img {
    width: min(92vw, 560px);
    max-height: calc(100vh - 190px);
    margin: 0 auto;
  }

  .lightbox-nav {
    top: 50%;
  }

  .property-booking-card form {
    padding: 12px;
  }

  .booking-total strong {
    font-size: 2.1rem;
  }

  .book-actions a {
    padding: 9px 6px;
  }
}

@media (max-width: 480px) {
  .search-hero {
    min-height: 230px;
  }

  .search-hero .container {
    min-height: 230px;
  }

  .search-ui {
    width: calc(100% - 22px);
    max-width: 380px;
  }

  .search-item {
    min-height: 42px;
    padding: 5px 8px;
  }

  .search-item label {
    font-size: 10px;
  }

  .search-item input,
  .dates-trigger,
  .travelers-trigger {
    font-size: 0.86rem;
  }

  .search-btn {
    min-height: 32px;
    font-size: 0.82rem;
  }
}






