/**
 * Kintelektas Hotel Search — front-end styles
 *
 * Loaded on single st_hotel pages by the plugin (see wp_enqueue_scripts
 * hook in kintelektas-hotel-search.php). Edit this file to restyle the
 * [ki_hotel_search] shortcode output.
 */

.ki-wrap {
  max-width: 100%;
  font-family: inherit;
  color: #303030;
  --ki-accent: #018770;
  --ki-heading: #232323;
  --ki-black: #000;
}
.ki-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ki-title {
    /* margin: 0; */
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #0A0A0A !important;
}
.ki-providers-badge {
    font-size: 12px;
    color: #5E5E5E;
    font-weight: 400;
}

.ki-initial {
  margin-bottom: 20px;
}
.ki-initial-inner {
  background: #fef8ec;
  border: 1px solid #f5e6c4;
  border-radius: 8px;
  padding: 16px 18px;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.5;
}

.ki-results {
  margin-bottom: 8px;
}
.ki-results-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ki-provider-card {
	background-color: #F1F1F1;
    padding: 24px;
    border-radius: 12px;
    overflow: visible;
    position: relative;
}

/* Offers card: logo stacked above the offer list, aligned left */
.ki-provider-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

/* Empty card: logo on the left, info on the right */
.ki-provider-empty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ki-provider-card.is-cheapest {
	background-color:  #0187701A;
}

.ki-provider-cheapest-label {
    position: absolute;
    top: -11px;
    /* left: 50%; */
    background: #018770;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 3px 14px;
    font-size: 12px;
    font-weight: 500;
    /* letter-spacing: 0.04em; */
    /* line-height: 1; */
    /* text-transform: uppercase; */
    /* z-index: 2; */
    /* white-space: nowrap; */
}

/* Logo column (offers card) and logo side (empty card) */
.ki-provider-logo-col,
.ki-provider-empty-logo {
  flex: 0 0 auto;
}

/* Offers column (offers card) — full width beneath the logo */
.ki-provider-offers-col {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    gap: 16px;
    display: flex;
    flex-direction: column;
}

.ki-provider-empty-info {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.ki-provider-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #232323;
}
.ki-provider-brand {
  display: flex;
  align-items: center;
  min-height: 34px;
}
.ki-provider-brand {
  width: 170px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.ki-provider-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.ki-provider-logo--novaturas {
  max-width: 150px;
  max-height: 28px;
}
.ki-provider-logo--teztour {
  max-width: 150px;
  max-height: 28px;
}
.ki-provider-logo--joinup {
  max-width: 150px;
  max-height: 32px;
}

/* Empty-card text */
.ki-provider-empty-title {
    font-size: 18px;
    font-weight: 500;
    /* line-height: 1.2; */
    color: #0A0A0A;
}
.ki-provider-empty-desc {
    color: #5E5E5E;
    font-size: 12px;
    /* line-height: 1.5; */
    font-weight: 400;
}

.ki-search-summary {
  background: #e8f5f1;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #303030;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ki-search-summary strong {
  font-weight: 700;
  color: #000;
}

.ki-comparison {
  background: #fff;
  border: 1px solid #d8eee8;
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
  color: #303030;
}
.ki-comparison-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #e8f5f1;
  flex-wrap: wrap;
}
.ki-comparison-info {
  flex: 1 1 420px;
  min-width: 0;
}
.ki-comparison-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: #018770;
  margin-bottom: 6px;
}
.ki-comparison-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  color: #000;
}
.ki-comparison-meta {
  font-size: 13px;
  line-height: 1.5;
  color: #303030;
  margin-top: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.ki-comparison-price {
  text-align: right;
  min-width: 125px;
  flex: 0 0 auto;
}
.ki-comparison-price strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: #000;
}
.ki-comparison-price span {
  display: block;
  font-size: 12px;
  color: #303030;
  margin-top: 4px;
}
.ki-comparison-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 8px;
}
.ki-comparison-save {
  display: inline-block;
  background: #fff;
  color: #018770;
  border: 1px solid #b6dfd3;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}
.ki-comparison-list {
  padding: 12px 20px 16px;
}
.ki-comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f1;
  font-size: 13px;
  color: #4a4a4a;
}
.ki-comparison-row:last-child {
  border-bottom: 0;
}
.ki-comparison-provider {
  font-weight: 700;
  color: #000;
}
.ki-comparison-row-price {
  font-weight: 800;
  color: #000;
}
.ki-comparison-empty {
  background: #fef8ec;
  border: 1px solid #f5e6c4;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #4a4a4a;
  font-size: 14px;
}

.ki-offer {
    /* background: #fff; */
    /* border-radius: 8px; */
    padding: 1px 0px;
    /* margin-bottom: 16px; */
    display: flex;
    align-items: center;
    /* gap: 16px; */
    flex-wrap: wrap;
    /* border: 1px solid #e6e6e6; */
}

.ki-offer:last-child {
  margin-bottom: 0;
}

/* Left side of an offer: room type + dates */
.ki-offer-info {
  flex: 1;
  min-width: 120px;
  font-size: 13px;
  color: #303030;
  line-height: 1.6;
}

.ki-offer-title {
    font-size: 16px;
    font-weight: 600;
    color: #0A0A0A;
    line-height: 24px;
}



.ki-offer-dates {
    margin-top: 4px;
    color: #5E5E5E;
    font-size: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ki-offer-dates svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Right side of an offer: cheapest label + price + order button */
.ki-offer-pricing {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  text-align: right;
  min-width: 0;
  flex: 0 0 auto;
}
.ki-offer-cheapest-label {
  background: #018770;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 500;
}

.ki-offer-price {
    font-size: 18px;
    font-weight: 600;
    color: #0A0A0A;
    /* min-width: 80px; */
}

.ki-offer-price small::before {
	content: " / ";
    font-size: 14px;
    font-weight: 400;
    color: #0A0A0A;
    /* min-width: 80px; */
}

.ki-offer-price small {
  font-size: 14px;
  font-weight: 400;
  color: #303030;
}
.ki-offer-book {
  flex-shrink: 0;
}
.ki-offer-book a {
  align-items: center;
  justify-content: center;
  background: #018770;
  color: #fff !important;
  border: 1px solid #018770;
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.ki-offer-book a:hover {
  background: #017360;
  border-color: #017360;
  color: #fff !important;
  text-decoration: none;
}

/* Order button on offers that are NOT the cheapest (secondary / outline style) */
.ki-offer-book--secondary a {
    background: transparent;
    color: #0A0A0A !important;
    border: 1px solid #0A0A0A;
}
.ki-offer-book--secondary a:hover {
  background: #F1F1F1;
  color: #018770 !important;
  border-color: #018770;
}

/* Divider between offers */
.ki-offer-divider {
    border-top: 1px solid #C6C6C6;
}

/* Icons used inside the comparison block */
.ki-offer-detail-icon {
  display: inline-flex;
  align-items: center;
}
.ki-offer-detail-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #777;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ki-comparison-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ki-comparison-detail .ki-offer-detail-icon svg {
  width: 16px;
  height: 16px;
}

.ki-show-more-wrap {
	display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ki-show-more-wrap a {
  cursor: pointer;
  color: #018770;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ki-show-more-wrap a:hover {
  text-decoration: underline;
}
.ki-show-more-wrap svg {
    width: 32px;
    height: 32px;
    /* flex-shrink: 0; */
    fill: #018770;
    stroke: #FFFFFF;
    stroke-width: 1;
    /* stroke-linecap: round; */
    /* stroke-linejoin: round; */
}

.ki-loading {
  text-align: center;
  padding: 30px;
  color: #555;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ki-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e0e0e0;
  border-top-color: #018770;
  border-radius: 50%;
  animation: ki-spin 0.7s linear infinite;
}
@keyframes ki-spin {
  to {
    transform: rotate(360deg);
  }
}

.ki-error {
  background: #fce4ec;
  border: 1px solid #f48fb1;
  border-radius: 8px;
  padding: 14px 18px;
  color: #c62828;
  font-size: 14px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .ki-comparison-main {
    align-items: flex-start;
    flex-direction: column;
  }
  .ki-comparison-info {
    flex: auto;
    width: 100%;
  }
  .ki-comparison-price {
    text-align: left;
    min-width: 0;
  }
  .ki-comparison-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
  }
  .ki-comparison-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ki-offer {
    flex-direction: column;
    align-items: stretch;
  }
  .ki-offer-info {
    width: 100%;
  }
  .ki-offer-book {
    order: 3;
    width: 100%;
  }
  .ki-offer-book a {
    display: block;
    width: 100%;
    text-align: center;
  }
  .ki-provider-row,
  .ki-provider-empty-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ki-provider-empty-info {
    text-align: left;
  }
  .ki-provider-title {
    font-size: 20px;
  }
  .ki-provider-brand {
    width: 150px;
    height: 38px;
  }
  .ki-provider-logo--novaturas {
    max-width: 135px;
    max-height: 25px;
  }
  .ki-provider-logo--teztour {
    max-width: 135px;
    max-height: 25px;
  }
  .ki-provider-logo--joinup {
    max-width: 135px;
    max-height: 29px;
  }
  .ki-offer-pricing {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 8px 12px;
  }
  /* Price left, "Pigiausias" right on one line; button wraps to its own full-width line */
  .ki-offer-price {
    order: 1;
  }
  .ki-offer-cheapest-label {
    order: 2;
  }
}

a.ki-more-link span {
    color: #0A0A0A;
    font-weight: 500;
    font-size: 12px;
}

a.ki-less-link {
   color: #0A0A0A !important;
    font-weight: 500;
    font-size: 12px;
}