:root {
  --bg-dark: #0a0e14;
  --navy-deep: #0f172a;
  --uf-orange: #fa4616;
  --uf-blue: #0021a5;
  --accent-blue: #3b82f6;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

.app-container {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 100px;
}

/* Glassmorphism Utilities */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* Header */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px;
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(250, 70, 22, 0.1);
    color: var(--uf-orange);
    border: 1px solid var(--uf-orange);
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.current-location-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
}

.current-location-pill .label {
  color: var(--text-secondary);
}
.current-location-pill .value {
  color: var(--uf-orange);
  font-weight: 600;
}

/* Guide Location Badge */
.guide-loc-badge {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    animation: fadeIn 0.3s ease-out;
}

.guide-loc-badge .icon { font-size: 0.9rem; }
.guide-loc-badge .text { color: var(--text-secondary); }
.guide-loc-badge .loc-link {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 600;
    margin-left: auto;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--uf-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(250, 70, 22, 0.4);
    animation: broadcast-pulse 2s infinite;
}

@keyframes broadcast-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(250, 70, 22, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(250, 70, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(250, 70, 22, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Section */
main {
  padding: 20px;
}

/* Map Placeholder */
.map-section {
  height: 250px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

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

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.5) contrast(1.2);
}

.map-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.btn-primary {
  background: var(--uf-orange);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(250, 70, 22, 0.3);
  cursor: pointer;
  white-space: nowrap;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn .icon {
  font-size: 1.5rem;
}
.action-btn span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.action-btn.active {
  background: rgba(250, 70, 22, 0.1);
  border-color: var(--uf-orange);
}

.action-btn.active span {
  color: var(--uf-orange);
}

/* Stop List */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}
.section-header .count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stops-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stop-card {
  padding: 20px;
  transition: transform 0.2s;
}

.stop-card.active {
  border-color: var(--uf-orange);
  background: linear-gradient(
    135deg,
    rgba(250, 70, 22, 0.1) 0%,
    rgba(15, 23, 42, 0.4) 100%
  );
}

.stop-info {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.stop-number {
  width: 28px;
  height: 28px;
  background: var(--navy-deep);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.stop-card.active .stop-number {
  background: var(--uf-orange);
  color: white;
  border: none;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.stop-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stop-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-top: 15px;
  color: var(--text-secondary);
}

.stop-card.active .stop-status {
  color: var(--uf-orange);
}

.cool-stuff {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--glass-border);
}

.cool-stuff h4 {
  font-size: 0.85rem;
  color: var(--uf-orange);
  margin-bottom: 10px;
}
.cool-stuff ul {
  list-style: none;
}
.cool-stuff li {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.cool-stuff li::before {
  content: "✨";
  font-size: 0.7rem;
}

.stop-card.visited {
  opacity: 0.6;
}

.hidden { display: none !important; }

.admin-panel {
    background: rgba(250, 70, 22, 0.05);
    border: 1px dashed var(--uf-orange);
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.admin-panel p {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--uf-orange);
}

.info-page {
    padding: 25px;
}

.info-page h2 { margin-bottom: 20px; color: var(--uf-orange); }
.info-block { margin-bottom: 25px; }
.info-block h3 { font-size: 1rem; margin-bottom: 10px; color: var(--accent-blue); }
.info-block ul { padding-left: 20px; color: var(--text-secondary); font-size: 0.9rem; }
.info-block li { margin-bottom: 10px; }
.info-block p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 15px; }

.warning-box {
    background: rgba(250, 70, 22, 0.1);
    border-left: 4px solid var(--uf-orange);
    padding: 15px;
    border-radius: 8px;
}
.warning-box h3 { color: var(--uf-orange); }

.map-container {
    padding: 10px;
}

.map-iframe-wrapper {
    position: relative;
    height: 450px;
}

.map-placeholder-msg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    z-index: 1;
}

main {
    padding: 20px;
    padding-bottom: 120px; /* Space for bottom nav */
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 10px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.8);
}

.bottom-nav .tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
}

.bottom-nav .tab-btn .icon {
    font-size: 1.2rem;
}

.bottom-nav .tab-btn span {
    font-size: 0.7rem;
    font-weight: 600;
}

.bottom-nav .tab-btn.active {
    color: var(--uf-orange);
}

.bottom-nav .tab-btn.active .icon {
    transform: translateY(-2px);
}
