/* ==================== */
/* Base / Reset Styles  */
/* ==================== */

:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: #f0f0f0;
  color: #222;
}

/* ==================== */
/* Button Styles        */
/* ==================== */

button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

button:hover {
  background: #0056b3;
}

button:active {
  background: #004085;
}

button:focus {
  outline: 2px solid #80bdff;
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==================== */
/* App Container        */
/* ==================== */

.app-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
}

.pane-wrapper {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

/* Portrait mode - stack vertically */
@media (orientation: portrait) {
  .app-container {
    flex-direction: column;
  }
}

/* ==================== */
/* Map Pane             */
/* ==================== */

.map-pane {
  position: relative;
  width: 100%;
  height: 100%;
  background: #e0e0e0;
}

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

.map-loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #666;
}

.recenter-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  z-index: 1000;
}

/* ==================== */
/* POI Pane             */
/* ==================== */

.poi-pane {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
}

.poi-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.poi-loading {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #666;
  padding: 20px;
  text-align: center;
  gap: 12px;
}

.poi-title {
  font-size: 1.75rem;
  margin: 0 0 8px 0;
  color: #222;
}

.poi-type {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
  font-style: italic;
}

.poi-image {
  margin: 16px 0;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.poi-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.poi-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.poi-controls {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #ddd;
  background: #f5f5f5;
}

.control-button {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  min-height: 48px;
}

.fs-button, .chime-button {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  min-height: auto;
}

/* ==================== */
/* Toast Notification   */
/* ==================== */

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10000;
}

.toast.show {
  opacity: 1;
}
