/* =============================================
   Guesty Listings — Complete Stylesheet
   ============================================= */

.nt-listing-wrap { margin: 0 auto; }

/* ---- Map ---- */
.nt-map {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  margin-bottom: 50px;
  background: #f0f0f0;
  border: 1px solid #ddd;
}
.nt-hero-search-wrap{
margin: 0px !important;
    top: -40px !important;
}
/* =============================================
   SEARCH BAR
   ============================================= */
.nt-search-wrap {
  display: flex;
  align-items: stretch;
  gap: 10px;
  position: relative;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.nt-search-field {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  border: 0.5px solid transparent;
  transition: border-color 0.15s;
  position: relative;
}

.nt-search-field:hover  { border-color: #525252; }
.nt-search-field.active { border-color: #132845; box-shadow: 0 0 0 2px rgba(26,46,74,.10); }

.nt-search-field-dates {
  display: flex;
  flex: 1.8;
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  position: relative;
  border: 0.5px solid transparent;
  transition: border-color 0.15s;
}

.nt-search-field-dates .nt-search-field { border-radius: 16px; flex: 1; border: none; box-shadow: none; }
.nt-search-field-dates .nt-search-field:first-child { border-right: 1px solid #eee; border-radius: 16px 0 0 16px; }
.nt-search-field-dates .nt-search-field:last-child  { border-radius: 0 16px 16px 0; }
.nt-search-field-dates.active { border-color: #132845; box-shadow: 0 0 0 2px rgba(26,46,74,.10); }

    #ntsfDatesGroup.nt-error {
      border: 2px solid #d32f2f;

    }
    /* error message styling */
    .nt-field-error {
      display: none;
      color: #d32f2f;
      font-size: 0.8rem;
      position: absolute;
      bottom: -40px;
      text-align: left;
      width: 100%;
    }
    #ntsfDatesGroup.nt-error .nt-field-error {
      display: block;
    }


.nt-search-label  { font-size: 14px; color: #525252; margin-bottom: 3px; line-height: 1em; }

.nt-search-value {
  font-size: 18px;
  color: #132845;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nt-search-value.placeholder { color: #132845; }

.nt-search-arrow { font-size: 9px; color: #bbb; flex-shrink: 0; margin-left: auto; }

.nt-search-btn {
  background: #132845;
  color: #fff;
  border: none;
  border-radius: 16px !important;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
}
.nt-search-btn:hover { background: #132845; }
.nt-hero-search-wrap .nt-search-btn:hover,
.nt-hero-search-wrap .nt-search-btn:active,
.nt-hero-search-wrap .nt-search-btn:focus { background: #ffffff; }
.nt-search-btn.loading { color: transparent !important; position: relative; }
.nt-search-btn.loading::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nt-spin 0.65s linear infinite;
}
/* =============================================
   DROPDOWN PANELS
   ============================================= */
.nt-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 16px;
  border: 0.5px solid #e0e0e0;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 9999;
  padding: 12px;
}
.nt-panel.open { display: block; }

/* Calendar */
.nt-cal-panel { width: 100%; }
.nt-cal-wrap  { display: flex; gap: 24px; }
.nt-cal-month { flex: 1; }

.nt-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nt-cal-header span { font-size: 14px; font-weight: 600; color: #132845; }

.nt-cal-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  font-size: 16px;
  padding: 4px 8px !important;
  border-radius: 8px !important;
}
.nt-cal-nav:hover { background: #132845; color: #ffffff; }

.nt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

.nt-cal-dow { font-size: 11px; color: #525252; text-align: center; padding: 4px 0; font-weight: 500; }

.nt-cal-day {
  font-size: 13px;
  text-align: center;
  padding: 7px 4px;
  border-radius: 8px;
  cursor: pointer;
  color: #525252;
  transition: all .1s;
}
.nt-cal-day:hover:not(.nt-cal-dis) { background: #f0f4ff; }
.nt-cal-dis      { color: #ddd; cursor: not-allowed; background: #fafafa; }
.nt-cal-start    { background: #1a2e4a !important; color: #fff !important; border-radius: 8px 0 0 8px; }
.nt-cal-end      { background: #1a2e4a !important; color: #fff !important; border-radius: 0 8px 8px 0; }
.nt-cal-start.nt-cal-end { border-radius: 8px !important; }
.nt-cal-in-range { background: #d0e0f0 !important; color: #333 !important; border-radius: 0 !important; }

.nt-cal-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0.5px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.nt-cal-clear {
  background: none;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  padding: 8px 16px !important;
  font-size: 14px !important;
  cursor: pointer;
}

.nt-cal-apply {
  background: #132845;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px !important;
  font-size: 14px !important;
  cursor: pointer;
  font-weight: 600;
}

/* Adults */
.nt-adults-panel { 
    width: 200px;
    max-height: 360px;
    overflow-y: scroll;
     }

.nt-adults-opt {
  padding: 8px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  color: #525252;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nt-adults-opt:hover { background: #f5f5f5; }
.nt-adults-opt.sel   { background: #f0f4ff; color: #132845; font-weight: 600; }

/* Amenities */
.nt-amen-panel { width: 300px; }

.nt-amen-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #132845 !important;
  border-radius: 8px !important;
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  box-sizing: border-box;
  color: #132845 !important;
}
.nt-amen-search:focus { border-color: #132845 !important; }
.nt-amen-list         { max-height: 220px; overflow-y: auto; }

.nt-amen-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 0.5px solid #f5f5f5;
  cursor: pointer;
}
.nt-amen-item:last-child { border-bottom: none; }
.nt-amen-item:hover      { background: #f9f9f9; border-radius: 8px; }

.nt-amen-cb    { width: 16px; height: 16px; accent-color: #132845; flex-shrink: 0; cursor: pointer; }
.nt-amen-label { font-size: 13px; color: #525252; cursor: pointer; flex: 1; }

.nt-amen-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nt-amen-count     { font-size: 12px; color: #525252; }
.nt-amen-clear-btn { background: none; border: none; font-size: 12px !important; color: #525252; cursor: pointer; text-decoration: underline; padding: 10px !important; }

/* Sort */
.nt-sort-panel { width: 210px; }

.nt-sort-opt {
  padding: 10px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  color: #525252;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nt-sort-opt:hover { background: #f5f5f5; }
.nt-sort-opt.sel   { background: #f0f4ff; color: #132845; font-weight: 600; }
.nt-sort-chk       { color: #132845; font-size: 14px; }

/* =============================================
   PROPERTY GRID
   ============================================= */
.nt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.nt-no-results { text-align: center; padding: 60px; color: #525252; font-size: 16px; }

/* =============================================
   LOAD MORE BUTTON  (has its own spinner)
   ============================================= */
.nt-load-more-container { text-align: center; margin: 50px 0 0; }

.nt-load-more-btn {
  background: #132845;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  min-width: 140px;
  position: relative;
}
/*.nt-load-more-btn:hover    { background: #0f1e32; }*/
.nt-load-more-btn:disabled {  cursor: not-allowed; }

/* Spinner inside Load More button */
.nt-load-more-btn.loading { color: transparent !important; }

.nt-load-more-btn.loading::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nt-spin 0.65s linear infinite;
}

@keyframes nt-spin { to { transform: rotate(360deg); } }

/* =============================================
   SKELETON SHIMMER CARDS
   Shown instead of a loading text/spinner
   when Search is clicked (full grid replaced)
   ============================================= */

/* Shimmer sweep animation */
@keyframes nt-shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position:  700px 0; }
}

/* Base shimmer gradient applied to image & line elements */
.nt-sk-img,
.nt-sk-line {
  background: linear-gradient(
    90deg,
    #ececec 0%,
    #f8f8f8 40%,
    #ececec 80%
  );
  background-size: 700px 100%;
  animation: nt-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
  display: block;
}

/* Card shell — matches real card shape */
.nt-skeleton-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Tall image placeholder */
.nt-sk-img {
  width: 100%;
  height: 220px;
  border-radius: 0;
}

/* Content area */
.nt-sk-body { padding: 16px 18px 20px; }

/* Meta row (3 columns) */
.nt-sk-meta {
  display: flex;
  gap: 12px;
}

/* Stagger each card's shimmer so they don't all pulse in sync */
.nt-skeleton-card:nth-child(1)  .nt-sk-img, .nt-skeleton-card:nth-child(1)  .nt-sk-line { animation-delay: 0.00s; }
.nt-skeleton-card:nth-child(2)  .nt-sk-img, .nt-skeleton-card:nth-child(2)  .nt-sk-line { animation-delay: 0.10s; }
.nt-skeleton-card:nth-child(3)  .nt-sk-img, .nt-skeleton-card:nth-child(3)  .nt-sk-line { animation-delay: 0.20s; }
.nt-skeleton-card:nth-child(4)  .nt-sk-img, .nt-skeleton-card:nth-child(4)  .nt-sk-line { animation-delay: 0.30s; }
.nt-skeleton-card:nth-child(5)  .nt-sk-img, .nt-skeleton-card:nth-child(5)  .nt-sk-line { animation-delay: 0.10s; }
.nt-skeleton-card:nth-child(6)  .nt-sk-img, .nt-skeleton-card:nth-child(6)  .nt-sk-line { animation-delay: 0.20s; }
.nt-skeleton-card:nth-child(7)  .nt-sk-img, .nt-skeleton-card:nth-child(7)  .nt-sk-line { animation-delay: 0.00s; }
.nt-skeleton-card:nth-child(8)  .nt-sk-img, .nt-skeleton-card:nth-child(8)  .nt-sk-line { animation-delay: 0.10s; }
.nt-skeleton-card:nth-child(9)  .nt-sk-img, .nt-skeleton-card:nth-child(9)  .nt-sk-line { animation-delay: 0.20s; }
.nt-skeleton-card:nth-child(10) .nt-sk-img, .nt-skeleton-card:nth-child(10) .nt-sk-line { animation-delay: 0.30s; }
.nt-skeleton-card:nth-child(11) .nt-sk-img, .nt-skeleton-card:nth-child(11) .nt-sk-line { animation-delay: 0.10s; }
.nt-skeleton-card:nth-child(12) .nt-sk-img, .nt-skeleton-card:nth-child(12) .nt-sk-line { animation-delay: 0.20s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .nt-search-wrap { flex-direction: column; }

  .nt-search-field-dates { flex-direction: column; }

  .nt-search-field-dates .nt-search-field:first-child {
    border-right: none;
    border-bottom: 1px solid #eee;
    border-radius: 16px 16px 0 0;
  }
  .nt-search-field-dates .nt-search-field:last-child { border-radius: 0 0 16px 16px; }

  .nt-cal-panel { width: 100%; left: 50%; transform: translateX(-50%); }
  .nt-cal-wrap  { flex-direction: column; }

  .nt-grid { grid-template-columns: 1fr; }
  #ntsfDatesGroup.nt-error {
/*    border: 2px solid #d32f2f;*/
    margin-bottom: 40px;
}
}