/* ==========================================================================
   Oteller - Airbnb Frontend Design System & Hotel Discovery UI
   ========================================================================== */

:root {
  --hotel-primary: #FF5A1F;
  --hotel-primary-hover: #E0480F;
  --hotel-dark: #1E293B;
  --hotel-gray-text: #64748B;
  --hotel-gray-light: #94A3B8;
  --hotel-border: #E2E8F0;
  --hotel-bg-light: #F8FAFC;
  --hotel-radius: 16px;
  --hotel-radius-sm: 8px;
  --hotel-radius-full: 9999px;
  --hotel-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --hotel-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   1. Airbnb Category Slider Bar
   ========================================================================== */
.airbnb-hotel-category-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--hotel-border);
  position: sticky;
  top: 70px;
  z-index: 90;
  padding: 12px 0 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.airbnb-cat-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.airbnb-cat-scroll {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.airbnb-cat-scroll::-webkit-scrollbar {
  display: none;
}

.airbnb-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px 8px 8px;
  cursor: pointer;
  color: var(--hotel-gray-text);
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.airbnb-cat-item:hover {
  color: var(--hotel-dark);
}

.airbnb-cat-item.is-active {
  color: var(--hotel-dark);
  font-weight: 700;
}

.airbnb-cat-item.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2.5px;
  background: var(--hotel-dark);
  border-radius: 2px;
}

.airbnb-cat-icon {
  font-size: 22px;
  line-height: 1;
}

.airbnb-cat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   2. Main Discovery Section & Subbar
   ========================================================================== */
.airbnb-hotel-main {
  background: #FFFFFF;
  min-height: 70vh;
  padding-bottom: 80px;
}

.oteller-main-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.airbnb-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hotel-border);
}

.airbnb-city-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.airbnb-city-pills::-webkit-scrollbar {
  display: none;
}

.airbnb-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--hotel-radius-full);
  border: 1px solid var(--hotel-border);
  background: var(--hotel-bg-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--hotel-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.airbnb-city-pill:hover {
  border-color: var(--hotel-dark);
  background: #FFFFFF;
}

.airbnb-city-pill.is-active {
  background: var(--hotel-dark);
  color: #FFFFFF;
  border-color: var(--hotel-dark);
}

.city-count-badge {
  font-size: 11px;
  opacity: 0.75;
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: 99px;
}

.airbnb-city-pill.is-active .city-count-badge {
  background: rgba(255,255,255,0.25);
  color: #FFFFFF;
}

.airbnb-subbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hotel-counter-text {
  font-size: 13.5px;
  color: var(--hotel-gray-text);
  white-space: nowrap;
}

.airbnb-sort-select {
  padding: 8px 14px;
  border-radius: var(--hotel-radius-full);
  border: 1px solid var(--hotel-border);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: var(--hotel-dark);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

/* Search Strip */
.airbnb-search-strip {
  margin-bottom: 24px;
}

.airbnb-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--hotel-border);
  border-radius: var(--hotel-radius-full);
  padding: 10px 18px;
  max-width: 540px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.airbnb-search-input-wrap:focus-within {
  border-color: var(--hotel-dark);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.airbnb-search-input-wrap svg {
  color: var(--hotel-gray-text);
  flex-shrink: 0;
}

.airbnb-search-input-wrap input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--hotel-dark);
  font-family: inherit;
}

/* ==========================================================================
   3. Airbnb Hotel Card Grid (Desktop & Tablet)
   ========================================================================== */
.airbnb-hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 24px;
}

.airbnb-hotel-card-item {
  position: relative;
}

.airbnb-card-anchor {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.airbnb-card-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--hotel-radius);
  overflow: hidden;
  background: #E2E8F0;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.airbnb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.airbnb-hotel-card-item:hover .airbnb-card-img {
  transform: scale(1.04);
}

.airbnb-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 42px;
  background: #F1F5F9;
}

.airbnb-card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.airbnb-badge-favorite {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: #B45309;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--hotel-radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.airbnb-badge-stars {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: #B45309;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--hotel-radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.airbnb-badge-boutique {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: #7E22CE;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--hotel-radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.airbnb-wishlist-btn {
  display: none !important;
}

/* Card Typography */
.airbnb-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.airbnb-info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.airbnb-hotel-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--hotel-dark);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.airbnb-hotel-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hotel-dark);
  flex-shrink: 0;
}

.airbnb-hotel-rating .rating-star {
  font-size: 12px;
  color: #F59E0B;
}

.airbnb-hotel-location {
  font-size: 13.5px;
  color: var(--hotel-gray-text);
  font-weight: 500;
}

.airbnb-hotel-features {
  font-size: 13px;
  color: var(--hotel-gray-text);
  font-weight: 400;
  display: flex;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.airbnb-hotel-price-row {
  margin-top: 4px;
  font-size: 15px;
  color: var(--hotel-dark);
}

.airbnb-price-amount {
  font-weight: 800;
  color: var(--hotel-dark);
}

.airbnb-price-period {
  font-weight: 400;
  color: var(--hotel-gray-text);
  font-size: 13px;
}

.airbnb-price-ask {
  color: var(--hotel-gray-text);
  font-size: 13px;
  font-weight: 600;
}

/* Empty State */
.airbnb-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  background: var(--hotel-bg-light);
  border-radius: var(--hotel-radius);
  border: 1px dashed var(--hotel-border);
}

.airbnb-empty-state .empty-emoji {
  font-size: 42px;
  display: block;
  margin-bottom: 12px;
}

.airbnb-empty-state h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--hotel-dark);
  margin: 0 0 6px;
}

.airbnb-empty-state p {
  font-size: 14px;
  color: var(--hotel-gray-text);
  margin: 0;
}

/* ==========================================================================
   4. Shortcode [oteller] Layout & Filter Bar
   ========================================================================== */
.oteller-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px;
}

.oteller-header {
  margin-bottom: 24px;
}

.oteller-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--hotel-dark);
  margin: 0 0 6px;
}

.oteller-subtitle {
  font-size: 14.5px;
  color: var(--hotel-gray-text);
  margin: 0;
}

.oteller-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hotel-border);
}

.oteller-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.oteller-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--hotel-radius-full);
  border: 1px solid var(--hotel-border);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: var(--hotel-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.oteller-filter-pill:hover,
.oteller-filter-pill.is-active {
  background: var(--hotel-dark);
  color: #FFFFFF;
  border-color: var(--hotel-dark);
}

.oteller-filter-select {
  padding: 8px 14px;
  border-radius: var(--hotel-radius-full);
  border: 1px solid var(--hotel-border);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: var(--hotel-dark);
  outline: none;
}

/* ==========================================================================
   5. Single Hotel Page
   ========================================================================== */
.single-otel-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  font-family: inherit;
  color: var(--hotel-dark);
}

.single-otel-header {
  margin-bottom: 20px;
}

.single-otel-title {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.single-otel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  color: var(--hotel-gray-text);
}

.single-otel-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 10px;
  border-radius: var(--hotel-radius);
  overflow: hidden;
  margin-bottom: 36px;
  background: #E2E8F0;
}

.single-otel-photo-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.single-otel-photo-main img,
.single-otel-photo-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-otel-layout {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.single-otel-sticky-card {
  position: sticky;
  top: 100px;
  background: #FFFFFF;
  border: 1.5px solid var(--hotel-border);
  border-radius: var(--hotel-radius);
  padding: 28px;
  box-shadow: var(--hotel-shadow);
}

.single-otel-sticky-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--hotel-dark);
  margin-bottom: 16px;
}

.single-otel-book-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #FF5A1F 0%, #FF7A00 100%);
  color: #FFFFFF !important;
  text-align: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.3);
  margin-bottom: 14px;
  box-sizing: border-box;
}

/* ==========================================================================
   6. DEDICATED LUXURY MOBILE RESPONSIVE ENGINE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .airbnb-hotel-category-section {
    top: 56px;
    padding: 8px 0 0;
  }

  .airbnb-cat-container {
    padding: 0 12px;
  }

  .airbnb-cat-scroll {
    gap: 16px;
    padding-bottom: 8px;
  }

  .airbnb-cat-icon {
    font-size: 20px;
  }

  .airbnb-cat-label {
    font-size: 11px;
  }

  .oteller-main-container {
    padding: 16px 14px 60px;
  }

  .airbnb-subbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .airbnb-subbar-right {
    justify-content: space-between;
    width: 100%;
  }

  .airbnb-search-strip {
    margin-bottom: 20px;
  }

  .airbnb-search-input-wrap {
    max-width: 100%;
    padding: 8px 14px;
  }

  /* 1-Column Full-Width Hotel Cards on Mobile */
  .airbnb-hotels-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .airbnb-card-media-box {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .airbnb-hotel-name {
    font-size: 16px;
  }

  .airbnb-hotel-location {
    font-size: 13px;
  }

  .airbnb-hotel-features {
    font-size: 12.5px;
  }

  .airbnb-hotel-price-row {
    font-size: 15.5px;
  }

  /* Shortcode Mobile Filter Bar */
  .oteller-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .oteller-filter-group {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .oteller-filter-group::-webkit-scrollbar {
    display: none;
  }

  .oteller-filter-select {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Single Hotel Mobile */
  .single-otel-wrap {
    padding: 16px 14px 80px;
  }

  .single-otel-title {
    font-size: 24px;
  }

  .single-otel-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .single-otel-photo-sub {
    display: none;
  }

  .single-otel-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .single-otel-sticky-card {
    position: relative;
    top: 0;
    padding: 20px;
  }
}
