/* ============================================================
   STYLES.CSS — Rhodes Guide App
   Component-level styles: cards, carousels, buttons, modals.
   Loaded on every category page AFTER global.css.

   Load order in every HTML page:
     1. css/global.css   (fonts, reset, base)
     2. css/styles.css   (this file — components)
   ============================================================ */

/* ---- Font override: ensure Inter/Playfair always win ---- */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================================
   PAGE BACKGROUNDS (one class per category page)
   ============================================================ */

body.restaurants-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("../assets/restaurants-bg.jpg") center / cover no-repeat fixed;
}

body.coffee-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("../assets/coffee-bg.jpg") center / cover no-repeat fixed;
}

body.clubs-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("../assets/clubs-bg.jpg") center / cover no-repeat fixed;
}

body.beaches-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("../assets/beaches-bg.jpg") center / cover no-repeat fixed;
}

body.activities-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("../assets/activities-bg.jpg") center / cover no-repeat fixed;
}

body.sightseeing-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("../assets/sightseeing-bg.jpg") center / cover no-repeat fixed;
}

/* ============================================================
   PAGE TITLE
   ============================================================ */

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin: 30px auto 24px;
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.6),
    0 0 12px rgba(0,0,0,0.4);
}

/* ============================================================
   PLACES CONTAINER
   ============================================================ */

#places-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ============================================================
   RESTAURANT / PLACE CARD
   ============================================================ */

.restaurant-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 16px;
  padding-bottom: 60px;
  width: 300px;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  color: #222;
}

.restaurant-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin: 10px 0;
  color: #111;
}

.restaurant-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  margin: 5px 0;
  color: #333;
}

/* ============================================================
   CAROUSEL
   ============================================================ */

.carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 12px;
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel img.active {
  opacity: 1;
}

/* ============================================================
   BADGE
   ============================================================ */

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 215, 0, 0.9);
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 5;
}

/* ============================================================
   META INFO
   ============================================================ */

.meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 8px;
}

/* ============================================================
   MAP / GO BUTTON
   ============================================================ */

.map-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: linear-gradient(135deg, #00bbf9, #00f5d4);
  color: #000;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(0,187,249,0.4);
}

/* ============================================================
   UNLOCK BUTTON (on locked cards)
   ============================================================ */

.unlock-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: linear-gradient(135deg, #caa75c, #e0c27a);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: unlockPulse 2s infinite;
}

.unlock-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

@keyframes unlockPulse {
  0%   { transform: scale(1);    }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1);    }
}

@media (max-width: 600px) {
  .unlock-btn {
    padding: 12px 18px;
    font-size: 15px;
  }
}

/* ============================================================
   UNLOCK MODAL
   ============================================================ */

.unlock-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
}

.unlock-container {
  position: relative;
  background: #111;
  color: #fff;
  padding: 40px;
  border-radius: 14px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: unlockPop 0.3s ease;
}

@keyframes unlockPop {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.unlock-close {
  position: absolute;
  right: 20px;
  top: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.unlock-subtitle {
  opacity: 0.8;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.unlock-benefits {
  margin: 20px 0;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.unlock-benefits div {
  margin: 6px 0;
}

.unlock-input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.unlock-pay {
  width: 100%;
  margin-top: 15px;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #caa75c;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.unlock-code {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.unlock-divider {
  margin: 15px 0;
  opacity: 0.6;
}

/* ============================================================
   MAP
   ============================================================ */

#map {
  height: 400px;
  margin-bottom: 20px;
}

/* ============================================================
   BACK HOME BUTTON
   ============================================================ */

.back-home {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   MISC
   ============================================================ */

.index-page {
  padding-top: 3px;
}

.lang-switch button.active {
  background: #d4af37;
  color: #000;
}

/* ============================================================
   COMBINE BUTTON (on unlocked cards, left of Go button)
   ============================================================ */

.combine-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.combine-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(123,47,247,0.45);
}

/* ============================================================
   COMBINE MODAL (overlay)
   ============================================================ */

.combine-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
}

.combine-modal-container {
  position: relative;
  background: rgba(20, 20, 35, 0.96);
  color: #fff;
  padding: 36px 32px 28px;
  border-radius: 18px;
  max-width: 440px;
  width: 92%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  animation: unlockPop 0.28s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.combine-modal-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: #fff;
}

.combine-modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  opacity: 0.75;
  margin: 0 0 22px;
}

.combine-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.combine-modal-close:hover { opacity: 1; }

.combine-section {
  margin-bottom: 20px;
}

.combine-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.65;
  margin-bottom: 8px;
}

.combine-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.combine-slider {
  flex: 1;
  accent-color: #7b2ff7;
  height: 4px;
  cursor: pointer;
}

.combine-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.combine-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.combine-check-item:hover {
  background: rgba(255,255,255,0.15);
}

.combine-check-item input[type="checkbox"] {
  accent-color: #7b2ff7;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.combine-show-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(123,47,247,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.combine-show-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(123,47,247,0.55);
}

/* ============================================================
   COMBINE PAGE (combine.html)
   ============================================================ */

body.combine-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("../assets/beaches-bg.jpg") center / cover no-repeat fixed;
}

.combine-origin-section {
  max-width: 400px;
  margin: 0 auto 32px;
  padding: 0 16px;
  text-align: center;
}

.combine-origin-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 10px;
  color: #fff;
}

.combine-origin-inner {
  padding-bottom: 60px;
}

.combine-results-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.combine-category-section {
  margin-bottom: 36px;
}

.combine-category-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 0 0 16px 4px;
  letter-spacing: 0.5px;
}

.combine-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.combine-suggestion-card {
  width: 260px;
  padding-bottom: 60px;
}

.combine-loading,
.combine-no-results {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 40px 20px;
}

@media (max-width: 600px) {
  .combine-cards-grid {
    justify-content: center;
  }
  .combine-suggestion-card {
    width: 300px;
  }
}
