
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
  font-size: 16px;
}

body {
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

.main-content {
  max-width: 600px;
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
}

/* About Banner */
.about-banner {
  text-align: center;
  padding: 1em 1.5em;
  margin-bottom: 1.5em;
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}

.about-text {
  font-size: 0.9em;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.about-tagline {
  font-size: 0.85em;
  color: #888;
  font-style: italic;
  margin-bottom: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: #000;
}

h1 {
  font-size: 1.8em;
  margin-bottom: 0.8em;
}

h2 {
  font-size: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 0.7em;
}

h3 {
  font-size: 1.2em;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
  text-align: left;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

a:hover {
  border-bottom: 1px solid #0066cc;
}

a:visited {
  color: #551a8b;
}

/* Header and site branding */
.site-header {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid #eee;
}

.site-title {
  font-size: 1em;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
}

.site-description {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
  margin-top: 0.5em;
}



/* Article/Post styles */
article {
  margin-bottom: 1.5em;
  padding: 1.5em;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fafafa;
}

.post-header {
  display: block;
  margin-bottom: 0.6em;
}

.post-title {
  font-size: 1.25em;
  margin-bottom: 0.2em;
  line-height: 1.3;
}

.post-meta {
  font-size: 0.8em;
  color: #888;
  margin-bottom: 0;
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
}

.location-link {
  color: #999;
  cursor: pointer;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.location-link:hover {
  color: #666;
}

.post-location {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 1em;
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
}

.post-content {
  font-size: 0.95em;
  line-height: 1.6;
}

.post-content p {
  margin-bottom: 0;
}

/* Blockquotes */
blockquote {
  margin: 1.5em 0;
  padding-left: 1.5em;
  border-left: 3px solid #ddd;
  color: #666;
  font-style: italic;
}

blockquote p {
  margin-bottom: 0.5em;
}

/* Lists */
ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.3em;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
}

/* Code */
code {
  font-family: Monaco, "Courier New", monospace;
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background-color: #f5f5f5;
  padding: 1em;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1.5em 0;
}

pre code {
  background-color: transparent;
  padding: 0;
}


/* Footer */
footer {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #eee;
  font-size: 0.85em;
  color: #999;
  text-align: center;
}

.admin-link {
  color: #bbb;
  text-decoration: none;
  font-size: 0.9em;
}

.admin-link:hover {
  color: #888;
}

/* Archive/category pages */
.archive-list {
  list-style: none;
  margin-left: 0;
}

.archive-list li {
  margin-bottom: 0.8em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid #f0f0f0;
}

.archive-date {
  font-size: 0.8em;
  color: #999;
  float: right;
  margin-top: 0.2em;
}

.archive-subtitle {
  font-size: 1em;
  color: #666;
  margin-top: 0.5em;
  font-style: italic;
}

.archive-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-bottom: none;
}

.archive-post-link:hover {
  border-bottom: none;
}

.archive-post-link:hover .archive-post-title {
  color: #0066cc;
}

.archive-post-title {
  font-size: 1.2em;
  margin: 0 0 0.3em 0;
  color: #333;
  transition: color 0.2s ease;
}

.archive-post-meta {
  font-size: 0.85em;
  color: #999;
  margin: 0;
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
}

/* Responsive design */
@media (max-width: 768px) {
  .about-banner {
    padding: 0.8em 1em;
  }
  
  .view-controls {
    margin-bottom: 1em;
  }
  
  .view-btn {
    font-size: 0.8em;
    padding: 0.4em 0.8em;
  }
  
  .map-container {
    height: 50vh;
  }
  
  .modal-content {
    padding: 1em;
    width: 95%;
    max-height: 85vh;
  }
  
  .main-content {
    padding: 15px;
    font-size: 15px;
  }
  
  .archive-date {
    float: none;
    display: block;
    margin-top: 0.5em;
  }
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 1em;
  max-width: calc(100%); /* Match article width (subtract padding) */
  margin-left: auto;
  margin-right: auto;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0;
}

.page-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #000;
  margin-bottom: 0;
  line-height: 1.1;
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
}

.title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.title-link:hover {
  color: inherit;
  border-bottom: none;
}

.title-link:visited {
  color: inherit;
}

/* Archive Section */
.archive-section {
  text-align: center;
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid #eee;
}

.archive-link-container {
  margin: 0;
}

.archive-link {
  color: #666;
  font-size: 0.9em;
  text-decoration: none;
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.archive-link:hover {
  color: #333;
  border-bottom: 1px solid #333;
}

.archive-link:visited {
  color: #666;
}

/* View Controls */
.view-controls {
  display: flex;
  gap: 0.5em;
  margin-bottom: 2em;
  justify-content: center;
}

.view-btn {
  padding: 0.3em 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
  font-size: 0.9em;
  color: #888;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.view-btn:hover {
  color: #333;
}

.view-btn.active {
  color: #333;
  border-bottom: 1px solid #333;
}

/* Map Styles */
.map-container {
  width: 100%;
  height: 70vh;
  border: 2px dotted #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2em;
}

/* Increase map width for larger screens */
@media (min-width: 1024px) {
  .map-container {
    width: 120%;
    margin-left: -10%;
    margin-right: -10%;
  }
}

#world-map {
  width: 100%;
  height: 100%;
}

.hidden {
  display: none !important;
}

/* Custom Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
}

.leaflet-popup-content {
  margin: 8px 12px;
  font-size: 0.9em;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 2em;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.close-modal:hover {
  color: #333;
}

#modal-post-content .post-title {
  margin-top: 0;
}

#modal-post-content img {
  max-width: 100%;
  margin: 1em 0;
}

/* Utilities */
.small {
  font-size: 0.85em;
}

.muted {
  color: #999;
}

.center {
  text-align: center;
}

.no-margin {
  margin: 0;
}

/* Print styles */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .site-header,
  nav,
  footer {
    display: none;
  }
}

/* Carousel Styles */
.carousel {
  position: relative;
  margin: 0.8em 0;
  width: 100%;
}

.carousel-container {
  overflow: hidden;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-out;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 500px;
  object-fit: contain;
  cursor: pointer;
  margin: 0;
  display: block;
  background-color: #f5f5f5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: #fff;
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot:hover {
  background: #999;
}

.carousel-dot.active {
  background: #333;
}

@media (max-width: 768px) {
  .carousel-slide img {
    min-height: 150px;
    max-height: 350px;
  }
  
  .carousel-btn {
    opacity: 0.8;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .carousel-prev {
    left: 8px;
  }
  
  .carousel-next {
    right: 8px;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20001;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  z-index: 20001;
  padding: 15px 20px;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev-btn {
  left: 20px;
}

.lightbox-next-btn {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1em;
  font-family: "Amstelvar", Georgia, "Times New Roman", serif;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .gallery-thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .lightbox-nav {
    padding: 10px 15px;
    font-size: 24px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 32px;
  }
}
