.kvidinge-search-form {
  display: grid;
  gap: 12px;
  max-width: 600px;
  margin: 20px auto;
}
.kvidinge-search-form select,
.kvidinge-search-form input {
  padding: 10px;
}

form.kvidinge-search-form button {
  color: #ffffff;
  border-color: #016633;
  border-radius: 0px;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  background-color: #016633;
  padding: 10px 15px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

form.kvidinge-search-form button:hover, form.kvidinge-search-form button:focus{
background-color: #333333;
}

.property-archive {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: auto;
}
.property-item {
  border: 1px solid #ccc;
  padding: 15px;
}

.kvidinge-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 20px;
}

.kvidinge-checkbox-group label {
  flex: 0 0 calc(50% - 10px); /* Two columns */
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .kvidinge-checkbox-group label {
    flex: 0 0 100%;
  }
}

.kvidinge-results h2 {
  font-size: 26px;
}

.objecttype-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 20px;
}

.objecttype-radio label {
  flex: 0 0 calc(25% - 15px); /* 4 columns on desktop */
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .objecttype-radio label {
    flex: 0 0 calc(50% - 10px); /* 2 columns on tablet/mobile */
  }
}

.range-group label,
.field-group label,
fieldset.requirements-checkbox legend,
fieldset.kvidinge-checkbox-group legend,
fieldset.kvidinge-radio-group legend {
  display: block;
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.range-group select {
  width: 49%;
}

.field-group input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 10px 15px;
}

.range-slide-area {
  margin-top: 30px;
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.range-slide-area fieldset {
  width: 100%;
}

.range-slide-area legend {
  font-size: 18px;
  font-weight: 600;
}

.price-input {
  width: 100%;
  display: flex;
  margin: 0px 0 10px;
}
.price-input .field {
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
}
.range-slide-area .field input {
  width: 100%;
  height: 100%;
  outline: none;
  font-size: 19px;
  margin-left: 12px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #999;
  -moz-appearance: textfield;
}
.range-slide-area input[type="number"]::-webkit-outer-spin-button,
.range-slide-area input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.price-input .separator {
  width: 130px;
  display: flex;
  font-size: 19px;
  align-items: center;
  justify-content: center;
}
.range-slide-area .slider {
  height: 5px;
  position: relative;
  background: #ddd;
  border-radius: 5px;
}
.range-slide-area .slider .progress {
  height: 100%;
  left: 25%;
  right: 25%;
  position: absolute;
  border-radius: 5px;
  background: #17a2b8;
}
.range-input {
  position: relative;
}
.range-input input {
  position: absolute;
  width: 100%;
  height: 5px;
  top: -13px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.range-slide-area input[type="range"]::-webkit-slider-thumb {
  height: 17px;
  width: 17px;
  border-radius: 50%;
  background: #17a2b8;
  pointer-events: auto;
  -webkit-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
.range-slide-area input[type="range"]::-moz-range-thumb {
  height: 17px;
  width: 17px;
  border: none;
  border-radius: 50%;
  background: #17a2b8;
  pointer-events: auto;
  -moz-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

button.toggle-areas {
  background: #036633;
  color: #ffffff;
  padding: 12px 15px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

button.toggle-areas:hover,
button.toggle-areas:focus {
  background: #333333;
}

form.kvidinge-filter-form [type="submit"] {
  background: #99cc34;
  padding: 12px 15px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}
form.kvidinge-filter-form [type="submit"]:hover,
form.kvidinge-filter-form [type="submit"]:focus {
  background: #333333;
  color: #ffffff;
}

form.kvidinge-filter-form {
  margin-bottom: 40px;
}

.area-checkbox-group label {
  display: inline-block;
  width: calc(25% - 10px);
  margin-bottom: 5px;
}
@media (max-width: 768px) {
  .area-checkbox-group label {
    width: calc(50% - 10px);
  }
}
.kvidinge-property-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.kvidinge-property-table a {
  color: #036633;
  font-weight: 700;
}

.kvidinge-property-table a:hover,
.kvidinge-property-table a:focus {
  color: #000000;
  text-decoration: none;
}

.kvidinge-property-table th {
  color: #ffffff !important;
}
.kvidinge-property-table th,
.kvidinge-property-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}
.kvidinge-property-table thead {
  background: #555;
  color: #fff;
}
.range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.range-values {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.range-values label input {
  width: 100px;
}

/* Property single page css */

secttion.property-banner-area {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.35) 100%
    ),
    url(/wp-content/uploads/2023/11/imgcard-1.jpeg) !important;
  padding-top: 10.4%;
  padding-right: 2px;
  padding-bottom: 5.4%;
  margin-right: 30px;
  margin-bottom: 30px;
  margin-left: 30px;
  display: block;
  color: #ffffff;
}

.single-property {
  padding: 40px 0;
  margin: 0 30px 30px;
  background: #eeeeee;
}

.single-property h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.property-cta {
  background: #036633;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.cta-text {
  font-size: 18px;
  font-weight: 600;
}

.cta-btn input[type=submit] {
  background: #fff;
  border: none;
  padding: 8px 15px;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  transition: all .3s ease;
}

.cta-btn input[type=submit]:hover, .cta-btn input[type=submit]:focus {
  background: #99cc34;
}

.property-details {
  margin-top: 30px;
  display: flex;
  gap: 30px;
}

.property-info {
  width: 100%;
}

.property-other-info {
  width: 100%;
}
.property-info p {
  padding: 0px;
  margin-bottom: 8px;
}
.fakta-table table tr td {
  padding: 5px 0;
}
.fakta-table table tr td:first-child {
  font-weight: 700;
  min-width: 90px;
}

.property-info-title h3 {
  font-size: 22px;
}

.property-features {
  margin-bottom: 30px;
}

.property-features h3 {
  font-size: 22px;
}

.property-features ul {
  padding-left: 0px;
}

.property-features ul li {
  list-style: none;
  position: relative;
  padding-left: 15px;
}
.property-features ul li:before {
  content: "";
  background-image: url(img/list_arrow.png);
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  position: absolute;
  left: 0;
  top: 8px;
  height: 10px;
  width: 10px;
}

.property-info strong {
  display: inline-block;
  width: 150px;
}

.property-area-info h3 {
  padding-bottom: 0px !important;
  font-size: 22px;
  margin-bottom: 15px;
}

.property-area-info a {
  color: #ffffff !important;
  border-width: 0px !important;
  border-color: #016633;
  border-radius: 0px;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  background-color: #016633;
  padding: 10px 30px;
  display: inline-block;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.property-area-info {
  margin-bottom: 30px;
}

.property-area-info a:hover,
.property-area-info a:focus {
  background: #333333;
}

.property-image-area {
  display: flex;
  gap: 30px;
}

.exterior-img {
  width: 100%;
}

.planning-img {
  width: 100%;
}

.exterior-img h3 {
  font-size: 22px;
  margin-bottom: 0;
}

.planning-img h3 {
  margin: 0px;
  font-size: 22px;
}

.planning-img a,
.exterior-img a {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  height: 0;
  display: block;
}

.planning-img a img,
.exterior-img a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}
.popup-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 90%;
}
.popup-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}
.popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #000;
  font-size: 24px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 28px;
  cursor: pointer;
}

/* Fact popup css */

#facts-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.facts-popup-box {
  position: relative;
  max-width: 800px;
  width: 90%;
  height: 90%;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

button.open-facts-popup {
  background: #333333;
  color: #ffffff;
  border-width: 0px !important;
  border-color: #333333;
  border-width: 1px !important;
  border-radius: 0px;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  padding: 10px 30px;
  display: inline-block;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: none !important;
}

#close-facts-popup:hover,
#close-facts-popup:focus {
  background: #730000;
}

#facts-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.property-map-area {
  margin-top: 30px;
}
.property-map-area h3 {
  font-size: 22px;
}

button.open-facts-popup:hover,
button.open-facts-popup:focus {
  background: #036633;
  border-color: #036633;
}

#close-facts-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: #000;
  font-weight: 700;
  color: #fff;
  width: 40px;
  height: 40px;
  padding-bottom: 6px;
  box-shadow: none;
  border: none;
  font-size: 30px;
  line-height: 0;
  border-radius: 1000px;
  cursor: pointer;
}

/* Responsive CSS */

@media (max-width: 980px) {
  .range-slide-area {
    flex-direction: column;
  }

  .kvidinge-property-table thead {
    display: none;
  }

  .kvidinge-property-table,
  .kvidinge-property-table tbody,
  .kvidinge-property-table tr,
  .kvidinge-property-table td {
    display: block;
    width: 100%;
  }

  .kvidinge-property-table tr {
    margin-bottom: 15px;
    border-bottom: 4px solid #000000;
    padding-bottom: 15px;
  }

  .kvidinge-property-table td {
    text-align: right !important;
    padding-left: 100px !important;
    position: relative;
  }

  .kvidinge-property-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 8px;
    font-weight: bold;
    white-space: nowrap;
    text-align: left;
  }

  .property-image-area {
    flex-direction: column;
  }

  .property-details {
    flex-direction: column;
  }

  secttion.property-banner-area h1 {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  secttion.property-banner-area h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  secttion.property-banner-area h1 {
    font-size: 24px;
  }

  .single-property {
    padding: 20px 0;
  }
  
  .property-cta {
      flex-direction: column;
      text-align: center;
      gap: 10px;
      padding: 15px;
  }
}
