:root {
  --bg: #f7f0e8;
  --ink: #1a1a1a;
  --muted: #5e574f;
  --accent: #e4562a;
  --accent-dark: #9a2c0a;
  --panel: #ffffff;
  --shadow: rgba(26, 26, 26, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff9f2 0%, #f4e7d8 45%, #f7f0e8 100%);
}

h1, h2 {
  margin: 0;
}

.site-header {
  padding: 32px 6vw 10px;
}

.site-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-text .kicker {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}

.subtitle {
  max-width: 700px;
  margin: 12px 0 0;
  font-family: "Newsreader", serif;
  font-size: 18px;
  color: var(--muted);
}

.layout {
  padding: 24px 6vw 12px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.layout.full-map-layout {
  padding: 0;
  gap: 0;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 40px var(--shadow);
}

.map-panel {
  grid-column: 1;
  grid-row: 1;
  border-radius: 0;
  padding: 0;
  position: relative;
  height: 75vh;
  min-height: 500px;
}

.map-panel.full-width {
  width: 100%;
}

.map-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-bottom-controls {
  position: absolute;
  bottom: 35px;
  right: 110px;
  z-index: 1000;
  display: flex;
  gap: 12px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.map-button {
  border: 1px solid #cfc4b8;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.map-button:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.map-button:active {
  transform: translateY(0);
}

.map {
  height: 100%;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.map-hint {
  position: absolute;
  bottom: 100px;
  left: 20px;
  z-index: 1000;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 8px;
}

.fab-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(228, 86, 42, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(228, 86, 42, 0.5);
}

.fab-button:active {
  transform: scale(0.95);
}

.form-panel {
  grid-column: 1;
  grid-row: 2;
  border-radius: 24px 24px 0 0;
  margin: 0;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: var(--shadow);
}

.panel-head {
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 14px;
}

input, textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d7cfc6;
  font-size: 14px;
  font-family: inherit;
  background: #fffdfa;
}

input:focus, textarea:focus {
  outline: 2px solid rgba(228, 86, 42, 0.2);
  border-color: var(--accent);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.primary-button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(228, 86, 42, 0.3);
}

.danger-button {
  border: none;
  background: #b02a10;
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(176, 42, 16, 0.3);
}

.danger-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ghost-button {
  border: 1px solid #cfc4b8;
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.status {
  font-size: 14px;
  color: var(--muted);
}

.small {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.gallery {
  padding: 16px 6vw 60px;
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 34px var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 14px 16px 18px;
  min-height: 140px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card-body p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.card-date {
  position: absolute;
  right: 16px;
  bottom: 14px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.empty-state {
  margin-top: 12px;
  color: var(--muted);
  font-style: italic;
}

.site-footer {
  padding: 10px 6vw 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 15px;
}

.site-footer .primary-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-panel h2 {
  margin: 0 0 10px;
}

.about-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.about-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.about-list li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .map {
    height: 320px;
  }
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
