/* phdeals.today — Component CSS */

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,238,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink);
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--teal); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(1000px 400px at 20% -10%, rgba(15,118,110,.08), transparent 60%),
    radial-gradient(800px 300px at 100% 0%, rgba(226,114,91,.08), transparent 60%),
    var(--sand);
}
.hero h1 { max-width: 20ch; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 55ch; margin-bottom: 2rem; }
.hero-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Live counter */
.live-counter {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* Filter bar */
.filter-bar {
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding: 1rem 0 2rem;
  overflow-x: auto;
}
.filter-chip {
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--teal); color: var(--teal); }
.filter-chip.active { background: var(--ink); color: white; border-color: var(--ink); }

/* Deal grid */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

/* Deal card */
.deal {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.deal:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.deal-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sand-2), var(--sand));
  position: relative;
  overflow: hidden;
}
.deal-image .badge-discount {
  position: absolute; top: 12px; right: 12px;
  padding: .3rem .6rem;
  background: var(--coral);
  color: white;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}
.deal-emoji {
  font-size: 5rem;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: .35;
}
.deal-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.deal-vendor {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.deal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: .75rem;
  color: var(--ink);
}
.deal-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.deal-price { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.price-current { font-size: 1.35rem; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.price-old { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.deal-cta {
  display: block;
  padding: .65rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s;
}
.deal-cta:hover { background: var(--teal); color: white; }

/* Section */
.section { padding: 3rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .95rem; }

/* Destination cards */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.dest-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%),
              linear-gradient(135deg, var(--teal), var(--teal-2));
  display: flex; align-items: flex-end;
  padding: 1.25rem;
  cursor: pointer;
  transition: transform .2s;
  border: 1px solid var(--line);
}
.dest-card:hover { transform: scale(1.02); }
.dest-card.bg-palawan { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%), linear-gradient(135deg, #0F766E, #164E63); }
.dest-card.bg-boracay { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%), linear-gradient(135deg, #06B6D4, #0891B2); }
.dest-card.bg-siargao { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%), linear-gradient(135deg, #059669, #065F46); }
.dest-card.bg-cebu { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%), linear-gradient(135deg, #E2725B, #C05621); }
.dest-card.bg-bohol { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%), linear-gradient(135deg, #D97706, #92400E); }
.dest-card.bg-baguio { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%), linear-gradient(135deg, #4A5568, #1A202C); }
.dest-info { color: white; z-index: 2; }
.dest-info h3 { color: white; font-size: 1.5rem; margin: 0 0 .35rem; }
.dest-info p { color: rgba(255,255,255,.85); font-size: .85rem; margin: 0; }
.dest-icon {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 2.5rem;
  opacity: .3;
}

/* Newsletter block */
.newsletter {
  background: linear-gradient(135deg, var(--ink), #0F1E22);
  color: white;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 20% 0%, rgba(15,118,110,.3), transparent);
  pointer-events: none;
}
.newsletter h2 { color: white; margin-top: 0; position: relative; }
.newsletter p { color: rgba(255,255,255,.75); max-width: 45ch; margin: .5rem auto 1.5rem; position: relative; }
.newsletter-form {
  display: flex; gap: .5rem; max-width: 460px; margin: 0 auto;
  position: relative;
  flex-wrap: wrap; justify-content: center;
}
.newsletter-form input {
  flex: 1 1 220px;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: .95rem;
  font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: 2px solid var(--teal); background: rgba(255,255,255,.12); }

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: .9rem;
}
.footer h4 { color: white; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer a { color: rgba(255,255,255,.7); display: block; padding: .25rem 0; }
.footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.disclosure {
  background: var(--sand-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .85rem;
  color: var(--ink-2);
  margin: 2rem 0;
}
