/* RESET + GLOBAL ------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #152238;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;
}

/* HEADER + NAV -------------------------------------------------------------- */

header {
  background: #111827;
  padding: 14px 16px;
  border-bottom: 1px solid #1f2937;
}

/* header row: hamburger + title */
.header-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  text-align: center;
  flex: 1;
  font-size: 20px;
}

/* Hamburger always visible */
.hamburger {
  font-size: 30px;        /* bigger icon */
  cursor: pointer;
  padding: 8px 14px;
  color: #fff;
  line-height: 1;
  user-select: none;
}

/* Slide-down menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 18px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 16px;
  border-top: 1px solid #1e293b;
}

.mobile-menu a:hover {
  background: #1f2937;
}

/* LAYOUT + CONTENT ---------------------------------------------------------- */

main {
  padding: 16px;
}

/* CARDS */
.card {
  background: #111827;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  margin-bottom: 16px;
}

/* INPUTS */
label { display: block; margin-bottom: 6px; }
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-size: 15px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
}


input[type="file"] {
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  margin-bottom: 14px; 
}

/* BUTTONS */
button, .button {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: bold;
  background: #10b981;
  color: #022c22;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}

/* RATING BUTTONS */
.rating-button {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #22c55e;
  font-size: 18px;
  font-weight: bold;
  color: #022c22;
  text-align: center;
}

/* Override global button width for rating buttons */
.rating-button {
  width: auto !important;
  min-width: 44px;
  padding: 8px 10px;
  margin-right: 6px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #22c55e;
  font-size: 14px;
  font-weight: bold;
  color: #022c22;
  display: inline-block;
}

/* MAP */
#map {
  height: 70vh;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

/* IMAGES */
.thumb, .display-photo {
  width: 100%;
  max-width: 260px;
  border-radius: 10px;
  margin-top: 10px;
}

/* SMALL TEXT */
.small { font-size: 15px; color: #9ca3af; }

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}


/* FIX DROPDOWN MENU POSITIONING */
.mobile-menu {
  display: none;
  position: absolute;
  top: 60px;          /* directly under header */
  left: 0;
  width: 100%;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  z-index: 9999;      /* show above map */
}

.pin-warning {
  font-size: 16px;
  font-weight: bold;
  color: #f87171; /* light red */
  background: rgba(255,0,0,0.1);
  padding: 10px;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  margin-bottom: 12px;
}


.admin-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.admin-popup-box {
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  border: 1px solid #1f2937;
}

.admin-popup input {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: white;
}

.admin-popup button {
  width: 100%;
  padding: 12px;
  background: #10b981;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.admin-popup.hidden {
  display: none !important;
}

/* logout button */
.logout-btn {
  padding: 8px 14px;
  background: #ef4444;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 10px;
  display: inline-block;
}


/* Fullscreen image viewer */
#imgFullscreenOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#imgFullscreenOverlay img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 10px;
}

#imgFullscreenOverlay.close-area {
  cursor: zoom-out;
}


/* Global link styling for dark mode UI */
a {
  color: #3b82f6;          /* Bright blue */
  text-decoration: none;   /* Remove underline */
  font-weight: 500;
}

a:hover {
  color: #60a5fa;          /* Lighter blue on hover */
  text-decoration: underline;
}

a:visited {
  color: #818cf8;          /* Softer purple-blue for visited links */
}

.header-subtext {
  margin: 6px 0 0 0;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}


.admin-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-controls button {
  padding: 6px 10px;
  font-size: 13px;
  width: auto;
  border-radius: 8px;
}


button.location-btn {
  background: #2563eb; /* blue */
  color: white;
}

.map-btn {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
}
.map-btn:hover {
  background: #1d4ed8;
}