
:root {
	--primary-color: #1E40AF;
	--secondary-color: #F97316;
	--background-color: #F8FAFC;
	--text-primary: #1E293B;
	--text-secondary: #64748B;
	--border-color: #E2E8F0;
	--safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
	
	--magic-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

* {
	-webkit-tap-highlight-color: transparent;
}

body {
	background-color: var(--background-color);
	font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	padding-bottom: calc(76px + var(--safe-area-inset-bottom));
}

/* App Header */
.app-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1;
	background: rgba(255, 255, 255, 1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	padding: 1rem;
	padding-top: calc(env(safe-area-inset-top, 20px) + 1rem);
}

.app-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}

/* Search Bar */
.search-bar {
	position: relative;
	margin-top: 0.75rem;
}

.search-clear {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--text-secondary);
	padding: 0.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1; /* Add this to ensure it's above the input */
	opacity: 0.7; /* Add this to make it slightly subtle */
	transition: opacity 0.2s; /* Add smooth transition */
}

.search-clear:hover {
	opacity: 1;
}

.search-clear.hidden {
	display: none;
}

/* Adjust the search input padding to accommodate the clear button */
.search-input {
	width: 100%;
	padding: 0.75rem 3rem; /* Changed to have equal padding on both sides */
	border: none;
	border-radius: 1rem;
	background: #F1F5F9;
	font-size: 1rem;
	transition: all 0.2s;
}

.search-input:focus {
	background: white;
	box-shadow: 0 0 0 2px var(--primary-color);
	outline: none;
}

.search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-secondary);
}

/* Category Pills */
.category-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	margin: 0 -1rem;
	padding: 0 1rem;
}

.category-scroll::-webkit-scrollbar {
	display: none;
}

.category-pills {
	display: flex;
	gap: 0.5rem;
	padding: 0.5rem 0;
}

.category-pill {
	background: white;
	border: 1px solid var(--border-color);
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--text-secondary);
	white-space: nowrap;
	transition: all 0.2s;
}

.category-pill.active {
	background: var(--magic-gradient);
	color: white;
	border-color: var(--primary-color);
}

/* New Compact POI Cards */
/* Updated POI Card Styles */
.poi-card {
  background: white;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  /*padding: 1rem;*/
  padding: 1rem 1rem 0 1rem;
  position: relative;
  border: 1px solid var(--border-color);
}

.poi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.poi-title-section {
  flex: 1;
}

.poi-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.poi-type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #F1F5F9;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.wait-times-section {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.poi-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.poi-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.action-button {
  background: none;
  border: none;
  padding: 0.75rem;
  color: var(--text-secondary);
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.poi-tag {
  padding: 0.25rem 0.75rem;
  background: #F1F5F9;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-right: 4px;
  margin-top: 6px;
}

.all-tags {
	margin-top: 6px!important;
}

/* Dark mode support */
.dark-mode .poi-card {
  background: #272727;
}

.dark-mode .poi-type-badge,
.dark-mode .poi-tag {
  background: #333333;
}

.dark-mode .poi-actions {
  border-color: var(--border-color);
}
		
.poi-info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.info-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	background: #F8FAFC;
	padding: 1rem;
	border-radius: 1rem;
	display: block;
}

.info-icon {
	color: var(--text-secondary);
	width: 1rem;
	text-align: center;
}

.info-item .fa-star {
	color: #fcd34d;
}

.info-label {
	color: var(--text-secondary);
}

.info-value {
	font-weight: 500;
	color: var(--text-primary);
}

.poi-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

/* Wait Times */
.wait-time {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 1rem;
  font-weight: 600;
  margin: 2px 4px 2px 0;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.wait-time.low {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border: 1px solid #86efac;
}

.wait-time.medium {
  background: linear-gradient(135deg, #fef9c3, #fde047);
  color: #854d0e;
  border: 1px solid #fcd34d;
}

.wait-time.high {
  background: linear-gradient(135deg, #fee2e2, #fca5a5);
  color: #991b1b;
  border: 1px solid #f87171;
}

.poi-description {
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin: 0.75rem 0;
	line-height: 1.5;
}

/* Bottom Navigation */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1px solid var(--border-color);
	padding: 0.5rem 0;
	padding-bottom: calc(0.5rem + var(--safe-area-inset-bottom));
	z-index: 3;
}

.bottom-nav-content {
	display: flex;
	justify-content: space-around;
	align-items: center;
}

.nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.5rem 1rem 1.4rem 1rem;
	/*padding: 0.5rem;*/
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.2s;
	position: relative;
	cursor: pointer;
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

.nav-item.active {
	color: var(--primary-color);
}

.nav-item.active i {
	background: var(--magic-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nav-item span {
	font-size: 0.75rem;
	font-weight: 500;
}

/* Map View */
.map-container {
	position: fixed;
	top: calc(env(safe-area-inset-top, 20px) + 62px);
	left: 0;
	right: 0;
	bottom: 89px;
	z-index: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.map-active .map-container {
	z-index: 2;
	opacity: 1;
	pointer-events: auto;
}

.map-active #poiList,
.map-active .category-scroll,
.map-active .account-container {
	display: none;
}

#map {
	width: 100%;
	height: 100%;
	background: white;
}

.map-overlay {
	position: absolute;
	bottom: calc(76px + var(--safe-area-inset-bottom));
	left: 0;
	right: 0;
	padding: 1rem;
	pointer-events: none;
}

.map-card {
	background: white;
	border-radius: 1rem;
	padding: 1rem;
	margin-bottom: 1rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	pointer-events: auto;
	transform: translateY(0);
	transition: transform 0.3s;
}

.map-card.hidden {
	transform: translateY(200%);
}

/* Content Area */
.app-content {
	margin-top: calc(env(safe-area-inset-top, 20px) + 122px);
	padding: 0 1rem;
	background: var(--background-color);
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - calc(env(safe-area-inset-top, 20px) + 122px));
}

.account-container {
	padding: 1rem 0 1rem 0;
}

/* Profile Section */
.profile-section {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: white;
	border-radius: 1rem;
	margin-bottom: 1.5rem;
}

.profile-avatar {
	width: 64px;
	height: 64px;
	background: var(--magic-gradient);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.5rem;
}

.profile-info {
	flex: 1;
}

.profile-name {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
	color: var(--text-primary);
}

.profile-email {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0.25rem 0 0;
}

/* Settings Section */
.settings-group {
	background: white;
	border-radius: 1rem;
	padding: 1rem;
	margin-bottom: 1rem;
}

.settings-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 1rem;
}

.setting-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
	border-bottom: none;
}

.setting-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-primary);
}

.setting-label i {
	width: 1.25rem;
	color: var(--text-secondary);
}

/* Switch Toggle */
.switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 24px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	transition: .4s;
}

input:checked + .slider {
	background: var(--magic-gradient);
}

input:checked + .slider:before {
	transform: translateX(24px);
}

.slider.round {
	border-radius: 24px;
}

.slider.round:before {
	border-radius: 50%;
}

/* Select Dropdown */
.setting-select {
	padding: 0.5rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border-color);
	background: white;
	color: var(--text-primary);
	font-size: 0.875rem;
}

/* Action Buttons */
.action-button {
	width: 100%;
	padding: 1rem;
	border: none;
	border-radius: 0.75rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	cursor: pointer;
	transition: all 0.2s;
}

.action-button.primary {
	background: var(--magic-gradient);
	color: white;
}

.action-button.secondary {
	background: #F1F5F9;
	color: #1E293B;
}

.text-button {
	width: 100%;
	padding: 0.75rem;
	background: none;
	border: none;
	color: var(--text-secondary);
	text-align: left;
	font-size: 0.875rem;
	cursor: pointer;
}

.text-button:hover {
	color: var(--text-primary);
}

/* About Section */
.about-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	color: var(--text-secondary);
	font-size: 0.875rem;
}

/* Utility Classes */
.hidden {
	display: none;
}

/* Loading States */
.skeleton {
	background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
}

@keyframes loading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Detail Sheet Styles */
.detail-sheet {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	border-radius: 1.5rem 1.5rem 0 0;
	z-index: 2;
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: calc(1rem + var(--safe-area-inset-bottom));
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.detail-sheet.active {
	transform: translateY(0);
	bottom: 89px;
}

.detail-sheet,
.notification-sheet,
.filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 1.5rem 1.5rem 0 0;
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
  padding-bottom: calc(1rem + var(--safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.detail-sheet.active,
.notification-sheet.active,
.filter-sheet.active {
  transform: translateY(0);
}

/* Prevent body scroll when sheet is open */
body.scroll-lock {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Dark mode support */
.dark-mode .detail-sheet,
.dark-mode .notification-sheet,
.dark-mode .filter-sheet {
  background: #272727;
}

/* Sheet handle styling */
.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: auto;
  position: relative;
}

.detail-header {
	/*position: relative;*/
	margin: -1rem -1rem 1rem;
}

.detail-image {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	border-radius: 1.5rem 1.5rem 0 0;
}

.detail-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	font-size: 1.25rem;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.detail-content {
	padding: 0 1rem;
}

.detail-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.detail-info {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.detail-list {
	list-style: none;
	padding-left: 0;
}

.info-label {
	font-size: 0.875rem;
	color: var(--text-secondary);
	/*margin-bottom: 0.25rem;*/
}

.info-value {
	font-weight: 600;
	color: var(--text-primary);
}

.detail-description {
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.action-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	padding: 1rem 0;
}

.action-btn {
	padding: 1rem;
	border-radius: 1rem;
	border: none;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.action-btn.primary {
	background: var(--magic-gradient);
	color: white;
}

.action-btn.secondary {
	background: #F1F5F9;
	color: #1E293B;
}

/* Add this to handle body scrolling when sheet is open */
.scroll-lock {
	overflow: hidden;
}

/* Add to your existing styles */
.park-menu-button {
	position: absolute;
	right: 1rem;
	top: 6px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.1);
	padding: 0.5rem 0.75rem;
	border-radius: 2rem;
	border: 1px solid var(--border-color);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 1001;
	/* Add these to ensure proper text wrapping */
	max-width: calc(50% - 1rem); /* Half width minus right margin */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.park-menu-button i {
	background: var(--magic-gradient);
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.park-badge {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-primary);
	padding-left: 0.5rem;
	border-left: 1px solid var(--border-color);
}

/* Dark mode support */
.dark-mode .park-menu-button {
	background: rgba(0, 0, 0, 0.1);
}

.park-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--background-color);
	z-index: 2000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.park-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.park-overlay-content {
	height: 100%;
	padding: calc(env(safe-area-inset-top, 20px) + 1rem) 1rem;
	display: flex;
	flex-direction: column;
}

.park-overlay-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.park-overlay-header h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}

.park-overlay-close {
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 1.25rem;
	padding: 0.5rem;
	cursor: pointer;
}

.park-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	overflow: scroll;
}

.park-item {
	background: white;
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	cursor: pointer;
	transition: all 0.2s ease;
}

.dark-mode .park-item {
	background: #272727;
}

.park-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.park-item-content {
	padding: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.park-time {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0.25rem 0 0;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.dark-mode .park-time {
	color: rgba(255, 255, 255, 0.7);
}

.park-icon {
	width: 48px;
	height: 48px;
	background: var(--magic-gradient);
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.5rem;
}

.park-info {
	flex: 1;
}

.park-info h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

.park-info p {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0.25rem 0 0;
}

.park-selected {
	color: var(--primary-color);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.park-item.selected .park-selected {
	opacity: 1;
}

/* Add to your existing CSS */
.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.map-loading-visible .app-content {
	margin-top: calc(env(safe-area-inset-top, 20px) + 63px);
	min-height: calc(100vh - calc(env(safe-area-inset-top, 20px) + 63px));
}

.map-loading.hidden {
  display: none;
}

.map-loading-content {
  text-align: center;
  color: var(--text-primary);
}

/* Dark Mode Theme Variables */
.dark-mode {
	--background-color: #1a1a1a;
	--text-primary: #ffffff;
	--text-secondary: #a0a0a0;
	--border-color: #333333;
	--primary-color: #3b82f6; /* Adjusted for better contrast in dark mode */
	--secondary-color: #fb923c; /* Adjusted orange for dark mode */
}

/* Dark Mode Overrides */
.dark-mode .app-header {
	background: rgba(26, 26, 26, 0.95);
}

.dark-mode .search-input {
	background: #333333;
	color: var(--text-primary);
}

.dark-mode .search-input:focus {
	background: #404040;
	box-shadow: 0 0 0 2px var(--primary-color);
}

.dark-mode .search-icon,
.dark-mode .search-clear {
	color: var(--text-secondary);
}

.dark-mode .fa-ferris-wheel, .dark-mode .detail-section-title, .dark-mode .detail-list {
	color: #ffffff;
}

.dark-mode .category-pill {
	background: #333333;
	border-color: #404040;
}

.dark-mode .category-pill.active {
	background: var(--primary-color);
	border-color: var(--primary-color);
}

.dark-mode .poi-card,
.dark-mode .settings-group,
.dark-mode .profile-section,
.dark-mode .map-card,
.dark-mode .detail-sheet {
	background: #272727;
	border-color: var(--border-color);
}

.dark-mode .poi-type-badge,
.dark-mode .poi-tag {
	background: #333333;
	color: var(--text-secondary);
}

.dark-mode .bottom-nav {
	background: rgba(26, 26, 26, 0.95);
	border-top-color: var(--border-color);
}

.dark-mode .wait-time {
	/* Adjusted gradients for dark mode */
	&.low {
		background: linear-gradient(135deg, #065f46, #059669);
		color: #ffffff;
		border-color: #059669;
	}
	
	&.medium {
		background: linear-gradient(135deg, #92400e, #b45309);
		color: #ffffff;
		border-color: #b45309;
	}
	
	&.high {
		background: linear-gradient(135deg, #991b1b, #dc2626);
		color: #ffffff;
		border-color: #dc2626;
	}
}

.dark-mode .setting-select {
	background: #333333;
	border-color: var(--border-color);
	color: var(--text-primary);
}

.dark-mode .slider {
	background-color: #404040;
}

.dark-mode .slider:before {
	background-color: #808080;
}

.dark-mode input:checked + .slider:before {
	background-color: white;
}

.dark-mode .action-button.secondary {
	background: #333333;
	color: #ffffff;
}

.dark-mode .info-item {
	background: #333333;
}

.dark-mode .sheet-handle {
	background: #404040;
}

.dark-mode .detail-close {
	background: rgba(51, 51, 51, 0.9);
	color: var(--text-primary);
}

.dark-mode .skeleton {
	background: linear-gradient(90deg, #333333 25%, #404040 50%, #333333 75%);
}

.dark-mode .park-menu-button {
	background: rgba(0, 0, 0, 0.3);
	border-color: var(--border-color);
}

.dark-mode .map-loading {
	background: rgba(26, 26, 26, 0.9);
}

/* Dark mode for detail sheet image */
.dark-mode .detail-image {
	filter: brightness(0.8);
}

/* Dark mode support for loading map state */
.dark-mode .map-loading {
  background: rgba(26, 26, 26, 0.9);
}

.dark-mode .map-loading-content {
  color: var(--text-primary);
}

.dark-mode h5, .dark-mode .text-muted {
  color: #ffffff!important;
}

.dark-mode #poilist .fa-search {
	color: #ffffff!important;
}

.search-section {
	display: flex;
	gap: 0.75rem;
	/*margin-top: 0.75rem;*/
	align-items: center;
}

.search-bar {
	flex: 1;
	position: relative;
}

.filter-button {
	background: var(--background-color);
	border: none;
	border-radius: 1rem;
	width: 48px;
	height: 48px;
	top: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	position: relative;
	transition: all 0.2s;
}

.filter-button:active {
	background: var(--border-color);
}

.dark-mode .filter-button {
	background: #333333;
}

.filter-button.active {
	color: var(--primary-color);
	background: var(--magic-gradient);
	color: white;
}

.filter-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--secondary-color);
	color: white;
	font-size: 0.75rem;
	font-weight: 600;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.filter-sheet {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	border-radius: 1.5rem 1.5rem 0 0;
	z-index: 1000;
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 1rem;
	padding-bottom: calc(1rem + var(--safe-area-inset-bottom));
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.dark-mode .filter-sheet {
	background: #272727;
}

.filter-sheet.active {
	transform: translateY(0);
}

.filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.filter-header h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--text-primary);
}

.filter-options {
	margin-bottom: 1.5rem;
}

.filter-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	padding: 1rem 0;
	position: sticky;
	bottom: 0;
	background: inherit;
	border-top: 1px solid var(--border-color);
}

/* Update existing search input styles */
.search-input {
	padding-right: 3rem; /* Ensure enough space for clear button */
}

/* Add these styles to your existing CSS */
.filter-group {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.filter-group-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.sort-options, .location-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sort-option {
	display: flex;
	align-items: center;
	padding: 0.75rem;
	background: var(--background-color);
	border-radius: 0.75rem;
	cursor: pointer;
	transition: all 0.2s;
}

.dark-mode .sort-option {
	background: #333333;
}

.sort-option input[type="radio"] {
	display: none;
}

.sort-option .sort-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-secondary);
}

.sort-option .sort-label::before {
	content: "";
	width: 20px;
	height: 20px;
	border: 2px solid var(--border-color);
	border-radius: 50%;
	transition: all 0.2s;
}

.sort-option input[type="radio"]:checked + .sort-label {
	color: var(--primary-color);
}

.sort-option input[type="radio"]:checked + .sort-label::before {
	border-color: var(--primary-color);
	background: var(--primary-color);
	box-shadow: inset 0 0 0 4px var(--background-color);
}

.dark-mode .sort-option input[type="radio"]:checked + .sort-label::before {
	box-shadow: inset 0 0 0 4px #333333;
}

/* Location filter styles */
.location-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.75rem;
}

.location-option {
	background: var(--background-color);
	border-radius: 0.75rem;
	padding: 0.75rem;
	cursor: pointer;
	transition: all 0.2s;
}

.dark-mode .location-option {
	background: #333333;
}

.location-option input[type="checkbox"] {
	display: none;
}

.location-option .location-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-secondary);
}

.location-option input[type="checkbox"]:checked + .location-label {
	color: var(--primary-color);
}

.location-dropdown-toggle {
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	text-align: left;
	cursor: pointer;
}

.dropdown-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0;
}

.dropdown-header i {
	transition: transform 0.3s ease;
	color: var(--text-secondary);
}

.dropdown-header.active i {
	transform: rotate(180deg);
}

.selected-count {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-left: auto;
	margin-right: 0.75rem;
}

.location-dropdown-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.location-dropdown-content.active {
	max-height: 300px;
	overflow-y: auto;
}

.location-options {
	padding-top: 0.75rem;
}

/* Hide scrollbars for all elements */
* {
	-ms-overflow-style: none;  /* Internet Explorer and Edge */
	scrollbar-width: none;     /* Firefox */
}

/* Hide scrollbars for Webkit browsers (Chrome, Safari, etc.) */
*::-webkit-scrollbar {
	display: none;
}

/* Ensure the main body still scrolls smoothly */
body {
	-webkit-overflow-scrolling: touch;
}

/* For any specific containers that need scrolling */
.app-content,
.detail-sheet,
.park-list,
.location-dropdown-content,
.filter-sheet {
	-webkit-overflow-scrolling: touch;
	overflow-y: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.app-content::-webkit-scrollbar,
.detail-sheet::-webkit-scrollbar,
.park-list::-webkit-scrollbar,
.location-dropdown-content::-webkit-scrollbar,
.filter-sheet::-webkit-scrollbar {
	display: none;
}

/* Target the POI list and account container specifically */
#poiList,
.account-container {
	-ms-overflow-style: none;
	scrollbar-width: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

#poiList::-webkit-scrollbar,
.account-container::-webkit-scrollbar {
	display: none;
}

/* Ensure the main content area also hides scrollbars */
.app-content {
	-ms-overflow-style: none;
	scrollbar-width: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.app-content::-webkit-scrollbar {
	display: none;
}

/* Additional wrapper elements that might show scrollbars */
main,
.settings-section,
.park-overlay-content {
	-ms-overflow-style: none;
	scrollbar-width: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

main::-webkit-scrollbar,
.settings-section::-webkit-scrollbar,
.park-overlay-content::-webkit-scrollbar {
	display: none;
}

/* Ensure the HTML and body elements also hide scrollbars */
html,
body {
	-ms-overflow-style: none;
	scrollbar-width: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
	display: none;
}

.category-scroll {
	position: relative;
}

/* Container for the fades */
.category-scroll-container {
	position: relative;
	overflow: hidden;
	padding-right: 18px;
}

/* Right fade */
.category-scroll-container::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 2rem;
	background: linear-gradient(to right, 
		rgba(248, 250, 252, 0), 
		rgba(248, 250, 252, 1) 90%
	);
	pointer-events: none;
	z-index: 1;
}

/* Left fade */
.category-scroll-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 2rem;
	background: linear-gradient(to left, 
		rgba(248, 250, 252, 0), 
		rgba(248, 250, 252, 1) 90%
	);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

/* Show left fade when scrolled */
.category-scroll-container.is-scrolled::before {
	opacity: 1;
}

/* Dark mode support */
.dark-mode .category-scroll-container::after {
	background: linear-gradient(to right, 
		rgba(26, 26, 26, 0), 
		rgba(26, 26, 26, 1) 90%
	);
}

.dark-mode .category-scroll-container::before {
	background: linear-gradient(to left, 
		rgba(26, 26, 26, 0), 
		rgba(26, 26, 26, 1) 90%
	);
}
	
/* Notification Bell Styles */
.notification-bell {
	background: none;
	border: none;
	padding: 0.5rem;
	color: var(--text-secondary);
	transition: all 0.2s;
	position: relative;
}

.notification-bell.disabled i {
	position: relative;
}

.notification-bell.disabled i::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2px;
	height: 120%;
	background: var(--text-secondary);
	transform: translate(-50%, -50%) rotate(45deg);
}

.notification-bell.active {
	background: var(--magic-gradient);
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Notification Sheet Styles */
.notification-sheet {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	border-radius: 1.5rem 1.5rem 0 0;
	z-index: 1000;
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 1rem;
	padding-bottom: calc(1rem + var(--safe-area-inset-bottom));
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.dark-mode .notification-sheet {
	background: #272727;
}

.notification-sheet.active {
	transform: translateY(0);
}

.notification-sheet-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.notification-sheet-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

.notification-close {
	background: none;
	border: none;
	padding: 0.5rem;
	color: var(--text-secondary);
}

.notification-settings {
	margin-bottom: 1.5rem;
}

.notification-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border-color);
}

.notification-toggle-label {
	font-weight: 500;
	color: var(--text-primary);
}

/* Slider Section */
.notification-conditions {
	margin-top: 1.5rem;
}

.condition-group {
	margin-bottom: 1.5rem;
}

.condition-label {
	display: block;
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

.slider-container {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.label-value-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.slider-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
}

.slider-input {
	flex: 1;
	-webkit-appearance: none;
	height: 12px;
	border-radius: 0.75rem;
	background: var(--border-color);
}

.slider-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--magic-gradient);
	cursor: pointer;
	border: 2px solid white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider-value {
	min-width: 48px;
	padding: 0.25rem 0.5rem;
	background: var(--background-color);
	border-radius: 0.5rem;
	text-align: center;
	font-size: 0.875rem;
	color: var(--text-primary);
}

.slider-button {
	width: 28px;
	height: 28px;
	border-radius: 0.75rem;
	border: none;
	background: var(--magic-gradient);
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	padding: 0;
	line-height: 1;
}

.slider-button:hover {
	opacity: 0.9;
}

.slider-button:active {
	transform: scale(0.95);
}

/* Update Action Buttons */
.notification-actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.notification-action {
	flex: 1;
	padding: 1rem;
	border-radius: 0.75rem;
	border: none;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
}

.notification-action.primary {
	background: var(--magic-gradient);
	color: white;
}

.notification-action.secondary {
	background: var(--background-color);
	color: var(--text-primary);
}

/* Dark mode support */
.dark-mode .slider-input {
	background: #404040;
}

.dark-mode .slider-input::-webkit-slider-thumb {
	border-color: #272727;
}

.dark-mode .slider-value {
	background: #333333;
}

/* Style for the Check Availability button */
.btn-outline-primary {
  display: inline-block;
  padding: 0.5rem 1rem; /* Adjust padding for better proportions */
  font-size: 0.9rem; /* Match the font size of the category pills */
  font-weight: 500;
  color: var(--text-secondary); /* White text */
  background-color: white; /* Bootstrap primary color or similar */
  border: 1px solid var(--border-color); /* Match the background color */
  border-radius: 20px; /* Rounded pill-like appearance */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease; /* Smooth hover effect */
  text-decoration: none; /* Remove underline for links */
}

/* Hover and focus state */
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--magic-gradient); /* Darker shade for hover */
  border-color: var(--border-color); /* Match border on hover */
  text-decoration: none; /* Prevent underline */
}

/* Active state */
.btn-outline-primary:active {
  background-color: var(--primary-color); /* Darker shade for hover */
  border-color: var(--border-color); /* Match border on hover */
  transform: scale(0.98); /* Slightly shrink on click for feedback */
}

/* Responsive adjustments (optional, if needed) */
@media (max-width: 576px) {
  .btn-outline-primary {
	font-size: 0.8rem; /* Slightly smaller text for smaller screens */
	padding: 0.4rem 0.8rem; /* Adjust padding for better fit */
  }
}

.settings-accordion {
	margin-top: 1rem;
}
.accordion-section {
	border-bottom: 1px solid var(--border-color);
}
.accordion-section:last-child {
	border-bottom: none;
}
.accordion-header {
	width: 100%;
	padding: 1rem 0;
	background: none;
	border: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	color: var(--text-primary);
	font-weight: 500;
}
.accordion-header i.fa-chevron-down {
	transition: transform 0.3s ease;
}
.accordion-section.active .accordion-header i.fa-chevron-down {
	transform: rotate(180deg);
}
.accordion-content {
	max-height: 0;
	overflow: scroll;
	transition: max-height 0.3s ease-out;
	padding: 0 0.5rem;
}
.accordion-section.active .accordion-content {
	max-height: 500px;
	padding-bottom: 1rem;
}
.slider-container.compact {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.5rem;
}
.slider-container.compact .condition-label {
	min-width: 80px;
	margin: 0;
}
.slider-container.compact .slider-input {
	flex: 1;
}
.slider-container.compact .slider-value {
	min-width: 60px;
	text-align: right;
}
.main-toggle {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border-color);
}
.notification-sheet {
	max-height: 95vh;
}

.search-section {
  transition: opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease, height 0.3s ease;
  height: auto;
}

.map-active .search-section,
.account-active .search-section {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  margin-top: 0;
  height: 0;
}

.account-active .app-content {
	margin-top: calc(env(safe-area-inset-top, 20px) + 68px);
}

.frequency-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
}

.frequency-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	background: var(--background-color);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
	font-size: 0.9rem;
}

.frequency-button input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.frequency-button:hover {
	border-color: var(--primary-color);
}

.frequency-button input[type="radio"]:checked + span {
	color: white;
}

.frequency-button input[type="radio"]:checked ~ * {
	color: white;
}

.frequency-button input[type="radio"]:checked + * {
	color: white;
}

.frequency-button input[type="radio"]:checked {
	background: var(--primary-color);
}

/* Selected state */
.frequency-button input[type="radio"]:checked ~ .frequency-button,
.frequency-button input[type="radio"]:checked {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
}

/* The button itself when selected */
.frequency-button:has(input[type="radio"]:checked) {
	background: var(--magic-gradient);
	border-color: var(--primary-color);
	color: white;
}

/* Ads CSS */

.ad-card {
	background: linear-gradient(to right, rgba(30, 64, 175, 0.05), transparent);
}

.ad-badge {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: var(--text-secondary);
	color: white;
	padding: 0.25rem 0.5rem;
	border-radius: 0.5rem;
	font-size: 0.75rem;
	opacity: 0.7;
}

.poi-name {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 0.25rem;
}

.poi-description {
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin: 0.75rem 0;
	line-height: 1.5;
}

.sticky-ad {
	position: fixed;
	bottom: calc(88px + var(--safe-area-inset-bottom));
	left: 0;
	right: 0;
	background: white;
	padding: 0.5rem 1rem;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 2;
	transition: transform 0.3s ease;
}

.ad-close {
	position: absolute;
	top: -0.8rem;
	right: 0.5rem;
	background: #ffffff;
	border: 1px solid var(--border-color);
	font-size: 1.5rem;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	color: var(--text-secondary);
	width: 26px;
	height: 26px;
	border-radius: 50%;
}

.popup-ad {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 1rem;
	border-radius: 1rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	max-width: 90%;
	max-height: 90vh;
}

.banner-ad {
	width: 100%;
	margin: 0.75rem 0;
	border-radius: 1rem;
}

/* Dark mode support */
.dark-mode .ad-card {
	background: linear-gradient(to right, rgba(var(--primary-color-rgb), 0.1), transparent);
}

.dark-mode .sticky-ad,
.dark-mode .popup-ad {
	background: #272727;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  overflow: scroll!important;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  background: var(--background-color);
  border-radius: 0.5rem;
}

.schedule-time {
  font-weight: 500;
  color: var(--text-primary);
}

.schedule-language {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--magic-gradient);
  color: white;
  border-radius: 1rem;
}

.magic-route-options {
  padding: 16px 0;
}

.route-options {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.route-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: var(--background-color);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dark-mode .route-option {
  background: #333333;
}

.route-option input[type="radio"] {
  display: none;
}

.route-option span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.route-option span::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  transition: all 0.2s;
}

.route-option input[type="radio"]:checked + span {
  color: var(--primary-color);
}

.route-option input[type="radio"]:checked + span::before {
  border-color: var(--primary-color);
  background: var(--primary-color);
  box-shadow: inset 0 0 0 4px var(--background-color);
}

.dark-mode .route-option input[type="radio"]:checked + span::before {
  box-shadow: inset 0 0 0 4px #333333;
}

/* Add styles for the route display on map */
.route-path {
  stroke: var(--primary-color);
  stroke-width: 3;
  stroke-opacity: 0.8;
  fill: none;
}

.custom-map-control {
 background: white;
 border-radius: 2px;
 box-shadow: 0 2px 6px rgba(0,0,0,.3);
 cursor: pointer;
 margin: 10px;
 padding: 11px!important;
 text-align: center;
 bottom: 100px;
}

.custom-map-control i {
	font-size: 16px;
}

.dark-mode .custom-map-control {
  background: #333;
  color: white;
}

.route-visibility-toggle {
  display: none;
}