/* /assets/style.css */

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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 20px 0;
}

/* HEADER */
.site-header {
  background: #003300;
  color: #fff;
  padding: 20px 0;
}

.site-header h1 {
  margin-bottom: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* FOOTER */
.site-footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: #006600;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.back-link {
  display: inline-block;
  margin: 10px 0;
  color: #006600;
  text-decoration: none;
}

/* Pubs Grid */
.pubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pub-card {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.pub-card a {
  color: #003300;
  text-decoration: none;
  font-weight: bold;
}

/* Pub Subpage Layout */
.pub-page h3 {
  margin-top: 40px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.pub-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.pub-intro img {
  border-radius: 12px;
  max-height: 300px;
  object-fit: cover;
}

.pub-sections ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.map {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 10px;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .pub-intro {
    flex-direction: row;
    align-items: center;
  }

  .pub-intro div {
    flex: 1;
  }

  .pub-intro img {
    flex: 1;
    max-width: 400px;
  }
}

/* === Skeleton Loader === */
.skeleton-loader {
  background: linear-gradient(90deg, #eeeeee 25%, #dddddd 50%, #eeeeee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
  height: 1.2em;
  width: 100%;
  margin: 0.5em 0;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
