/* Fixed: grid now on the FORM (not wrapper) */
.cv-stays-search-form.cv-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
}

/* Layout toggle support
.cv-stays-search-form.cv-grid.layout-inline {
  grid-template-columns: 1.6fr 1.2fr 1fr auto;
}
 */
.cv-stays-search-form.cv-grid.layout-equal {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Basic field styles */
.cv-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #E3E7EB;
  border-radius: 16px;
  padding: 10px 14px;
}

.cv-field input[type="text"],
.cv-field select,
.cv-guests-toggle {
  width: 100%;
  height: 50px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
}

.cv-ic {
  opacity: .6;
}

.cv-submit {
  background: #273F4F;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 0 22px;
  font-weight: 600;
  height: 70px;
  transition: 0.2s ease-in-out;
}

.cv-submit:hover {
  filter: brightness(0.9);
}

/* Guests popover */
.cv-field--guests {
  position: relative;
}

.cv-guests-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 9999;
  width: auto;
  background: #fff;
  border: 1px solid #E3E7EB;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.cv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
}

.cv-ctr {
  display: flex;
  align-items: center;
  gap: 1px;
  padding-left: 10px;
}

.cv-ctr input {
  width: 44px;
  text-align: center;
  background: #F5F7F9;
  border: none;
  border-radius: 8px;
  height: 34px;
}

.cv-minus,
.cv-plus,
.cv-apply {
  min-width: 34px;
  /* height: 34px; */
  border: 1px solid #E3E7EB;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}

/* Results grid */
.cv-prop-grid {
  display: grid;
  gap: 24px;
}

.cv-prop-grid.cols-1 {
  grid-template-columns: 1fr;
}

.cv-prop-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cv-prop-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cv-prop-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  /* Tablet */
  .cv-stays-search-form.cv-grid.layout-inline {
    grid-template-columns: repeat(2, 1fr);
  }
  .cv-prop-grid.cols-3,
  .cv-prop-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
.cv-prop-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
	.cv-prop-title {
	font-size:1.4em !important;	
	}
}

@media (max-width: 600px) {
  /* Mobile */
  .cv-stays-search-form.cv-grid.layout-inline {
    grid-template-columns: 1fr;
  }
  .cv-submit {
    width: 100%;
  }
  .cv-prop-grid {
    grid-template-columns: 1fr;
  }
	.cv-prop-grid.cols-2 {
  grid-template-columns: 1fr;
}
	.cv-prop-title {
	font-size:1.4em !important;	
	}
}

/* Result cards */
.cv-prop-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.cv-prop-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.cv-prop-title {
  font-size: 1.4em;
  margin: .6rem 0;
}

.cv-prop-title a {
	color: var( --e-global-color-primary );
}

.cv-prop-title a:hover {
	color: var( --e-global-color-secondary );
}

.cv-prop-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #273F4F;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.cv-prop-btn:hover {
  filter: brightness(.95);
}

/* Pagination */
.cv-pagination ul {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
}

.cv-pagination a,
.cv-pagination span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
}

.cv-pagination .current {
  background: #273F4F;
  color: #fff;
  border-color: #273F4F;
}

.cv-prop-meta{
  margin: 6px 0 6px;
  font-weight: 600;
  color: #273F4F;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cv-prop-meta .cv-dot{
  opacity: .6;
  margin: 0 4px;
}

