*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: #f8f2e8;
  color: #3f2e1d;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  z-index: -1;
  mix-blend-mode: multiply;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6vw;
  position: sticky;
  top: 0;
  background: rgba(248, 242, 232, 0.95);
  backdrop-filter: blur(6px);
  z-index: 10;
  border-bottom: 1px solid rgba(86, 54, 27, 0.08);
}

.brand {
  font-family: "Signika", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: #5d3a1f;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #5d3a1f;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: #4e3822;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: #e58e34;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a:focus::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  padding: 4rem 6vw 2rem;
  align-items: stretch;
}

.hero-copy {
  background: linear-gradient(135deg, rgba(255, 223, 168, 0.6), rgba(243, 219, 197, 0.4));
  padding: 2.5rem;
  border-radius: 32px;
  border: 2px solid rgba(103, 66, 31, 0.12);
  box-shadow: 0 18px 48px rgba(65, 43, 25, 0.12);
  position: relative;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: 1px dashed rgba(82, 52, 26, 0.2);
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: #f0a960;
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-family: "Signika", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin: 1.5rem 0 1rem;
  color: #3f2a18;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #ef8c43, #d96536);
  color: #fff;
  box-shadow: 0 12px 24px rgba(233, 110, 35, 0.28);
}

.btn.ghost {
  border: 2px solid rgba(181, 123, 62, 0.6);
  color: #6a4424;
  background: rgba(255, 255, 255, 0.8);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(128, 78, 37, 0.15);
  text-align: center;
}

.hero-stats dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(80, 52, 27, 0.7);
}

.hero-stats dd {
  margin: 0.35rem 0 0;
  font-family: "Signika", sans-serif;
  font-size: 1.35rem;
}

.hero-board {
  display: grid;
  gap: 1.2rem;
}

.hero-board img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(55, 37, 21, 0.2);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.board {
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  border: 2px solid rgba(96, 59, 28, 0.12);
  box-shadow: 0 24px 48px rgba(65, 43, 25, 0.1);
}

.board h2 {
  margin: 0 0 1.2rem;
  font-family: "Signika", sans-serif;
  color: #553517;
}

.board ol {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.4rem;
}

.planner {
  padding: 3.5rem 6vw;
}

.planner header {
  max-width: 720px;
  margin-bottom: 2.4rem;
}

.planner header h2 {
  font-family: "Signika", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
  color: #4b2f1b;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
}

.planner-grid article {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(124, 80, 38, 0.15);
  box-shadow: 0 18px 38px rgba(83, 55, 30, 0.12);
  display: grid;
}

.planner-grid h3 {
  margin: 1.5rem 1.5rem 0.8rem;
  font-family: "Signika", sans-serif;
  font-size: 1.4rem;
}

.planner-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.planner-grid ul {
  margin: 0 1.5rem 1.8rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.town-hub {
  padding: 3.5rem 6vw 5rem;
  background: linear-gradient(180deg, rgba(255, 236, 206, 0.55), rgba(248, 242, 232, 1));
}

.town-hub header {
  text-align: center;
  margin-bottom: 3rem;
}

.town-hub header h2 {
  font-family: "Signika", sans-serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: #5d3a1f;
  margin-bottom: 0.5rem;
}

.town-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.bulletin {
  background: #fff;
  border-radius: 26px;
  padding: 2rem;
  border: 1px solid rgba(94, 64, 34, 0.16);
  box-shadow: 0 18px 34px rgba(56, 37, 21, 0.12);
}

.bulletin h3 {
  margin-top: 0;
  font-family: "Signika", sans-serif;
  color: #553517;
}

.bulletin ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.timeline {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px dashed rgba(116, 84, 47, 0.4);
  display: grid;
  gap: 0.8rem;
}

.timeline h3 {
  margin: 0 0 0.6rem;
  font-family: "Signika", sans-serif;
}

.timeline div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.hearts {
  color: #d66143;
  letter-spacing: 2px;
}

.town-map {
  margin: 0;
  position: relative;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(56, 37, 21, 0.18);
}

.town-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.town-map figcaption {
  margin: 0;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.footer {
  padding: 2rem 6vw 2.5rem;
  background: #4d3119;
  color: #f0d8b8;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-link {
  color: #f6e8d6;
  text-decoration: none;
  font-weight: 600;
}

.page {
  padding: 0 6vw 4rem;
}

.sub-hero {
  margin-top: 1rem;
  padding: 2.8rem 6vw 2.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 170, 0.55), rgba(244, 226, 203, 0.6));
  border-bottom: 1px solid rgba(120, 77, 38, 0.15);
}

.sub-hero h1 {
  font-family: "Signika", sans-serif;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  margin: 0 0 0.6rem;
  color: #4b2f1b;
}

.sub-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(79, 55, 31, 0.85);
}

.page-layout {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 2.4rem;
}

.page-main {
  display: grid;
  gap: 1.8rem;
}

.note-card,
.guide-card-new,
.gallery-tile,
.team-profile,
.contact-panel,
.policy-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(128, 78, 37, 0.12);
  box-shadow: 0 18px 36px rgba(61, 41, 23, 0.12);
}

.guide-card-new img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 1.1rem 0 0.8rem;
  object-fit: cover;
}

.note-card h2,
.note-card h3 {
  font-family: "Signika", sans-serif;
  color: #523319;
  margin-top: 0;
}

.note-card img,
.gallery-tile img {
  width: 100%;
  border-radius: 18px;
  margin: 1.2rem 0 0.8rem;
}

.sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 1.6rem;
  align-self: start;
}

.sidebar-block {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  border: 1px dashed rgba(120, 79, 41, 0.3);
  padding: 1.6rem;
  display: grid;
  gap: 0.9rem;
}

.sidebar-block h3 {
  margin: 0;
  font-family: "Signika", sans-serif;
  color: #4c2f1b;
}

.sidebar-block ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checklist li::before {
  content: "✔";
  color: #ea883c;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.gallery-mosaic {
  columns: 2;
  column-gap: 1.5rem;
}

.gallery-tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.2rem;
  padding: 0;
  overflow: hidden;
}

.gallery-tile img {
  display: block;
}

.gallery-tile figcaption {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.team-profile h3 {
  margin-top: 0;
  font-family: "Signika", sans-serif;
}

.contact-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.policy-form {
  margin-top: 2rem;
}

.policy-form form {
  display: grid;
  gap: 1rem;
}

.policy-form label {
  font-weight: 600;
}

.policy-form input,
.policy-form textarea {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(128, 78, 37, 0.35);
  background: #fdf8f0;
}

.policy-form button {
  width: fit-content;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ef8c43, #d96536);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(233, 110, 35, 0.24);
}

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .gallery-mosaic {
    columns: 1;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-board img {
    aspect-ratio: 3 / 2;
  }

  .planner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .town-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline {
    order: 3;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.open {
    max-height: 320px;
  }

  .hero {
    padding: 3rem 6vw 1.5rem;
  }

  .hero-copy {
    padding: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .planner-grid {
    grid-template-columns: 1fr;
  }

  .town-hub {
    padding-bottom: 3rem;
  }
}

/* Push Notification Styles */
.notification {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1.2rem 1.6rem !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(5, 150, 105, 0.4), 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  max-width: 420px !important;
  width: auto !important;
  min-width: 300px !important;
  opacity: 0 !important;
  transform: translateX(calc(100% + 100px)) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  pointer-events: none !important;
  font-family: "Nunito", sans-serif !important;
}

.notification.show {
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: all !important;
}

.notification.success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 10px 40px rgba(5, 150, 105, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.notification-icon {
  font-size: 1.5rem !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
  font-weight: bold !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
}

.notification-message {
  flex: 1 !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.notification-close {
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  padding: 0 !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  font-weight: bold !important;
  margin-left: 0.5rem !important;
}

.notification-close:hover,
.notification-close:focus {
  background: rgba(255, 255, 255, 0.35) !important;
  transform: scale(1.1) !important;
  outline: none !important;
}

@media (max-width: 768px) {
  .notification {
    top: 16px !important;
    right: 16px !important;
    left: 16px !important;
    max-width: none !important;
    width: auto !important;
    min-width: auto !important;
    padding: 1rem 1.2rem !important;
    transform: translateY(-100px) !important;
  }

  .notification.show {
    transform: translateY(0) !important;
  }

  .notification-icon {
    font-size: 1.3rem !important;
    width: 28px !important;
    height: 28px !important;
  }

  .notification-close {
    width: 24px !important;
    height: 24px !important;
    font-size: 1.3rem !important;
  }
}

@media (max-width: 480px) {
  .notification {
    top: 12px !important;
    right: 12px !important;
    left: 12px !important;
    padding: 0.9rem 1rem !important;
    border-radius: 10px !important;
  }

  .notification-message {
    font-size: 0.9rem !important;
  }
}

/* ============================================
   Simple Notification Styles
   ============================================ */
.simple-notification {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: none;
  padding: 16px 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateX(calc(100% + 50px));
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 280px;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.simple-notification p {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

@keyframes slideInRight {
  from {
    transform: translateX(calc(100% + 50px));
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .simple-notification {
    top: 16px;
    right: 16px;
    left: 16px;
    font-size: 14px;
    padding: 14px 20px;
    min-width: auto;
  }
}

