/* ── RESET & BASE ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background: #fff;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER / HERO ── */
header {
  text-align: center;
  padding: 60px 20px 50px;
}

header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 12px;
  text-transform: uppercase;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #222;
  line-height: 1.1;
  margin-bottom: 10px;
}

header h2 {
  font-size: 1.1rem;
  font-weight: 300;
  color: #888;
  margin-bottom: 30px;
}

header a {
  display: inline-block;
  background-color: #e53935;
  color: #fff;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background-color 0.2s, transform 0.2s;
}

header a:hover {
  background-color: #c62828;
  transform: translateY(-2px);
}

/* ── HERO IMAGE ── */
.hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 0 auto 60px;
}

/* ── SHARED SECTION TITLES ── */
.about-city h2,
.cafes h2,
.weather h2,
.gallery h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e53935;
  margin-bottom: 10px;
}

.about-city h3,
.cafes h3,
.weather h3,
.gallery h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 30px;
}

/* ── ABOUT CITY ── */
.about-city {
  padding: 20px 0 60px;
}

.about-city p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: #555;
  margin-bottom: 16px;
}

/* ── CARDS + GRID ── */
.cafes {
  padding: 20px 0 60px;
}

.cafe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cafe-visual {
  display: flex;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.cafe-visual img,
.map-container {
  width: 50% !important;
  height: 100%;
  object-fit: cover;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cafe-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.cafe-card h5 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin: 12px 0 4px;
}

.cafe-card p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: #555;
}

.cafe-card a {
  display: inline-block;
  margin-top: 14px;
  color: #e53935;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #e53935;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.cafe-card a:hover {
  color: #c62828;
  border-color: #c62828;
}

/* ── HTML TABLE ── */
.weather {
  padding: 20px 0 60px;
}

.table-wrapper {
  overflow-x: auto; /* scroll horizontal en mobile */
  border-radius: 12px;
  border: 1px solid #eee;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background-color: #e53935;
  color: #fff;
}

thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #fff5f5;
}

tbody td {
  padding: 14px 18px;
  color: #555;
  font-weight: 300;
}

tbody td:first-child {
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

/* ── GALLERY ── */
.gallery {
  padding: 20px 0 60px;
}

/* ── CSS FILTERS ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.photo-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: filter 0.3s, transform 0.3s;
}

.photo-item p {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-top: 8px;
  font-weight: 400;
}

/* Filter 1: Warm/sepia tone */
.filter-warm {
  filter: sepia(40%) saturate(120%) brightness(1.05);
}

.filter-warm:hover {
  filter: sepia(0%) saturate(100%) brightness(1);
}

/* Filter 2: Cool/blue tone */
.filter-cool {
  filter: hue-rotate(20deg) saturate(80%) brightness(0.95);
}

.filter-cool:hover {
  filter: hue-rotate(0deg) saturate(100%) brightness(1);
}

/* Filter 3: Vivid/contrast boost */
.filter-vivid {
  filter: saturate(150%) contrast(110%);
}

.filter-vivid:hover {
  filter: saturate(100%) contrast(100%);
}

/* ── INSTAGRAM EMBEDS GRID ── */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.instagram-grid .instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

/* ── FOOTER ── */
footer {
  background-color: #222;
  color: #ccc;
  padding: 60px 20px;
  margin-top: 60px;
  /* Full-width trick, works when container has max-width */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.footer-grid h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-grid p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #aaa;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.4rem;
  }

  .cafe-grid,
  .photo-grid,
  .instagram-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    text-align: center;
    gap: 30px;
  }

  .cafe-visual {
    height: 180px;
  }

  thead th,
  tbody td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.9rem;
  }

  .cafe-visual {
    flex-direction: column;
    height: 320px;
  }

  .cafe-visual img,
  .map-container {
    width: 100% !important;
    height: 160px;
  }

  .photo-item img {
    height: 160px;
  }
}