/* ═══════════════════════════════════════════════════════════════════
   hotel-list.css  –  Otel listeleme sayfasına özel stiller
   Temel layout (listing_container, filters_panel, vb.) → tour-list.css
═══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.hotel-breadcrumb {
  background: var(--white, #fff);
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  padding: 10px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-500, #6b7280);
}

.breadcrumb-nav a {
  color: var(--primary, #2563eb);
  text-decoration: none;
}

.breadcrumb-nav a:hover { text-decoration: underline; }

.breadcrumb-sep { color: var(--gray-400, #9ca3af); }

.breadcrumb-current { color: var(--gray-700, #374151); font-weight: 500; }

/* ── Listing topbar ──────────────────────────────────────────────── */
.listing_topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.listing_heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800, #1f2937);
  margin: 0 0 4px;
}

.listing_subinfo {
  font-size: 13px;
  color: var(--gray-500, #6b7280);
  margin: 0 0 4px;
}

.listing_count {
  font-size: 13px;
  color: var(--gray-600, #4b5563);
  margin: 0;
}

.listing_sort_wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort_select {
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  background: var(--white, #fff);
  cursor: pointer;
}

/* ── Hotel kart listesi ──────────────────────────────────────────── */
.hotel-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Hotel kart ──────────────────────────────────────────────────── */
.hotel-card {
  background: var(--white, #fff);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
}

.hotel-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.hotel-card-link {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.hotel-card-img {
  flex-shrink: 0;
  width: 240px;
  min-height: 180px;
  overflow: hidden;
  background: var(--gray-100, #f3f4f6);
  position: relative;
  align-self: stretch;
}

.hotel-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.hotel-card:hover .hotel-card-img img {
  transform: scale(1.04);
}

.hotel-card-no-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100, #f3f4f6);
}

.hotel-card-body {
  /* OLD - Not used */
  display: none;
}

.hotel-card-content {
  flex: 1;
  display: flex;
  min-width: 0;
}

.hotel-card-info {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}

.hotel-card-pricing {
  width: 200px;
  background: var(--white, #fff);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  flex-shrink: 0;
  border-left: 1px solid var(--gray-100, #f3f4f6);
}

.hotel-card-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

.hotel-card-pricing-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  margin-top: 50px;
}

.hotel-pricing-inner {
  /* Not used */
  display: none;
}

.hotel-card-top {
  /* OLD - Not used */
  display: none;
}

.hotel-card-mid {
  /* OLD - Not used */
  display: none;
}

.hotel-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0;
  line-height: 1.3;
}

.hotel-card-destination {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.hotel-card-destination:hover {
  color: #6b7280;
  text-decoration: underline;
}

.hotel-card-room {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.hotel-card-cancel {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.hotel-card-cancel--free {
  color: #16a34a;
}

.hotel-card-cancel--no {
  color: #dc2626;
}

/* ── Kampanya bilgi bölümü ────────────────────────────────── */
.hotel-campaign-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2px 0 4px 0;
  border: 1px solid #ef4444;
  border-radius: 6px;
  overflow: hidden;
}

.hotel-campaign-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
}

.hotel-campaign-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  background: #fff;
  padding: 7px 10px;
}

.hotel-campaign-label {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  flex: 1;
}

.hotel-campaign-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #9ca3af;
  cursor: default;
  flex-shrink: 0;
}

.hotel-campaign-info-wrap:hover {
  color: #374151;
}

.hotel-campaign-tooltip {
  display: none; /* eski stil — artık kullanılmıyor */
}

/* Floating tooltip — body seviyesinde render edilir */
.campaign-tooltip-floating {
  display: none;
  position: absolute;
  width: 240px;
  background: #1f2937;
  color: #f9fafb;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 9px 11px;
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  z-index: 9999;
  white-space: normal;
  pointer-events: none;
}

.hotel-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}



.hotel-card-mid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hotel-board-badge {
  background: var(--gray-50, #f9fafb);
  color: var(--gray-700, #374151);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--gray-200, #e5e7eb);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 6px;
}

.hotel-card-location {
  font-size: 13px;
  color: var(--gray-500, #6b7280);
  line-height: 1.4;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}

.hotel-card-location:hover {
  color: var(--gray-700, #374151);
  text-decoration: underline;
}

.hotel-card-footer {
  /* Not used anymore - pricing section handles this */
  display: none;
}

.hotel-price-block {
  /* OLD - not used */
  display: none;
}

.hotel-price-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.hotel-booking-info {
  font-size: 11px;
  color: var(--gray-400, #9ca3af);
  font-weight: 400;
  line-height: 1.3;
}

/* ── Kampanya badge'leri (resim sol üst) ─────────────────────── */
.hotel-img-badges {
  position: absolute;
  top: 10px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.hotel-img-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px 3px 10px;
  border-radius: 0 4px 4px 0;
  letter-spacing: 0.3px;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  white-space: nowrap;
}

/* ── İndirim badge'i (fiyat bölümü) ───────────────────────── */
.hotel-discount-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  line-height: 1.5;
  align-self: flex-end;
}

.hotel-price-old {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-400, #9ca3af);
  text-decoration: line-through;
  line-height: 1;
}

.hotel-price-current {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary, #2563eb);
  line-height: 1;
  white-space: nowrap;
}

.hotel-price-label {
  /* OLD - not used */
  display: none;
}

.hotel-price-val {
  /* OLD - not used */
  display: none;
}

.hotel-price-ask {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500, #6b7280);
}

.hotel-incele-link {
  display: inline-block;
  color: var(--primary, #2563eb);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.hotel-incele-link:hover {
  color: var(--primary-dark, #1d4ed8);
}

.hotel-incele-link svg {
  /* Not used */
  display: none;
}

/* ── Status / skeleton / hata ────────────────────────────────────── */
.hotel-list-status { margin-bottom: 20px; }

/* Loading mesajı */
.hotel-loading-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  gap: 20px;
}

.hotel-loading-message p {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700, #374151);
  margin: 0;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton kartlar */
.hotel-skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hotel-card-skeleton {
  pointer-events: none;
  min-height: 200px;
}

.hotel-card-skeleton:hover {
  box-shadow: none;
  transform: none;
}

.skeleton-block, .skeleton-line {
  display: block;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.hotel-card-skeleton .hotel-card-img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skeleton-title  { height: 20px; width: 70%; margin-bottom: 12px; display: block; }
.skeleton-sub    { height: 14px; width: 50%; margin-bottom: 10px; display: block; }
.skeleton-price  { height: 28px; width: 80px; border-radius: 6px; display: block; }

@keyframes skeletonShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hotel-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: #b91c1c;
}

/* ── Sonuç yok ────────────────────────────────────────────────────── */
.no-results-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 60px 24px;
  color: var(--gray-500, #6b7280);
  text-align: center;
}

.no-results-block p { font-size: 17px; font-weight: 600; margin: 0; }
.no-results-block small { font-size: 13px; }

/* ── Scroll sentinel ─────────────────────────────────────────────── */
.scroll-sentinel { height: 1px; }

/* ── Input hata vurgusu ──────────────────────────────────────────── */
.input-error,
input.input-error,
.hotel-date-range-wrapper.input-error {
  outline: 2px solid #ef4444 !important;
  border-color: #ef4444 !important;
  border-radius: 8px;
  animation: inputErrorShake 0.35s ease;
}

@keyframes inputErrorShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

/* ── Filtre skeleton ────────────────────────────────────────────── */
#filterSkeleton {
  padding: 0 0 8px;
}
.filter_skel_block {
  padding: 16px 0;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter_skel_block:first-child { border-top: 0; }
.filter_skel_title {
  height: 14px;
  width: 50%;
  border-radius: 4px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: fskel 1.4s infinite;
  margin-bottom: 6px;
}
.filter_skel_bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: fskel 1.4s infinite;
}
.filter_skel_row {
  height: 18px;
  width: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: fskel 1.4s infinite;
}
@keyframes fskel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Eski skeleton sınıfları (artık kullanılmıyor, temizlendi) */

/* ── Mobil filtre butonu ─────────────────────────────────────────── */
.mobile_filter_btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--white, #fff);
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Results header (Başlık ve Tarih Bilgisi) ────────────────── */
.results_header {
  margin-bottom: 20px;
}

.results_title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0 0 8px;
  line-height: 1.2;
}

.results_subtitle {
  font-size: 14px;
  color: var(--gray-600, #4b5563);
  margin: 0;
  line-height: 1.5;
}

/* ── Results topbar (Turlar stiline uygun) ──────────────────────── */
.results_topbar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.results_count {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 14px;
}

.results_count span {
  color: var(--primary-blue, #2563eb);
}

.sort_group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort_group label {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

.select_like {
  display: inline-block;
}

.select_like select {
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
  font: inherit;
  color: var(--gray-800);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.select_like select:hover {
  border-color: var(--primary-blue, #2563eb);
}

.select_like select:focus {
  outline: none;
  border-color: var(--primary-blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobil filtre butonu */
.mobile_filter_btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile_filter_btn:hover {
  background: var(--gray-50);
  border-color: var(--primary-blue);
}

.mobile_filter_btn svg {
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hotel-card-img { width: 180px; }
}

@media (max-width: 768px) {
  .hotel-card { flex-direction: column; }

  .hotel-card-img {
    width: 100%;
    height: 200px;
    min-height: unset;
  }

  .hotel-card-img img { max-height: 200px; }

  .hotel-card-content { 
    flex-direction: column;
  }
  
  .hotel-card-info {
    padding: 16px;
  }
  
  .hotel-card-pricing {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--gray-100, #f3f4f6);
    padding: 16px;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .hotel-price-info {
    align-items: flex-start;
    text-align: left;
  }

  .hotel-card-name { font-size: 16px; }

  .hotel-price-val { font-size: 24px; }

  /* Mobil filtre butonu göster */
  .mobile_filter_btn { display: flex; }

  /* Results topbar mobil düzeni */
  .results_topbar {
    flex-wrap: wrap;
  }

  .sort_group {
    flex: 1;
    justify-content: flex-end;
  }

  .sort_group label {
    display: none; /* Mobilde "Sırala:" label'ını gizle */
  }

  /* Mobil filtre paneli slide-in */
  .filters_panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100dvh;
    border-radius: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.28s ease;
  }

  .filters_panel.open { left: 0; }

  .filters_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 999;
  }

  .filters_overlay.show { display: block; }

  .listing_layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .results_title { font-size: 20px; }
  .results_subtitle { font-size: 13px; }
  .hotel-card-body { padding: 12px; }
  .hotel-card-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hotel-incele-btn { width: 100%; text-align: center; }
}
