
/* =========================================

   TRAVEL DISCOVERY ENGINE — Search Page

========================================= */



.sr-page { background: #f8f6f2; min-height: 100vh; }



/* ── Hero ── */

.sr-hero {

  background: linear-gradient(135deg, #081826 0%, #0F2F44 100%);

  padding: 4rem 0 3rem;

  text-align: center;

}



.sr-hero__label {

  font-size: 0.65rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.18em;

  color: #FF7A00;

  margin: 0 0 0.75rem;

  max-width: none;

}



.sr-hero__title {

  font-family: var(--font-primary, 'Inter', sans-serif);

  font-size: clamp(1.8rem, 4vw, 3rem);

  font-weight: 800;

  color: #ffffff;

  margin: 0 0 2rem;

  letter-spacing: -0.03em;

}



/* ── Search Box ── */

.sr-search-box {

  position: relative;

  max-width: 680px;

  margin: 0 auto 1.5rem;

  display: flex;

  align-items: center;

  background: #ffffff;

  border-radius: 999px;

  box-shadow: 0 8px 40px rgba(0,0,0,0.25);

  padding: 6px 6px 6px 1.5rem;

  gap: 0.5rem;

}



.sr-search-box__icon { display: none; }



.sr-search-box__input {

  flex: 1;

  padding: 0.75rem 0;

  border: none;

  outline: none;

  font-size: 1rem;

  color: #0A1628;

  background: transparent;

  border-radius: 0;

  margin: 0;

}

.sr-search-box__input::placeholder { color: #aaa; }



.sr-search-box__btn {

  padding: 0.75rem 1.75rem;

  background: linear-gradient(135deg, #FF7A00, #FF9A2F);

  color: #fff;

  border: none;

  border-radius: 999px;

  font-size: 0.9rem;

  font-weight: 700;

  cursor: pointer;

  white-space: nowrap;

  flex-shrink: 0;

  box-shadow: 0 4px 16px rgba(255,122,0,0.4);

  transition: transform 0.2s, box-shadow 0.2s;

}

.sr-search-box__btn:hover {

  transform: translateY(-1px);

  box-shadow: 0 6px 20px rgba(255,122,0,0.5);

}





/* ── Suggestions ── */

.sr-suggestions {

  position: absolute;

  top: calc(100% + 8px);

  left: 0;

  right: 0;

  background: #fff;

  border-radius: 12px;

  box-shadow: 0 8px 32px rgba(0,0,0,0.12);

  display: none;

  z-index: 100;

  overflow: hidden;

}



.sr-suggest-item {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  padding: 0.75rem 1.25rem;

  cursor: pointer;

  font-size: 0.88rem;

  color: #333;

  transition: background 0.15s;

}

.sr-suggest-item:hover { background: #f8f6f2; }

.sr-suggest-type { font-size: 1rem; }



/* ── Tags ── */

.sr-hero__tags {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

  justify-content: center;

  max-width: 680px;

  margin: 0 auto;

}



.sr-tag {

  padding: 5px 14px;

  background: rgba(255,255,255,0.1);

  border: 1px solid rgba(255,255,255,0.2);

  border-radius: 999px;

  font-size: 0.78rem;

  color: rgba(255,255,255,0.75);

  cursor: pointer;

  transition: background 0.2s, color 0.2s;

}

.sr-tag:hover { background: rgba(255,122,0,0.3); color: #fff; border-color: #FF7A00; }



/* ── Semantic hint ── */

.sr-semantic {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  font-size: 0.82rem;

  color: #888;

  margin: 1.5rem 0 0;

  flex-wrap: wrap;

}

.sr-semantic__link {

  color: #FF7A00;

  text-decoration: none;

  font-weight: 600;

  margin-right: 0.35rem;

}

.sr-semantic__link:hover { text-decoration: underline; }



/* ── Section ── */

.sr-section { padding: 2.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }

.sr-section:last-child { border-bottom: none; }



.sr-section__title {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  font-size: 1rem;

  font-weight: 700;

  color: #0A1628;

  margin: 0 0 1.5rem;

}



.sr-section__count {

  background: rgba(255,122,0,0.1);

  color: #FF7A00;

  font-size: 0.72rem;

  font-weight: 700;

  padding: 2px 8px;

  border-radius: 999px;

  margin-left: 0.25rem;

}



/* ── Tour cards ── */

.sr-tours-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));

  gap: 1rem;

}



.sr-tour-card {

  background: #fff;

  border-radius: 14px;

  overflow: hidden;

  text-decoration: none;

  display: block;

  box-shadow: 0 2px 12px rgba(0,0,0,0.06);

  transition: transform 0.3s, box-shadow 0.3s;

}

.sr-tour-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }



.sr-tour-card__img {

  position: relative;

  height: 160px;

  background-size: cover;

  background-position: center;

}

.sr-tour-card__overlay {

  position: absolute;

  inset: 0;

  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);

}

.sr-tour-card__img .cap-badge {

  position: absolute;

  top: 0.75rem;

  left: 0.75rem;

  z-index: 2;

}



.sr-tour-card__body { padding: 1rem; }

.sr-tour-card__dest { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #FF7A00; margin-bottom: 0.25rem; }

.sr-tour-card__name { font-size: 0.92rem; font-weight: 700; color: #0A1628; margin: 0 0 0.5rem; line-height: 1.3; }

.sr-tour-card__meta { display: flex; gap: 0.75rem; font-size: 0.72rem; color: #888; margin-bottom: 0.5rem; }

.sr-tour-card__meta span { display: flex; align-items: center; gap: 3px; }

.sr-tour-card__price { font-size: 0.95rem; font-weight: 700; color: #0A1628; }



/* ── Destination cards ── */

.sr-dest-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

  gap: 0.75rem;

}



.sr-dest-card {

  position: relative;

  border-radius: 12px;

  overflow: hidden;

  display: block;

  text-decoration: none;

  aspect-ratio: 4/3;

}



.sr-dest-card__img {

  position: absolute;

  inset: 0;

  background: linear-gradient(135deg, #0F2F44, #164B63);

  background-size: cover;

  background-position: center;

  transition: transform 0.4s;

}

.sr-dest-card:hover .sr-dest-card__img { transform: scale(1.05); }



.sr-dest-card__overlay {

  position: absolute;

  inset: 0;

  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);

}



.sr-dest-card__content {

  position: absolute;

  bottom: 0.85rem;

  left: 0.85rem;

  right: 0.85rem;

  z-index: 2;

}



.sr-dest-card__name { font-size: 1rem; font-weight: 800; color: #fff; margin: 0 0 0.15rem; }

.sr-dest-card__tag { font-size: 0.68rem; color: rgba(255,255,255,0.6); font-style: italic; margin: 0; max-width: none; }



/* ── Articles ── */

.sr-articles-list { display: flex; flex-direction: column; gap: 0.75rem; }



.sr-article-item {

  display: flex;

  gap: 1rem;

  align-items: center;

  padding: 0.85rem;

  background: #fff;

  border-radius: 12px;

  text-decoration: none;

  transition: box-shadow 0.2s;

}

.sr-article-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }



.sr-article-item__img {

  width: 80px;

  height: 60px;

  border-radius: 8px;

  background-size: cover;

  background-position: center;

  flex-shrink: 0;

}



.sr-article-item__title { font-size: 0.9rem; font-weight: 600; color: #0A1628; margin: 0 0 0.25rem; }

.sr-article-item__excerpt { font-size: 0.78rem; color: #888; margin: 0 0 0.25rem; max-width: none; }

.sr-article-item__meta { font-size: 0.68rem; color: #bbb; }



/* ── FAQ ── */

.sr-faq-list { display: flex; flex-direction: column; gap: 0.5rem; }



.sr-faq-item {

  background: #fff;

  border-radius: 10px;

  padding: 0.85rem 1rem;

  cursor: pointer;

  border: 1px solid rgba(0,0,0,0.06);

}



.sr-faq-item__q {

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 0.88rem;

  font-weight: 500;

  color: #0A1628;

  gap: 1rem;

}



.sr-faq-item__icon {

  font-size: 1.2rem;

  color: #FF7A00;

  transition: transform 0.25s;

  flex-shrink: 0;

}

.sr-faq-item.open .sr-faq-item__icon { transform: rotate(45deg); }



.sr-faq-item__a {

  display: none;

  font-size: 0.82rem;

  color: #666;

  line-height: 1.7;

  margin-top: 0.5rem;

  max-width: none;

}

.sr-faq-item.open .sr-faq-item__a { display: block; }



/* ── Empty State ── */

.sr-empty {

  text-align: center;

  padding: 4rem 2rem;

}

.sr-empty__icon { font-size: 3rem; margin-bottom: 1rem; }

.sr-empty__title { font-size: 1.4rem; font-weight: 700; color: #0A1628; margin: 0 0 0.5rem; }

.sr-empty__sub { font-size: 0.9rem; color: #888; margin: 0 0 2rem; max-width: none; }



.sr-empty__suggestions {

  display: flex;

  flex-wrap: wrap;

  gap: 0.75rem;

  justify-content: center;

}



.sr-empty__dest {

  padding: 8px 20px;

  background: #fff;

  border: 1.5px solid rgba(0,0,0,0.1);

  border-radius: 999px;

  font-size: 0.88rem;

  font-weight: 600;

  color: #0A1628;

  text-decoration: none;

  transition: border-color 0.2s, color 0.2s;

}

.sr-empty__dest:hover { border-color: #FF7A00; color: #FF7A00; }



/* ── Mobile ── */

@media (max-width: 767px) {

  .sr-hero { padding: 2.5rem 0 2rem; }

  .sr-tours-grid { grid-template-columns: 1fr 1fr; }

  .sr-dest-grid { grid-template-columns: 1fr 1fr; }

  .sr-search-box__btn { padding: 0.85rem 1rem; font-size: 0.82rem; }

}




/* ── Search Insights ── */

.sr-insights {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

  align-items: center;

  margin: 1.5rem 0 0;

  padding-bottom: 1.5rem;

  border-bottom: 1px solid rgba(0,0,0,0.06);

}



.sr-insight {

  display: inline-flex;

  align-items: center;

  gap: 0.35rem;

  padding: 5px 12px;

  background: #fff;

  border: 1px solid rgba(0,0,0,0.08);

  border-radius: 999px;

  font-size: 0.78rem;

  font-weight: 600;

  color: #444;

}



.sr-insight--semantic {

  background: rgba(255,122,0,0.05);

  border-color: rgba(255,122,0,0.2);

  color: #888;

}



/* ── Best Match ── */

.sr-best-match {

  margin: 1.5rem 0;

  border-radius: 20px;

  overflow: hidden;

}



.sr-best-match__img {

  position: relative;

  height: 320px;

  background: linear-gradient(135deg, #081826, #0F2F44);

  background-size: cover;

  background-position: center;

}



.sr-best-match__overlay {

  position: absolute;

  inset: 0;

  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);

}



.sr-best-match__content {

  position: absolute;

  bottom: 0;

  left: 0;

  right: 0;

  padding: 2rem;

  z-index: 2;

}



.sr-best-match__label {

  display: inline-flex;

  align-items: center;

  gap: 0.4rem;

  font-size: 0.65rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  color: #FF7A00;

  background: rgba(255,122,0,0.15);

  border: 1px solid rgba(255,122,0,0.3);

  padding: 3px 10px;

  border-radius: 999px;

  margin-bottom: 0.75rem;

}



.sr-best-match__name {

  font-size: clamp(1.8rem, 4vw, 3rem);

  font-weight: 800;

  color: #fff;

  margin: 0 0 0.5rem;

  letter-spacing: -0.03em;

}



.sr-best-match__tagline {

  font-size: 0.95rem;

  color: rgba(255,255,255,0.65);

  font-style: italic;

  margin: 0 0 1.25rem;

  max-width: none;

}



.sr-best-match__btn {

  display: inline-block;

  padding: 10px 24px;

  background: #FF7A00;

  color: #fff;

  border-radius: 999px;

  font-size: 0.85rem;

  font-weight: 700;

  text-decoration: none;

  transition: background 0.2s, transform 0.2s;

}

.sr-best-match__btn:hover { background: #e56e00; transform: translateY(-2px); color: #fff; }



/* ── Cinematic tour cards ── */

.sr-tours-grid {

  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;

  gap: 1.25rem !important;

}



.sr-tour-card {

  position: relative !important;

  aspect-ratio: 3/4 !important;

  border-radius: 16px !important;

  overflow: hidden !important;

  background: #081826 !important;

}



.sr-tour-card__img {

  position: absolute !important;

  inset: 0 !important;

  height: 100% !important;

  background-size: cover !important;

  background-position: center !important;

  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1) !important;

}

.sr-tour-card:hover .sr-tour-card__img { transform: scale(1.05) !important; }



.sr-tour-card__overlay {

  position: absolute !important;

  inset: 0 !important;

  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.82) 100%) !important;

}



.sr-tour-card__img .cap-badge {

  position: absolute !important;

  top: 0.85rem !important;

  left: 0.85rem !important;

  z-index: 3 !important;

}



.sr-tour-card__body {

  position: absolute !important;

  bottom: 0 !important;

  left: 0 !important;

  right: 0 !important;

  padding: 1.25rem !important;

  background: none !important;

  z-index: 2 !important;

}



.sr-tour-card__dest {

  color: rgba(255,255,255,0.55) !important;

}



.sr-tour-card__name {

  color: #ffffff !important;

  font-size: 1rem !important;

}



.sr-tour-card__meta span { color: rgba(255,255,255,0.55) !important; }



.sr-tour-card__price {

  color: #ffffff !important;

  font-size: 1rem !important;

  margin-top: 0.35rem !important;

  border-top: 1px solid rgba(255,255,255,0.15) !important;

  padding-top: 0.5rem !important;

}




/* ── AI Analysis Block ── */

.sr-ai-block {

  margin: 1.5rem 0;

  padding: 1.25rem 1.5rem;

  background: linear-gradient(135deg, rgba(8,24,38,0.04) 0%, rgba(255,122,0,0.04) 100%);

  border: 1px solid rgba(255,122,0,0.15);

  border-radius: 16px;

  position: relative;

  overflow: hidden;

}



.sr-ai-block::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  width: 3px;

  height: 100%;

  background: linear-gradient(180deg, #FF7A00, #FFA24A);

}



.sr-ai-block__header {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  margin-bottom: 0.75rem;

}



.sr-ai-block__icon { font-size: 1rem; }



.sr-ai-block__label {

  font-size: 0.65rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  color: #FF7A00;

}



.sr-ai-block__query {

  font-size: 0.72rem;

  color: #999;

  font-style: italic;

}



.sr-ai-block__text {

  font-size: 0.9rem;

  color: #444;

  line-height: 1.75;

  margin: 0;

  max-width: none;

}



/* Loading dots */

.sr-ai-block__loading {

  display: flex;

  gap: 4px;

  align-items: center;

  height: 20px;

}



.sr-ai-dot {

  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: #FF7A00;

  opacity: 0.4;

  animation: srDotPulse 1.2s ease-in-out infinite;

}

.sr-ai-dot:nth-child(2) { animation-delay: 0.2s; }

.sr-ai-dot:nth-child(3) { animation-delay: 0.4s; }



@keyframes srDotPulse {

  0%, 80%, 100% { opacity: 0.4; transform: scale(1); }

  40% { opacity: 1; transform: scale(1.2); }

}




/* ── Section alternating backgrounds ── */

.sr-section:nth-child(odd) { background: #f8f6f2; padding: 2.5rem 0; margin: 0 -2rem; padding-left: 2rem; padding-right: 2rem; }

.sr-section:nth-child(even) { background: #ffffff; padding: 2.5rem 0; }



/* Destinations dark section */

.sr-section--destinations {

  background: linear-gradient(135deg, #081826, #0F2F44) !important;

  padding: 2.5rem !important;

  border-radius: 20px !important;

  margin: 1rem 0 !important;

}

.sr-section--destinations .sr-section__title { color: #ffffff !important; }

.sr-section--destinations .sr-section__title .lucide { color: #FF7A00; }




/* ── Storytelling Block ── */

.sr-story {

  display: grid;

  grid-template-columns: 1fr 1fr;

  border-radius: 20px;

  overflow: hidden;

  margin: 1.5rem 0;

  min-height: 420px;

  background: #081826;

}



.sr-story__img {

  position: relative;

  background: linear-gradient(135deg, #0F2F44, #164B63);

  background-size: cover;

  background-position: center;

}



.sr-story__img-overlay {

  position: absolute;

  inset: 0;

  background: linear-gradient(to right, rgba(8,24,38,0.3) 0%, rgba(8,24,38,0.6) 100%);

}



.sr-story__stats {

  position: absolute;

  bottom: 1.5rem;

  left: 1.5rem;

  right: 1.5rem;

  display: flex;

  gap: 1rem;

  flex-wrap: wrap;

  z-index: 2;

}



.sr-story__stat {

  background: rgba(255,255,255,0.1);

  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.15);

  border-radius: 10px;

  padding: 0.6rem 0.85rem;

}



.sr-story__stat-val {

  display: block;

  font-size: 0.88rem;

  font-weight: 700;

  color: #ffffff;

}



.sr-story__stat-label {

  display: block;

  font-size: 0.6rem;

  color: rgba(255,255,255,0.5);

  text-transform: uppercase;

  letter-spacing: 0.08em;

  margin-top: 1px;

}



.sr-story__content {

  background: #0F2F44;

  padding: 2.5rem;

  display: flex;

  flex-direction: column;

  justify-content: center;

}



.sr-story__label {

  font-size: 0.62rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.15em;

  color: #FF7A00;

  margin: 0 0 0.5rem;

  max-width: none;

}



.sr-story__title {

  font-size: clamp(1.6rem, 3vw, 2.4rem);

  font-weight: 800;

  color: #ffffff;

  margin: 0 0 0.5rem;

  letter-spacing: -0.03em;

  line-height: 1.15;

}



.sr-story__tagline {

  font-size: 0.9rem;

  color: rgba(255,255,255,0.5);

  font-style: italic;

  margin: 0 0 1.25rem;

  max-width: none;

}



.sr-story__text {

  font-size: 0.88rem;

  color: rgba(255,255,255,0.7);

  line-height: 1.8;

  margin: 0 0 1.5rem;

  max-width: none;

}



.sr-story__reasons {

  background: rgba(255,255,255,0.06);

  border-left: 3px solid #FF7A00;

  border-radius: 0 10px 10px 0;

  padding: 0.85rem 1rem;

  margin-bottom: 1.5rem;

}



.sr-story__reasons-title {

  font-size: 0.65rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.1em;

  color: #FF7A00;

  margin: 0 0 0.4rem;

  max-width: none;

}



.sr-story__reasons-text {

  font-size: 0.82rem;

  color: rgba(255,255,255,0.65);

  line-height: 1.65;

  margin: 0;

  max-width: none;

}



.sr-story__btn {

  display: inline-block;

  padding: 10px 22px;

  background: #FF7A00;

  color: #fff;

  border-radius: 999px;

  font-size: 0.85rem;

  font-weight: 700;

  text-decoration: none;

  align-self: flex-start;

  transition: background 0.2s, transform 0.2s;

}

.sr-story__btn:hover { background: #e56e00; transform: translateY(-2px); color: #fff; }



@media (max-width: 767px) {

  .sr-story { grid-template-columns: 1fr; }

  .sr-story__img { height: 240px; }

  .sr-story__content { padding: 1.5rem; }

}




/* ── Base font ── */

.sr-page h1,

.sr-page h2,

.sr-page h3,

.sr-hero__title,

.sr-story__title,

.sr-best-match__name,

.sr-tour-card__name,

.sr-dest-card__name {

  font-family: var(--font-primary, 'Inter', sans-serif) !important;

}




/* ── Fixes ── */



/* Capacity badge на карточке тура — белый на тёмном фоне */

.sr-tour-card .cap-badge {

  background: rgba(255,255,255,0.15) !important;

  backdrop-filter: blur(8px) !important;

  color: #ffffff !important;

  border: 1px solid rgba(255,255,255,0.3) !important;

}

.sr-tour-card .cap-badge__dot { background: #ffffff !important; }

.sr-tour-card .cap-badge--danger { background: rgba(239,68,68,0.6) !important; }

.sr-tour-card .cap-badge--warning { background: rgba(245,158,11,0.6) !important; }

.sr-tour-card .cap-badge--success { background: rgba(34,197,94,0.4) !important; }



/* Best Match label — ярче */

.sr-best-match__label {

  background: rgba(255,122,0,0.25) !important;

  border-color: rgba(255,122,0,0.5) !important;

  font-size: 0.72rem !important;

  padding: 4px 12px !important;

}



/* Insights — убираем semantic hint в отдельную строку */

.sr-insights {

  row-gap: 0.5rem !important;

}

.sr-insight--semantic {

  width: 100% !important;

  justify-content: flex-start !important;

}




/* ── Mobile responsive fixes ── */

@media (max-width: 599px) {

  .sr-tours-grid { grid-template-columns: 1fr !important; }

  .sr-dest-grid { grid-template-columns: 1fr 1fr !important; }

  .sr-story { grid-template-columns: 1fr !important; }

  .sr-story__img { height: 200px !important; }

  .sr-story__content { padding: 1.25rem !important; }

  .sr-best-match__img { height: 240px !important; }

  .sr-best-match__name { font-size: 1.4rem !important; }

  .sr-hero__title { font-size: 1.6rem !important; }

  .sr-search-box { margin: 0 1rem 1rem !important; }

  .sr-hero__tags { padding: 0 1rem; }

  .sr-section { padding: 1.5rem 0 !important; }

  .sr-articles-list .sr-article-item__img { width: 60px !important; height: 50px !important; }

}

