/* ============================================
STYLE PART 2 - Components v2.0
============================================ */

/* Hero */

.hero {
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--gradient-hero);
  overflow:hidden
}

.hero-bg-image {
  position:absolute;
  inset:0;
  background:url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920&q=80') center/cover no-repeat;
  opacity:.55
}

.hero-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,61,92,.4) 0%,rgba(0,119,182,.25) 50%,rgba(0,61,92,.5) 100%)
}

.hero-particles {
  position:absolute;
  inset:0;
  overflow:hidden
}

.hero-particles span {
  position:absolute;
  width:6px;
  height:6px;
  background:rgba(255,255,255,.15);
  border-radius:50%;
  animation:float-particle 15s infinite linear
}

.hero-particles span:nth-child(1) { left:10%; animation-delay:0s; animation-duration:12s }
.hero-particles span:nth-child(2) { left:25%; animation-delay:2s; animation-duration:18s }
.hero-particles span:nth-child(3) { left:40%; animation-delay:4s; animation-duration:14s }
.hero-particles span:nth-child(4) { left:55%; animation-delay:1s; animation-duration:16s }
.hero-particles span:nth-child(5) { left:70%; animation-delay:3s; animation-duration:20s }
.hero-particles span:nth-child(6) { left:85%; animation-delay:5s; animation-duration:13s }

@keyframes float-particle {
  0% { transform:translateY(100vh) rotate(0deg); opacity:0 }
  10% { opacity:1 }
  90% { opacity:1 }
  100% { transform:translateY(-100vh) rotate(720deg); opacity:0 }
}

.hero-content {
  position:relative;
  z-index:2;
  text-align:center;
  color:var(--white);
  padding:0 20px;
  max-width:800px
}

.hero-badge {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding:8px 20px;
  border-radius:50px;
  font-size:.85rem;
  font-weight:500;
  margin-bottom:24px;
  border:1px solid rgba(255,255,255,.18);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size:3.5rem;
  font-weight:800;
  line-height:1.15;
  margin-bottom:20px;
  text-shadow:0 2px 30px rgba(0,0,0,.3)
}

.hero h1 .highlight {
  background:linear-gradient(135deg,var(--secondary),var(--accent));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text
}

.hero p {
  font-size:1.15rem;
  color:rgba(255,255,255,.85);
  margin-bottom:36px;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
  line-height:1.8
}

.hero-buttons {
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap
}

.hero-buttons .btn {
  padding:14px 32px;
  font-size:1rem
}

.scroll-indicator {
  position:absolute;
  bottom:40px;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.7);
  font-size:.8rem;
  animation:bounce-scroll 2s infinite
}

.scroll-indicator .mouse {
  width:28px;
  height:42px;
  border:2px solid rgba(255,255,255,.5);
  border-radius:14px;
  position:relative
}

.scroll-indicator .mouse::before {
  content:'';
  position:absolute;
  top:8px;
  left:50%;
  transform:translateX(-50%);
  width:4px;
  height:8px;
  background:rgba(255,255,255,.7);
  border-radius:2px;
  animation:scroll-wheel 2s infinite
}

@keyframes scroll-wheel {
  0% { opacity:1; transform:translateX(-50%) translateY(0) }
  100% { opacity:0; transform:translateX(-50%) translateY(12px) }
}

@keyframes bounce-scroll {
  0%,100% { transform:translateX(-50%) translateY(0) }
  50% { transform:translateX(-50%) translateY(10px) }
}

/* Wave Separator */

.wave-separator {
  position:relative;
  width:100%;
  overflow:hidden;
  line-height:0;
  margin-top:-2px
}

.wave-separator svg {
  display:block;
  width:100%;
  height:80px
}

.wave-separator.flip {
  transform:rotate(180deg)
}

/* Search Section */

.search-section {
  padding:80px 0;
  background:var(--bg-light)
}

.search-box {
  max-width:780px;
  margin:0 auto;
  display:flex;
  gap:12px;
  background:var(--white);
  padding:8px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg)
}

.search-box input {
  flex:1;
  padding:14px 20px;
  border-radius:var(--radius-md);
  background:var(--bg-gray);
  font-size:.95rem;
  color:var(--text)
}

.search-box input::placeholder {
  color:var(--text-muted)
}

.search-box .btn {
  padding:14px 28px;
  border-radius:var(--radius-md)
}

/* ===== SAW Search Chips ===== */

.saw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.saw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-light);
  border: 1px solid rgba(0,119,182,0.12);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.saw-chip:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.saw-chip i {
  font-size: 0.8rem;
  opacity: 0.7;
}

html.dark .saw-chip {
  background: #081a33;
  border-color: #133052;
  color: #a6cbe8;
}

html.dark .saw-chip:hover {
  background: rgba(0,119,182,0.15);
  border-color: var(--primary);
  color: #90E0EF;
}

/* ===== Loading Skeleton Cards ===== */

.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-card .skeleton-img {
  height: 220px;
  width: 100%;
}

.skeleton-card .skeleton-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card .skeleton-line {
  height: 14px;
  border-radius: 4px;
}

.skeleton-card .skeleton-line.short { width: 60%; }
.skeleton-card .skeleton-line.medium { width: 80%; }
.skeleton-card .skeleton-line.full { width: 100%; }

html.dark .skeleton-card {
  background: #081a33;
  border: 1px solid #133052;
}

/* ===== Destinations Grid ===== */

.destinations-section {
  padding:80px 0
}

.destinations-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:28px
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.filter-bar .filter-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-bar .filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-light);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--primary-50);
  color: var(--primary);
  border-color: rgba(0,119,182,0.2);
}

html.dark .filter-bar {
  background: #081a33;
  border-color: #133052;
}

html.dark .filter-chip {
  background: #040b16;
  color: #a6cbe8;
}

html.dark .filter-chip:hover,
html.dark .filter-chip.active {
  background: rgba(0,119,182,0.15);
  color: #90E0EF;
  border-color: rgba(0,180,216,0.3);
}

/* ===== Destination Card v2 ===== */

.dest-card {
  background:var(--white);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
  position:relative;
  border: 1px solid rgba(0,0,0,0.04);
}

.dest-card:hover {
  transform:translateY(-6px);
  box-shadow:var(--shadow-xl);
}

.dest-card-image {
  position:relative;
  height:220px;
  overflow:hidden
}

.dest-card-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s cubic-bezier(.4,0,.2,1)
}

.dest-card:hover .dest-card-image img {
  transform:scale(1.08)
}

/* Overlay gradient on card image */
.dest-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.dest-card:hover .dest-card-image::after {
  opacity: 1;
}

.dest-card-badge {
  position:absolute;
  top:14px;
  left:14px;
  background:rgba(0,119,182,.85);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color:var(--white);
  padding:4px 14px;
  border-radius:50px;
  font-size:.75rem;
  font-weight:600;
  z-index: 2;
}

.dest-card-price {
  position:absolute;
  bottom:14px;
  right:14px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color:var(--primary);
  padding:6px 16px;
  border-radius:50px;
  font-size:.82rem;
  font-weight:700;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.5);
}

.dest-card-body {
  padding:20px
}

.dest-card-body h4 {
  margin-bottom:8px;
  color:var(--text);
  font-size:1.1rem;
  font-weight: 700;
}

.dest-card-location {
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--text-muted);
  font-size:.83rem;
  margin-bottom:12px
}

.dest-card-rating {
  display:flex;
  align-items:center;
  gap:4px;
  margin-bottom:14px
}

.dest-card-rating .stars {
  display:flex;
  gap:2px;
  color:var(--star);
  font-size:.85rem
}

.dest-card-rating span {
  font-size:.83rem;
  color:var(--text-muted);
  margin-left:4px
}

.dest-card-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 4px;
}

.dest-card-footer .btn {
  padding:8px 20px;
  font-size:.85rem
}

/* ===== RESPONSIVE ===== */

@media(max-width:1024px) {
  .hero h1 { font-size:2.8rem }
  .destinations-grid {
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px
  }
}

@media(max-width:768px) {
  .hero { min-height:80vh }
  .hero h1 { font-size:2rem }
  .hero p { font-size:1rem; margin-bottom:24px }
  .hero-buttons {
    flex-direction:column;
    align-items:center;
    gap:12px
  }
  .hero-buttons .btn {
    width:100%;
    max-width:280px;
    justify-content:center
  }
  .hero-badge { font-size:.75rem; padding:6px 14px }
  .scroll-indicator { display:none }
  .search-section { padding:50px 0 }
  .search-box {
    flex-direction:column;
    padding:12px
  }
  .search-box input { padding:12px 16px }
  .search-box .btn { width:100%; justify-content:center }
  .destinations-section { padding:50px 0 }
  .destinations-grid {
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:16px
  }
  .dest-card-image { height:180px }
  .filter-bar { padding: 12px 16px; }
  .saw-chips { gap: 8px; }
  .saw-chip { padding: 6px 14px; font-size: 0.8rem; }
}

@media(max-width:480px) {
  .hero h1 { font-size:1.6rem }
  .hero p { font-size:.9rem }
  .hero-content { padding:0 12px }
  .destinations-grid { grid-template-columns:1fr }
  .dest-card-body { padding:16px }
}
