/* Neighborhood Discovery Styles */
.neighborhood-discovery {
  box-sizing: border-box;
  font-family: "Inter", "Roboto", sans-serif;
  height: 600px;
  position: relative;
  width: 100%;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.neighborhood-discovery a { color: var(--secondary-color); text-decoration: none; }
.neighborhood-discovery button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; font-size: inherit; padding: 0; }
.neighborhood-discovery .info { color: #666; font-size: 0.9em; margin-top: 0.4em; display: flex; align-items: center;}
.neighborhood-discovery .panel { background: white; bottom: 0; box-sizing: border-box; left: 0; overflow-y: auto; position: absolute; top: 0; width: 350px; }
.neighborhood-discovery .panel.no-scroll { overflow-y: hidden; }
.neighborhood-discovery .photo { background-color: #dadce0; background-position: center; background-size: cover; border-radius: 6px; cursor: pointer; }
.neighborhood-discovery .navbar { background: white; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid #eaeaea; }
.neighborhood-discovery .right { float: right; }
.neighborhood-discovery .travel-icon { height: 1.2em; margin-right: 0.25rem; vertical-align: middle; opacity: 0.7;}
.neighborhood-discovery .map { bottom: 0; left: 350px; position: absolute; right: 0; top: 0; }

@media only screen and (max-width: 768px) {
  .neighborhood-discovery .panel { right: 0; top: 50%; width: 100%; border-top: 2px solid #eaeaea; }
  .neighborhood-discovery .map { bottom: 50%; left: 0; }
  .neighborhood-discovery { height: 800px; }
}

/* --------------------------- PLACES PANEL --------------------------- */
.neighborhood-discovery .places-panel { box-shadow: 2px 0 10px rgba(0,0,0,0.05); z-index: 1; }
.neighborhood-discovery .places-panel header { padding: 1rem; }
.neighborhood-discovery .search-input { position: relative; }
.neighborhood-discovery .search-input input { border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-size: 1em; height: 2.5em; padding: 0 2.5em 0 1em; width: 100%; outline: none; transition: border-color 0.2s;}
.neighborhood-discovery .search-input input:focus { border-color: var(--primary-color); }
.neighborhood-discovery .search-input button { position: absolute; right: 0.5em; top: 0.4em; opacity: 0.5; }
.neighborhood-discovery .show-more-button { bottom: 1rem; display: none; left: 25%; line-height: 1.5em; padding: 0.6em; position: relative; width: 50%; background: white; border: 1px solid #ddd; border-radius: 2rem; font-weight: 500; font-size: 0.9rem;}
.neighborhood-discovery .show-more-button.sticky { box-shadow: 0 4px 12px rgba(0,0,0,0.1); position: sticky; z-index: 2; }
.neighborhood-discovery .show-more-button:disabled { opacity: 0.5; }
.neighborhood-discovery .place-results-list { list-style-type: none; margin: 0; padding: 0; }
.neighborhood-discovery .place-result { border-bottom: 1px solid #f0f0f0; cursor: pointer; display: flex; padding: 1rem; transition: background 0.2s; align-items: center;}
.neighborhood-discovery .place-result:hover { background: #f8f9fa; }
.neighborhood-discovery .place-result .text { flex-grow: 1; }
.neighborhood-discovery .place-result .name { font-size: 1.05em; font-weight: 600; text-align: left; color: #222; margin-bottom: 0.25rem;}
.neighborhood-discovery .place-result .photo { flex: 0 0 4.5em; height: 4.5em; margin-left: 1rem; }

/* -------------------------- DETAILS PANEL --------------------------- */
.neighborhood-discovery .details-panel { display: none; z-index: 20; background: white; box-shadow: 2px 0 10px rgba(0,0,0,0.05);}
.neighborhood-discovery .details-panel .back-button { color: var(--secondary-color); padding: 1rem; font-weight: 600; display: flex; align-items: center; font-size: 0.95rem;}
.neighborhood-discovery .details-panel .back-button .icon { filter: invert(47%) sepia(71%) saturate(2372%) hue-rotate(200deg) brightness(97%) contrast(98%); height: 1.2em; width: 1.2em; margin-right: 0.25rem; }
.neighborhood-discovery .details-panel header { padding: 0 1rem 1rem 1rem; }
.neighborhood-discovery .details-panel h2 { font-size: 1.4em; font-weight: 700; margin: 0 0 0.5rem 0; color: #111; line-height: 1.3;}
.neighborhood-discovery .details-panel .section { border-top: 1px solid #eee; padding: 1rem; }
.neighborhood-discovery .details-panel .contact { align-items: flex-start; display: flex; font-size: 0.95em; margin: 1rem 0; color: #444;}
.neighborhood-discovery .details-panel .contact .icon { width: 1.5em; height: 1.5em; opacity: 0.6; flex-shrink: 0;}
.neighborhood-discovery .details-panel .contact .text { margin-left: 0.75em; line-height: 1.4; word-break: break-word;}
.neighborhood-discovery .details-panel .contact .weekday { display: inline-block; width: 6em; font-weight: 600; color: #222;}
.neighborhood-discovery .details-panel .contact .hours { color: #555;}
.neighborhood-discovery .details-panel .photos { text-align: center; padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;}
.neighborhood-discovery .details-panel .photo { border-radius: 4px; height: 100px; padding-top: 0; width: 100%; margin: 0;}
.neighborhood-discovery .details-panel .attribution { color: #888; margin: 0; font-size: 0.8em; font-style: italic; }

/* --------------------------- PHOTO MODAL ---------------------------- */
.neighborhood-discovery .photo-modal { background: rgba(0, 0, 0, 0.85); display: none; height: 100%; position: fixed; width: 100%; z-index: 1000; top: 0; left: 0; backdrop-filter: blur(4px);}
.neighborhood-discovery .photo-modal > img { bottom: 0; left: 0; margin: auto; max-height: 90%; max-width: 90%; position: absolute; right: 0; top: 0; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);}
.neighborhood-discovery .photo-modal > div { border-radius: 6px; color: white; background: rgba(0, 0, 0, 0.7); margin: 1.5em; padding: 1rem; position: absolute; bottom: 0; left: 0;}
.neighborhood-discovery .photo-modal .back-button { display: flex; align-items: center; }
.neighborhood-discovery .photo-modal .back-button .icon { filter: brightness(0) invert(1); margin-right: 0.5rem; }
.neighborhood-discovery .photo-modal .photo-text { float: right; margin-left: 1rem;}
.neighborhood-discovery .photo-modal .photo-place { font-weight: 600; }
.neighborhood-discovery .photo-modal .photo-attrs { font-size: 0.85em; margin-top: 0.3em; opacity: 0.8;}
.neighborhood-discovery .photo-modal .photo-attrs a { color: white; text-decoration: underline; }
