@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&display=swap');

/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
:root {
  --rss-img-height: 262px;
  --rss-btn-bg: transparent;
  --btn-border: 1px solid #000;
  --rss-font: "Assistant", sans-serif;
  --rss-font-he: "Assistant", sans-serif;
  --rss-font-p: "Assistant", sans-serif;
  --rss-font-p-he: "Assistant", sans-serif;
}

.hotels-rss-widget * {
  font-family: var(--rss-font) !important;
}

html[dir="rtl"] .hotels-rss-widget * {
  font-family: var(--rss-font-he) !important;
}

.hotels-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hotels-item {
  position: relative;
  width: calc((100% - 48px) / 3);
  padding: 20px;
  color: #000;
  background-color: #f4f4f4;
  transition: all 0.3s ease;
}

.hotels-item-wrap {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background-color: #fff;
  padding-bottom: 20px;
}

.hotels-item-image {
  width: 100%;
  height: var(--rss-img-height);
}

.hotels-item.item.main .hotels-item-header {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
}

.hotels-item h2 {
  margin: 0;
  padding: 0 20px;
  font-size: 30px;
  line-height: 42px;
  font-weight: 500 !important;
  letter-spacing: 1px;
  text-align: center;
}

.hotels-item .paragraph {
  color: #000;
  font-size: 15px;
  margin: 0 0 15px;
  line-height: 1.5;
  font-weight: 400 !important;
  font-family: var(--rss-font-p) !important;
  text-align: center;
}

html[dir="rtl"] .hotels-item .paragraph {
  font-family: var(--rss-font-p-he) !important;
}

.hotels-item a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 500;
}

.hotels-item a:hover {
  text-decoration: none;
  color: #000;
}

.hotels-item a.btn {
  width: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #000;
  padding: 12px 24px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 2px;
  text-decoration: none;
  border-bottom: var(--btn-border);
  background-color: var(--rss-btn-bg);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.hotels-item a.btn:hover {
  border-bottom: var(--btn-border);
}

.hotels-rss-filter {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.hotels-rss-filter-label {
  width: max-content;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

/* #region chackbox styles */
.hotels-rss-filter-settings-wrap {
  display: none;
}

.hotels-rss-filter-settings {
  display: flex;
  gap: 80px;
}

.hotels-rss-filter-settings label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  padding-right: 35px;
  padding-left: 35px;
  margin-bottom: 12px;
  color: #000;
}

/* Custom checkbox styling */
.hotels-rss-filter-checkbox {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

/* Custom round checkbox mode */
.hotels-rss-filter-checkbox-mode {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 50%;
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  transition: background-color 0.3s, border-color 0.3s;
}

/* When checkbox is checked */
.hotels-rss-filter-checkbox:checked+.hotels-rss-filter-checkbox-mode {
  background-color: #333;
  border-color: #333;
}

/* Adding a checkmark */
.hotels-rss-filter-checkbox:checked+.hotels-rss-filter-checkbox-mode::after {
  content: '\2713';
  position: absolute;
  color: white;
  font-size: 16px;
  right: 2px;
  left: 2px;
  top: 0;
}

/* #endregion chackbox styles */

/* #region Popup */
.hotels-item-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.2);
}

.hotels-item-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90vh;
  width: 90vw;
  max-width: 1400px;
  z-index: 1000;
  padding: 50px 30px;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0px 10px 35px -5px rgba(0, 0, 0, 0.75);
}

button.hotels-item-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: transparent;
  z-index: 10;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

button.hotels-item-popup-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.hotels-item-popup-image-wrapper {
  height: 400px;
  display: none;
}

.hotels-item-popup-image {
  display: block;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
}

.hotels-item-popup-content {
  color: #000;
}

.rssItemImage {
  display: none;
}

.hotels-item-popup-content .rssItemImage {
  float: right;
}

html[dir="rtl"] .hotels-item-popup-content .rssItemImage {
  float: left;
}

.hotels-item-popup-content .rssItemTitle {
  font-weight: 500;
  font-size: 20px;
}

/* #endregion Popup */

@media screen and (max-width: 1200px) {
  .hotels-item {
    width: calc((100% - 20px) / 2);
    height: auto;
    gap: 20px;
    overflow: unset;
    transition: all 0.3s ease;
  }

  .hotels-item img {
    height: auto !important;
    width: 100%;
    max-width: 100% !important;
    position: relative;
    top: unset;
    left: unset;
    transform: none;
    transition: none;
  }

  .hotels-item-content {
    width: 100%;
    position: relative;
    bottom: unset;
    background: #fff;
    margin: 0;
    overflow: unset;
    height: auto;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid #54514f;
  }

  .hotels-item-header {
    height: auto;
  }

  .hotels-item h2 {
    max-height: unset;
  }

  .rss-slider .hotels-item {
    padding: 0;
  }

  .rss-slider .hotels-item-content {
    width: 90%;
    max-width: 900px;
    position: relative;
    top: -86px;
    bottom: unset;
    background: #fff;
    margin: 0 0 -86px;
    overflow: unset;
    height: auto;
    padding: 24px;
    transition: all 0.3s ease;
    border: 0;
  }

  .hotels-rss-widget .carousel-controls-btns {
    width: 90%;
    max-width: 900px;
    position: relative;
    display: flex;
    margin: 0 auto;
    padding: 0 24px;
    justify-content: space-between;
    z-index: 10;
    gap: 4px;
  }

  .hotels-rss-widget .carousel-controls-btns button.slick-arrow svg * {
    fill: #000;
  }

  .hotels-rss-widget .carousel-controls-btns button.slick-arrow,
  .hotels-rss-widget .carousel-controls-btns button.slick-arrow:hover,
  .hotels-rss-widget .carousel-controls-btns button.slick-arrow:focus {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border: 0;
  }

  .hotels-item h2 {
    margin: 50px 0 20px;
  }
}

@media screen and (max-width: 768px) {
  .hotels-item {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .hotels-item .hotels-item-image {
    height: 360px;
  }

  .hotels-item-footer {
    height: calc(100% - 360px);
  }
}

@media screen and (max-width: 450px) {
  .hotels-item .hotels-item-image {
    height: 300px;
  }

  .hotels-item-footer {
    height: calc(100% - 300px);
  }
}

@media screen and (max-width: 380px) {
  .hotels-item .hotels-item-image {
    height: 250px;
  }

  .hotels-item-footer {
    height: calc(100% - 250px);
  }
}