* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

:root {
  --primary-color: #758c74;
  --primary-dark-color: #637a62;
  --primary-light-color: #fefefe;
  --text: #1e1e1e;
}


html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Nunito", sans-serif;
}

.container {
  padding-inline: 32px;
  margin-inline: auto;
  max-width: 1300px;
}

header {
  background-color: var(--primary-light-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  position: fixed;
  z-index: 1000;
}

.main-header {
  min-height: 90px;
  padding-block: 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-dark-color);
}

.navigation-drawer {
  min-height: 100vh;
  width: 200px;
  padding: 20px 10px;
  background-color: #fff;

  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;

  box-shadow: 0 0 4px 2px #00000033;
  transform: translateX(-100%);
  transition: transform 350ms;

  z-index: 9999;
}

.navigation-drawer.open {
  transform: translateX(0);
}

.drawer-button {
  padding: 8px;
  border: 0;
  border-radius: 4px;

  display: inline-block;
  background-color: transparent;

  font-weight: bold;
  font-size: 28px;
  color: #141e16;

  cursor: pointer;
}

.nav-list {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 10px 20px;
}

.nav-list li a {
  padding: 6px 10px;

  display: block;

  color: #333;
  text-decoration: none;
}

.nav-list li a:hover {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

.nav-list li a:hover::after {
  font-weight: bold;
}

/* MAIN */
.main-content {
  padding-block: 20px;
}

/* Write your styles more here */

@media screen and (width > 1000px) {
  .navigation-drawer {
    min-height: auto;
    width: auto;
    padding: 0;
    background-color: transparent;

    flex-direction: row;
    justify-content: space-between;

    position: static;
    box-shadow: none;
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: row;
  }

  .nav-list li a {
    display: inline-block;
  }

  .drawer-button {
    display: none;
  }
}

/* HOME PAGE STYLES */
.home-view {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem;
  font-size: 14px;
}

.hero {
  text-align: center;
  padding: 3rem 4rem;
}

.hero h1 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  line-height: 1.4;
  color: #333;
}

.hero p {
  font-size: 1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.stories {
  margin: 4rem 0;
}

.stories h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

.story-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-3px);
}

.story-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-image-placeholder {
  width: 100%;
  height: 200px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 2rem;
}

.story-content {
  padding: 1.5rem;
}

.story-location {
  display: flex;
  align-items: center;
  color: #4299e1;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.story-location i {
  margin-right: 0.5rem;
}

.story-excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

.story-author {
  font-style: italic;
}

.no-stories,
.error-message {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.no-stories i,
.error-message i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.error-message i {
  color: #e53e3e;
}

.retry-button {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  margin-top: 1rem;
  cursor: pointer;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 800px;
  flex-wrap: wrap;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-dark-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
  .home-view {
    padding: 2rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

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

  .search-wrapper {
    width: 100%;
  }

  .story-cards {
    grid-template-columns: 1fr;
  }
}

/* ========== AUTH PAGES SHARED STYLES ========== */
.login-view,
.signup-view {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.auth-form {
  display: block;
  background: none;
  border-radius: 12px;
}

.auth-view .hero {
  text-align: center;
}

.auth-view .hero h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.auth-view .hero p {
  color: #666;
  font-size: 1rem;
}

.auth-form .form-group {
  margin-bottom: 24px;
  position: relative;
}

.auth-form label {
  font-size: 16px;
  font-weight: 400;
  display: block;
  color: #333;
  margin-bottom: 8px;
}

.auth-form input {
  width: 95%;
  padding: 12px;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.3s;
}

.auth-form input:focus {
  outline: none;
  border-color: #758c74;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  font-style: italic;
}

.submit-button {
  width: 100%;
  padding: 12px;
  background-color: #758c74;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.3s;
  position: relative;
}

.submit-button:hover {
  background-color: #637a62;
}

.submit-button:disabled {
  background-color: #637a62;
  cursor: not-allowed;
  opacity: 0.8;
}

.auth-switch {
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
  color: #666;
}

.auth-link {
  color: #758c74;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #637a62;
  text-decoration: underline;
}

.error-message {
  color: #ff3333;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.form-error {
  color: #ff3333;
  font-size: 14px;
  text-align: center;
  margin: 16px 0;
  display: none;
}

/* ========== LOGIN PAGE SPECIFIC ========== */
.login-view {
  padding-top: 1rem;
}

/* ========== SIGNUP PAGE SPECIFIC ========== */
.signup-view .form-group:last-of-type {
  margin-bottom: 32px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  .login-view,
  .signup-view {
    padding: 1.5rem;
  }

  .auth-form input {
    width: 100%;
  }

  .auth-view .hero {
    margin: 30px 0 1.5rem;
  }

  .auth-view .hero h2 {
    font-size: 1.5rem;
  }
}

/* Profile Page Styles */
.profile-view {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Profile Header */
.profile-header {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-gray-100);
}

.profile-header h3 {
  font-size: 1.75rem;
  color: var(--color-primary-700);
  font-weight: 600;
}

/* Profile Content */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-image {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  outline: 3px solid #758c74;
  box-shadow: var(--shadow-md);
}
/* Profile Info */

.profile-info p {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.profile-info strong {
  color: var(--color-primary-600);
  font-weight: 500;
  min-width: 80px;
  display: inline-block;
}

/* Logout Button */
.logout-button {
  padding: 0.75rem 1.5rem;
  background-color: #e53e3e;
  color: white;
  border: none;
  font-family: 'Nunito';
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 12rem;
}

.logout-button:hover {
  background-color: #c53030;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-view {
    margin: 1rem;
    padding: 1rem;
  }
  
  .profile-photo {
    width: 120px;
    height: 120px;
  }
  
  .profile-info p {
    font-size: 1rem;
  }
}

/* Submit Page Styles */
.submit-view {
  font-family: "Nunito", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.story-submission-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Map Section */
#map {
  height: 300px;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  z-index: 1;
  border: 1px solid #e0e0e0;
}

/* Form Sections */
.section {
  padding: 20px;
  border-radius: 12px;
}

.section-title {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.section-subtitle {
  color: #666;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* Input Styles */
#story-title,
#story-description {
  width: 100%;
  padding: 12px;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  font-family: "Nunito";
  margin-top: 8px;
}

#story-description {
  min-height: 120px;
  resize: vertical;
}

/* Camera/Gallery Section */
.camera-container {
  width: 100%;
  margin: 15px 0;
}

.photo-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.photo-option {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #dbdbdb;
  background-color: #f0f0f0;
}

.photo-option:hover {
  background-color: #e0e0e0;
}

#open-camera.active {
  background-color: var(--primary-color);
  color: white;
}

/* Media Preview */
.media-preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

#camera-preview-canvas,
#photo-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

/* Camera Controls */
.camera-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

#capture-button,
#retake-button {
  flex: 1;
  min-width: 120px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Nunito";
}

#capture-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  display: none;
}

#retake-button {
  background-color: #f0f0f0;
  display: none;
  border: 1px solid #dbdbdb;
}

#delete-button {
  background-color: #ff6b6b;
  color: white;
  border: none;
  display: none;
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

#camera-select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dbdbdb;
  font-family: "Nunito";
  display: none;
  margin-top: 10px;
}

/* Coordinate Inputs */
.coordinate-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.coordinate-inputs input {
  flex: 1;
  min-width: 120px;
  padding: 10px;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  font-family: "Nunito";
}

#update-marker {
  padding: 10px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Nunito";
  transition: background-color 0.3s;
}

#update-marker:hover {
  background-color: var(--primary-dark-color);
}

/* Submit Button */
.submit-button {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .submit-view {
    padding: 15px;
  }

  .photo-options {
    grid-template-columns: 1fr;
  }

  .camera-controls {
    flex-direction: column;
  }

  #capture-button,
  #retake-button {
    width: 100%;
  }

  .coordinate-inputs input {
    min-width: 100%;
  }
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #4CAF50;
  color: white;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.main-content:focus {
  outline: none;
}

/* story-detail.css */
.story-detail-view {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.back-button {
  margin-top: 5rem;
  margin-bottom: 1rem;
  font-weight: 3rem;
  font-size: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
}

.story-detail-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.story-image-container {
  height: 400px;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.story-map-container {
  height: 300px;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
}

.stories-map {
  width: 100%;
  height: 400px;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-popup {
  max-width: 250px;
  font-family: inherit;
}

.map-popup h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #333;
}

.map-popup p {
  margin: 8px 0;
  font-size: 14px;
  color: #555;
}

.popup-image {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.map-popup-link {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background-color: var(--primary-light-color);
  color: white;
  font-family: 'Nunito', sans-serif;
  border-radius: 4px;
  font-size: 13px;
  transition: background-color 0.2s;
  text-decoration: none;
}

.map-popup-link:hover {
  background-color: var(--primary-light-color);
}

.leaflet-marker-icon {
  transition: transform 0.2s;
}

.leaflet-marker-icon:hover {
  transform: scale(1.1);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1024px) {
  .story-detail-view {
    padding: 1rem 3rem;
  }

  .story-image-container {
    height: 300px;
  }

  .stories-map {
    height: 300px;
  }

  .story-map-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .story-detail-view {
    padding: 3rem;
  }

  .story-image-container {
    height: 250px;
  }

  .stories-map {
    height: 250px;
  }

  .story-map-container {
    height: 200px;
  }

  .map-popup h3 {
    font-size: 0.95rem;
  }

  .map-popup p {
    font-size: 0.85rem;
  }

  .map-popup-link {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .story-detail-view {
    padding: 1rem 0.5rem;
  }

  .story-image-container {
    height: 200px;
  }

  .stories-map {
    height: 200px;
  }

  .story-map-container {
    height: 180px;
  }

  .back-link {
    font-size: 0.9rem;
    gap: 0.3rem;
  }

  .map-popup h3 {
    font-size: 0.85rem;
  }

  .map-popup p {
    font-size: 0.8rem;
  }

  .map-popup-link {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

/* Not Found Page */
.not-found-view {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
}

.not-found-container {
  text-align: center;
}

.not-found-container h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text)
}

.not-found-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Footer Styles */
.main-footer {
  display: flex;
  position: sticky;
  flex-direction: column;
  min-height: auto;
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background-color: #f9fafb;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

.main-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.main-footer p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.notification-button {
  background: var(--primary-color);
  border: none;
  color: var(--primary-light-color);
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Nunito';
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.notification-button.active {
  background: var(--primary-dark-color);
  color: var(--primary-light-color);
  font-weight: 2rem;
  border-radius: 4px;
}

.story-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.story-detail-header h2 {
  margin: 0;
}

.story-card {
  transition: opacity 0.3s;
}

.story-card.removing {
  opacity: 0;
  transform: scale(0.95);
}

/* Style for the new text buttons */
.like-button.text-button {
  background: #fcdee9;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: 'Nunito';
  font-size: 0.9rem;
  color: #333;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.like-button.text-button:hover {
  background-color: #f0f0f0;
}

.like-button.text-button:focus {
  outline: 2px solid #fcc5da;
  outline-offset: 2px;
}

/* For favorite page specific style */
#favorite-story-cards .like-button.text-button {
  color: #fcc5da;
}

#favorite-story-cards .like-button.text-button:hover {
  background-color: #fee2e2;
}

.favorite-view {
  max-width: 1400px;
  padding: 4rem 3rem;
}

/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(416d91365b44e4b4f477.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(8f2c4d11474275fbc161.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(2b3e1faf89f94a483539.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

