/* ================= GLOBAL ================= */
body {
  font-family: "Poppins", sans-serif;
  background: #f6f1ea; /* warm Paris cream */
  margin: 0;
  color: #1f2a44; /* deep navy text */
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(31, 42, 68, 0.98); /* solid navy */
  backdrop-filter: blur(6px);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 40px;

  color: #f3e7c3; /* warm cream text */
  border-bottom: 1px solid rgba(200, 162, 74, 0.25); /* subtle gold line */

  z-index: 1000;
}

/* nav links */
.navbar a {
  color: #f3e7c3;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.navbar a:hover {
  color: #c8a24a; /* gold hover */
}

/* nav spacing */
.navbar ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.navbar h3 {
  letter-spacing: 2px;
  font-weight: 600;
}

body.dark .navbar {
  background: rgba(15, 20, 32, 0.98); /* deeper dark */
  border-bottom: 1px solid rgba(214, 178, 94, 0.2);
}

body.dark .navbar a {
  color: #e9e3d4;
}

body.dark .navbar a:hover {
  color: #d6b25e;
}

/* PROGRESS BAR */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #c8a24a;
  width: 0%;
  z-index: 2000;
}

/* SEARCH */
.search-wrapper {
  display: flex;
  justify-content: center;
}

#search {
  display: block;
  margin: 30px auto;
  padding: 14px 20px;

  width: 280px;
  max-width: 90%;

  border-radius: 40px;
  border: 2px solid #c8a24a;

  background: #ffffff;
  color: #1f2a44;

  font-family: "Poppins", sans-serif;
  font-size: 14px;

  outline: none;

  box-shadow: 0 8px 20px rgba(31, 42, 68, 0.08);
  transition: all 0.3s ease;
}

/* placeholder styling */
#search::placeholder {
  color: rgba(31, 42, 68, 0.5);
  letter-spacing: 1px;
}

/* hover */
#search:hover {
  box-shadow: 0 10px 25px rgba(200, 162, 74, 0.25);
  transform: scale(1.02);
}

/* focus (important for UX) */
#search:focus {
  border-color: #1f2a44;
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.25);
  background: #fffdf8;
}

body.dark #search {
  background: #1a2233;
  color: #e9e3d4;
  border-color: #d6b25e;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark #search::placeholder {
  color: rgba(233, 227, 212, 0.5);
}

body.dark #search:focus {
  border-color: #d6b25e;
  box-shadow: 0 0 0 3px rgba(214, 178, 94, 0.25);
  background: #141b2a;
}

.no-results {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: #1f2a44;
  opacity: 0.7;
  letter-spacing: 1px;
}

/* ================= SEARCH MODE (HIDE IMAGES) ================= */

#cafes.searching .card-header {
  display: none;
}

/* smooth hide animation for cards */
.card {
  transition: all 0.3s ease;
}

/* ensures grid doesn't break when filtering */
.grid {
  align-items: stretch;
}

/* optional: nicer input spacing fix */
.search-wrapper {
  margin-bottom: 10px;
}

/* DARK MODE */
body.dark .no-results {
  color: #e9e3d4;
}

/* LOADER */
/* ================= LOADER ================= */
#loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 12px;
  padding: 30px;

  font-weight: 500;
  color: #1f2a44;
}

/* spinner */
.spinner {
  width: 40px;
  height: 40px;

  border: 3px solid rgba(200, 162, 74, 0.2); /* soft gold base */
  border-top: 3px solid #c8a24a; /* gold accent */

  border-radius: 50%;

  animation: spin 0.8s linear infinite;
}

/* animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* loader text */
#loader p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.7;
}

body.dark #loader {
  color: #e9e3d4;
}

body.dark .spinner {
  border: 3px solid rgba(214, 178, 94, 0.2);
  border-top: 3px solid #d6b25e;
}

.spinner {
  box-shadow: 0 0 10px rgba(200, 162, 74, 0.3);
}

/* TOAST */
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: linear-gradient(135deg, #1f2a44, #2c3b5e);
  color: #f3e7c3;

  padding: 14px 24px;
  border-radius: 40px;

  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;

  border: 1px solid rgba(200, 162, 74, 0.4);

  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.25);

  opacity: 0;
  pointer-events: none;

  transition: all 0.4s ease;
}

/* visible state */
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.dark #toast {
  background: linear-gradient(135deg, #141b2a, #1c2740);
  color: #e9e3d4;

  border: 1px solid rgba(214, 178, 94, 0.35);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
/* ================= HERO ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;

  background-image: linear-gradient(
      rgba(31, 42, 68, 0.6),
      rgba(31, 42, 68, 0.6)
    ),
    url("../images/disneyland-paris.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  color: white;
  text-align: center;
  padding: 20px;
}

.hero header {
  background: none;
  padding: 0;
}

.hero h1 {
  font-weight: 700;
  font-size: 96px;
  margin: 20px 0;
}

.hero h2 {
  font-weight: 400;
  font-size: 40px;
  margin: 0;
}

.hero h3 {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 5px;
  margin: 0;
}

/* GOLD BUTTON */
.hero a {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 32px;
  background: #c8a24a;
  color: #1f2a44;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-radius: 5px;
  transition: 0.3s ease;
}

.hero a:hover {
  background: #b8923f;
  transform: scale(1.05);
}

/* ================= GRID ================= */
.grid {
  display: grid;
  gap: 64px;
  align-items: stretch;
}

.grid-2-columns {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3-columns {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3-columns-with-first-narrow {
  grid-template-columns: 1fr 2fr 2fr;
}

/* ================= IMAGES ================= */
.img-responsive {
  width: 100%;
  display: block;
  filter: brightness(0.95) contrast(1.05) saturate(0.95);
  transition: all 0.3s ease;
}

.img-responsive:hover {
  filter: brightness(1) contrast(1.1) saturate(1.1);
  transform: scale(1.02);
}

/* ================= CARDS ================= */
.card {
  background: #ffffff;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;

  box-shadow: 0 10px 25px rgba(31, 42, 68, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(31, 42, 68, 0.15);
}

.card-header img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.3s ease;
}

.card-header img:hover {
  filter: grayscale(0%);
}

.card-body {
  padding: 30px;
  flex: 1;
}

.card-footer {
  padding: 0 30px 30px;
  margin-top: auto;
}

/* ================= BUTTON ================= */
.btn {
  display: block;
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px;
  background-color: #1f2a44;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: #2c3b5e;
  transform: scale(1.03);
}

/* ================= SECTION ================= */
section {
  max-width: 100%;
  margin: 0 auto;
  padding: 100px;
}

section.secondary {
  background: #fdfaf6;
}

/* ================= TABLE ================= */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: white;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(31, 42, 68, 0.08);
}

th,
td {
  padding: 18px 20px;
  vertical-align: middle;
  width: 50%;
}

th {
  background: #1f2a44;
  color: #c8a24a;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  text-align: center;
}

td:first-child {
  text-align: left;
  font-weight: 600;
}

td:last-child {
  text-align: center;
}

tr:nth-child(even) {
  background: #f7f3ee;
}

tr:hover {
  background: #f2e9dc;
}

/* ================= TEXT ================= */
main {
  background-color: white;
}

main h2 {
  font-size: 16px;
  letter-spacing: 5px;
  opacity: 0.4;
  text-transform: uppercase;
}

main h3 {
  font-size: 40px;
}

main h4 {
  font-size: 24px;
}

main h5 {
  font-size: 13px;
}

main p {
  font-size: 16px;
  opacity: 0.75;
}

/* ================= LIKE BUTTON ================= */
.like-btn {
  background: transparent;
  border: 2px solid #c8a24a; /* gold accent */
  color: #1f2a44; /* navy text */
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 30px 0;
  display: inline-block;
}

.like-btn:hover {
  background: #c8a24a;
  color: white;
  transform: scale(1.05);
}

.like-btn:active {
  transform: scale(0.95);
}

/* ACTIVE STATE (when clicked) */
.like-btn.liked {
  background: #1f2a44;
  border-color: #1f2a44;
  color: #ffffff;
}

.like-count {
  text-align: center;
  margin: 8px 30px 15px;
  font-size: 14px;
  color: #1f2a44;
  opacity: 0.7;
}

/* ================= STAR RATING  ================= */

.rating {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 30px;
}

.rating span {
  cursor: pointer;
  font-size: 18px;

  /* match like button vibe */
  border: 2px solid #c8a24a;
  border-radius: 50px;
  padding: 6px 10px;

  background: transparent;
  color: #1f2a44;

  transition: all 0.3s ease;
}

/* hover effect (like button hover) */
.rating span:hover {
  background: #c8a24a;
  color: white;
  transform: scale(1.1);
}

/* selected state (JS already controls opacity, but we enhance it) */
.rating span.active {
  background: #1f2a44;
  border-color: #1f2a44;
  color: #ffffff;
  opacity: 1 !important;
}

/* ================= RATING VALUE  ================= */

.rating-value {
  text-align: center;
  margin: 8px 30px 15px;
  font-size: 14px;
  color: #1f2a44;
  opacity: 0.7;
}

/* ================= SCROLL BUTTON ================= */
#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  padding: 12px;
  border-radius: 50%;
  background: #1f2a44;
  color: white;
  border: none;
  cursor: pointer;
}

/* ================= FADE ================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= FOOTER ================= */
footer {
  color: white;
  background-image: linear-gradient(
      rgba(31, 42, 68, 0.92),
      rgba(31, 42, 68, 0.92)
    ),
    url("../images/paris-footer.png");
  background-repeat: no-repeat;
  background-size: cover;
}

footer section {
  padding: 60px 40px;
}

footer h3 {
  font-size: 20px;
}

footer p {
  font-size: 16px;
  opacity: 0.8;
}

footer ul {
  padding: 0;
}

footer li {
  list-style: none;
}

footer a {
  color: #c8a24a;
  text-decoration: none;
  opacity: 0.9;
}

footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ================= THEME MODE TOGGLE================= */
#themeToggle {
  position: static; /* no more floating */
  margin-left: 20px;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: 2px solid #c8a24a;

  background: transparent;
  color: #f3e7c3;

  cursor: pointer;
  transition: 0.3s;
}

#themeToggle:hover {
  background: #c8a24a;
  color: #1f2a44;
}
/* ================= DARK MODE ================= */
body.dark {
  background: #0f1420;
  color: #e9e3d4;
}

body.dark .card,
body.dark table,
body.dark main {
  background: #1a2233;
  color: #e9e3d4;
}

body.dark section.secondary {
  background: #141b2a;
}

body.dark footer {
  filter: brightness(0.95);
}

/* buttons inside dark mode */
body.dark .btn {
  background-color: #d6b25e;
  color: #1a2233;
}

body.dark .btn:hover {
  background-color: #e2c776;
}

/* like button in dark mode */
body.dark .like-btn {
  border-color: #d6b25e;
  color: #e9e3d4;
}

body.dark .like-btn.liked {
  background: #d6b25e;
  color: #1a2233;
}

.like-count {
  text-align: center;
  margin: 8px 30px 15px;
  font-size: 14px;
  color: #1f2a44;
  opacity: 0.7;
}

/* ⭐ DARK MODE FIX FOR LIKE TEXT */
body.dark .like-count {
  color: #ffffff; /* or #e9e3d4 if you prefer softer tone */
  opacity: 0.85;
}

body.dark .rating-value {
  color: #ffffff;
  opacity: 0.85;
}

/* table tweaks */
body.dark tr:nth-child(even) {
  background: #121a2a;
}

body.dark tr:hover {
  background: #1c2740;
}


/* ================= WEATHER SECTION  ================= */

.weather-box {
  padding: 80px 20px;
}

/* section title */
.weather-box h2 {
  font-size: 16px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 20px;
}

/* main weather card */
#weatherCard {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  max-width: 750px;
  margin: 0 auto;

  box-shadow: 0 10px 25px rgba(31, 42, 68, 0.08);
  transition: transform 0.3s ease;
}

#weatherCard:hover {
  transform: translateY(-4px);
}

/* current weather block */
.current-weather {
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(31, 42, 68, 0.1);
}

#weatherIcon {
  width: 90px;
  height: 90px;
  margin-bottom: 10px;
}

#weatherIcon,
.forecast-card img {
  filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(1.05);
  opacity: 0.95;
  transition: all 0.3s ease;
}

#weatherIcon:hover,
.forecast-card img:hover {
  transform: scale(1.1);
  filter: sepia(1) saturate(6) hue-rotate(10deg) brightness(1.2);
}

body.dark #weatherIcon,
body.dark .forecast-card img {
  filter: sepia(1) saturate(4) hue-rotate(15deg) brightness(1.1);
}

#temp {
  font-size: 40px;
  font-weight: 700;
  margin: 10px 0;
  color: #1f2a44;
}

#feelsLike,
#wind {
  font-size: 14px;
  opacity: 0.7;
  margin: 4px 0;
}

/* forecast heading */
#weatherCard h3 {
  margin-top: 30px;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1f2a44;
  opacity: 0.6;
  text-align: center;
}

/* forecast grid */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

/* forecast cards */
.forecast-card {
  background: #f7f3ee;
  padding: 12px;
  border-radius: 10px;
  text-align: center;

  transition: all 0.3s ease;
}

.forecast-card:hover {
  background: #f2e9dc;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(31, 42, 68, 0.08);
}

.forecast-card img {
  width: 40px;
  height: 40px;
  margin: 6px 0;
}

.forecast-card p {
  font-size: 13px;
  margin: 4px 0;
  color: #1f2a44;
}

#humidity,
#sunrise,
#sunset,
#comfort {
  font-size: 14px;
  opacity: 0.85;
  margin: 4px 0;
}

/* ================= DARK MODE ================= */

body.dark #weatherCard {
  background: #1a2233;
  color: #e9e3d4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.dark #temp {
  color: #e9e3d4;
}

body.dark .forecast-card {
  background: #121a2a;
  color: #e9e3d4;
}

body.dark .forecast-card:hover {
  background: #1c2740;
}

/* ================= WEATHER DARK MODE TEXT ================= */

body.dark .weather-box h2,
body.dark #weatherCard h3,
body.dark #temp,
body.dark #feelsLike,
body.dark #wind,
body.dark .forecast-card p {
  color: #ffffff !important;
  opacity: 0.9;
}

body.dark .forecast-card {
  background: #121a2a;
  color: #ffffff;
}

body.dark .forecast-card:hover {
  background: #1c2740;
}

body.dark #weatherCard {
  background: #1a2233;
  color: #ffffff;
}

body.dark #weatherCard * {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
/* ================= INSTAGRAM GALLERY  ================= */

.instagram-embeds {
  display: grid;
  gap: 40px;
}

/* center the grid nicely */
.instagram-embeds .grid {
  justify-items: center;
}

/* override Instagram default blockquote styling */
blockquote.instagram-media {
  background: transparent !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(31, 42, 68, 0.08) !important;
  border-radius: 12px !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* remove ugly inner padding box styling */
blockquote.instagram-media > div {
  background: transparent !important;
}

/* make embedded content feel consistent with your cards */
blockquote.instagram-media a {
  font-family: "Poppins", sans-serif !important;
}

/* DARK MODE SUPPORT */
body.dark blockquote.instagram-media {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

/* ================= MAP QUICK ACTION BUTTONS ================= */

.text-center button {
  background: transparent;
  border: 2px solid #c8a24a; /* gold accent */
  color: #1f2a44;

  padding: 10px 18px;
  margin: 6px;
  border-radius: 30px;

  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;

  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

/* hover effect (matches like + hero button feel) */
.text-center button:hover {
  background: #c8a24a;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(200, 162, 74, 0.25);
}

/* active press feel */
.text-center button:active {
  transform: scale(0.97);
}

body.dark .text-center button {
  border-color: #d6b25e;
  color: #e9e3d4;
}

body.dark .text-center button:hover {
  background: #d6b25e;
  color: #1a2233;
  box-shadow: 0 8px 20px rgba(214, 178, 94, 0.25);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero h3 {
    font-size: 12px;
  }

  section {
    padding: 40px 20px;
  }

  .grid {
    gap: 32px;
  }

  .card-header img {
    display: none;
  }

  .grid-2-columns,
  .grid-3-columns {
    grid-template-columns: 1fr;
  }
}