.ie-hotel-grid-wrap {
  position: relative;
}

.ie-hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ie-hotel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.ie-hotel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.1);
}

.ie-hotel-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}

.ie-hotel-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ie-hotel-card:hover .ie-hotel-card__image img {
  transform: scale(1.04);
}

.ie-hotel-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 24px;
}

.ie-hotel-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #004199;
  letter-spacing: -0.02em;
}

.ie-hotel-card__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.ie-hotel-card__star {
  font-size: 16px;
  color: #9CB5D7;
}

.ie-hotel-card__star.is-active {
  color: #fcc833;
}

.ie-hotel-card__desc {
  margin: 0;
  color: #5f7ea7;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 134px;
}

.ie-hotel-card__desc strong {font-weight: 700;}

.ie-hotel-card__btn {
  margin-top: auto;
  align-self: center;
  appearance: none;
  border: 1.5px solid #004199;
  border-radius: 14px;
  padding: 11px 22px;
  background: #ffffff;
  color: #004199;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  box-shadow: none;
}

.ie-hotel-card__btn:hover {
  transform: translateY(-1px);
  background: #004199;
  color: #ffffff;
  border-color: #004199;
}

.ie-hotel-card__btn:focus-visible {
  outline: 2px solid #004199;
  outline-offset: 3px;
}

/* Modal */
.ie-hotel-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.ie-hotel-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ie-hotel-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ie-hotel-modal__dialog {
  position: relative;
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s ease;
}

.ie-hotel-modal.is-open .ie-hotel-modal__dialog {
  transform: translateY(0) scale(1);
}

.ie-hotel-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  color: rgba(0, 65, 153, 1);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.ie-hotel-modal__close:hover {
  transform: scale(1.05);
}

.ie-hotel-modal__close:focus-visible {
  outline: 2px solid #004199;
  outline-offset: 3px;
}

.ie-hotel-modal__header {
  padding: 24px 72px 15px 24px;
}

.ie-hotel-modal__title {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.ie-hotel-modal__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px 18px;
}

.ie-hotel-modal__main {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 30px rgba(15, 23, 42, 0.08);
}

.ie-hotel-modal__main-image {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: cover;
}

.ie-hotel-modal__nav {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;

  color: rgba(0, 65, 153, 0.86);
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.ie-hotel-modal__nav:hover {
  transform: scale(1.05);
}

.ie-hotel-modal__nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.ie-hotel-modal__thumbs {
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ie-hotel-modal__thumbs::-webkit-scrollbar {
  height: 8px;
}

.ie-hotel-modal__thumbs::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
}

.ie-hotel-modal__thumb {
  flex: 0 0 100px;
  width: 100px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  opacity: 0.72;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ie-hotel-modal__thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.ie-hotel-modal__thumb.is-active {
  opacity: 1;
  border-color: #004199;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.ie-hotel-modal__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.ie-hotel-modal-open {
  overflow: hidden;
}

/* Tablet */
@media (max-width: 1024px) {
  .ie-hotel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ie-hotel-modal__dialog {
    width: min(96vw, 920px);
  }

  .ie-hotel-modal__main-image {
    max-height: 58vh;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .ie-hotel-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ie-hotel-card {
    border-radius: 5px;
  }

  .ie-hotel-card__body {
    padding: 18px 18px 20px;
  }

  .ie-hotel-card__title {
    font-size: 20px;
  }

  .ie-hotel-card__desc {
    min-height: auto;
    -webkit-line-clamp: 6;
    font-size: 14px;
  }

  .ie-hotel-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  .ie-hotel-modal__dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    margin: 0;
    border-radius: 20px;
    overflow: visible;
  }

  .ie-hotel-modal__header {
    padding: 16px 44px 15px 14px;
  }

  .ie-hotel-modal__title {
    font-size: 17px;
    line-height: 1.2;
  }

  .ie-hotel-modal__content {
    gap: 0;
    padding: 0 8px 10px;
  }

  .ie-hotel-modal__main {
    position: relative;
    border-radius: 18px;
    width: 100%;
    overflow: hidden;
  }

  .ie-hotel-modal__main-image {
    width: 100%;
    max-height: 62vh;
    min-height: 320px;
    object-fit: cover;
  }

  .ie-hotel-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    font-size: 26px;
    transform: translateY(-50%);
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
  }

  .ie-hotel-modal__nav--prev {
    left: 14px;
    margin-right: 0;
  }

  .ie-hotel-modal__nav--next {
    right: 14px;
    margin-left: 0;
  }

  .ie-hotel-modal__nav:hover,
  .ie-hotel-modal__nav:focus,
  .ie-hotel-modal__nav:active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.26) !important;
    transform: translateY(-50%) scale(1.04);
  }

  .ie-hotel-modal__thumbs {
    gap: 10px;
    padding: 0 8px 12px;
  }

  .ie-hotel-modal__thumb {
    flex-basis: 88px;
    width: 88px;
    height: 62px;
    border-radius: 14px;
  }

  .ie-hotel-modal__close {
    top: 0;
    right: 0;
    width: 38px;
    height: 38px;
    font-size: 24px;
    color: #ffffff !important;
    background: rgba(0, 65, 153, 0.9) !important;
    border-radius: 0 20px 0 14px;
    padding-bottom: 0 !important;
  }

  .ie-hotel-modal__close:hover,
  .ie-hotel-modal__close:focus,
  .ie-hotel-modal__close:active {
    color: #ffffff !important;
    background: rgba(0, 65, 153, 1) !important;
    transform: none;
  }


}



.ie-hotel-modal__close {
  padding-bottom: 2px;
}

/* ===== Force reset for modal controls ===== */

.ie-hotel-modal button.ie-hotel-modal__close,
.ie-hotel-modal button.ie-hotel-modal__nav {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  text-decoration: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0;
  min-width: 0;
  white-space: normal;
}

/* Close button */
.ie-hotel-modal button.ie-hotel-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  color: #004199 !important;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.ie-hotel-modal button.ie-hotel-modal__close:hover,
.ie-hotel-modal button.ie-hotel-modal__close:focus,
.ie-hotel-modal button.ie-hotel-modal__close:active {
  background: transparent !important;
  color: #004199 !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  transform: scale(1.05);
}

/* Arrows */
.ie-hotel-modal button.ie-hotel-modal__nav {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  color: #004199 !important;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.ie-hotel-modal button.ie-hotel-modal__nav:hover,
.ie-hotel-modal button.ie-hotel-modal__nav:focus,
.ie-hotel-modal button.ie-hotel-modal__nav:active {
  background: transparent !important;
  color: #004199 !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  transform: scale(1.05);
}

.ie-hotel-modal button.ie-hotel-modal__nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none !important;
}

/* small optical correction */
.ie-hotel-modal__close {
  padding-bottom: 2px !important;
}

.ie-hotel-modal__nav--prev {
  margin-right: -1px;
}

.ie-hotel-modal__nav--next {
  margin-left: -1px;
}

@media (max-width: 767px) {
  .ie-hotel-modal button.ie-hotel-modal__nav {
position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
    line-height: 1;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    --ie-arrow-x: 0px;
    transform: translateY(-50%) translateX(var(--ie-arrow-x)) !important;
    transition:
      background 0.2s ease,
      opacity 0.2s ease,
      color 0.2s ease;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav--prev {
    left: 14px;
    right: auto;
    --ie-arrow-x: -1px;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav--next {
    right: 14px;
    left: auto;
    --ie-arrow-x: 1px;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav:hover,
  .ie-hotel-modal button.ie-hotel-modal__nav:focus,
  .ie-hotel-modal button.ie-hotel-modal__nav:active {
color: #ffffff !important;
    background: rgba(0, 0, 0, 0.32) !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
    transform: translateY(-50%) translateX(var(--ie-arrow-x)) !important;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav:disabled {
    opacity: 0.35;
    transform: translateY(-50%) !important;
  }
}


@media (max-width: 767px) {
  .ie-hotel-modal button.ie-hotel-modal__close {
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
  }
}


@media (max-width: 767px) {
  .ie-hotel-modal button.ie-hotel-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform: translateY(-50%) !important;
    transition: background 0.2s ease, opacity 0.2s ease;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav--prev {
    left: 14px;
    right: auto;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav--prev::before {
    transform: rotate(135deg);
    margin-left: 2px;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav--next {
    right: 14px;
    left: auto;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav--next::before {
    transform: rotate(-45deg);
    margin-right: 2px;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav:hover,
  .ie-hotel-modal button.ie-hotel-modal__nav:focus,
  .ie-hotel-modal button.ie-hotel-modal__nav:active {
    background: rgba(0, 0, 0, 0.32) !important;
    transform: translateY(-50%) !important;
    color: transparent !important;
  }

  .ie-hotel-modal button.ie-hotel-modal__nav:disabled {
    opacity: 0.35;
    transform: translateY(-50%) !important;
  }
}

.ie-hotel-card__head {
  display: flex;
  flex-direction: column;
  gap: 5px;
}



