:root {
  --bg-main: #f5efea;
  --bg-panel: #fdf8f1;
  --bg-accent: #efe0cf;

  --border-main: #b3865b;
  --border-soft: #d7c0a9;

  --text-main: #3c2c23;
  --text-muted: #7b6c5e;

  --accent: #c0763a;
  --accent-dark: #8b4f1c;
  --accent-soft: #d49864;

  --danger: #b33b3b;
  --success: #3d7c4a;

  --radius-soft: 14px;
  --radius-pill: 999px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Josefin Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.page-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.site-header {
  background: linear-gradient(135deg, #f9f1e6, #f0e2cf);
  border-bottom: 1px solid var(--border-main);
}

.site-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  width: 64px;
  height: 64px;
  border-radius: 45% 55% 42% 58%;
  border: 2px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  background: radial-gradient(circle at 30% 30%, #ffffff, #f2dfc6);
  color: var(--accent-dark);
  font-size: 1.4rem;
}

.site-title-block h1 {
  margin: 0;
  font-size: 1.5rem;
}

.site-title-block p {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a.is-active {
  border-color: var(--border-main);
  background: rgba(239, 224, 207, 0.9);
}

.btn,
button,
input[type="submit"] {
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-dark);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
}

.btn-add-annonce {
  background: linear-gradient(135deg, #e8c9a2, #c2763e);
  border-color: #8b4f1c;
}

.layout-two-cols {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .layout-two-cols {
    grid-template-columns: 1fr;
  }
}

.map-container {
  background: var(--bg-panel);
  border-radius: var(--radius-soft);
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  padding: 0.75rem;
}

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  height: 320px;
}

@media (max-width: 600px) {
  .map-embed {
    height: 260px;
  }
}

.event-card {
  background: var(--bg-panel);
  border-radius: var(--radius-soft);
  border: 1px solid var(--border-soft);
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  position: relative;
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.event-card-title {
  font-size: 1.1rem;
  margin: 0 0 0.2rem;
}

.event-type-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-soft);
  background: rgba(212, 155, 98, 0.12);
  color: var(--accent-dark);
  white-space: nowrap;
}

.event-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.form-card {
  background: var(--bg-panel);
  border-radius: var(--radius-soft);
  border: 1px solid var(--border-soft);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  background: rgba(253, 248, 241, 0.92);
  outline: none;
}

.form-group textarea {
  border-radius: 16px;
  min-height: 90px;
  resize: vertical;
}

.search-bar {
  background: var(--bg-panel);
  border-radius: var(--radius-soft);
  border: 1px solid var(--border-main);
  padding: 0.8rem 1rem 0.9rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.search-bar-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
}

.search-bar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-field--grow {
  flex: 1 1 180px;
}

.search-field--small {
  flex: 0 0 140px;
}

@media (max-width: 800px) {
  .search-bar-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.decor-divider {
  margin: 1.5rem 0 1rem;
  text-align: center;
  position: relative;
}

.decor-divider span {
  background: var(--bg-main);
  padding: 0 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.form-message {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}
