/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg-color: #fcfaf2;
  --text-primary: #2c3e50;
  --good-teal: #1abc9c;
  --hot-red: #e74c3c;
  --bad-amber: #f39c12;
  --neutral-grey: #95a5a6;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow: hidden; /* Prevents bounce scrolling on mobile */
}

/* --- Layout Structure --- */
.layout {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  overflow: hidden;
}

.map-wrapper {
  flex-grow: 1;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* --- Sidebar / Bottom Sheet --- */
.sidebar {
  background-color: white;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.sidebar-header {
  padding: 1rem;
  background-color: var(--text-primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-content {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
  /* Extra padding at bottom for mobile scrolling */
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* --- Responsive Behavior --- */

/* Desktop: Fixed Sidebar */
@media (min-width: 768px) {
  .sidebar {
    width: 350px;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  .mobile-toggle, .close-btn {
    display: none;
  }
}

/* Mobile: Sliding Bottom Sheet */
@media (max-width: 767px) {
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.3);
    transform: translateY(100%); /* Start hidden */
  }

  .sidebar.open {
    transform: translateY(0); /* Slide up */
  }

  .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
  }

  .mobile-toggle {
    display: block;
    position: fixed;
    /* Calc safe area for iPhone/Android gesture bars */
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background-color: var(--text-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    border: 2px solid white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: opacity 0.2s ease;
  }

  /* Hide the button when the panel is open */
  .mobile-toggle.hidden {
    opacity: 0;
    pointer-events: none;
  }
}

/* --- Components --- */
.place-card {
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn {
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.7;
}

.btn-primary { 
  background: var(--good-teal); 
  color: white; 
  width: 100%; 
}

.btn-small { 
  padding: 0.4rem 0.8rem; 
  font-size: 0.85rem; 
  margin-right: 0.5rem; 
}

.btn-upvote { background: var(--good-teal); color: white; }
.btn-downvote { background: var(--hot-red); color: white; }

/* --- Map Markers --- */
.marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* Auth Pages Styling */
.auth-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

