/* ===== ACCESSIBILITY & SCREEN READER STYLES ===== */
.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.skip-to-content {
	position: absolute;
	top: -100px;
	left: 0;
	z-index: 10000;
	padding: 12px 20px;
	background: #3296A4;
	color: white;
	text-decoration: none;
	font-weight: 600;
	border-radius: 0 0 8px 0;
	transition: top 0.3s;
}

.skip-to-content:focus {
	top: 0;
	outline: 3px solid #FCD34D;
	outline-offset: 2px;
}

/* Focus Styles for Accessibility */
*:focus-visible {
	outline: 3px solid #3296A4 !important;
	outline-offset: 2px !important;
	border-radius: 4px !important;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
	outline: 3px solid #3296A4 !important;
	outline-offset: 2px !important;
}

/* ===== UniDeals GPS: MOBILE-FIRST REDESIGN ===== */
#gpsMapContainer { 
	position: relative;
	width: 100%;
	height: 100%;
	flex: 1 1 auto;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Hide any Google Maps elements - we use Leaflet/OSM */
#gpsMapContainer .gm-style,
#gpsMapContainer [class*="gm-"],
#gpsMapContainer [data-google-map],
#gpsMapContainer iframe[src*="google"],
#gpsMapContainer iframe[src*="maps"],
#gpsMapContainer .gmnoprint,
#gpsMapContainer .gm-style-cc {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 0 !important;
	height: 0 !important;
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
}

/* ===== GPS MODAL - MOBILE-FIRST STRUCTURE ===== */
.gps-modal-mobile.modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.35);
	display: none;
	overflow: visible !important;
}

.gps-modal-mobile.modal.show {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.gps-modal-content {
	width: 100%;
	height: 100%;
	max-width: 100vw;
	max-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: white;
	overflow: visible !important;
	position: relative;
	overflow-y: visible !important;
	overflow-x: hidden !important;
}

.gps-modal-content > * {
	overflow: hidden;
}

/* Exception: Search input wrappers need visible overflow for suggestions */
.gps-modal-content .search-input-wrapper {
	overflow: visible !important;
}

.gps-modal-content .input-with-clear {
	overflow: visible !important;
}

/* Exception: FAB container needs overflow visible for tooltips */
.gps-modal-content .gps-fab-container {
	overflow: visible !important;
}

/* Exception: Search section needs overflow visible */
.gps-modal-content .gps-search-section {
	overflow: visible !important;
	max-height: none !important;
}

/* Header */
.gps-modal-header {
	background: linear-gradient(135deg, #3296A4, #2a8593);
	color: white;
	padding: 12px 16px;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	position: relative;
	z-index: 1003 !important;
	display: flex !important;
	width: 100% !important;
	min-height: 56px !important;
	box-sizing: border-box !important;
}

.gps-modal-header .header-content {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px;
	width: 100% !important;
	flex: 1 1 auto !important;
}

.gps-modal-header h2 {
	margin: 0 !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px;
	flex: 1;
	min-width: 0;
	text-transform: uppercase;
	color: white !important;
	line-height: 1.2 !important;
}

.gps-modal-header h2 i {
	font-size: 1.1rem !important;
	color: white !important;
	opacity: 1 !important;
	display: inline-block !important;
}

.gps-modal-header .header-title-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: white !important;
	display: inline-block !important;
}

.gps-modal-header .gps-close-btn {
	background: rgba(255,255,255,0.25) !important;
	border: 2px solid rgba(255,255,255,0.3) !important;
	color: white !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	font-size: 22px !important;
	line-height: 1 !important;
	transition: all 0.2s;
	flex-shrink: 0 !important;
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	z-index: 10005 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

/* Position close button at extreme edge of modal */
.gps-modal-content {
	position: relative !important;
}

#gpsMapModal .gps-modal-content .gps-close-btn,
#gpsMapModal .gps-modal-content .close {
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	z-index: 10005 !important;
}

.gps-modal-header .gps-close-btn:hover,
.gps-modal-header .gps-close-btn:focus {
	background: rgba(255,255,255,0.4) !important;
	border-color: rgba(255,255,255,0.5) !important;
	transform: scale(1.1);
	outline: 3px solid rgba(255,255,255,0.5) !important;
	outline-offset: 2px !important;
}

.gps-modal-header .gps-close-btn:active {
	transform: scale(0.95);
}

.gps-modal-header .gps-close-btn span {
	color: white !important;
	font-size: 28px !important;
	line-height: 1 !important;
	font-weight: 300 !important;
	display: block !important;
}

/* Search Section - Collapsible */
.gps-search-section {
	background: #f8f9fa !important;
	border-bottom: 1px solid #e0e0e0 !important;
	flex-shrink: 0;
	position: relative !important;
	z-index: 10000 !important;
	overflow: visible !important;
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.search-toggle-btn {
	width: 100% !important;
	min-height: 48px !important; /* WCAG 2.1 AAA touch target */
	padding: 12px 16px !important;
	background: transparent !important;
	border: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
	cursor: pointer !important;
	font-size: 1rem !important; /* Increased for readability */
	color: #3296A4 !important;
	font-weight: 600 !important;
	transition: all 0.2s;
	box-sizing: border-box !important;
	text-align: left !important;
}

.search-toggle-btn span {
	color: #3296A4 !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	display: inline-block !important;
}

.search-toggle-btn:focus-visible {
	outline: 3px solid #3296A4;
	outline-offset: 2px;
	background: rgba(50,150,164,0.05);
}

.search-toggle-btn:hover {
	background: rgba(50,150,164,0.05);
}

.search-toggle-btn i {
	font-size: 1rem;
}

.search-toggle-btn .toggle-icon {
	transition: transform 0.3s;
}

.search-content {
	padding: 10px 14px;
	background: white;
	border-top: 1px solid #e0e0e0;
	overflow: visible !important;
	max-height: none !important;
	position: relative;
	z-index: 10001 !important;
	pointer-events: auto !important;
}

.search-input-wrapper {
	margin-bottom: 10px;
	position: relative;
	z-index: 10002 !important;
	overflow: visible !important;
}

/* "To" destination - PRIMARY, more prominent */
.search-input-wrapper.destination-primary {
	z-index: 10003 !important;
	margin-bottom: 16px !important;
}

.search-input-wrapper.destination-primary .search-label {
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: #3296A4 !important;
}

.search-input-wrapper.destination-primary .input-with-clear input {
	border-width: 2.5px !important;
	border-color: #3296A4 !important;
	font-size: 1.05rem !important;
	padding: 16px 50px 16px 16px !important;
	min-height: 52px !important;
	background: #ffffff !important;
}

.search-input-wrapper.destination-primary .input-with-clear input:focus {
	border-color: #2a8593 !important;
	box-shadow: 0 0 0 4px rgba(50,150,164,0.25) !important;
	outline: 3px solid #3296A4 !important;
}

/* "From" location - SECONDARY, less prominent */
.search-input-wrapper.origin-secondary {
	z-index: 10001 !important;
	margin-bottom: 0 !important;
}

.search-input-wrapper.origin-secondary .search-label {
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	color: #5a9ba5 !important;
	opacity: 0.9 !important;
}

.search-input-wrapper.origin-secondary .input-with-clear input {
	border-width: 2px !important;
	border-color: #9ccfd7 !important;
	font-size: 0.95rem !important;
	padding: 12px 50px 12px 16px !important;
	min-height: 48px !important;
	background: #f8f9fa !important;
}

.search-input-wrapper.origin-secondary .input-with-clear input:focus {
	border-color: #2a8593 !important;
	box-shadow: 0 0 0 3px rgba(50,150,164,0.15) !important;
	outline: 2px solid #3296A4 !important;
	background: #ffffff !important;
}

/* All search results should be above inputs */
.search-input-wrapper .search-results {
	z-index: 999999 !important;
	position: absolute !important;
}

/* "To" destination suggestions should be highest */
#gpsSearchResults {
	z-index: 999999 !important;
	position: absolute !important;
}

.search-input-wrapper:last-child {
	margin-bottom: 0;
}

.search-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #3296A4;
	margin-bottom: 6px;
}

.search-label i {
	font-size: 0.9rem;
	opacity: 0.8;
}

.input-with-clear {
	position: relative;
	display: flex;
	align-items: center;
	overflow: visible !important;
	z-index: 1 !important; /* Lower than suggestions */
}

/* Ensure "To" destination input is lower than its suggestions */
.search-input-wrapper:last-child .input-with-clear {
	z-index: 1 !important;
}
.input-with-clear input {
	width: 100%;
	padding: 14px 50px 14px 16px; /* Reduced padding since no voice button */
	min-height: 48px; /* WCAG 2.1 AAA minimum */
	border: 2px solid #2a8593;
	border-radius: 10px;
	font-size: 1rem; /* Increased for readability */
	color: #2a8593;
	outline: none;
	transition: all 0.2s;
	box-sizing: border-box;
	line-height: 1.5;
	position: relative;
	z-index: 1 !important; /* Lower than suggestions */
}

.input-with-clear input:focus {
	border-color: #3296A4;
	box-shadow: 0 0 0 3px rgba(50,150,164,0.2);
	outline: 2px solid #3296A4;
	outline-offset: 2px;
}

.input-with-clear input:focus-visible {
	border-color: #3296A4;
	box-shadow: 0 0 0 3px rgba(50,150,164,0.2);
	outline: 3px solid #3296A4;
	outline-offset: 2px;
}

.input-with-clear input::placeholder {
	color: #206a76;
	opacity: 0.7;
}


.clear-input-btn {
	position: absolute;
	right: 8px;
	min-width: 44px; /* WCAG 2.1 AAA touch target */
	min-height: 44px; /* WCAG 2.1 AAA touch target */
	width: 44px;
	height: 44px;
	border: none;
	background: rgba(50,150,164,0.1);
	border-radius: 50%;
	color: #3296A4;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: all 0.2s;
	flex-shrink: 0;
	z-index: 6;
}

.clear-input-btn:focus-visible {
	outline: 3px solid #3296A4;
	outline-offset: 2px;
}

.clear-input-btn:hover {
	background: rgba(50,150,164,0.2);
}

.search-results {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 999999 !important;
	background: white !important;
	border: 2px solid #2a8593 !important;
	border-top: none !important;
	border-radius: 0 0 10px 10px !important;
	list-style: none !important;
	margin: 0 !important;
	margin-top: 2px !important;
	padding: 0 !important;
	max-height: 200px !important;
	overflow-y: auto !important;
	display: none !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
	pointer-events: auto !important;
	transform: translateZ(0) !important;
	will-change: transform !important;
}

/* "To" destination suggestions should be highest */
#gpsSearchResults {
	z-index: 999999 !important;
	position: absolute !important;
}

.search-results.show {
	display: block !important;
	z-index: 999999 !important;
	pointer-events: auto !important;
	transform: translateZ(0) !important;
}

/* "To" destination suggestions should be highest when shown */
#gpsSearchResults.show {
	z-index: 999999 !important;
	position: absolute !important;
}

.search-results li {
	padding: 14px 16px; /* Increased for better touch targets */
	min-height: 48px; /* WCAG 2.1 AAA minimum */
	color: #2a8593;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.2s;
	font-size: 1rem; /* Increased for readability */
	display: flex;
	align-items: center;
	pointer-events: auto !important;
	position: relative;
	z-index: 999999 !important;
	user-select: none;
	touch-action: manipulation !important;
}

.search-results li:focus-visible {
	outline: 3px solid #3296A4;
	outline-offset: -3px;
	background: #e7f4f6;
}

.search-results li:focus {
	outline: 3px solid #3296A4;
	outline-offset: -3px;
	background: #e7f4f6;
}

.search-results li[tabindex="0"]:focus {
	outline: 3px solid #3296A4;
	outline-offset: -3px;
	background: #e7f4f6;
}

.search-results li:last-child {
	border-bottom: none;
}

.search-results li:hover {
	background: #e7f4f6;
}
/* Input Status & Feedback */
.input-status {
	margin-top: 6px;
	font-size: 0.875rem;
	padding: 6px 10px;
	border-radius: 6px;
	min-height: 32px;
	display: flex;
	align-items: center;
	transition: all 0.2s;
}

.input-status.listening {
	background: #e3f2fd;
	color: #1976d2;
	border-left: 3px solid #1976d2;
}

.input-status.success {
	background: #e8f5e9;
	color: #388e3c;
	border-left: 3px solid #388e3c;
}

.input-status.error {
	background: #ffebee;
	color: #c62828;
	border-left: 3px solid #c62828;
}

.navigation-status {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 0.9rem;
	min-height: 36px;
	display: flex;
	align-items: center;
	transition: all 0.2s;
	background: #f8f9fa;
	color: #2a8593;
}

.navigation-status.loading {
	background: #e3f2fd;
	color: #1976d2;
	border-left: 3px solid #1976d2;
}

.navigation-status.success {
	background: #e8f5e9;
	color: #388e3c;
	border-left: 3px solid #388e3c;
}

.navigation-status.error {
	background: #ffebee;
	color: #c62828;
	border-left: 3px solid #c62828;
}

.navigation-status.active {
	background: #e8f5e9;
	color: #388e3c;
	border-left: 3px solid #388e3c;
}

/* Map Loading & Error States */
.map-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	padding: 20px 30px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-size: 1rem;
	color: #3296A4;
	font-weight: 500;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(50,150,164,0.2);
	border-top-color: #3296A4;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.map-error {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100;
	background: #ffebee;
	color: #c62828;
	padding: 20px 30px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1rem;
	font-weight: 500;
	border-left: 4px solid #c62828;
}

.map-error i {
	font-size: 1.25rem;
}

/* Start Navigation Button */
.start-navigation-container {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10006;
	display: flex;
	justify-content: center;
	align-items: center;
}
.start-navigation-btn {
	padding: 14px 28px;
	background: linear-gradient(135deg, #3296A4, #2a8593);
	color: white;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 4px 12px rgba(50, 150, 164, 0.4);
	transition: all 0.3s;
	min-width: 200px;
	justify-content: center;
}

.start-navigation-btn:hover {
	background: linear-gradient(135deg, #3aa6b4, #3295a3);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(50, 150, 164, 0.5);
}

.start-navigation-btn:active {
	transform: translateY(0);
}

.start-navigation-btn:focus-visible {
	outline: 3px solid #FCD34D;
	outline-offset: 2px;
}

.start-navigation-btn i {
	font-size: 1.1rem;
}

/* Route Info Card (Floating on Map) */
.route-info-card {
	position: absolute;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10008;
	max-width: 400px;
	width: calc(100% - 32px);
	animation: slideDown 0.3s ease-out;
	pointer-events: none;
}

.gps-map-container {
	position: relative;
	width: 100%;
	height: 100%;
	flex: 1 1 auto;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
/* Ensure Leaflet map takes full container */
.gps-map-container .leaflet-container {
	width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
}

.gps-map-container .route-info-card {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10008;
}

.route-info-card-content {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	padding: 16px;
	position: relative;
	pointer-events: auto;
}

.route-info-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.1);
	border: none;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	color: #666;
	transition: all 0.2s;
	z-index: 10;
}

.route-info-close:hover {
	background: rgba(0, 0, 0, 0.2);
	color: #333;
}

.route-info-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px;
}

.spinner-small {
	width: 32px;
	height: 32px;
	border: 3px solid #e0e0e0;
	border-top-color: #3296A4;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.route-info-loading span {
	color: #2a8593;
	font-size: 0.9rem;
	font-weight: 600;
}

.route-info-details {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.route-info-header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.route-info-location {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #2a8593;
	font-weight: 600;
}

.route-info-location i {
	font-size: 0.85rem;
	opacity: 0.8;
	flex-shrink: 0;
}
.route-info-location span {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.route-info-arrow {
	align-self: center;
	color: #9ccfd7;
	font-size: 0.75rem;
	margin: -4px 0;
}

.route-info-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.route-info-stat {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	background: linear-gradient(135deg, #3296A4 0%, #2a8593 100%);
	border-radius: 8px;
	color: #ffffff;
}

.route-info-stat i {
	font-size: 1rem;
	opacity: 0.9;
}

.route-info-stat-value {
	font-size: 1rem;
	font-weight: 700;
	flex: 1;
}

.route-info-start-btn {
	width: 100%;
	padding: 12px 20px;
	background: linear-gradient(135deg, #3296A4 0%, #2a8593 100%);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 12px rgba(50, 150, 164, 0.3);
	margin-top: 8px;
}

.route-info-start-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(50, 150, 164, 0.4);
}

.route-info-start-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.route-info-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px;
	text-align: center;
	color: #c62828;
}

.route-info-error i {
	font-size: 2rem;
	opacity: 0.8;
}

.route-info-error span {
	font-size: 0.9rem;
	font-weight: 600;
}

.route-info-retry-btn {
	padding: 8px 16px;
	background: #3296A4;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
}

.route-info-retry-btn:hover {
	background: #2a8593;
	transform: translateY(-1px);
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* DISABLED: Floating Start Navigation Button removed - using button in route info card instead */

/* Route Info Card - Responsive */
@media (max-width: 768px) {
	.route-info-card {
		top: 70px;
		width: calc(100% - 24px);
		max-width: none;
	}
	
	.route-info-card-content {
		padding: 14px;
	}
	
	.route-info-stat {
		padding: 10px;
	}
	
	.route-info-start-btn {
		padding: 14px 20px;
		font-size: 0.95rem;
	}
	
}

@media (max-width: 480px) {
	.route-info-card {
		top: 60px;
		width: calc(100% - 16px);
	}
	
	.route-info-card-content {
		padding: 12px;
		border-radius: 10px;
	}
	
	.route-info-location {
		font-size: 0.85rem;
	}
	
	.route-info-stat {
		padding: 8px;
		font-size: 0.85rem;
	}
	
	.route-info-stat-value {
		font-size: 0.9rem;
	}
	
	.route-info-start-btn {
		padding: 12px 16px;
		font-size: 0.9rem;
	}
	
}

/* Route Preview Modal (Legacy - keeping for now but not used) */
.route-preview-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	z-index: 10007;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: fadeIn 0.2s ease-out;
}
.route-preview-content {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	max-width: 500px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	animation: slideUp 0.3s ease-out;
}

.route-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #e0e0e0;
}

.route-preview-header h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #2a8593;
	display: flex;
	align-items: center;
	gap: 10px;
}

.route-preview-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s;
}

.route-preview-close:hover {
	background: #f0f0f0;
	color: #333;
}

.route-preview-body {
	padding: 24px;
}
.route-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 40px 20px;
}

.route-loading .spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #e0e0e0;
	border-top-color: #3296A4;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.route-loading span {
	color: #2a8593;
	font-size: 1rem;
	font-weight: 600;
}

.route-details {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.route-info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: #f8f9fa;
	border-radius: 10px;
}

.route-info-item i {
	color: #3296A4;
	font-size: 1.2rem;
	margin-top: 2px;
	flex-shrink: 0;
}

.route-info-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.route-info-label {
	font-size: 0.85rem;
	color: #666;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.route-info-value {
	font-size: 1rem;
	color: #2a8593;
	font-weight: 600;
}

.route-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 8px;
}

.route-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px;
	background: linear-gradient(135deg, #3296A4 0%, #2a8593 100%);
	border-radius: 10px;
	color: #ffffff;
}

.route-stat i {
	font-size: 1.5rem;
	opacity: 0.9;
}

.route-stat-value {
	font-size: 1.25rem;
	font-weight: 700;
}

.route-stat-label {
	font-size: 0.85rem;
	opacity: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.route-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 20px;
	color: #c62828;
}

.route-error i {
	font-size: 2.5rem;
	opacity: 0.8;
}

.route-error span {
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
}

.route-preview-footer {
	display: flex;
	gap: 12px;
	padding: 20px 24px;
	border-top: 1px solid #e0e0e0;
}

.route-preview-btn {
	flex: 1;
	padding: 14px 24px;
	border: none;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.route-preview-btn-secondary {
	background: #f0f0f0;
	color: #333;
}

.route-preview-btn-secondary:hover {
	background: #e0e0e0;
}

.route-preview-btn-primary {
	background: linear-gradient(135deg, #3296A4 0%, #2a8593 100%);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(50, 150, 164, 0.3);
}

.route-preview-btn-primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(50, 150, 164, 0.4);
}

.route-preview-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Route Preview Modal - Responsive */
@media (max-width: 768px) {
	.route-preview-modal {
		padding: 10px;
	}
	
	.route-preview-content {
		max-width: 100%;
		max-height: 95vh;
		border-radius: 12px;
	}
	
	.route-preview-header {
		padding: 16px 20px;
	}
	
	.route-preview-header h3 {
		font-size: 1.1rem;
	}
	
	.route-preview-body {
		padding: 20px;
	}
	
	.route-stats {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	.route-preview-footer {
		padding: 16px 20px;
		flex-direction: column;
	}
	
	.route-preview-btn {
		width: 100%;
	}
}
@media (max-width: 480px) {
	.route-preview-modal {
		padding: 0;
		align-items: flex-end;
	}
	
	.route-preview-content {
		max-height: 90vh;
		border-radius: 16px 16px 0 0;
		border-bottom: none;
	}
	
	.route-preview-header {
		padding: 14px 16px;
	}
	
	.route-preview-body {
		padding: 16px;
	}
	
	.route-info-item {
		padding: 12px;
	}
	
	.route-stat {
		padding: 12px;
	}
	
	.route-preview-footer {
		padding: 14px 16px;
	}
}

/* Map Container - Consolidated with main definition above */

/* Loading indicator for map */
.map-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	padding: 20px 30px;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.map-loading .spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e0e0e0;
	border-top-color: #3296A4;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.map-loading .loading-text {
	color: #2a8593;
	font-size: 0.95rem;
	font-weight: 600;
}

/* Ensure search suggestions appear above map */
.gps-search-section {
	position: relative;
	z-index: 10000 !important;
}

.gps-search-section .search-results {
	z-index: 999999 !important;
}

.gps-map-container > * {
	overflow: hidden;
}

/* Floating Action Buttons */
.gps-fab-container {
	position: absolute;
	right: 16px;
	bottom: 80px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 1001;
	pointer-events: none;
}

.gps-fab-container > * {
	pointer-events: auto;
}

.gps-fab {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: white;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	color: #3296A4;
	font-size: 20px;
	cursor: pointer;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.3s;
	flex-shrink: 0;
	position: relative !important;
	overflow: visible !important;
	z-index: 1 !important;
}
.gps-fab i {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 2 !important;
	position: relative !important;
	color: inherit !important;
}

.gps-fab:hover,
.gps-fab:active {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.gps-fab-primary {
	background: linear-gradient(135deg, #3296A4, #2a8593);
	color: white;
	width: 64px;
	height: 64px;
	font-size: 24px;
	box-shadow: 0 6px 20px rgba(50,150,164,0.4);
}

.gps-fab-primary i {
	color: white !important;
	z-index: 2 !important;
}

.gps-fab-primary:hover,
.gps-fab-primary:active {
	box-shadow: 0 8px 24px rgba(50,150,164,0.5);
}

/* FAB Tooltips - Always Visible, Compact Label Style (Desktop) */
/* Desktop/Tablet: Tooltips to the LEFT of buttons (toward center for visibility) */
.gps-fab .fab-tooltip {
	position: absolute !important;
	right: calc(100% + 12px) !important;
	left: auto !important;
	top: 50% !important;
	bottom: auto !important;
	transform: translateY(-50%) translateZ(0) !important;
	background: linear-gradient(135deg, #3296A4, #2a8593) !important;
	color: white !important;
	padding: 8px 14px !important;
	border-radius: 8px !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	white-space: nowrap !important;
	opacity: 1 !important;
	visibility: visible !important;
	transition: all 0.2s ease !important;
	pointer-events: none !important;
	z-index: 10000 !important;
	box-shadow: 0 3px 10px rgba(50, 150, 164, 0.4) !important;
	display: block !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	text-transform: none !important;
	letter-spacing: 0.3px !important;
	line-height: 1.3 !important;
	min-width: fit-content !important;
	max-width: 180px !important;
	overflow: visible !important;
	margin: 0 !important;
}

/* Prevent tooltips from going off-screen on small desktop screens */
@media (max-width: 1200px) {
	.gps-fab .fab-tooltip {
		max-width: 150px !important;
		font-size: 0.8rem !important;
		padding: 7px 12px !important;
	}
}
/* Very small screens - keep tooltips to the left (same as desktop) */
@media (max-width: 600px) {
	.gps-fab .fab-tooltip {
		right: calc(100% + 8px) !important;
		left: auto !important;
		top: 50% !important;
		bottom: auto !important;
		transform: translateY(-50%) translateZ(0) !important;
		max-width: 130px !important;
		font-size: 0.75rem !important;
		padding: 6px 10px !important;
	}
	
	.gps-fab .fab-tooltip::after {
		left: 100% !important;
		right: auto !important;
		top: 50% !important;
		bottom: auto !important;
		transform: translateY(-50%) !important;
		border-left-color: #3296A4 !important;
		border-right-color: transparent !important;
		border-top-color: transparent !important;
		border-bottom-color: transparent !important;
	}
}

/* Ensure both buttons' tooltips are visible */
.gps-fab .fab-tooltip,
#startNavBtn .fab-tooltip {
	z-index: 10001 !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}

/* Desktop/Tablet arrow - points right (toward button) */
.gps-fab .fab-tooltip::after {
	content: '';
	position: absolute;
	left: 100% !important;
	right: auto !important;
	top: 50% !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	border: 7px solid transparent !important;
	border-left-color: #3296A4 !important;
	border-right-color: transparent !important;
	border-top-color: transparent !important;
	border-bottom-color: transparent !important;
	margin: 0 !important;
}

/* Tooltips are always visible, no hover effect needed */
.gps-fab:hover .fab-tooltip,
.gps-fab:focus .fab-tooltip,
.gps-fab:active .fab-tooltip {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(-50%) !important;
}

/* Tooltips are always visible on touch devices too */
@media (hover: none) and (pointer: coarse) {
	.gps-fab .fab-tooltip {
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateY(-50%) !important;
		display: block !important;
		z-index: 10000 !important;
	}
}

/* Ensure tooltip container allows overflow */
.gps-fab-container {
	overflow: visible !important;
}

/* Ensure all tooltips are always visible - especially the last button */
.gps-fab .fab-tooltip {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}

/* Ensure tooltips are always visible */

/* Quick Action Button Tooltips */
.quick-action-btn {
	position: relative;
}

.quick-action-btn[title]::before {
	content: attr(title);
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.85);
	color: white;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	z-index: 1002;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.quick-action-btn[title]::after {
	content: '';
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: rgba(0, 0, 0, 0.85);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	z-index: 1002;
}

.quick-action-btn:hover[title]::before,
.quick-action-btn:focus[title]::before,
.quick-action-btn:active[title]::before {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-4px);
}
.quick-action-btn:hover[title]::after,
.quick-action-btn:focus[title]::after,
.quick-action-btn:active[title]::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-4px);
}

/* Show tooltips on touch devices after tap */
@media (hover: none) and (pointer: coarse) {
	.quick-action-btn.touched[title]::before,
	.quick-action-btn.touched[title]::after {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(-4px);
	}
}

/* Bottom Sheet */
.gps-bottom-sheet {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
	transform: translateY(calc(100% - 60px));
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
	max-height: 50vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.gps-bottom-sheet.expanded {
	transform: translateY(0);
}

.bottom-sheet-handle {
	width: 40px;
	height: 4px;
	background: #ccc;
	border-radius: 2px;
	margin: 12px auto 8px;
	cursor: pointer;
}

.bottom-sheet-content {
	padding: 12px 16px 20px;
	overflow-y: auto;
	flex: 1;
}

.quick-actions {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}

.quick-action-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 8px;
	background: #f8f9fa;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.85rem;
	color: #3296A4;
	font-weight: 600;
}

.quick-action-btn i {
	font-size: 20px;
	margin-bottom: 4px;
}

.quick-action-btn:hover,
.quick-action-btn:active {
	background: #e7f4f6;
	border-color: #3296A4;
	transform: translateY(-2px);
}

.quick-action-btn span {
	font-size: 0.75rem;
	text-align: center;
}

.gps-help-text {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	background: #e7f4f6;
	border-radius: 10px;
	color: #3296A4;
	font-size: 0.85rem;
	line-height: 1.4;
}

.gps-help-text i {
	font-size: 16px;
	flex-shrink: 0;
}

/* Theme search inputs */
#gpsMapModal .map-search input[type="text"] {
	border-color: #2a8593 !important;
	color: #2a8593 !important;
}

#gpsMapModal .map-search input[type="text"]::placeholder {
	color: #206a76 !important;
	opacity: 0.9 !important;
}

#gpsMapModal .map-search input[type="text"]::-webkit-input-placeholder { color: #206a76 !important; opacity: 0.9 !important; }
#gpsMapModal .map-search input[type="text"]::-moz-placeholder { color: #206a76 !important; opacity: 0.9 !important; }
#gpsMapModal .map-search input[type="text"]:-ms-input-placeholder { color: #206a76 !important; opacity: 0.9 !important; }
#gpsMapModal .map-search input[type="text"]:-moz-placeholder { color: #206a76 !important; opacity: 0.9 !important; }

#gpsMapModal #gpsFromResults,
#gpsMapModal #gpsSearchResults {
	border-color: #2a8593 !important;
}
#gpsMapModal #gpsFromResults li,
#gpsMapModal #gpsSearchResults li { color: #2a8593 !important; }
#gpsMapModal #gpsFromResults li:hover,
#gpsMapModal #gpsSearchResults li:hover { background: #e7f4f6 !important; }

/* Theme the Leaflet Routing close/collapse button */
#gpsMapContainer .leaflet-routing-container .leaflet-routing-collapse-btn {
	background: #3296A4;
	color: #ffffff;
	border: 1px solid #2a8593;
	border-radius: 10px;
	box-shadow: 0 3px 8px rgba(50,150,164,0.25);
}
#gpsMapContainer .leaflet-control-unideals { max-width: 70vw; display: flex; align-items: center; gap: 6px; }

#gpsMapContainer .leaflet-routing-container .leaflet-routing-collapse-btn:hover,
#gpsMapContainer .leaflet-routing-container .leaflet-routing-collapse-btn:focus {
	background: #2a8593;
	color: #ffffff;
	border-color: #257886;
}
#gpsMapContainer .leaflet-routing-container .leaflet-routing-collapse-btn:active {
	background: #257886;
	color: #ffffff;
	border-color: #206a76;
}

/* Desktop Styles - Show FABs, hide bottom sheet */
@media (min-width: 769px) {
	.gps-fab-container {
		display: flex;
	}
	
	.gps-bottom-sheet {
		display: none;
	}
	
	.gps-modal-header {
		padding: 16px 24px;
	}
	
	.gps-modal-header h2 {
		font-size: 1.3rem;
	}
	
	.gps-modal-content {
		max-width: 900px;
		max-height: 90vh;
		margin: 5vh auto;
		border-radius: 16px;
		box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	}
}
/* Tablet Styles */
@media (max-width: 768px) {
	.gps-modal-mobile.modal {
		padding: 0 !important;
		overflow: visible !important;
	}
	
	.gps-modal-content {
		border-radius: 0 !important;
		overflow: visible !important;
	}
	
	.gps-modal-header {
		padding: 10px 14px !important;
		min-height: 56px !important;
		position: relative !important;
		z-index: 1003 !important;
		display: flex !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	
	.gps-modal-header .header-content {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 12px !important;
		width: 100% !important;
	}
	
	.gps-modal-header h2 {
		font-size: 1rem !important;
		color: white !important;
		display: flex !important;
		align-items: center !important;
		flex: 1 !important;
		min-width: 0 !important;
	}
	
	.gps-modal-header .gps-close-btn,
	#gpsMapModal .gps-close-btn,
	#gpsMapModal .close {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
		font-size: 22px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex-shrink: 0 !important;
		position: absolute !important;
		top: 8px !important;
		right: 8px !important;
		z-index: 10005 !important;
	}
	
	.gps-modal-header .gps-close-btn span {
		font-size: 28px !important;
		color: white !important;
		display: block !important;
	}
	
	.gps-search-section {
		flex-shrink: 0;
		position: relative !important;
		z-index: 1000 !important;
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	
	.search-toggle-btn {
		padding: 10px 14px !important;
		font-size: 0.9rem !important;
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	
	.search-toggle-btn span {
		display: inline-block !important;
		color: #3296A4 !important;
		font-size: 0.9rem !important;
		font-weight: 600 !important;
	}
	
	.search-content {
		padding: 10px 14px !important;
		position: relative !important;
		z-index: 1001 !important;
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	
	.search-input-wrapper {
		margin-bottom: 10px !important;
		position: relative !important;
		z-index: 1001 !important;
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	
	.input-with-clear input {
		padding: 10px 40px 10px 12px !important;
		font-size: 0.9rem !important;
	}
	
	.clear-input-btn {
		width: 32px !important;
		height: 32px !important;
		right: 6px !important;
		position: absolute !important;
		z-index: 6 !important;
	}
	
	
	.gps-map-container {
		min-height: 250px !important;
		position: relative !important;
		z-index: 1 !important;
	}
	
	.gps-fab-container {
		right: 12px !important;
		bottom: 140px !important;
		gap: 10px !important;
		display: flex !important;
		z-index: 1001 !important;
	}
	
	.gps-fab {
		width: 52px !important;
		height: 52px !important;
		font-size: 18px !important;
	}
	
	.gps-fab-primary {
		width: 60px !important;
		height: 60px !important;
		font-size: 22px !important;
	}
	
	/* Tablet Tooltips - Left side (toward center for visibility) */
	.gps-fab .fab-tooltip {
		font-size: 0.8rem !important;
		padding: 7px 12px !important;
		right: calc(100% + 10px) !important;
		left: auto !important;
		top: 50% !important;
		bottom: auto !important;
		transform: translateY(-50%) translateZ(0) !important;
		opacity: 1 !important;
		visibility: visible !important;
		z-index: 10002 !important;
		display: block !important;
		background: linear-gradient(135deg, #3296A4, #2a8593) !important;
		color: white !important;
		border: 1px solid rgba(255, 255, 255, 0.2) !important;
		box-shadow: 0 2px 8px rgba(50, 150, 164, 0.35) !important;
		white-space: nowrap !important;
		max-width: 150px !important;
		text-overflow: ellipsis !important;
		overflow: visible !important;
		position: absolute !important;
		pointer-events: none !important;
		margin: 0 !important;
	}
	
	.gps-fab .fab-tooltip::after {
		left: 100% !important;
		right: auto !important;
		top: 50% !important;
		bottom: auto !important;
		transform: translateY(-50%) !important;
		border-left-color: #3296A4 !important;
		border-right-color: transparent !important;
		border-top-color: transparent !important;
		border-bottom-color: transparent !important;
		border-width: 6px !important;
		content: '' !important;
		display: block !important;
		position: absolute !important;
		margin: 0 !important;
	}
	
	.gps-bottom-sheet {
		display: flex;
		max-height: 45vh;
		position: relative;
		z-index: 999;
	}
	
	.quick-actions {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
		margin-bottom: 12px !important;
	}
	
	.quick-action-btn {
		padding: 10px 6px !important;
		font-size: 0.8rem !important;
	}
	
	.quick-action-btn i {
		font-size: 18px !important;
	}
	
	.quick-action-btn span {
		font-size: 0.7rem !important;
	}
	
	.gps-help-text {
		padding: 10px !important;
		font-size: 0.8rem !important;
	}
	
	#gpsMapContainer .leaflet-routing-container {
		position: absolute;
		bottom: 12px;
		left: 12px;
		right: 12px;
		max-height: 40%;
		font-size: 11px;
	}
}
/* Mobile Styles */
@media (max-width: 480px) {
	.gps-modal-mobile.modal {
		overflow: visible !important;
	}
	
	.gps-modal-content {
		overflow: visible !important;
	}
	
	.gps-modal-header {
		padding: 8px 12px !important;
		min-height: 44px !important;
		position: relative !important;
		z-index: 1003 !important;
	}
	
	.gps-modal-header h2 {
		font-size: 0.9rem !important;
	}
	
	.gps-modal-header .gps-close-btn {
		width: 36px !important;
		height: 36px !important;
		font-size: 20px !important;
	}
	
	.search-toggle-btn {
		padding: 8px 12px !important;
		font-size: 0.85rem !important;
	}
	
	.search-toggle-btn span {
		font-size: 0.85rem !important;
	}
	
	.search-content {
		padding: 6px 10px !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 100% !important;
		box-sizing: border-box !important;
		overflow: visible !important;
		max-height: none !important;
		position: relative !important;
		z-index: 1001 !important;
	}
	
	.gps-search-section {
		overflow: visible !important;
		max-height: none !important;
		flex-shrink: 0 !important;
		position: relative !important;
		z-index: 1000 !important;
	}
	
	.search-input-wrapper {
		margin-bottom: 8px !important;
		position: relative !important;
		z-index: 1001 !important;
	}
	
	.search-label {
		font-size: 0.75rem !important;
		margin-bottom: 4px !important;
	}
	
	.input-with-clear input {
		padding: 8px 40px 8px 8px !important;
		font-size: 0.8rem !important;
	}
	
	
	.clear-input-btn {
		right: 4px !important;
		width: 24px !important;
		height: 24px !important;
		font-size: 10px !important;
		position: absolute !important;
		z-index: 6 !important;
	}
	
	.map-search {
		width: 100% !important;
		box-sizing: border-box !important;
		display: block !important;
	}
	
	.search-label {
		font-size: 0.8rem !important;
		margin-bottom: 4px !important;
	}
	
	.input-with-clear {
		width: 100% !important;
		position: relative !important;
		display: flex !important;
		align-items: center !important;
		box-sizing: border-box !important;
	}
	
	.input-with-clear input {
		width: 100% !important;
		padding: 10px 40px 10px 10px !important;
		font-size: 0.85rem !important;
		box-sizing: border-box !important;
		border: 2px solid #2a8593 !important;
		border-radius: 8px !important;
		color: #2a8593 !important;
		background: white !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	.clear-input-btn {
		right: 6px !important;
		width: 26px !important;
		height: 26px !important;
		position: absolute !important;
		z-index: 6 !important;
	}
	
	.input-with-clear input::placeholder {
		color: #206a76 !important;
		opacity: 0.7 !important;
	}
	
	.clear-input-btn {
		width: 28px !important;
		height: 28px !important;
		right: 6px !important;
		position: absolute !important;
		z-index: 10 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	.search-input-wrapper {
		width: 100% !important;
		box-sizing: border-box !important;
		margin-bottom: 12px !important;
		position: relative !important;
		z-index: 1001 !important;
	}
	
	/* "To" destination - PRIMARY on mobile */
	.search-input-wrapper.destination-primary {
		margin-bottom: 14px !important;
		z-index: 10003 !important;
	}
	
	.search-input-wrapper.destination-primary .search-label {
		font-size: 0.9rem !important;
		font-weight: 700 !important;
	}
	
	.search-input-wrapper.destination-primary .input-with-clear input {
		border-width: 2.5px !important;
		font-size: 1rem !important;
		padding: 14px 45px 14px 14px !important;
		min-height: 50px !important;
	}
	
	/* "From" location - SECONDARY on mobile */
	.search-input-wrapper.origin-secondary {
		margin-bottom: 0 !important;
		z-index: 10001 !important;
	}
	
	.search-input-wrapper.origin-secondary .search-label {
		font-size: 0.8rem !important;
		font-weight: 600 !important;
		opacity: 0.85 !important;
	}
	
	.search-input-wrapper.origin-secondary .input-with-clear input {
		border-width: 2px !important;
		font-size: 0.9rem !important;
		padding: 12px 45px 12px 14px !important;
		min-height: 46px !important;
		background: #f8f9fa !important;
	}
	
	.search-results {
		width: 100% !important;
		box-sizing: border-box !important;
		position: absolute !important;
		top: 100% !important;
		left: 0 !important;
		right: 0 !important;
		z-index: 999999 !important;
		max-height: 200px !important;
		overflow-y: auto !important;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
		display: none !important;
		pointer-events: auto !important;
		transform: translateZ(0) !important;
		will-change: transform !important;
		margin-top: 2px !important;
	}
	
	/* "To" destination suggestions should be highest */
	#gpsSearchResults {
		z-index: 999999 !important;
		position: absolute !important;
	}
	
	.search-results.show {
		display: block !important;
		z-index: 999999 !important;
		pointer-events: auto !important;
		transform: translateZ(0) !important;
	}
	
	/* "To" destination suggestions should be highest when shown */
	#gpsSearchResults.show {
		z-index: 999999 !important;
		position: absolute !important;
	}
	
	/* Ensure inputs are below suggestions */
	.input-with-clear input {
		z-index: 1 !important;
		position: relative !important;
	}
	
	.search-input-wrapper:last-child .input-with-clear input {
		z-index: 1 !important;
	}
	
	.search-results li {
		pointer-events: auto !important;
		z-index: 999999 !important;
		position: relative !important;
		touch-action: manipulation !important;
	}
	
	.gps-map-container {
		min-height: 200px !important;
		flex: 1 1 auto !important;
		position: relative !important;
		z-index: 1 !important;
	}
	
	.start-navigation-container {
		bottom: 80px !important;
	}
	
	.start-navigation-btn {
		padding: 12px 24px !important;
		font-size: 0.9rem !important;
		min-width: 180px !important;
	}
	
	.gps-modal-content {
		overflow-y: visible !important;
		overflow-x: hidden !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		display: flex !important;
		flex-direction: column !important;
	}
	
	.gps-fab-container {
		right: 12px !important;
		bottom: 160px !important;
		gap: 10px !important;
		display: flex !important;
		z-index: 1001 !important;
		pointer-events: none !important;
		overflow: visible !important;
	}
	
	.gps-fab-container > * {
		pointer-events: auto !important;
		overflow: visible !important;
	}
	
	.gps-fab {
		width: 48px !important;
		height: 48px !important;
		font-size: 16px !important;
		box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
	}
	
	.gps-fab-primary {
		width: 56px !important;
		height: 56px !important;
		font-size: 20px !important;
		box-shadow: 0 6px 20px rgba(50,150,164,0.5) !important;
	}
	
	/* Mobile Tooltips - Next to buttons (right side) */
	.gps-fab .fab-tooltip {
		font-size: 0.75rem !important;
		padding: 6px 10px !important;
		left: calc(100% + 8px) !important;
		right: auto !important;
		top: 50% !important;
		bottom: auto !important;
		transform: translateY(-50%) translateZ(0) !important;
		opacity: 1 !important;
		visibility: visible !important;
		z-index: 10003 !important;
		display: block !important;
		background: linear-gradient(135deg, #3296A4, #2a8593) !important;
		color: white !important;
		border: 1px solid rgba(255, 255, 255, 0.2) !important;
		box-shadow: 0 3px 10px rgba(50, 150, 164, 0.4) !important;
		white-space: nowrap !important;
		min-width: fit-content !important;
		max-width: 130px !important;
		text-overflow: ellipsis !important;
		overflow: visible !important;
		border-radius: 8px !important;
		position: absolute !important;
		pointer-events: none !important;
		margin: 0 !important;
		will-change: transform !important;
	}
	
	/* Ensure both buttons' tooltips are visible on mobile */
	.gps-fab .fab-tooltip,
	#startNavBtn .fab-tooltip,
	.gps-fab-primary .fab-tooltip {
		z-index: 10003 !important;
		opacity: 1 !important;
		visibility: visible !important;
		display: block !important;
		position: absolute !important;
		overflow: visible !important;
	}
	
	/* Ensure buttons allow tooltip overflow on mobile */
	.gps-fab,
	.gps-fab-primary {
		overflow: visible !important;
		position: relative !important;
	}
	
	/* Mobile tooltip arrow - points left (toward button) */
	.gps-fab .fab-tooltip::after {
		right: 100% !important;
		left: auto !important;
		top: 50% !important;
		bottom: auto !important;
		transform: translateY(-50%) !important;
		border-right-color: #3296A4 !important;
		border-left-color: transparent !important;
		border-top-color: transparent !important;
		border-bottom-color: transparent !important;
		border-width: 6px !important;
		content: '' !important;
		display: block !important;
		position: absolute !important;
		margin: 0 !important;
	}
	
	.gps-bottom-sheet {
		max-height: 45vh !important;
		transform: translateY(calc(100% - 50px)) !important;
		z-index: 999 !important;
		position: relative !important;
	}
	
	.quick-actions {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 8px !important;
		margin-bottom: 10px !important;
	}
	
	.quick-action-btn {
		padding: 12px 8px !important;
		font-size: 0.75rem !important;
	}
	
	.quick-action-btn i {
		font-size: 18px !important;
		margin-bottom: 4px !important;
	}
	
	.quick-action-btn span {
		font-size: 0.65rem !important;
	}
	
	.gps-help-text {
		padding: 8px !important;
		font-size: 0.75rem !important;
		flex-direction: column;
		text-align: center;
		gap: 4px !important;
	}
	
	.gps-help-text i {
		font-size: 14px !important;
	}
	
	#gpsMapContainer .leaflet-routing-container {
		bottom: 8px !important;
		left: 8px !important;
		right: 8px !important;
		max-height: 45% !important;
		font-size: 10px !important;
	}
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
	.gps-fab,
	.quick-action-btn,
	.search-toggle-btn {
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}
	
	.gps-fab:active,
	.quick-action-btn:active {
		transform: scale(0.95);
	}
}

/* Bottom sheet drag interaction */
.bottom-sheet-handle {
	touch-action: pan-y;
}
@media (max-width: 768px) {
	/* Fullscreen responsive modal for GPS */
	#gpsMapModal.modal { position: fixed; inset: 0; padding: 0 !important; }
	#gpsMapModal .modal-content {
		width: 100vw !important;
		height: 100dvh !important;
		max-width: 100vw !important;
		max-height: 100dvh !important;
		margin: 0 !important;
		border-radius: 0 !important;
		padding: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		overflow: hidden !important;
	}
	#gpsMapModal .modal-header {
		padding: 6px 10px !important;
		min-height: 42px !important;
		max-height: 42px !important;
		flex-shrink: 0 !important;
	}
	#gpsMapModal .modal-header h2 {
		font-size: 0.85rem !important;
		line-height: 1.1 !important;
		margin: 0 !important;
		text-transform: uppercase;
	}
	#gpsMapModal .close { 
		padding: 4px 8px !important; 
		line-height: 1 !important; 
		font-size: 20px !important;
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		min-height: 32px !important;
		max-width: 32px !important;
		max-height: 32px !important;
	}
	#gpsMapModal .map-search { 
		padding: 6px 10px !important; 
		margin-bottom: 4px !important; 
		flex-shrink: 0 !important;
	}
	#gpsMapModal .map-search input[type="text"] {
		padding: 6px 8px !important;
		font-size: 12px !important;
		margin-bottom: 4px !important;
	}
	#gpsMapModal .map-controls { 
		padding: 4px 8px !important; 
		display: grid; 
		grid-template-columns: 1fr 1fr; 
		gap: 4px !important; 
		margin-top: 4px !important;
		flex-shrink: 0 !important;
	}
	#gpsMapModal .map-control-btn {
		padding: 6px 8px !important;
		min-height: 36px !important;
		font-size: 11px !important;
	}
	#gpsMapModal .gps-help-text {
		padding: 0 8px !important;
		margin-top: 4px !important;
		margin-bottom: 4px !important;
		font-size: 10px !important;
		line-height: 1.2 !important;
		flex-shrink: 0 !important;
	}
	#gpsMapModal #gpsMapContainer { 
		flex: 1 1 auto !important; 
		height: auto !important; 
		min-height: 200px !important;
		overflow: hidden !important;
	}

	#gpsMapContainer .leaflet-routing-container {
		position: absolute;
		bottom: 8px;
		left: 8px;
		right: 8px;
		width: auto;
		max-height: 44%;
		overflow: auto;
		border-radius: 12px;
		box-shadow: 0 6px 20px rgba(0,0,0,0.15);
		font-size: 12px;
	}
	#gpsMapContainer .leaflet-routing-alt, 
	#gpsMapContainer .leaflet-routing-geocoders {
		font-size: 12px;
	}
	#gpsMapContainer .leaflet-routing-geocoders { display: none; }
	#gpsMapContainer .leaflet-routing-collapse-btn {
		font-size: 14px;
		padding: 6px 10px;
	}
	#gpsMapContainer .leaflet-top.leaflet-right { right: 6px; }
	#gpsMapContainer .leaflet-top.leaflet-left { left: 6px; }
}

@media (max-width: 480px) {
	#gpsMapContainer .leaflet-routing-container {
		max-height: 45% !important;
		font-size: 10px !important;
		bottom: 4px !important;
		left: 4px !important;
		right: 4px !important;
	}
	/* Extra compact for very small screens */
	#gpsMapModal .modal-header {
		padding: 4px 8px !important;
		min-height: 38px !important;
		max-height: 38px !important;
	}
	#gpsMapModal .modal-header h2 {
		font-size: 0.75rem !important;
	}
	#gpsMapModal .close { 
		width: 28px !important;
		height: 28px !important;
		min-width: 28px !important;
		min-height: 28px !important;
		max-width: 28px !important;
		max-height: 28px !important;
		font-size: 18px !important;
		padding: 3px 6px !important;
	}
	#gpsMapModal .map-search { 
		padding: 4px 8px !important; 
		margin-bottom: 2px !important;
	}
	#gpsMapModal .map-search input[type="text"] {
		padding: 5px 7px !important;
		font-size: 11px !important;
		margin-bottom: 2px !important;
	}
	#gpsMapModal .map-controls { 
		padding: 3px 6px !important; 
		gap: 3px !important;
		margin-top: 2px !important;
		grid-template-columns: 1fr !important;
	}
	#gpsMapModal .map-control-btn {
		padding: 5px 7px !important;
		min-height: 34px !important;
		font-size: 10px !important;
	}
	#gpsMapModal .gps-help-text {
		font-size: 9px !important;
		margin-top: 2px !important;
		margin-bottom: 2px !important;
		padding: 0 6px !important;
	}
	#gpsMapModal #gpsMapContainer { 
		min-height: 180px !important;
	}
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 768px) {
	body {
		overflow-x: hidden !important;
		width: 100% !important;
		max-width: 100vw !important;
	}
	html {
		overflow-x: hidden !important;
		width: 100% !important;
		max-width: 100vw !important;
	}
}

/* Compact all modals on mobile */
@media (max-width: 768px) {
	.modal {
		padding: 10px !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
	}
	.modal-content {
		max-height: 94dvh !important;
		width: 96% !important;
		max-width: calc(100vw - 20px) !important;
		margin: 1vh auto !important;
		padding: 0 !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
	}
	.modal-header {
		padding: 10px 14px !important;
		min-height: 48px !important;
		max-height: 48px !important;
		flex-shrink: 0 !important;
		box-sizing: border-box !important;
		width: 100% !important;
		overflow-x: hidden !important;
	}
	.modal-header h2 {
		font-size: 1.1rem !important;
		line-height: 1.2 !important;
		margin: 0 !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: nowrap !important;
		max-width: calc(100% - 60px) !important;
		text-transform: uppercase;
	}
/* Global modal show state */
.modal.show,
#translatorModal.show,
#gpsMapModal.show,
#guideGeekModal.show,
#emergencyModal.show,
#currencyModal.show,
#weatherModal.show,
#esimModal.show,
#itineraryModal.show,
#flightModal.show {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 10000 !important;
}
	
	.modal.show .modal-content {
		max-height: 94dvh !important;
	}
	.modal-content > div:not(.modal-header) {
		padding: 12px 14px !important;
		max-height: calc(94dvh - 48px) !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		box-sizing: border-box !important;
		width: 100% !important;
	}
}

@media (max-width: 480px) {
	.modal {
		padding: 0 !important;
		overflow-x: hidden !important;
	}
	.modal-content {
		max-height: 100dvh !important;
		width: 100% !important;
		max-width: 100vw !important;
		margin: 0 !important;
		border-radius: 0 !important;
		padding: 0 !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
	}
	.modal-header {
		padding: 8px 10px !important;
		min-height: 42px !important;
		max-height: 42px !important;
		width: 100% !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
	}
	.modal-header h2 {
		font-size: 0.9rem !important;
		line-height: 1.1 !important;
		max-width: calc(100% - 50px) !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: nowrap !important;
		text-transform: uppercase;
	}
	.modal.show .modal-content {
		max-height: 100dvh !important;
	}
	.modal-content > div:not(.modal-header) {
		padding: 10px 12px !important;
		max-height: calc(100dvh - 42px) !important;
		width: 100% !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
	}
}
/**
 * Mauritius Edge Panels - EXTRAORDINARY & INNOVATIVE!
 * Mind-Blowing Features with Cutting-Edge Design
 */

/* ===== RIGHT EDGE BUTTON ===== */
.edge-button {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 25px;
    height: 240px;
    background: #ffffff;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(26, 128, 140, 0.3);
    border-right: none;
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: -8px 0 25px rgba(26, 128, 140, 0.15),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    user-select: none;
}

.edge-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px 0 0 20px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(26, 128, 140, 0.1), rgba(26, 128, 140, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.edge-button:hover::before {
    opacity: 1;
}

.edge-button:hover {
    width: 30px;
    background: #ffffff;
    box-shadow: -12px 0 35px rgba(26, 128, 140, 0.4),
                inset 0 0 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) translateX(-3px);
}

.edge-btn-icon {
    color: #1A808C;
    font-size: 28px;
    margin-bottom: 8px;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(26, 128, 140, 0.3));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.edge-btn-label {
    color: #1A808C;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

/* Hide when panel open */
.widget-panel.open ~ .edge-button {
    right: -80px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LEFT EDGE BUTTON (DIRECTORY) - SLEEK & ELEGANT ===== */
.directory-edge-btn {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 28px;
    height: 200px;
    background: #ffffff;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 2px solid rgba(26, 128, 140, 0.3);
    border-left: none;
    border-radius: 0 16px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        6px 0 20px rgba(26, 128, 140, 0.2),
        inset -1px 0 8px rgba(255, 255, 255, 0.3);
    opacity: 0.92;
    user-select: none;
}

.directory-edge-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 0 16px 16px 0;
    padding: 2px;
    background: linear-gradient(165deg, rgba(26, 128, 140, 0.1), rgba(26, 128, 140, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.directory-edge-btn:hover::before {
    opacity: 1;
}

.directory-edge-btn:hover {
    width: 34px;
    background: #ffffff;
    box-shadow: 
        10px 0 30px rgba(26, 128, 140, 0.35),
        inset -2px 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) translateX(2px);
    opacity: 1;
}

.directory-edge-btn .edge-btn-icon {
    color: #1A808C;
    font-size: 22px;
    margin-bottom: 6px;
    animation: iconFloat 3s ease-in-out infinite 0.8s;
    filter: drop-shadow(0 2px 4px rgba(26, 128, 140, 0.3));
}

.directory-edge-btn .edge-btn-label {
    color: #1A808C;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1;
    text-transform: uppercase;
    transform: rotate(180deg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide when panel open */
.directory-panel.open ~ .directory-edge-btn {
    left: -80px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== WIDGET PANEL (EXTRAORDINARY!) ===== */
.widget-panel {
	position: fixed !important;
	top: 0 !important;
	right: -500px !important;
	width: 450px !important;
	height: 100vh !important;
	height: 100dvh !important; /* Dynamic viewport height for mobile */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98),
		rgba(248, 248, 248, 0.96)) !important;
	backdrop-filter: blur(40px) saturate(180%) !important;
	-webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    box-shadow: -15px 0 60px rgba(0, 0, 0, 0.2),
				inset 0 0 40px rgba(255, 255, 255, 0.5) !important;
	z-index: 9998 !important;
	transition: right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	-webkit-overflow-scrolling: touch !important;
	border-left: 2px solid rgba(26, 128, 140, 0.15) !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.widget-panel.open {
    right: 0 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 9998 !important;
}
.widget-panel-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #1A808C 0%, #2A8C99 50%, #4AB3C2 100%);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.widget-panel-header h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-panel-btn {
    background: #3296A4 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.close-panel-btn:hover {
    background: rgba(50, 150, 164, 0.8) !important;
    color: #fff !important;
    transform: rotate(90deg) scale(1.1);
}

.close-panel-btn i {
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

/* Responsive fixes for close buttons on mobile/tablet */
@media (max-width: 1024px) {
    .close-panel-btn,
    .directory-panel-close,
    .modal .close,
    .header-btn,
    .translate-button-compact,
    .quick-translate-btn,
    .swap-button-compact,
    .guide-geek-close,
    .send-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    .modal .close {
        font-size: 36px !important;
    }
    .header-btn {
        font-size: 14px !important;
    }
    .translate-button-compact,
    .quick-translate-btn,
    .swap-button-compact {
        font-size: 16px !important;
    }
    .guide-geek-close {
        font-size: 24px !important;
    }
    .send-btn {
        font-size: 16px !important;
    }
    .day-narration-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }
}

@media (max-width: 768px) {
    .close-panel-btn,
    .directory-panel-close,
    .modal .close,
    .header-btn,
    .translate-button-compact,
    .quick-translate-btn,
    .swap-button-compact,
    .guide-geek-close {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }
    .close-panel-btn i,
    .directory-panel-close i {
        font-size: 15px !important;
    }
    .modal .close {
        font-size: 32px !important;
    }
    .header-btn {
        font-size: 13px !important;
    }
    .translate-button-compact,
    .quick-translate-btn,
    .swap-button-compact {
        font-size: 15px !important;
    }
    .guide-geek-close {
        font-size: 22px !important;
    }
    .day-narration-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
}
@media (max-width: 480px) {
    .close-panel-btn,
    .directory-panel-close,
    .modal .close,
    .header-btn,
    .translate-button-compact,
    .quick-translate-btn,
    .swap-button-compact,
    .guide-geek-close {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    .close-panel-btn i,
    .directory-panel-close i {
        font-size: 14px !important;
    }
    .modal .close {
        font-size: 28px !important;
    }
    .header-btn {
        font-size: 12px !important;
    }
    .translate-button-compact,
    .quick-translate-btn,
    .swap-button-compact {
        font-size: 14px !important;
    }
    .guide-geek-close {
        font-size: 20px !important;
    }
    .day-narration-btn {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        max-width: 26px !important;
        max-height: 26px !important;
    }
}

.widget-panel-content {
    padding: 25px;
}
/* ===== WIDGET ITEMS (REDESIGNED!) ===== */
.widget-item {
    background: white;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
}

.widget-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--widget-color, #1A808C);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.widget-item:hover::before {
    transform: scaleY(1);
}

.widget-item:hover {
    transform: translateY(-5px) translateX(-3px);
    box-shadow: 0 12px 35px rgba(26, 128, 140, 0.25);
    border-color: var(--widget-color, #1A808C);
}

.widget-item:active {
    transform: translateY(-2px) scale(0.98);
}

.widget-icon {
    width: 60px;
    height: 60px;
    background: #3296A4;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(50, 150, 164, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.widget-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: #3296A4;
    opacity: 0;
    transition: opacity 0.3s;
}

.widget-item:hover .widget-icon::after {
    opacity: 0.3;
    animation: rotate 2s linear infinite;
}

.widget-item:hover .widget-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(50, 150, 164, 0.4);
}

.widget-icon i {
    font-size: 26px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.widget-info {
    flex: 1;
    min-width: 0; /* allow text truncation on small screens */
}

.widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--widget-color, #1A808C);
    margin-bottom: 5px;
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-desc {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.widget-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--widget-color, #1A808C);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Widget Color Themes - ALL DARKER BROWN #1A808C */
.gps-widget {
    --widget-color: #1A808C;
    --widget-color-dark: #7A5936;
    --widget-shadow: rgba(26, 128, 140, 0.4);
}

.translator-widget {
    --widget-color: #1A808C;
    --widget-color-dark: #7A5936;
    --widget-shadow: rgba(26, 128, 140, 0.4);
}

.emergency-widget {
    --widget-color: #1A808C;
    --widget-color-dark: #7A5936;
    --widget-shadow: rgba(26, 128, 140, 0.4);
}

.currency-widget {
    --widget-color: #1A808C;
    --widget-color-dark: #7A5936;
    --widget-shadow: rgba(26, 128, 140, 0.4);
}

.esim-widget {
    --widget-color: #1A808C;
    --widget-color-dark: #7A5936;
    --widget-shadow: rgba(26, 128, 140, 0.4);
}

.weather-widget {
    --widget-color: #1A808C;
    --widget-color-dark: #7A5936;
    --widget-shadow: rgba(26, 128, 140, 0.4);
}

.guide-geek-widget {
    --widget-color: #1A808C;
    --widget-color-dark: #7A5936;
    --widget-shadow: rgba(26, 128, 140, 0.4);
}

.itinerary-widget {
    --widget-color: #1A808C;
    --widget-color-dark: #7A5936;
    --widget-shadow: rgba(26, 128, 140, 0.4);
}

.flight-widget {
    --widget-color: #1A808C;
    --widget-color-dark: #7A5936;
    --widget-shadow: rgba(26, 128, 140, 0.4);
}

/* ===== DIRECTORY PANEL (SPECTACULAR!) ===== */
.directory-panel {
    position: fixed;
    top: 0;
    left: -600px;
    width: 580px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
    box-shadow: 
        15px 0 60px rgba(25, 127, 140, 0.15),
        inset -1px 0 20px rgba(255, 255, 255, 0.5);
    z-index: 9998;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 3px solid rgba(25, 127, 140, 0.2);
}

.directory-panel.open {
    left: 0 !important;
}

.directory-panel-header {
    padding: 25px 30px;
    background: #197F8C;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.directory-panel-header h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.directory-panel-close {
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 40px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.directory-panel-close:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1);
}

.directory-panel-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.directory-panel-content .mauritius-interactive-map-container {
    position: relative;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
    flex: 1 1 auto;
    min-height: 0;
}

.directory-panel-content #directoryMapContainer {
    flex: 1 1 auto;
    width: 100% !important;
    min-height: 420px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    background: #eef5f6 !important;
    position: relative !important;
}

/* ===== CIRCULAR COMPASS ROSE ===== */
.compass-rose-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.compass-rose {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(248, 248, 248, 1) 50%, rgba(240, 240, 240, 1) 100%);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(26, 128, 140, 0.1),
        0 0 0 3px rgba(26, 128, 140, 0.3),
        0 0 0 6px rgba(74, 179, 194, 0.2);
    animation: compassGlow 3s ease-in-out infinite;
    transition: transform 0.3s ease-out;
}

@keyframes compassGlow {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.15),
            inset 0 0 30px rgba(26, 128, 140, 0.1),
            0 0 0 3px rgba(26, 128, 140, 0.3),
            0 0 0 6px rgba(74, 179, 194, 0.2);
    }
    50% {
        box-shadow: 
            0 10px 50px rgba(26, 128, 140, 0.25),
            inset 0 0 40px rgba(26, 128, 140, 0.15),
            0 0 0 3px rgba(26, 128, 140, 0.5),
            0 0 0 6px rgba(74, 179, 194, 0.3);
    }
}
/* Compass Center */
.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 128, 140, 0.5);
    z-index: 10;
}

.compass-needle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 60px solid #EA2839;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: 50% calc(100% + 40px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease-out;
    z-index: 20;
}

@keyframes needleFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.compass-center-text {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.2;
}
.compass-center-text span {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    opacity: 0.9;
}

/* Compass Points */
.compass-point {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--point-color, #1A808C), var(--point-dark, #2A8C99));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--point-shadow, rgba(26, 128, 140, 0.3));
    border: 3px solid white;
}

.compass-point:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 25px var(--point-shadow, rgba(26, 128, 140, 0.5));
    z-index: 5;
}

.compass-point.nearest {
    border: 3px solid #34A853;
    animation: nearestPulse 2s ease-in-out infinite;
}

@keyframes nearestPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(52, 168, 83, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(52, 168, 83, 0.8);
    }
}

.point-marker {
    font-size: 0.9rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Position each compass point */
.compass-n {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    --point-color: #4285F4;
    --point-dark: #34A853;
    --point-shadow: rgba(66, 133, 244, 0.4);
}

.compass-ne {
    top: 20px;
    right: 20px;
    --point-color: #00BCD4;
    --point-dark: #4285F4;
    --point-shadow: rgba(0, 188, 212, 0.4);
}

.compass-e {
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    --point-color: #FFA726;
    --point-dark: #FB8C00;
    --point-shadow: rgba(255, 167, 38, 0.4);
}

.compass-se {
    bottom: 20px;
    right: 20px;
    --point-color: #FF9800;
    --point-dark: #F57C00;
    --point-shadow: rgba(255, 152, 0, 0.4);
}

.compass-s {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    --point-color: #EA2839;
    --point-dark: #C62828;
    --point-shadow: rgba(234, 40, 57, 0.4);
}

.compass-sw {
    bottom: 20px;
    left: 20px;
    --point-color: #9C27B0;
    --point-dark: #7B1FA2;
    --point-shadow: rgba(156, 39, 176, 0.4);
}

.compass-w {
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    --point-color: #00A859;
    --point-dark: #007A42;
    --point-shadow: rgba(0, 168, 89, 0.4);
}

.compass-nw {
    top: 20px;
    left: 20px;
    --point-color: #1A808C;
    --point-dark: #2A8C99;
    --point-shadow: rgba(26, 128, 140, 0.4);
}

/* ===== SEARCH BAR ===== */
.compass-search-container {
    position: relative;
    margin-bottom: 20px;
}

.compass-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(26, 128, 140, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background: white;
    transition: all 0.3s ease;
}

.compass-search-input:focus {
    outline: none;
    border-color: #1A808C;
    box-shadow: 0 0 0 4px rgba(26, 128, 140, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 8px;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.05), rgba(74, 179, 194, 0.05));
}

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

.search-result-direction {
    font-weight: 700;
    color: #1A808C;
    font-size: 0.9rem;
}

.search-result-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* ===== YOU ARE HERE ===== */
.you-are-here {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
    border: 2px solid rgba(66, 133, 244, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.you-are-here i {
    font-size: 1.5rem;
    color: #4285F4;
}

.you-are-here span {
    flex: 1;
    font-weight: 700;
    color: #333;
}
.detect-location-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detect-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Compass Instruction */
.compass-instruction {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(26, 128, 140, 0.05);
    border-radius: 8px;
    line-height: 1.6;
}

#compassStatus {
    margin-bottom: 10px;
    color: #666;
}

.enable-orientation-btn {
    margin-top: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(26, 128, 140, 0.3);
}

.enable-orientation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 128, 140, 0.4);
}

.enable-orientation-btn:active {
    transform: translateY(0);
}

/* ===== ACTIVE SELECTION HIGHLIGHTING ===== */
.compass-point.active {
    transform: scale(1.3) !important;
    box-shadow: 0 0 30px var(--point-shadow), 0 0 60px var(--point-shadow);
    border: 4px solid #FFD700;
    z-index: 15 !important;
    animation: activeGlow 1.5s ease-in-out infinite;
}

@keyframes activeGlow {
    0%, 100% {
        box-shadow: 0 0 30px var(--point-shadow), 0 0 60px var(--point-shadow);
    }
    50% {
        box-shadow: 0 0 40px var(--point-shadow), 0 0 80px var(--point-shadow);
    }
}

.compass-point.active .point-marker {
    font-size: 1rem;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-chip {
    padding: 8px 16px;
    background: rgba(26, 128, 140, 0.1);
    color: #1A808C;
    border: 2px solid rgba(26, 128, 140, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-chip:hover {
    background: rgba(26, 128, 140, 0.15);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    border-color: #1A808C;
}
.filter-chip i {
    font-size: 0.9rem;
}

/* ===== QUICK ACCESS (FAVORITES & RECENT) ===== */
.quick-access {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-access-section {
    margin-bottom: 20px;
}

.quick-access-section:last-child {
    margin-bottom: 0;
}

.quick-access-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1A808C;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-directions,
.recent-directions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.favorite-directions:empty::after,
.recent-directions:empty::after {
    content: 'None yet';
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

.quick-access-chip {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    border: 1px solid rgba(26, 128, 140, 0.2);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1A808C;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-access-chip:hover {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    transform: translateY(-2px);
}

.quick-access-chip i {
    font-size: 0.75rem;
}

/* ===== DISTANCE INDICATOR ===== */
.district-distance {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4285F4;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.district-distance i {
    font-size: 0.7rem;
}

/* ===== FAVORITE BUTTON ===== */
.favorite-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.favorite-btn:hover {
    color: #EA2839;
    transform: scale(1.2);
}

.favorite-btn.favorited i {
    color: #EA2839;
}

.favorite-btn.favorited i::before {
    content: '\f004'; /* solid heart */
}

.district-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.district-item.active {
    transform: translateX(-6px);
    box-shadow: 0 16px 32px rgba(25, 127, 140, 0.16);
    border-left-width: 6px;
}

.district-item.active .district-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, #197F8C, #2AA1AE);
    color: #ffffff;
}

.district-item.active .district-name {
    color: #197F8C !important;
}

.district-item.active .deals-badge {
    background: #197F8C !important;
    color: #ffffff !important;
}

/* District Items - Enhanced Cards */
.district-item {
    background: white;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--direction-color, #1A808C);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 128, 140, 0.08);
}

.district-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--direction-color, #1A808C) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.district-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(26, 128, 140, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border-left-width: 6px;
}

.district-item:hover::after {
    opacity: 0.04;
}
.district-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--stat-color, #1A808C), var(--stat-dark, #2A8C99));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 
        0 6px 20px var(--stat-shadow, rgba(26, 128, 140, 0.25)),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.district-item:hover .district-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 
        0 10px 30px var(--stat-shadow, rgba(26, 128, 140, 0.35)),
        inset 0 2px 8px rgba(255, 255, 255, 0.4);
}

.district-info {
    flex: 1;
    position: relative;
    z-index: 2;
}
.district-name {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.district-desc {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    color: #1A808C;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.district-places {
    font-size: 0.78rem;
    font-weight: 500;
    color: #888;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.district-places::before {
    content: '📍';
    font-size: 0.7rem;
}

/* Compass Direction Colors & Variables */
.direction-north {
    --direction-color: #4285F4;
    --direction-dark: #34A853;
    --direction-shadow: rgba(66, 133, 244, 0.3);
}

.direction-northeast {
    --direction-color: #00BCD4;
    --direction-dark: #4285F4;
    --direction-shadow: rgba(0, 188, 212, 0.3);
}

.direction-east {
    --direction-color: #FFA726;
    --direction-dark: #FB8C00;
    --direction-shadow: rgba(255, 167, 38, 0.3);
}

.direction-southeast {
    --direction-color: #FF9800;
    --direction-dark: #F57C00;
    --direction-shadow: rgba(255, 152, 0, 0.3);
}

.direction-south {
    --direction-color: #EA2839;
    --direction-dark: #C62828;
    --direction-shadow: rgba(234, 40, 57, 0.3);
}

.direction-southwest {
    --direction-color: #9C27B0;
    --direction-dark: #7B1FA2;
    --direction-shadow: rgba(156, 39, 176, 0.3);
}

.direction-west {
    --direction-color: #00A859;
    --direction-dark: #007A42;
    --direction-shadow: rgba(0, 168, 89, 0.3);
}

.direction-northwest {
    --direction-color: #1A808C;
    --direction-dark: #2A8C99;
    --direction-shadow: rgba(26, 128, 140, 0.3);
}

.direction-center {
    --direction-color: #4AB3C2;
    --direction-dark: #2A8C99;
    --direction-shadow: rgba(74, 179, 194, 0.3);
}

/* ===== MODALS (FULL-SCREEN SPECTACULAR!) ===== */
.modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height for mobile */
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show,
#translatorModal.show,
.modal.show#translatorModal {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10000 !important;
    animation: modalFadeIn 0.4s ease;
}
/* Force translator modal to show when it has the show class */
/* Use z-index 10001 to be above GPS map (10000) */
#translatorModal.show,
#translatorModal[class*="show"],
#translatorModal.show.modal {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10001 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Override any conflicting styles */
#translatorModal.show * {
    box-sizing: border-box;
}

/* Ensure modal content is visible */
#translatorModal.show .modal-content,
#translatorModal.show .translator-modal-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10001 !important;
    position: relative !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 92%;
    max-width: 1100px;
    max-height: 92vh;
    max-height: 92dvh !important; /* Dynamic viewport height for mobile */
    overflow: hidden !important; /* CRITICAL: Creates scroll container for children */
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    margin: auto; /* Center horizontally and vertically */
    flex-shrink: 0; /* Prevent shrinking in flex container */
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 25px 30px;
    background: #3296A4;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.close {
    color: white !important;
    font-size: 40px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15) !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

/* ===== MODAL BODY SCROLLING ===== */
.translator-body,
.modal-content > div:not(.modal-header) {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    scroll-behavior: smooth;
}

/* ===== EMERGENCY MODAL (COMPREHENSIVE & BEAUTIFUL!) ===== */
.emergency-modal-content {
    max-width: 1200px;
    width: 92%;
    max-height: 81vh !important; /* 10% less than 90vh */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* CRITICAL: Must constrain children for scroll to work */
}

.emergency-header {
    background: linear-gradient(135deg, #1A808C 0%, #2A8C99 50%, #4AB3C2 100%) !important;
    padding: 20px 25px !important;
    border-bottom: 3px solid rgba(74, 179, 194, 0.5) !important;
    flex-shrink: 0 !important; /* Don't compress header */
}

.emergency-header h2 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.emergency-modal-content .close,
.emergency-header .close,
span.emergency-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
.emergency-modal-content .close:hover,
.emergency-header .close:hover,
span.emergency-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: rotate(90deg) scale(1.15) !important;
}

.emergency-body {
    padding: 20px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    flex: 1 !important; /* Take all available space */
    min-height: 0 !important; /* CRITICAL for flexbox scrolling */
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    touch-action: pan-y !important;
    scroll-behavior: smooth !important;
    position: relative !important; /* Ensure it creates a scroll container */
}

/* Quick Actions Bar */
.emergency-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.05), rgba(74, 179, 194, 0.05));
    border-radius: 15px;
    border: 2px dashed rgba(26, 128, 140, 0.2);
}

.emergency-action-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-location {
    background: linear-gradient(135deg, #2A8C99, #1A808C);
    color: white;
    border: 2px solid rgba(74, 179, 194, 0.3);
}

.share-location:hover {
    background: linear-gradient(135deg, #4AB3C2, #2A8C99);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(26, 128, 140, 0.4);
}

.call-emergency {
    background: linear-gradient(135deg, #EA2839, #B91C1C);
    color: white;
    border: 2px solid rgba(234, 40, 57, 0.3);
    animation: pulse-emergency 2s infinite;
}

.call-emergency:hover {
    background: linear-gradient(135deg, #DC2626, #991B1B);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(234, 40, 57, 0.5);
}
@keyframes pulse-emergency {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(234, 40, 57, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(234, 40, 57, 0.6);
    }
}

/* Category Sections */
.emergency-category {
    margin-bottom: 25px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(26, 128, 140, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-header {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 3px solid rgba(74, 179, 194, 0.3);
}

.category-header i {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.category-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Emergency Grid (for priority cards) */
.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    padding: 20px;
}

/* Emergency Cards */
.emergency-card {
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.08), rgba(74, 179, 194, 0.08));
    border: 2px solid rgba(26, 128, 140, 0.2);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.emergency-card.priority {
    background: linear-gradient(135deg, rgba(234, 40, 57, 0.95), rgba(185, 28, 28, 0.95));
    border: 3px solid rgba(234, 40, 57, 0.5);
    box-shadow: 0 6px 20px rgba(234, 40, 57, 0.3);
}

.emergency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 128, 140, 0.3);
    border-color: rgba(26, 128, 140, 0.5);
}

.emergency-card.priority:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(234, 40, 57, 0.5);
}

.emergency-card-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.emergency-card i {
    font-size: 2.5rem;
    color: #1A808C;
}

.emergency-card.priority i {
    color: white;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.emergency-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.emergency-info strong {
    font-size: 1rem;
    font-weight: 700;
    color: #1A808C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergency-card.priority .emergency-info strong {
    color: white;
}

.emergency-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2A8C99;
    letter-spacing: 1px;
}

.emergency-card.priority .emergency-number {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Emergency List (for detailed services) */
.emergency-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.emergency-list-item {
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid rgba(26, 128, 140, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.emergency-list-item:hover {
    background: linear-gradient(90deg, rgba(26, 128, 140, 0.08), rgba(74, 179, 194, 0.05));
    padding-left: 25px;
}

.emergency-list-item i {
    font-size: 1.8rem;
    color: #2A8C99;
    margin-top: 3px;
    flex-shrink: 0;
}

.list-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-item-info strong {
    font-size: 1rem;
    font-weight: 700;
    color: #1A808C;
    line-height: 1.4;
}

.list-item-info .location {
    font-size: 0.85rem;
    color: #2A8C99;
    font-weight: 600;
    font-style: italic;
}

.list-item-info .emergency-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A808C;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* ===== GPS MAP (ADVANCED!) ===== */
#gpsMapContainer {
    width: 100% !important;
    min-width: 100% !important;
    height: 550px !important;
    min-height: 550px !important;
    border-radius: 16px;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative !important;
    background: #2a8593 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

#gpsMapContainer > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 550px !important;
}

/* Hide all Google Maps branding and attribution */
#gpsMapContainer a[href*="maps.google.com"],
#gpsMapContainer a[href*="google.com"],
#gpsMapContainer .gm-style-cc,
#gpsMapContainer .gmnoprint,
#gpsMapContainer .gm-style > div:last-child {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide Google logo */
#gpsMapContainer img[src*="google"],
#gpsMapContainer img[alt*="Google"] {
    display: none !important;
}

.map-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.map-control-btn {
    min-width: 0;
    padding: 12px 16px;
    background: #2a8593 !important;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(42, 133, 147, 0.4) !important;
    min-height: 44px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.map-control-btn i { flex: 0 0 auto; }

/* Ensure header close button is not distorted - positioned at extreme edge */
#gpsMapModal .modal-header .close,
#gpsMapModal .gps-modal-header .gps-close-btn,
#gpsMapModal .gps-modal-header .close,
#gpsMapModal .gps-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
    white-space: nowrap;
    cursor: pointer !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10005 !important;
}

#gpsMapModal .modal-header .close:hover,
#gpsMapModal .gps-modal-header .gps-close-btn:hover,
#gpsMapModal .gps-modal-header .close:hover,
#gpsMapModal .gps-close-btn:hover {
    background: rgba(255,255,255,0.4) !important;
    border-color: rgba(255,255,255,0.5) !important;
    transform: scale(1.1) !important;
}

#gpsMapModal .modal-header .close span,
#gpsMapModal .gps-modal-header .gps-close-btn span,
#gpsMapModal .gps-close-btn span {
    color: white !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
    display: block !important;
}

/* Tighten layout on very small screens */
@media (max-width: 480px) {
    .map-controls { grid-template-columns: 1fr; gap: 8px; width: 100%; }
    .map-control-btn { padding: 10px 12px; min-height: 42px; font-size: 13px; max-width: 100%; }
    .map-control-btn i { font-size: 14px; }
    .map-control-btn span, .map-control-btn .label { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Tablet optimization: two columns */
@media (max-width: 1024px) and (min-width: 481px) {
    .map-controls { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Harden general widget cards for small screens */
.widget-item { box-sizing: border-box; min-height: 56px; display: flex; align-items: center; }
@media (max-width: 768px) {
    .widget-item { min-height: 52px; }
    .widget-icon { width: 48px; height: 48px; border-radius: 14px; }
    .widget-icon i { font-size: 22px; }
    .widget-title { font-size: 0.85rem; }
    .widget-desc { font-size: 0.72rem; }
}

/* Ensure GPS modal header layout is stable */
#gpsMapModal .modal-header,
#gpsMapModal .gps-modal-header { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    gap: 10px !important;
    width: 100% !important;
    min-height: 56px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1003 !important;
}

#gpsMapModal .modal-header h2,
#gpsMapModal .gps-modal-header h2 { 
    margin: 0 !important; 
    font-size: 1.1rem !important; 
    line-height: 1.2 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.map-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 133, 147, 0.4) !important;
}

/* ===== TRANSLATOR (COMPACT & ENHANCED!) ===== */
.translator-modal-content {
    max-width: 900px;
    width: 95%;
}

.translator-body {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 120px);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Compact translator modal for mobile */
@media (max-width: 768px) {
	.translator-modal-content {
		width: 98% !important;
		max-width: calc(100vw - 20px) !important;
		max-height: 96dvh !important;
		margin: 1vh auto !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
	}
	.translator-body {
		padding: 12px 14px !important;
		max-height: calc(96dvh - 48px) !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		box-sizing: border-box !important;
		width: 100% !important;
	}
	.language-selectors-compact {
		padding: 10px 12px !important;
		margin-bottom: 12px !important;
		gap: 8px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		overflow-x: hidden !important;
	}
	.lang-dropdown-compact {
		padding: 8px 10px !important;
		font-size: 13px !important;
		box-sizing: border-box !important;
		max-width: 100% !important;
	}
	.swap-button-compact {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		max-width: 36px !important;
		max-height: 36px !important;
		font-size: 14px !important;
		flex-shrink: 0 !important;
	}
	.translation-textarea-compact {
		min-height: 110px !important;
		padding: 10px 12px !important;
		font-size: 13px !important;
		margin-bottom: 10px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	.smart-actions {
		gap: 10px !important;
		margin-bottom: 12px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		overflow-x: hidden !important;
	}
}
/* ===== Traveller's Directory Fullscreen Modal ===== */
.travellers-directory-modal {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(18px) !important;
    z-index: 2147483000 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.travellers-directory-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}

.travellers-directory-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 60px 8px 16px;
    background: linear-gradient(135deg, #197F8C, #2EA3B3);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    position: relative;
    min-height: auto;
    height: auto;
}

.travellers-directory-modal__header h2 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0;
}

.travellers-directory-modal__close {
    color: white !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15) !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    padding: 0 !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.travellers-directory-modal__close:hover,
.travellers-directory-modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: rotate(90deg) scale(1.1);
}

.travellers-directory-modal__close i,
.travellers-directory-deals-panel__close i,
.travellers-directory-results-panel__close i {
    font-size: inherit !important;
    line-height: 1 !important;
    display: block !important;
}

.travellers-directory-modal__body {
    flex: 1;
    position: relative;
    background: #eff6f7;
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    padding: 0 24px 32px 24px;
    min-height: calc(100vh - 140px);
    border-radius: 0 0 24px 24px;
    box-sizing: border-box;
    overflow: hidden;
    /* Sea image background - will be set dynamically via JavaScript */
    --sea-background-image: none;
}

.travellers-directory-modal__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--sea-background-image, none);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    pointer-events: none;
    z-index: 0;
    transform: translateZ(0);
    /* Light overlay for better text readability - reduced opacity to show image better */
    background-color: rgba(15, 95, 108, 0.05);
    /* Ensure it's visible */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Multiple wave animations for realistic movement */
@keyframes waveAnimationLarge {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    50% {
        background-position: 0% 0%, 100% 50%, 0% 0%, 0% 0%;
    }
}

@keyframes waveAnimationMedium {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    50% {
        background-position: 0% 0%, 0% 0%, 80% 30%, 0% 0%;
    }
}

@keyframes waveAnimationSmall {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    50% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 60% 20%;
    }
}

/* Wave overlay removed - using sea.jpeg image instead */
.travellers-directory-modal__body::after {
    display: none;
}

/* Wave flow animations */
@keyframes waveFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 30% 20%;
    }
    50% {
        background-position: 60% 40%;
    }
    75% {
        background-position: 30% 20%;
    }
}

@keyframes waveFlowSecondary {
    0%, 100% {
        background-position: 0% 0%;
    }
    33% {
        background-position: -25% 15%;
    }
    66% {
        background-position: -50% 30%;
    }
}

/* Ensure map and other content are above the wave background */
.travellers-directory-modal__map,
.travellers-directory-deals-panel,
.travellers-directory-results-panel,
.travellers-directory-dodo-contact {
    position: relative;
    z-index: 1;
}

.travellers-directory-dodo-contact {
    position: absolute;
    top: 0;
    left: 24px;
    width: auto;
    max-width: 400px;
    padding: 15px 20px !important;
    background: transparent !important;
    z-index: 10;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.travellers-directory-dodo-contact > * {
    width: 100%;
    max-width: 100%;
}

.travellers-directory-dodo-contact > *:not(.travellers-directory-compass) {
    flex-shrink: 0;
}

/* Compass SVG under contact form */
.travellers-directory-compass {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    order: 2; /* Ensure compass comes after contact button */
}

.travellers-directory-compass img {
    width: 100px;
    height: auto;
    max-width: 100%;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: block !important;
    visibility: visible !important;
}

.travellers-directory-compass img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .travellers-directory-compass img {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .travellers-directory-compass img {
        width: 60px;
    }
}

/* Ensure dodo contact container is visible */
#travellersDirectoryDodoContact {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    background: transparent !important;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure contact button has order 1 */
#travellersDirectoryDodoContact .msc-contact-button,
#travellersDirectoryDodoContact [class*="msc-contact"] {
    order: 1 !important;
}

/* Ensure compass container is visible */
#travellersDirectoryDodoContact .travellers-directory-compass {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: 2 !important;
}

/* Override Simple Contact button styles when inside travellers directory modal */
#travellersDirectoryModal .travellers-directory-dodo-contact .msc-contact-button {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: 100% !important;
}

@media (max-width: 1440px) {
    .travellers-directory-dodo-contact {
        left: 20px;
        max-width: 380px;
    }
}

@media (max-width: 1200px) {
    .travellers-directory-dodo-contact {
        left: 18px;
        max-width: 360px;
    }
}

@media (max-width: 992px) {
    .travellers-directory-dodo-contact {
        left: 18px;
        max-width: 350px;
        padding: 12px 16px !important;
    }
}

@media (max-width: 768px) {
    .travellers-directory-dodo-contact {
        left: 12px;
        max-width: 320px;
        padding: 10px 14px !important;
    }
}

@media (max-width: 480px) {
    .travellers-directory-dodo-contact {
        left: 10px;
        max-width: calc(100% - 20px);
        padding: 8px 12px !important;
    }
}

.travellers-directory-modal__map {
    flex: 1 1 55%;
    min-height: 540px;
    position: relative;
}

/* District click hint - Always visible on all viewports */
.travellers-directory-district-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(25, 127, 140, 0.3);
    border-radius: 50px;
    padding: 12px 20px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000 !important;
    font-size: 14px;
    font-weight: 600;
    color: #197F8C;
    pointer-events: none;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.5s ease-out, transform 0.3s ease-out;
    animation: hintPulse 2s ease-in-out infinite;
    overflow: visible;
}

.travellers-directory-district-hint.hidden {
    /* Hint is always visible - hidden class has no effect */
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.travellers-directory-district-hint i {
    font-size: 18px;
    color: #197F8C;
    animation: handPoint 1.5s ease-in-out infinite;
    position: relative;
    display: inline-block;
    z-index: 1001;
    transition: transform 0.3s ease;
}

@keyframes hintPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(25, 127, 140, 0.3);
    }
}

@keyframes handPoint {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

@keyframes fingerMove {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(15px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes fingerClick {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(0.85) rotate(-10deg);
    }
}

.travellers-directory-deals-panel,
.travellers-directory-results-panel {
    flex: 0 0 330px;
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 330px;
    max-height: calc(100vh - 200px);
    margin: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.travellers-directory-deals-panel.is-visible,
.travellers-directory-results-panel.is-visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.travellers-directory-results-panel {
    margin-left: 24px;
}

@media (max-width: 1440px) {
    .travellers-directory-modal__body {
        padding: 0 20px 28px 20px;
        gap: 18px;
    }

    .travellers-directory-modal__map {
        min-height: 500px;
    }
    
    .travellers-directory-district-hint {
        font-size: 13px;
        padding: 10px 16px;
        top: 15px;
    }
    
    .travellers-directory-district-hint i {
        font-size: 16px;
    }

    .travellers-directory-deals-panel,
    .travellers-directory-results-panel {
        flex: 0 0 300px;
        width: 300px;
        max-height: calc(100vh - 180px);
        padding: 10px 16px 16px 16px;
    }
}

@media (max-width: 1200px) {
    .travellers-directory-modal__body {
        padding: 0 18px 26px 18px;
        gap: 16px;
    }

    .travellers-directory-modal__map {
        min-height: 460px;
    }
    
    .travellers-directory-district-hint {
        font-size: 12px;
        padding: 8px 14px;
        top: 10px;
        gap: 8px;
    }
    
    .travellers-directory-district-hint i {
        font-size: 14px;
    }

    .travellers-directory-deals-panel,
    .travellers-directory-results-panel {
        flex: 0 0 280px;
        width: 280px;
    }
}

@media (max-width: 992px) {
    .travellers-directory-modal__body {
        display: flex;
        flex-direction: column;
        padding: 0 18px 24px 18px;
        gap: 18px;
        min-height: auto;
        align-items: center;
    }

    .travellers-directory-deals-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(90%, 560px) !important;
        max-width: 560px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10001 !important;
        border-radius: 22px !important;
        padding: 12px 18px 18px 18px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-deals-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .travellers-directory-deals-panel.is-offset {
        right: auto !important;
    }

    .travellers-directory-results-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(90%, 560px) !important;
        max-width: 560px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10002 !important;
        border-radius: 22px !important;
        padding: 12px 18px 18px 18px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-results-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .travellers-directory-deals-panel__body,
    .travellers-directory-results-panel__body {
        flex: 1;
        max-height: none;
    }

    .travellers-directory-modal__map {
        width: 100%;
        max-width: 760px;
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .travellers-directory-modal {
        padding: 12px !important;
    }
    
    .travellers-directory-modal__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 50px 8px 12px;
        position: relative !important;
        min-height: auto;
        height: auto;
    }

    .travellers-directory-modal__header h2 {
        font-size: 15px;
        gap: 6px;
        line-height: 1.2;
    }

    .travellers-directory-modal__close {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        font-size: 22px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        z-index: 10 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .travellers-directory-deals-panel__close,
    .travellers-directory-results-panel__close {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        font-size: 22px !important;
        position: relative !important;
        z-index: 10 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }

    .travellers-directory-modal__body {
        padding: 0 12px 20px 12px;
        gap: 16px;
    }

    .travellers-directory-deals-panel,
    .travellers-directory-results-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(90%, 520px) !important;
        max-width: 520px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10002 !important;
        border-radius: 20px !important;
        padding: 8px 14px 14px 14px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-results-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .travellers-directory-deals-panel__body,
    .travellers-directory-results-panel__body {
        flex: 1;
        max-height: none;
    }

    .travellers-directory-modal__map {
        min-height: 360px;
    }
    
    .travellers-directory-district-hint {
        font-size: 11px;
        padding: 6px 12px;
        top: 8px;
        max-width: 90%;
    }
    
    .travellers-directory-district-hint span {
        display: inline !important;
    }
    
    .travellers-directory-district-hint::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .travellers-directory-modal {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 8px !important;
        border-radius: 0 !important;
    }

    .travellers-directory-modal__header {
        border-radius: 0;
        padding: 6px 50px 6px 12px;
        position: relative !important;
        min-height: auto;
        height: auto;
    }

    .travellers-directory-modal__header h2 {
        font-size: 14px;
        line-height: 1.2;
    }

    .travellers-directory-modal__close {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        font-size: 20px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        z-index: 10 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .travellers-directory-deals-panel__close,
    .travellers-directory-results-panel__close {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        font-size: 20px !important;
        position: relative !important;
        z-index: 10 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }

    .travellers-directory-modal__body {
        padding: 0 10px 18px 10px;
    }

    .travellers-directory-deals-panel,
    .travellers-directory-results-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(90%, 480px) !important;
        max-width: 480px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10002 !important;
        border-radius: 18px !important;
        padding: 8px 12px 12px 12px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-results-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .travellers-directory-deals-panel__body,
    .travellers-directory-results-panel__body {
        flex: 1;
        max-height: none;
    }
}

@media (max-width: 420px) {
    .travellers-directory-modal {
        padding: 4px !important;
    }
    
    .travellers-directory-modal__header {
        padding: 6px 48px 6px 10px;
        position: relative !important;
        min-height: auto;
        height: auto;
    }

    .travellers-directory-modal__header h2 {
        font-size: 13px;
        line-height: 1.2;
    }

    .travellers-directory-modal__close {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        font-size: 18px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        z-index: 10 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .travellers-directory-deals-panel__close,
    .travellers-directory-results-panel__close {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        font-size: 18px !important;
        position: relative !important;
        z-index: 10 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }

    .travellers-directory-modal__map {
        min-height: 300px;
    }

    .travellers-directory-deals-panel,
    .travellers-directory-results-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(92%, 450px) !important;
        max-width: 450px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10002 !important;
        border-radius: 18px !important;
        padding: 8px 12px 12px 12px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-results-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .travellers-directory-deals-panel__body,
    .travellers-directory-results-panel__body {
        flex: 1;
        max-height: none;
    }
}

.travellers-directory-modal__empty {
    margin: auto;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    color: #197F8C;
    font-weight: 600;
}

body.travellers-directory-modal-open {
    overflow: hidden;
}

.travellers-directory-modal__map .map_render {
    width: 100% !important;
    height: 100% !important;
    min-height: calc(100vh - 160px) !important;
}

.travellers-directory-modal__map iframe {
    border: none;
    width: 100% !important;
    height: 100% !important;
}

.travellers-directory-deals-panel {
    position: absolute;
    top: 32px;
    right: 32px;
    width: min(320px, calc(100% - 64px));
    max-height: calc(100% - 64px);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(5, 41, 51, 0.25);
    padding: 12px 18px 18px 18px;
    z-index: 11;
    transform: translateX(32px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, right 0.25s ease;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .travellers-directory-deals-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(90%, 500px) !important;
        max-width: 500px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10001 !important;
        border-radius: 22px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-deals-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .travellers-directory-deals-panel.is-offset {
        right: auto !important;
    }

    .travellers-directory-results-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(90%, 500px) !important;
        max-width: 500px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10002 !important;
        border-radius: 20px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-results-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.travellers-directory-deals-panel.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.travellers-directory-deals-panel.is-offset {
    right: 32px;
}

.travellers-directory-deals-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 0;
    margin: 0;
    min-height: auto;
    height: auto;
}

.travellers-directory-deals-panel__heading {
    flex: 1;
    min-width: 0;
}

.travellers-directory-deals-panel__heading h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0b2a33;
    line-height: 1.2;
    padding: 0;
}

.travellers-directory-deals-panel__eyebrow {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #197F8C;
    opacity: 0.75;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.travellers-directory-deals-panel__close {
    color: white !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #197F8C !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.travellers-directory-deals-panel__close:hover,
.travellers-directory-deals-panel__close:focus-visible {
    background: #155a64 !important;
    transform: rotate(90deg) scale(1.1);
}


.travellers-directory-deals-panel__body {
    flex: 1;
    margin-top: 12px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
}

.travellers-directory-deals-panel__body::-webkit-scrollbar-thumb {
    background: rgba(25, 127, 140, 0.4);
    border-radius: 999px;
}

/* ===== CAROUSEL PREVIEW PANEL - SYNCHRONIZED WITH MAIN CAROUSEL ===== */
/* Creative glassmorphism design with smooth animations */

.travellers-directory-carousel-preview {
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 251, 252, 0.92));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(25, 127, 140, 0.15);
    box-shadow: 0 12px 40px rgba(25, 127, 140, 0.12), 
                inset 0 0 30px rgba(255, 255, 255, 0.8),
                0 0 60px rgba(31, 229, 233, 0.1);
    overflow: hidden;
    position: relative;
    animation: carouselPreviewFadeIn 0.4s ease-out;
}

@keyframes carouselPreviewFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Subtle shimmer effect on hover */
.travellers-directory-carousel-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(31, 229, 233, 0.06) 50%,
        transparent 70%
    );
    animation: shimmerGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmerGlow {
    0%, 100% {
        transform: translateX(-30%) translateY(-30%) rotate(45deg);
    }
    50% {
        transform: translateX(30%) translateY(30%) rotate(45deg);
    }
}

/* Floating animation for the entire panel */
.travellers-directory-carousel-preview::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: radial-gradient(ellipse, rgba(31, 229, 233, 0.4) 0%, transparent 70%);
    animation: floatingShadow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatingShadow {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(0.95);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.05);
    }
}

.travellers-directory-carousel-preview > * {
    position: relative;
    z-index: 1;
}

/* Enhanced Carousel Preview Header with gradient border */
.carousel-preview-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, rgba(25, 127, 140, 0.08), rgba(31, 229, 233, 0.06));
    border-bottom: 1px solid rgba(25, 127, 140, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.carousel-preview-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(31, 229, 233, 0.6) 20%, 
        rgba(25, 127, 140, 0.8) 50%, 
        rgba(31, 229, 233, 0.6) 80%, 
        transparent 100%);
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.carousel-preview-eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    color: #197F8C;
    opacity: 0.8;
}

.carousel-preview-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0b2a33;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Swiper Container */
.carousel-preview-swiper-wrapper {
    position: relative;
    padding: 10px 0 15px;
    overflow: hidden;
}

.travellers-carousel-swiper {
    width: 100%;
    padding: 10px 5px 15px;
    /* Ensure touch events work on mobile/tablet */
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
    /* Allow pointer events for swipe */
    pointer-events: auto !important;
}

.travellers-carousel-swiper .swiper-wrapper {
    /* Allow swipe gestures */
    touch-action: pan-y !important;
    -webkit-touch-callout: none;
    /* Ensure slides can be swiped */
    pointer-events: auto !important;
}

.travellers-carousel-swiper .swiper-slide {
    width: 240px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(25, 127, 140, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 251, 252, 0.85));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(25, 127, 140, 0.12);
    /* Prevent text selection but allow touch swipe */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure touch works */
    touch-action: pan-y !important;
    pointer-events: auto !important;
    /* Smooth touch scrolling */
    -webkit-overflow-scrolling: touch;
}

/* Ensure carousel slide content doesn't block swipe */
.travellers-carousel-swiper .carousel-slide-content {
    pointer-events: none;
}

/* But allow links to be clickable */
.travellers-carousel-swiper .carousel-slide-explore {
    pointer-events: auto;
}

.travellers-carousel-swiper .carousel-slide-image {
    pointer-events: none;
}

.travellers-carousel-swiper .swiper-slide-active {
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(25, 127, 140, 0.25),
                0 0 20px rgba(31, 229, 233, 0.3);
    border-color: rgba(31, 229, 233, 0.4);
}

.travellers-carousel-swiper .swiper-slide-next,
.travellers-carousel-swiper .swiper-slide-prev {
    transform: scale(0.95);
    opacity: 0.85;
}

/* Enhanced Slide Hover Effects with Glow */
.travellers-carousel-swiper .swiper-slide {
    position: relative;
}

.travellers-carousel-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1fe5e9, #197F8C, #1fe5e9);
    background-size: 200% 200%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: gradientRotate 3s ease infinite;
}

@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.travellers-carousel-swiper .swiper-slide:hover::before {
    opacity: 0.6;
}

.travellers-carousel-swiper .swiper-slide-active::before {
    opacity: 0.4;
}

/* Slide Content */
.carousel-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.carousel-slide-image {
    width: 100%;
    height: 65%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.travellers-carousel-swiper .swiper-slide:hover .carousel-slide-image {
    transform: scale(1.08);
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(
        to top,
        rgba(11, 42, 51, 0.85) 0%,
        rgba(11, 42, 51, 0.4) 40%,
        transparent 100%
    );
    z-index: 1;
}

.carousel-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    z-index: 2;
    color: white;
}

.carousel-slide-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.carousel-slide-subtitle {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-slide-explore {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    z-index: 3;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: explorePulse 2s ease-in-out infinite;
}

/* Pulse animation for explore button */
@keyframes explorePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        transform: scale(1.05);
    }
}

.carousel-slide-explore:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.15) rotate(15deg);
    animation: none;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.carousel-slide-explore i {
    transition: transform 0.3s ease;
}

.carousel-slide-explore:hover i {
    transform: translateX(3px);
}

/* Swiper Navigation Buttons - Hidden for carousel preview in traveller's directory */
.carousel-swiper-prev,
.carousel-swiper-next {
    display: none !important;
}

/* Swiper Pagination */
.carousel-swiper-pagination {
    bottom: 8px !important;
}

.carousel-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(25, 127, 140, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.carousel-swiper-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: #197F8C;
    box-shadow: 0 0 8px rgba(25, 127, 140, 0.5);
}

/* Carousel Preview Hint */
.carousel-preview-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(25, 127, 140, 0.06), rgba(31, 229, 233, 0.04));
    border-top: 1px solid rgba(25, 127, 140, 0.08);
    color: #197F8C;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.carousel-preview-hint i {
    font-size: 12px;
    animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-5px);
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .travellers-carousel-swiper .swiper-slide {
        width: 200px;
        height: 240px;
    }
    
    .carousel-preview-hint {
        font-size: 10px;
        padding: 8px 12px;
    }
}

@media (max-width: 600px) {
    .travellers-carousel-swiper .swiper-slide {
        width: 170px;
        height: 210px;
    }
    
    .carousel-preview-title {
        font-size: 14px;
    }
    
    .carousel-swiper-prev,
    .carousel-swiper-next {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ===== END CAROUSEL PREVIEW PANEL ===== */

.travellers-directory-deals-panel__empty {
    display: none;
    text-align: center;
    padding: 40px 12px;
    color: #1a4f5b;
    font-weight: 600;
    background: rgba(31, 229, 233, 0.08);
    border-radius: 18px;
}

.travellers-directory-deals-panel__empty i {
    font-size: 26px;
    margin-bottom: 12px;
    display: block;
    color: #197F8C;
}

.travellers-directory-deals-panel__list {
    display: grid;
    gap: 16px;
}

.travellers-directory-deal {
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245, 251, 252, 0.98), rgba(233, 246, 248, 0.95));
    box-shadow: 0 18px 42px rgba(9, 45, 53, 0.18);
    border: 1px solid rgba(25, 127, 140, 0.15);
}

.travellers-directory-deal__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, #ff9966, #ff5e62);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.travellers-directory-deal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0b2a33;
}

.travellers-directory-deal__tagline {
    margin: 6px 0 14px;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(11, 42, 51, 0.7);
}

.travellers-directory-deal__description {
    margin: 0 0 16px 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(15, 59, 69, 0.78);
}

.travellers-directory-deal__thumb {
    width: 100%;
    height: 160px;
    margin-bottom: 14px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 32px rgba(8, 37, 44, 0.22);
}

.travellers-directory-deal__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.travellers-directory-deal__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #197F8C, #2EA3B3);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(25, 127, 140, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.travellers-directory-deal__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(25, 127, 140, 0.35);
}

.travellers-directory-deal__meta {
    font-size: 12px;
    font-weight: 600;
    color: rgba(15, 59, 69, 0.7);
}

.travellers-directory-deals-panel__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    width: 100%;
}

.travellers-directory-deals-panel__category-card {
    position: relative;
    border: none;
    border-radius: 18px;
    padding: 0;
    background: transparent;
    color: #0b2a33;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
    display: block;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    flex: 1 1 220px;
    overflow: hidden;
    appearance: none;
}

.travellers-directory-deals-panel__category-card .travellers-directory-deals-panel__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.travellers-directory-deals-panel__category-card .travellers-directory-deals-panel__category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    padding: 16px;
    border-radius: 0 0 18px 18px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.travellers-directory-deals-panel__category-card .travellers-directory-deals-panel__category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--td-category-accent, #197F8C);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.travellers-directory-deals-panel__category-card.has-image .travellers-directory-deals-panel__category-icon {
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.travellers-directory-deals-panel__category-card.has-image .travellers-directory-deals-panel__category-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(11, 42, 51, 0.18), transparent 70%);
}

.travellers-directory-deals-panel__category-card.has-image .travellers-directory-deals-panel__category-icon i {
    display: none;
}

.travellers-directory-deals-panel__category-card .travellers-directory-deals-panel__category-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.travellers-directory-deals-panel__category-card .travellers-directory-deals-panel__category-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.travellers-directory-deals-panel__category-card .travellers-directory-deals-panel__category-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.35px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.travellers-directory-deals-panel__category-card .travellers-directory-deals-panel__category-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2px;
}

.travellers-directory-deals-panel__category-card .travellers-directory-deals-panel__category-tagline {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.travellers-directory-deals-panel__category-card:hover,
.travellers-directory-deals-panel__category-card:focus-visible {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.4);
}

.travellers-directory-deals-panel__category-card:not(.has-image) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(236, 248, 250, 0.78));
    border: 1px solid rgba(5, 36, 44, 0.14);
    padding: 14px 16px;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.travellers-directory-deals-panel__category-card:not(.has-image) .travellers-directory-deals-panel__category-overlay {
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.travellers-directory-deals-panel__category-card:not(.has-image) .travellers-directory-deals-panel__category-eyebrow {
    color: rgba(15, 59, 69, 0.62);
}

.travellers-directory-deals-panel__category-card:not(.has-image) .travellers-directory-deals-panel__category-title {
    color: var(--td-category-accent, #197F8C);
    text-shadow: none;
}

.travellers-directory-deals-panel__category-card:not(.has-image) .travellers-directory-deals-panel__category-count {
    color: rgba(15, 59, 69, 0.72);
}

.travellers-directory-deals-panel__category-card:not(.has-image) .travellers-directory-deals-panel__category-tagline {
    color: rgba(15, 59, 69, 0.6);
}

.travellers-directory-deals-panel__category-card:hover .travellers-directory-deals-panel__category-image,
.travellers-directory-deals-panel__category-card:focus-visible .travellers-directory-deals-panel__category-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.travellers-directory-deals-panel__category-card.is-active {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.5);
}

.travellers-directory-deals-panel__category-card:focus-visible {
    outline: 3px solid rgba(31, 229, 233, 0.45);
    outline-offset: 3px;
}

.travellers-directory-deals-panel__category-card .travellers-directory-deals-panel__category-image {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .travellers-directory-deals-panel__categories {
        gap: 12px;
    }

    .travellers-directory-deals-panel__category-card {
        flex: 1 1 100%;
        min-width: unset;
    }
}

.travellers-directory-deals-panel__hero {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 0 !important;
    height: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background-size: cover;
    background-position: center;
    background-color: #0b2a33;
}

.travellers-directory-deals-panel__hero.is-visible {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

.travellers-directory-deals-panel__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 25, 32, 0.72), rgba(9, 47, 56, 0.4));
}

.travellers-directory-deals-panel__hero-inner {
    position: relative;
    z-index: 1;
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.travellers-directory-deals-panel__hero-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.travellers-directory-deals-panel__hero-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    opacity: 0.85;
}

.travellers-directory-deals-panel__hero-count {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

.travellers-directory-deals-panel__hero-description {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0.85;
}
/* ===== Map Deals Tooltip Styling ===== */
.mep-deal-tooltip {
    min-width: 220px;
    max-width: 280px;
    padding: 16px 18px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(249, 253, 255, 0.95), rgba(236, 248, 250, 0.92));
    box-shadow: 0 18px 40px rgba(13, 61, 73, 0.25);
    color: #0f3b45;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}
.mep-deal-tooltip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(31, 229, 233, 0.08), rgba(25, 127, 140, 0.05));
    pointer-events: none;
}

.mep-deal-tooltip__header {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.mep-deal-tooltip__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, #ff8a65, #ff5252);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 8px;
    box-shadow: 0 6px 18px rgba(255, 87, 34, 0.35);
}

.mep-deal-tooltip__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f3b45;
    line-height: 1.25;
}
.mep-deal-tooltip__tagline {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(15, 59, 69, 0.7);
}

.mep-deal-tooltip__thumb {
    width: 100%;
    height: 140px;
    border-radius: 15px;
    margin-bottom: 14px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 32px rgba(12, 53, 63, 0.22);
}
.mep-deal-tooltip__description {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(15, 59, 69, 0.85);
}

.mep-deal-tooltip__meta {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #197F8C;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mep-deal-tooltip__meta i {
    color: #1FE5E9;
}
.mep-deal-tooltip__cta {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #197F8C, #2EA3B3);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(25, 127, 140, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

.mep-deal-tooltip__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(25, 127, 140, 0.4);
}

.mep-deal-tooltip__cta i {
    font-size: 12px;
}

@media (max-width: 768px) {
    .travellers-directory-modal {
        padding: 16px;
    }

    .travellers-directory-modal__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 50px 14px 16px;
        position: relative !important;
    }

    .travellers-directory-modal__header h2 {
        font-size: 17px;
        gap: 6px;
    }

    .travellers-directory-modal__close {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        font-size: 20px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        z-index: 10 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }

    .travellers-directory-modal__body {
        display: block;
        min-height: auto;
        padding: 0 0 32px 0;
        border-radius: 0;
    }

    .travellers-directory-modal__map {
        min-height: 320px;
    }

    .travellers-directory-deals-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(90%, 480px) !important;
        max-width: 480px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10001 !important;
        border-radius: 22px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-deals-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .travellers-directory-deals-panel.is-offset {
        right: auto !important;
    }

    .travellers-directory-results-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(90%, 480px) !important;
        max-width: 480px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10002 !important;
        border-radius: 20px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-results-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 600px) {
    .travellers-directory-deals-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(92%, 450px) !important;
        max-width: 450px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10001 !important;
        border-radius: 20px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-deals-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .travellers-directory-deals-panel.is-offset {
        right: auto !important;
    }

    .travellers-directory-results-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(92%, 450px) !important;
        max-width: 450px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10002 !important;
        border-radius: 20px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-results-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 480px) {
    .travellers-directory-modal__body {
        min-height: calc(100vh - 120px);
    }

    .travellers-directory-deals-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(94%, 420px) !important;
        max-width: 420px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10001 !important;
        border-radius: 18px !important;
        padding: 8px 12px 12px 12px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-deals-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .travellers-directory-deals-panel.is-offset {
        right: auto !important;
    }

    .travellers-directory-results-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(94%, 420px) !important;
        max-width: 420px !important;
        max-height: 90vh !important;
        margin: 0 !important;
        z-index: 10002 !important;
        border-radius: 18px !important;
        padding: 8px 12px 12px 12px !important;
        box-shadow: 0 28px 64px rgba(5, 41, 51, 0.4) !important;
    }

    .travellers-directory-results-panel.is-visible {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}
@media (max-width: 480px) {
	.translator-modal-content {
		width: 100% !important;
		max-width: 100vw !important;
		max-height: 100dvh !important;
		margin: 0 !important;
		border-radius: 0 !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
	}
	.translator-body {
		padding: 8px 10px !important;
		max-height: calc(100dvh - 42px) !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		box-sizing: border-box !important;
		width: 100% !important;
	}
	.language-selectors-compact {
		padding: 6px 8px !important;
		margin-bottom: 8px !important;
		gap: 5px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		overflow-x: hidden !important;
	}
	.lang-dropdown-compact {
		padding: 5px 7px !important;
		font-size: 11px !important;
		box-sizing: border-box !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	.swap-button-compact {
		width: 30px !important;
		height: 30px !important;
		min-width: 30px !important;
		min-height: 30px !important;
		max-width: 30px !important;
		max-height: 30px !important;
		font-size: 12px !important;
		flex-shrink: 0 !important;
	}
	.translation-textarea-compact {
		min-height: 100px !important;
		padding: 8px 10px !important;
		font-size: 13px !important;
		margin-bottom: 8px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	.smart-actions {
		gap: 8px !important;
		margin-bottom: 10px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		overflow-x: hidden !important;
	}
	.translate-button-compact,
	.quick-translate-btn {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		min-height: 34px !important;
		max-width: 34px !important;
		max-height: 34px !important;
		font-size: 13px !important;
		flex-shrink: 0 !important;
	}
}
/* Compact Language Selectors */
.language-selectors-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(42, 140, 153, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(26, 128, 140, 0.2);
}

.lang-selector-compact {
    flex: 1;
}

.lang-dropdown-compact {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(26, 128, 140, 0.3);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-dropdown-compact:focus {
    outline: none;
    border-color: #1A808C;
    box-shadow: 0 0 0 3px rgba(26, 128, 140, 0.1);
}
.swap-button-compact {
    background: linear-gradient(135deg, #1A808C, #2A8C99) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 128, 140, 0.3);
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.swap-button-compact:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 4px 12px rgba(26, 128, 140, 0.4);
}

/* Compact Translation Boxes */
.translation-boxes-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.input-section-compact,
.output-section-compact {
    display: flex;
    flex-direction: column;
}

.text-area-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}

.input-actions,
.output-actions {
    display: flex;
    gap: 6px;
}

.voice-btn-compact,
.camera-btn-compact,
.clear-btn-compact,
.speaker-btn-compact,
.copy-btn-compact {
    background: rgba(26, 128, 140, 0.1);
    border: 1px solid rgba(26, 128, 140, 0.3);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1A808C;
}

.voice-btn-compact:hover,
.camera-btn-compact:hover,
.clear-btn-compact:hover,
.speaker-btn-compact:hover,
.copy-btn-compact:hover {
    background: #1A808C;
    color: white;
    transform: scale(1.05);
}

.voice-btn-compact.listening {
    background: #e74c3c;
    color: white;
    animation: pulse 1.5s infinite;
}

/* Different colors for different narration buttons */
#voiceOutputBtn {
    background: rgba(26, 128, 140, 0.1);
    border: 1px solid rgba(26, 128, 140, 0.3);
}

#voiceOutputBtn:hover {
    background: #1A808C;
    color: white;
}

#voiceSourceBtn {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}

#voiceSourceBtn:hover {
    background: #3498db;
    color: white;
}

#voiceAutoBtn {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

#voiceAutoBtn:hover {
    background: #e74c3c;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.translation-textarea-compact {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid rgba(26, 128, 140, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

.translation-textarea-compact:focus {
    outline: none;
    border-color: #1A808C;
    box-shadow: 0 0 0 3px rgba(26, 128, 140, 0.1);
}

.output-text {
    background: #f8f9fa !important;
    border: 2px solid rgba(26, 128, 140, 0.2) !important;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.char-counter-compact {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Smart Actions */
.smart-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
}

.translate-button-compact {
    background: linear-gradient(135deg, #1A808C, #2A8C99) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    font-size: 18px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(26, 128, 140, 0.3);
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.translate-button-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 128, 140, 0.4);
}

.quick-translate-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.quick-translate-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Day Narration Button */
.day-narration-btn {
    background: linear-gradient(135deg, #1A808C, #2A8C99) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 128, 140, 0.3);
    margin-left: 8px;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.day-narration-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(26, 128, 140, 0.4);
}

.day-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Voice Status */
.voice-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    border-radius: 8px;
    color: #1976d2;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

.voice-status i {
    color: #e74c3c;
}

.language-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-bottom: 30px;
    align-items: end;
}

/* Stack on mobile */
@media (max-width: 768px) {
    .language-selectors {
        grid-template-columns: 1fr;
        gap: 15px;
        align-items: stretch;
    }
    
    .swap-button {
        margin: 10px auto !important;
        order: 2;
    }
    
    .lang-selector:first-child {
        order: 1;
    }
    
    .lang-selector:last-child {
        order: 3;
    }
}
.lang-selector {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 20px;
    border-radius: 16px;
    border: 2px solid rgba(26, 128, 140, 0.1);
    transition: all 0.3s ease;
}

.lang-selector:hover {
    border-color: rgba(26, 128, 140, 0.3);
    box-shadow: 0 4px 15px rgba(26, 128, 140, 0.1);
}

.lang-selector label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1A808C;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-dropdown {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(26, 128, 140, 0.2);
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-dropdown:focus {
    outline: none;
    border-color: #1A808C;
    box-shadow: 0 0 0 4px rgba(26, 128, 140, 0.1);
}

.swap-button {
    background: linear-gradient(135deg, #1A808C, #2A8C99) !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(26, 128, 140, 0.3);
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.swap-button:hover {
    transform: rotate(180deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.5);
}

.swap-button i {
    color: white !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.translation-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.text-area-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.text-area-label label {
    font-weight: 700;
    color: #1A808C;
    font-size: 1rem;
}

.char-counter {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
}

.translation-textarea {
    width: 100%;
    min-height: 160px;
    padding: 18px;
    border: 2px solid rgba(26, 128, 140, 0.2);
    border-radius: 16px;
    font-size: 1.05rem;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

.translation-textarea:focus {
    outline: none;
    border-color: #1A808C;
    box-shadow: 0 0 0 4px rgba(26, 128, 140, 0.1);
}

.translation-textarea:read-only {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.translate-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1A808C 0%, #2A8C99 50%, #4AB3C2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px rgba(26, 128, 140, 0.4);
}

.translate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(26, 128, 140, 0.5);
}

.translate-button:active {
    transform: translateY(-1px);
}

.translation-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.action-button {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid rgba(26, 128, 140, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1A808C;
    font-size: 0.95rem;
    font-weight: 600;
}

.action-button:hover {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

/* ===== LOADING & ANIMATIONS ===== */
.loading-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* ===== VOICE WAVE ANIMATION ===== */
.voice-wave-container {
    display: inline-flex;
    gap: 4px;
    margin-right: 10px;
}
.voice-wave {
    width: 4px;
    height: 20px;
    background: #0891B2;
    border-radius: 10px;
    animation: voiceWave 1s ease-in-out infinite;
}

.voice-wave:nth-child(2) {
    animation-delay: 0.2s;
}
.voice-wave:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes voiceWave {
    0%, 100% {
        height: 10px;
        opacity: 0.4;
    }
    50% {
        height: 25px;
        opacity: 1;
    }
}
.listening {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    animation: pulseRed 1.5s ease-in-out infinite;
}

@keyframes pulseRed {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    /* Emergency Modal - Tablet */
    .emergency-modal-content {
        width: 80% !important;
        max-width: 700px !important;
        max-height: 85vh !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 auto !important;
    }
    
    .emergency-body {
        padding: 20px 18px;
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }
    
    .emergency-header h2 {
        font-size: 1.4rem !important;
    }
    
    .emergency-quick-actions {
        gap: 12px;
        padding: 12px;
    }
    
    .emergency-action-btn {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
    
    .emergency-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        padding: 15px;
    }
    
    .emergency-card i {
        font-size: 2rem;
    }
    
    .emergency-number {
        font-size: 1.2rem;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }

    .widget-panel {
        width: 380px;
        right: -420px;
    }
    
    .directory-panel {
        width: 500px;
        max-width: 90%;
        left: -550px;
    }
    
    .widget-item {
        padding: 16px;
    }
    
    .widget-icon {
        width: 50px;
        height: 50px;
    }
    
    .widget-icon i {
        font-size: 22px;
    }
}
@media (max-width: 768px) {
    /* Emergency Modal - Mobile */
    .emergency-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85.5vh !important;
        max-height: 85.5dvh !important; /* Dynamic viewport height for mobile */
        display: flex !important;
        flex-direction: column !important;
    }
    
    .emergency-header {
        padding: 15px 18px !important;
        flex-shrink: 0 !important;
    }
    
    .emergency-header h2 {
        font-size: 1.2rem !important;
    }
    
    .emergency-body {
        padding: 16px 14px;
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }
    
    .emergency-quick-actions {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .emergency-action-btn {
        font-size: 0.9rem;
        padding: 12px 14px;
    }
    
    .emergency-category {
        margin-bottom: 18px;
    }
    
    .category-header {
        padding: 12px 15px;
    }
    
    .category-header h3 {
        font-size: 1rem;
    }
    
    .category-header i {
        font-size: 1.2rem;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .emergency-card-content {
        padding: 15px;
    }
    
    .emergency-card i {
        font-size: 1.8rem;
    }
    
    .emergency-info strong {
        font-size: 0.9rem;
    }
    
    .emergency-number {
        font-size: 1.1rem;
    }
    
    .emergency-list-item {
        padding: 14px 15px;
        gap: 12px;
    }
    
    .emergency-list-item i {
        font-size: 1.5rem;
    }
    
    .list-item-info strong {
        font-size: 0.9rem;
    }
    
    .list-item-info .location {
        font-size: 0.8rem;
    }
    
    .list-item-info .emergency-number {
        font-size: 1rem;
    }

    .widget-panel {
        width: 90%;
        max-width: 350px;
        right: -100%;
    }
    
    .widget-panel.open {
        right: 0 !important;
    }
    
    .directory-panel {
        width: 95%;
        max-width: 500px;
        left: -100%;
    }
    
    /* Map controls responsive */
    #mapSearchInput {
        width: 150px !important;
        font-size: 12px !important;
    }
    
    .map-controls button {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    #directoryMapContainer {
        height: 600px !important;
    }
    
    .directory-panel.open {
        left: 0 !important;
    }
    
    .edge-button {
        width: 28px !important;
        height: 200px !important;
    }
    
    .edge-button:hover {
        width: 32px !important;
    }
    
    .directory-edge-btn {
        width: 32px !important;
        height: 180px !important;
    }
    
    .directory-edge-btn:hover {
        width: 36px !important;
    }
    
    .edge-btn-icon {
        font-size: 20px !important;
    }
    
    .edge-btn-label {
        font-size: 10px !important;
        letter-spacing: 0.8px !important;
    }
    
    .directory-edge-btn .edge-btn-label {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 12px !important;
        letter-spacing: 1px !important;
    }
    
    .widget-item {
        padding: 14px;
    }
    
    .widget-icon {
        width: 45px;
        height: 45px;
    }
    
    .widget-title {
        font-size: 0.85rem;
    }
    
    .widget-desc {
        font-size: 0.75rem;
    }
    
    .translation-boxes {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-content {
        max-height: 95vh;
        max-height: 95dvh;
        width: 80%;
        max-width: 700px;
        margin: auto; /* Center horizontally and vertically */
    }
    
    .translator-modal-content {
        width: 80%;
        max-width: 650px;
        margin: auto; /* Center horizontally and vertically */
    }
    
    .translator-body {
        max-height: calc(95vh - 90px);
        padding: 20px 18px;
    }
    
    /* Mobile Translator Compact */
    .translation-boxes-compact {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .language-selectors-compact {
        flex-direction: column;
        gap: 10px;
    }
    
    .swap-button-compact {
        align-self: center;
        transform: rotate(90deg);
    }
    
    .smart-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .translate-button-compact {
        width: 48px;
        height: 48px;
    }
    
    #gpsMapContainer {
        height: 400px;
    }
    
    .map-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .map-control-btn {
        width: 100%;
    }
    
    .translation-textarea {
        min-height: 120px;
        padding: 14px;
    }
    
    .translate-button,
    .action-button {
        font-size: 0.95rem;
        padding: 12px;
    }
    
    .lang-selector {
        padding: 16px;
    }
    
    .lang-dropdown {
        padding: 12px;
        font-size: 0.95rem;
    }
}
@media (max-width: 480px) {
    .widget-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
        border-left: none;
    }
    
    .widget-panel.open {
        right: 0 !important;
    }
    
    .directory-panel {
        width: 100%;
        max-width: 100%;
        left: -100%;
        border-right: none;
    }
    
    .directory-panel.open {
        left: 0 !important;
    }
    
    .edge-button {
        width: 26px !important;
        height: 180px !important;
    }
    
    .edge-button:hover {
        width: 30px !important;
    }
    
    .directory-edge-btn {
        width: 30px !important;
        height: 160px !important;
    }
    
    .directory-edge-btn:hover {
        width: 34px !important;
    }
    
    .edge-btn-icon {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }
    
    .edge-btn-label {
        font-size: 9px !important;
        letter-spacing: 0.6px !important;
    }
    
    .directory-edge-btn .edge-btn-label {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 10px !important;
        letter-spacing: 0.8px !important;
    }
    
    .widget-item {
        padding: 12px;
        gap: 12px;
    }
    
    .widget-icon {
        width: 40px;
        height: 40px;
    }
    
    .widget-icon i {
        font-size: 18px;
    }
    
    .widget-title {
        font-size: 0.8rem;
    }
    
    .widget-desc {
        font-size: 0.7rem;
    }
    .district-item {
        padding: 14px;
    }
    
    .district-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .district-name {
        font-size: 1.5rem;
    }
    
    .modal {
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        margin: auto; /* Center the modal content */
    }
    
    .translator-modal-content {
        width: 100%;
        max-width: 100%;
    }
    
    .translator-body {
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        padding: 16px 14px;
    }
    
    .modal-content > div:not(.modal-header) {
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        padding: 18px 15px;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
        gap: 8px;
    }
    
    .modal-header h2 i {
        font-size: 1rem;
    }
    
    .close {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
    
    .language-selectors {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .swap-button {
        margin: 8px auto !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    
    .swap-button i {
        font-size: 16px !important;
    }
    
    #gpsMapContainer {
        height: 300px;
    }
    
    .map-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .map-control-btn {
        width: 100%;
        min-width: auto;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .translation-boxes {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .translation-textarea {
        min-height: 100px;
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .translate-button {
        font-size: 0.95rem;
        padding: 14px;
    }
    
    .translation-actions {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .action-button {
        font-size: 0.9rem;
        padding: 12px 10px;
        gap: 8px;
        flex: none !important;
        width: 100%;
    }
    
    .translate-button {
        width: 100%;
    }
    
    .lang-selector {
        padding: 14px;
    }
    
    .lang-selector label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .lang-dropdown {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .text-area-label label {
        font-size: 0.9rem;
    }
    
    .char-counter {
        font-size: 0.75rem;
    }
    
    /* Make phrase buttons smaller on mobile */
    .phrase-btn {
        font-size: 0.75rem !important;
        padding: 8px !important;
    }
}

/* ===== GUIDE GEEK STYLES (AI LOCAL GUIDE!) ===== */

/* Guide Geek Modal Content */
.guide-geek-modal-content {
    max-width: 900px;
    width: 92%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.guide-geek-header {
    background: linear-gradient(135deg, #1A808C 0%, #2A8C99 50%, #4AB3C2 100%);
    padding: 20px 25px;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white !important;
    font-size: 14px !important;
    position: relative;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* Language Selector */
.language-selector {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Lato', sans-serif;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.language-selector option {
    background: #1A808C;
    color: white;
    padding: 8px;
}

/* Narration Stop Button */
.narration-btn {
    background: rgba(234, 40, 57, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    animation: pulse-red 1.5s ease-in-out infinite;
}

.narration-btn:hover {
    background: rgba(234, 40, 57, 1) !important;
    transform: scale(1.15) !important;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(234, 40, 57, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(234, 40, 57, 0);
    }
}

.favorites-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EA2839;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.guide-geek-header h2 {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.guide-geek-header h2 i {
    font-size: 1.6rem;
    animation: robotPulse 2s ease-in-out infinite;
}

@keyframes robotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.guide-geek-close {
    background: rgba(25, 127, 140, 0.12);
    color: #197F8C;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-size: 28px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.guide-geek-close:hover,
.guide-geek-close:focus-visible {
    background: rgba(25, 127, 140, 0.24);
    transform: rotate(90deg);
}
/* Guide Geek Body */
.guide-geek-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #f8f9fa;
    overflow: hidden;
}
/* Messages Container */
.guide-geek-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
/* Individual Message */
.geek-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: messageSlide 0.3s ease-out;
}
@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.geek-message.geek-user {
    flex-direction: row-reverse;
}
/* Speaking Animation */
.geek-bot.speaking .geek-bubble {
    animation: speaking-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(26, 128, 140, 0.4);
}
@keyframes speaking-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(26, 128, 140, 0.15);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(26, 128, 140, 0.3);
    }
}

/* Avatar */
.geek-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(26, 128, 140, 0.3);
}

.geek-user-avatar {
    background: linear-gradient(135deg, #4285F4, #34A853);
}

/* Message Bubble */
.geek-bubble {
    background: white;
    padding: 14px 18px;
    border-radius: 18px 18px 18px 4px;
    max-width: 70%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #333;
    line-height: 1.6;
    font-size: 0.95rem;
}
.geek-user .geek-bubble {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.geek-bubble strong {
    color: #1A808C;
    font-size: 1.05rem;
}

.geek-user .geek-bubble strong {
    color: white;
}

.geek-bubble ul {
    margin: 8px 0;
    padding-left: 20px;
}

.geek-bubble li {
    margin: 4px 0;
}

/* Typing Indicator */
.guide-geek-typing {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0 20px;
    margin-bottom: 10px;
}
.typing-indicator {
    background: white;
    padding: 14px 20px;
    border-radius: 18px;
    display: flex;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1A808C;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Input Area */
.guide-geek-input-area {
    border-top: 2px solid #e0e0e0;
    background: white;
    padding: 12px 16px;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Quick Questions */
.quick-questions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.quick-btn {
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    border: 2px solid rgba(26, 128, 140, 0.3);
    color: #1A808C;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-btn:hover {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 128, 140, 0.3);
}

.quick-btn i {
    font-size: 0.9rem;
}

/* Message Actions & Follow-ups */
.geek-bubble-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 70%;
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.action-btn {
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    border: 1.5px solid rgba(26, 128, 140, 0.3);
    color: #1A808C;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 128, 140, 0.3);
}

.action-btn i {
    font-size: 0.75rem;
}

.follow-up-suggestions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.follow-up-btn {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
    border: 1.5px solid rgba(66, 133, 244, 0.3);
    color: #4285F4;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.follow-up-btn:hover {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.follow-up-btn:before {
    content: "💭 ";
    margin-right: 4px;
}

/* Input Wrapper */
.input-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

.voice-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4285F4, #34A853) !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.voice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.voice-btn.listening {
    background: linear-gradient(135deg, #EA2839, #C62828);
    animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#guideGeekInput {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 0.85rem !important;
    font-family: inherit;
    resize: none;
    min-height: 36px !important;
    max-height: 80px !important;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    line-height: 1.4 !important;
}

/* Button row styling - ensure buttons are in a row below input */
.input-wrapper > #guideGeekInput {
    order: 1 !important;
    width: 100% !important;
}

.input-wrapper > .button-row {
    order: 2 !important;
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 4px !important;
}
/* Compact guide geek input area on mobile */
@media (max-width: 768px) {
	.guide-geek-input-area {
		padding: 10px 12px !important;
		gap: 8px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		overflow-x: hidden !important;
	}
	#guideGeekInput {
		padding: 6px 10px !important;
		font-size: 0.8rem !important;
		min-height: 32px !important;
		max-height: 70px !important;
	}
	.input-wrapper > .button-row {
		gap: 6px !important;
		margin-top: 6px !important;
	}
	.voice-btn,
	.send-btn {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
		max-width: 40px !important;
		max-height: 40px !important;
		font-size: 15px !important;
	}
}

@media (max-width: 480px) {
	.guide-geek-input-area {
		padding: 8px 10px !important;
		gap: 6px !important;
	}
	#guideGeekInput {
		padding: 6px 10px !important;
		font-size: 0.75rem !important;
		min-height: 30px !important;
		max-height: 60px !important;
	}
	.input-wrapper > .button-row {
		gap: 6px !important;
		margin-top: 4px !important;
	}
	.voice-btn,
	.send-btn {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		max-width: 36px !important;
		max-height: 36px !important;
		font-size: 13px !important;
	}
}

#guideGeekInput:focus {
    border-color: #1A808C;
    box-shadow: 0 0 0 3px rgba(26, 128, 140, 0.1);
}

.send-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1A808C, #2A8C99) !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 128, 140, 0.3);
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(26, 128, 140, 0.4);
}

.send-btn:active {
    transform: scale(0.95);
}

/* Favorites Modal */
.favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.favorites-modal > div,
.favorites-modal h3 {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.favorites-modal h3 {
    margin: 0 0 20px 0;
    color: #1A808C;
    font-size: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(26, 128, 140, 0.2);
}

.favorites-modal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.favorites-modal li {
    padding: 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.05), rgba(74, 179, 194, 0.05));
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.favorites-modal li:hover {
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    transform: translateX(4px);
}

.favorites-modal li button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.favorites-modal li button:hover {
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .guide-geek-modal-content {
        width: 90%;
        max-width: 600px;
        max-height: 90vh;
        margin: 0 auto;
    }
    
    .guide-geek-header h2 {
        font-size: 1.2rem;
    }
    
    .guide-geek-messages {
        padding: 16px 12px;
    }
    
    .geek-bubble {
        max-width: 80%;
        font-size: 0.9rem;
    }
    
    .quick-questions {
        gap: 8px;
    }
    
    .quick-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .guide-geek-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }
    
    .guide-geek-header {
        padding: 16px 18px;
        border-radius: 0;
    }
    
    .guide-geek-header h2 {
        font-size: 1.1rem;
    }
    
    .geek-bubble {
        max-width: 85%;
        font-size: 0.85rem;
    }
    
    .geek-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }
    
    .quick-questions {
        flex-direction: column;
        gap: 6px;
    }
    
    .quick-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ===== ITINERARY PLANNER STYLES (AI-POWERED!) ===== */

.itinerary-modal-content {
    max-width: 1100px;
    width: 94%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.itinerary-header {
    background: #3296A4;
    padding: 20px 25px;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.itinerary-header h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.itinerary-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 28px;
    line-height: 1;
}

.itinerary-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.itinerary-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8f9fa;
    padding: 30px;
    -webkit-overflow-scrolling: touch;
}

/* Progress Bar */
.planner-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 128, 140, 0.4);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: linear-gradient(135deg, #34A853, #0F9D58);
    color: white;
}

.progress-step.completed .step-circle:after {
    content: "✓";
    font-size: 1.5rem;
}

.step-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}
.progress-step.active .step-label {
    color: #1A808C;
}

.progress-line {
    width: 80px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px;
    position: relative;
    top: -20px;
}

.progress-step.completed ~ .progress-line,
.progress-step.active ~ .progress-line {
    background: linear-gradient(to right, #34A853, #e0e0e0);
}

/* Step Content */
.planner-step {
    animation: stepSlide 0.4s ease-out;
}

@keyframes stepSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content h3 {
    color: #1A808C;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.step-desc {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* Step Hints */
.step-hint {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
    border-left: 4px solid #4285F4;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: hintSlide 0.5s ease-out;
}
@keyframes hintSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-hint i {
    color: #4285F4;
    font-size: 1.3rem;
    margin-top: 2px;
}

.step-hint span {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-hint strong {
    color: #4285F4;
}

/* Duration Grid */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.duration-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-card:hover {
    border-color: #2A8C99;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.2);
}
.duration-card.selected {
    border-color: #1A808C;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.3);
}

.duration-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.duration-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A808C;
    margin-bottom: 5px;
}

.duration-subtitle {
    font-size: 0.9rem;
    color: #999;
}
/* Custom Duration Input */
.custom-duration {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed rgba(26, 128, 140, 0.3);
    transition: all 0.3s ease;
}
.custom-duration.highlighted {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(52, 168, 83, 0.05));
    border: 3px solid rgba(66, 133, 244, 0.4);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.15);
}
.custom-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-header i {
    color: #4285F4;
    font-size: 1.3rem;
}

.custom-duration label {
    color: #1A808C;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.custom-hint {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 12px;
    margin-bottom: 0;
}

.custom-input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

#customDays {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

#customDays:focus {
    border-color: #1A808C;
    box-shadow: 0 0 0 3px rgba(26, 128, 140, 0.1);
    outline: none;
}

.custom-days-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.custom-days-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 128, 140, 0.3);
}
/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.interest-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interest-card:hover {
    border-color: #2A8C99;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.2);
}

.interest-card.selected {
    border-color: #1A808C;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.3);
    position: relative;
}

.interest-card.selected:after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #34A853;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.interest-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.interest-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A808C;
    margin-bottom: 5px;
}

.interest-desc {
    font-size: 0.85rem;
    color: #999;
}

/* Regions Grid */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.region-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-card:hover {
    border-color: #2A8C99;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.2);
}

.region-card.selected {
    border-color: #1A808C;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.3);
    position: relative;
}

.region-card.selected:after {
    content: "✓";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #34A853;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.region-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.region-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A808C;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.region-places {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.region-features {
    border-top: 2px dashed rgba(26, 128, 140, 0.2);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.region-features div {
    color: #999;
    font-size: 0.85rem;
}

.region-selection-note {
    background: linear-gradient(135deg, rgba(234, 40, 57, 0.1), rgba(26, 128, 140, 0.1));
    border-left: 4px solid #EA2839;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.region-selection-note i {
    color: #EA2839;
    font-size: 1.3rem;
}
.region-selection-note span {
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Pace Grid */
.pace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pace-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pace-card:hover {
    border-color: #2A8C99;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.2);
}

.pace-card.selected {
    border-color: #1A808C;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.3);
}

.pace-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 12px;
}

.pace-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A808C;
    text-align: center;
    margin-bottom: 8px;
}

.pace-desc {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

.pace-features {
    border-top: 2px dashed rgba(26, 128, 140, 0.2);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pace-features div {
    color: #999;
    font-size: 0.9rem;
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.nav-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prev-btn {
    background: #f0f0f0;
    color: #666;
}

.prev-btn:hover {
    background: #e0e0e0;
    transform: translateX(-3px);
}

.next-btn, .generate-btn {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 128, 140, 0.3);
}

.next-btn:hover, .generate-btn:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(26, 128, 140, 0.4);
}

.generate-btn {
    background: linear-gradient(135deg, #EA2839, #1A808C);
}

/* Generating Animation */
.generating-animation {
    text-align: center;
    padding: 60px 20px;
}

.spinner-large {
    width: 80px;
    height: 80px;
    border: 6px solid #f0f0f0;
    border-top: 6px solid #1A808C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.generating-animation h3 {
    color: #1A808C;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

#generatingStatus {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
    min-height: 30px;
}

.generating-progress {
    max-width: 400px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.generating-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #1A808C, #2A8C99, #4AB3C2);
    border-radius: 10px;
    transition: width 6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Itinerary Display */
.itinerary-header-info {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.itinerary-header-info h3 {
    color: #3296A4;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}
.itinerary-summary {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}

.summary-item i {
    color: #1A808C;
    font-size: 1.2rem;
}

/* Day Cards */
.itinerary-days-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.day-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.day-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.day-header {
    background: #3296A4;
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.day-number {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 1.1rem;
}

.day-info {
    flex: 1;
}

.day-theme {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.region-highlight {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.region-highlight i {
    font-size: 0.85rem;
}

.region-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.region-badge.region-north {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.9), rgba(52, 168, 83, 0.9));
}

.region-badge.region-south {
    background: linear-gradient(135deg, rgba(234, 40, 57, 0.9), rgba(198, 40, 40, 0.9));
}

.region-badge.region-east {
    background: linear-gradient(135deg, rgba(251, 188, 5, 0.9), rgba(249, 168, 37, 0.9));
}

.region-badge.region-west {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.9), rgba(123, 31, 162, 0.9));
}

.region-badge.region-central {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.9), rgba(81, 45, 168, 0.9));
}

.day-activities {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.activity-item {
    display: flex;
    gap: 20px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.03), rgba(74, 179, 194, 0.03));
    border-left: 4px solid #1A808C;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.08), rgba(74, 179, 194, 0.08));
    transform: translateX(5px);
}

.activity-item.beach {
    border-left-color: #4285F4;
}

.activity-item.nature {
    border-left-color: #34A853;
}

.activity-item.culture {
    border-left-color: #1A808C;
}

.activity-item.food {
    border-left-color: #EA2839;
}

.activity-time {
    font-size: 1rem;
    font-weight: 700;
    color: #1A808C;
    min-width: 80px;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.activity-region {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(26, 128, 140, 0.1);
    color: #1A808C;
    border: 1px solid rgba(26, 128, 140, 0.2);
}

.activity-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.activity-duration {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Itinerary Actions */
.itinerary-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn-large {
    flex: 1;
    min-width: 200px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(26, 128, 140, 0.3);
}

.action-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 128, 140, 0.4);
}

.action-btn-large.secondary {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #666;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn-large.secondary:hover {
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
}
/* Responsive */
@media (max-width: 768px) {
    .itinerary-modal-content {
        width: 90%;
        max-width: 650px;
        max-height: 95vh;
        margin: 0 auto;
    }
    
    .itinerary-header h2 {
        font-size: 1.2rem;
    }
    
    .itinerary-body {
        padding: 20px 15px;
    }
    
    .planner-progress {
        padding: 15px 10px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .progress-line {
        width: 40px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .duration-grid,
    .interests-grid,
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .pace-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .region-card {
        padding: 18px 14px;
    }
    
    .region-icon {
        font-size: 2.5rem;
    }
    
    .region-title {
        font-size: 1.1rem;
    }
    
    .region-places {
        font-size: 0.85rem;
    }
    
    .step-content h3 {
        font-size: 1.4rem;
    }
    
    .day-header {
        padding: 15px 18px;
    }
    
    .day-theme {
        font-size: 1.1rem;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .activity-time {
        min-width: auto;
    }
    
    .custom-input-wrapper {
        flex-direction: column;
    }
    
    .custom-days-btn {
        width: 100%;
    }
    
    .step-hint {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .step-hint i {
        font-size: 1.1rem;
    }
    
    .region-badge {
        position: static;
        margin-top: 10px;
        display: inline-block;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
@media (max-width: 900px) {
    .travellers-directory-deals-panel,
    .travellers-directory-results-panel {
        flex: 0 0 330px;
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 330px;
        max-height: calc(100vh - 200px);
        margin: 0;
        transform: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .travellers-directory-deals-panel.is-visible,
    .travellers-directory-results-panel.is-visible {
        transform: translateY(0);
    }

    .travellers-directory-deals-panel.is-offset {
        right: auto;
    }
}
.travellers-directory-results-panel {
    position: absolute;
    top: 32px;
    right: 32px;
    width: min(440px, calc(100% - 64px));
    max-height: calc(100% - 64px);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 26px;
    box-shadow: 0 28px 64px rgba(5, 41, 51, 0.3);
    padding: 12px 18px 18px 18px;
    z-index: 12;
    transform: translateX(40px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    box-sizing: border-box;
}

.travellers-directory-results-panel.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.travellers-directory-results-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 0;
    margin: 0;
    min-height: auto;
    height: auto;
}

.travellers-directory-results-panel__heading {
    flex: 1;
    min-width: 0;
}

.travellers-directory-results-panel__heading h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0b2a33;
    line-height: 1.2;
    padding: 0;
}

.travellers-directory-results-panel__eyebrow {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #197F8C;
    opacity: 0.75;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.travellers-directory-results-panel__close {
    color: white !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #197F8C !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.travellers-directory-results-panel__close:hover,
.travellers-directory-results-panel__close:focus-visible {
    background: #155a64 !important;
    transform: rotate(90deg) scale(1.1);
}


.travellers-directory-results-panel__body {
    flex: 1;
    margin-top: 12px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
}

.travellers-directory-results-panel__body::-webkit-scrollbar-thumb {
    background: rgba(25, 127, 140, 0.4);
    border-radius: 999px;
}
.travellers-directory-results-panel__empty {
    display: none;
    text-align: center;
    padding: 40px 18px;
    color: #1a4f5b;
    font-weight: 600;
    background: rgba(31, 229, 233, 0.08);
    border-radius: 18px;
}
.travellers-directory-results-panel__empty i {
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
    color: #197F8C;
}

.travellers-directory-results-panel__list {
    display: grid;
    gap: 18px;
}
@media (max-width: 1280px) {
    .travellers-directory-deals-panel {
        right: 32px;
        width: min(340px, calc(100% - 64px));
        transform: translateY(24px);
    }

    .travellers-directory-deals-panel.is-visible {
        transform: translateY(0);
    }

    .travellers-directory-deals-panel.is-offset {
        right: 32px;
    }

    .travellers-directory-results-panel {
        right: 32px;
        top: auto;
        bottom: 32px;
        width: min(440px, calc(100% - 64px));
        transform: translateY(40px);
    }

    .travellers-directory-results-panel.is-visible {
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .travellers-directory-deals-panel,
    .travellers-directory-results-panel {
        flex: 0 0 330px;
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 330px;
        max-height: calc(100vh - 200px);
        margin: 0;
        transform: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .travellers-directory-deals-panel.is-visible,
    .travellers-directory-results-panel.is-visible {
        transform: translateY(0);
    }

    .travellers-directory-deals-panel.is-offset {
        right: auto;
    }
}
@media (max-width: 480px) {
    .itinerary-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }
    
    .itinerary-header {
        padding: 16px 18px;
        border-radius: 0;
    }
    
    .itinerary-header h2 {
        font-size: 0.95rem;
        gap: 8px;
    }
    
    .itinerary-header h2 i {
        font-size: 1.1rem;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .header-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .itinerary-body {
        padding: 15px 12px;
    }
    
    .duration-grid,
    .interests-grid,
    .regions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .duration-card,
    .interest-card,
    .region-card {
        padding: 18px 12px;
    }
    
    .duration-icon,
    .interest-icon,
    .region-icon {
        font-size: 2.2rem;
    }
    
    .duration-title,
    .interest-title,
    .region-title {
        font-size: 1.1rem;
    }
    
    .region-places {
        font-size: 0.8rem;
    }
    
    .region-features div {
        font-size: 0.75rem;
    }
    
    .region-selection-note {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .pace-card {
        padding: 20px 15px;
    }
    
    .pace-icon {
        font-size: 2.5rem;
    }
    
    .pace-title {
        font-size: 1.2rem;
    }
    
    .pace-features div {
        font-size: 0.85rem;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
    }
    
    .step-desc {
        font-size: 0.95rem;
    }
    
    .step-hint {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .planner-progress {
        padding: 12px 8px;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .progress-line {
        width: 30px;
        margin: 0 5px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .generating-animation {
        padding: 40px 15px;
    }
    
    .spinner-large {
        width: 60px;
        height: 60px;
        border-width: 5px;
    }
    
    .generating-animation h3 {
        font-size: 1.3rem;
    }
    
    #generatingStatus {
        font-size: 0.95rem;
    }
    
    .itinerary-header-info {
        padding: 18px 15px;
    }
    
    .itinerary-header-info h3 {
        font-size: 1.4rem;
    }
    
    .itinerary-summary {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .summary-item {
        font-size: 0.9rem;
    }
    
    .day-card {
        border-radius: 16px;
    }
    
    .day-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .day-number {
        padding: 8px 14px;
        font-size: 1rem;
    }
    
    .day-theme {
        font-size: 1.1rem;
    }
    
    .region-highlight {
        font-size: 0.85rem;
    }
    
    .region-badge {
        position: static;
        margin-top: 8px;
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .day-activities {
        padding: 15px;
        gap: 12px;
    }
    
    .activity-item {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .activity-time {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .activity-title {
        font-size: 1.05rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .activity-desc {
        font-size: 0.9rem;
    }
    
    .activity-duration {
        font-size: 0.8rem;
    }
    
    .activity-region {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .itinerary-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .action-btn-large {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .custom-duration {
        padding: 15px;
    }
    
    .custom-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    #customDays {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .custom-days-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* ===== FLIGHT SCHEDULES STYLES (SMART TRACKER!) ===== */

.flight-modal-content {
    max-width: 1000px;
    width: 94%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flight-header {
    background: #3296A4;
    padding: 20px 25px;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flight-header h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flight-close {
    background: rgba(25, 127, 140, 0.12);
    color: #197F8C;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-size: 28px;
    line-height: 1;
}

.flight-close:hover,
.flight-close:focus-visible {
    background: rgba(25, 127, 140, 0.24);
    transform: rotate(90deg);
}

.flight-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8f9fa;
    padding: 25px;
    -webkit-overflow-scrolling: touch;
}

/* Widget Badge */
.widget-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EA2839;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(234, 40, 57, 0.4);
}

.widget-badge.pulse {
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Empty State */
.empty-schedule {
    text-align: center;
    padding: 60px 30px;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.empty-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-schedule h3 {
    color: #1A808C;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.empty-schedule p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 30px;
}
.add-first-btn {
    background: #3296A4 !important;
    color: white !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(50, 150, 164, 0.3);
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.add-first-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50, 150, 164, 0.4);
}

.add-first-btn i {
    flex-shrink: 0 !important;
}

/* Responsive styles for add-first-btn */
@media (max-width: 768px) {
    .empty-schedule {
        padding: 40px 20px !important;
    }
    
    .add-first-btn {
        padding: 14px 24px !important;
        font-size: 1rem !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .empty-schedule {
        padding: 30px 15px !important;
    }
    
    .add-first-btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .add-first-btn i {
        font-size: 0.9rem !important;
    }
}

/* Form */
.add-schedule-form h3 {
    color: #3296A4;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: white;
    padding: 8px;
    border-radius: 12px;
}
.form-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
}

.form-tab:hover {
    background: rgba(26, 128, 140, 0.05);
}

.form-tab.active {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    border-color: #1A808C;
}

.schedule-form {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #1A808C;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    border-color: #1A808C;
    box-shadow: 0 0 0 3px rgba(26, 128, 140, 0.1);
    outline: none;
}

.alert-settings {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(52, 168, 83, 0.05));
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid #4285F4;
}

.alert-settings h4 {
    color: #4285F4;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.form-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.save-btn {
    background: #3296A4;
    color: white;
    box-shadow: 0 4px 15px rgba(50, 150, 164, 0.3);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 150, 164, 0.4);
}

/* Schedule Timeline */
.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.schedule-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #3296A4;
}
.schedule-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}
.schedule-card.flight-card {
    border-left-color: #3296A4;
}

.schedule-card.hotel-card {
    border-left-color: #3296A4;
}

.schedule-card.past {
    opacity: 0.6;
    border-left-color: #ccc;
}
.card-header {
    background: rgba(50, 150, 164, 0.05);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.card-icon {
    width: 50px;
    height: 50px;
    background: #3296A4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.flight-card .card-icon {
    background: #3296A4;
}

.hotel-card .card-icon {
    background: #3296A4;
}

.card-title {
    flex: 1;
}

.flight-number,
.hotel-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}
.flight-type,
.hotel-location {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.delete-btn {
    width: 36px;
    height: 36px;
    background: rgba(234, 40, 57, 0.1);
    border: none;
    border-radius: 50%;
    color: #EA2839;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #EA2839;
    color: white;
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
}

.schedule-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.info-item i {
    color: #1A808C;
}
.hotel-dates {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}
.date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(26, 128, 140, 0.05);
    border-radius: 8px;
}

.date-label {
    font-weight: 700;
    color: #1A808C;
}
.date-value {
    color: #666;
}
.hotel-address {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotel-address i {
    color: #EA2839;
}

/* Countdown Timer */
.countdown {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #4285F4;
    margin-top: 12px;
}

.countdown-label {
    color: #4285F4;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.countdown-timer {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.time-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.time-unit strong {
    font-size: 1.5rem;
    color: #1A808C;
}
/* Status Badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.past-badge {
    background: rgba(153, 153, 153, 0.2);
    color: #999;
}

.staying-badge {
    background: rgba(50, 150, 164, 0.2);
    color: #3296A4;
}

/* Add to Calendar Button */
.add-to-calendar-btn {
    width: 100%;
    padding: 12px 20px;
    background: #3296A4;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    box-shadow: 0 3px 10px rgba(50, 150, 164, 0.3);
}

.add-to-calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(50, 150, 164, 0.4);
}

.add-to-calendar-btn:active {
    transform: translateY(0);
}

.add-to-calendar-btn i {
    font-size: 1.1rem;
}

/* Active Alerts */
.active-alerts {
    margin-bottom: 20px;
}

.alert-notification {
    background: white;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: alertSlide 0.4s ease-out;
}
@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-notification.critical {
    background: linear-gradient(135deg, #EA2839, #C62828);
    color: white;
    border-left: 5px solid #fff;
    animation: alertPulse 1s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(234, 40, 57, 0.4); }
    50% { box-shadow: 0 8px 30px rgba(234, 40, 57, 0.7); }
}

.alert-notification.warning {
    background: linear-gradient(135deg, #FFA726, #FB8C00);
    color: white;
    border-left: 5px solid #fff;
}

.alert-notification.info {
    background: linear-gradient(135deg, #4285F4, #1976D2);
    color: white;
    border-left: 5px solid #fff;
}

.alert-icon {
    font-size: 1.8rem;
}

.alert-message {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
}

.alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}
/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: -100px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 1rem;
    z-index: 10002;
    transition: all 0.4s ease;
}

.toast-notification.show {
    bottom: 30px;
}

.toast-notification.success {
    border-left: 5px solid #34A853;
    color: #0F9D58;
}

.toast-notification.info {
    border-left: 5px solid #4285F4;
    color: #1976D2;
}

.toast-notification.warning {
    border-left: 5px solid #FFA726;
    color: #F57C00;
}

/* Header Button Active State */
.header-btn.active {
    background: rgba(52, 168, 83, 0.3);
    border-color: rgba(52, 168, 83, 0.5);
}

/* View Selector */
.view-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: white;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.view-pill {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
}

.view-pill:hover {
    background: rgba(26, 128, 140, 0.05);
}

.view-pill.active {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 128, 140, 0.3);
}

/* Calendar View */
.calendar-view {
    animation: viewSlide 0.4s ease-out;
}

@keyframes viewSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-header {
    background: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-title {
    color: #1A808C;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    flex: 1;
}

.calendar-nav-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    border: 2px solid rgba(26, 128, 140, 0.3);
    border-radius: 50%;
    color: #1A808C;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.calendar-nav-btn:hover {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: white;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calendar-day-header {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.calendar-cell {
    min-height: 80px;
    padding: 8px;
    border: 1px solid #f0f0f0;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.calendar-cell.empty {
    background: #fafafa;
    cursor: default;
}

.calendar-cell:not(.empty):hover {
    background: rgba(26, 128, 140, 0.05);
    transform: scale(1.02);
    z-index: 10;
}

.calendar-cell.today {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
    border: 2px solid #4285F4;
}

.calendar-cell.has-events {
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.03), rgba(74, 179, 194, 0.03));
}

.calendar-cell.today.has-events {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(52, 168, 83, 0.15));
}

.cell-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.calendar-cell.today .cell-date {
    color: #4285F4;
}

.cell-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-dot {
    width: 100%;
    height: 6px;
    border-radius: 3px;
}

.flight-event {
    background: linear-gradient(to right, #4285F4, #34A853);
}

.hotel-checkin-event {
    background: linear-gradient(to right, #EA2839, #C62828);
    position: relative;
}
.hotel-checkin-event:before {
    content: "IN";
    position: absolute;
    right: 2px;
    top: -1px;
    font-size: 7px;
    color: white;
    font-weight: 700;
}

.hotel-checkout-event {
    background: linear-gradient(to right, #FFA726, #FB8C00);
    position: relative;
}

.hotel-checkout-event:before {
    content: "OUT";
    position: absolute;
    right: 1px;
    top: -1px;
    font-size: 6px;
    color: white;
    font-weight: 700;
}

.hotel-stay-event {
    background: repeating-linear-gradient(
        45deg,
        rgba(234, 40, 57, 0.2),
        rgba(234, 40, 57, 0.2) 3px,
        rgba(234, 40, 57, 0.1) 3px,
        rgba(234, 40, 57, 0.1) 6px
    );
    height: 4px;
    border-radius: 2px;
}

.event-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
}

/* Calendar Legend */
.calendar-legend {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.legend-dot {
    width: 24px;
    height: 6px;
    border-radius: 3px;
}

.flight-dot {
    background: linear-gradient(to right, #4285F4, #34A853);
}

.hotel-dot {
    background: repeating-linear-gradient(
        45deg,
        rgba(234, 40, 57, 0.4),
        rgba(234, 40, 57, 0.4) 3px,
        rgba(234, 40, 57, 0.2) 3px,
        rgba(234, 40, 57, 0.2) 6px
    );
}

/* Event Popup */
.event-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-popup.show {
    opacity: 1;
}

.event-popup-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlide 0.4s ease-out;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.event-popup-content h4 {
    color: #1A808C;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(26, 128, 140, 0.2);
}

.date-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.event-detail {
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.flight-detail {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
    border-left: 4px solid #4285F4;
}

.flight-detail i {
    color: #4285F4;
    font-size: 1.3rem;
}

.hotel-detail {
    background: linear-gradient(135deg, rgba(234, 40, 57, 0.1), rgba(198, 40, 40, 0.1));
    border-left: 4px solid #EA2839;
}
.hotel-detail i {
    color: #EA2839;
    font-size: 1.3rem;
}

.event-detail strong {
    color: #333;
}

.popup-close {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 128, 140, 0.3);
}

/* Custom Duration Highlighted */
.custom-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-header i {
    color: #4285F4;
    font-size: 1.4rem;
}

.custom-header label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4285F4;
}
/* Responsive */
@media (max-width: 768px) {
    .flight-modal-content {
        width: 90%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .flight-header h2 {
        font-size: 1.2rem;
    }
    
    .flight-body {
        padding: 20px 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .countdown-timer {
        font-size: 1.1rem;
    }
    
    .view-pill {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .calendar-title {
        font-size: 1.3rem;
    }
    
    .calendar-cell {
        min-height: 70px;
        padding: 6px;
    }
    
    .cell-date {
        font-size: 0.95rem;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .travellers-directory-deals-panel,
    .travellers-directory-results-panel {
        width: calc(100% - 24px);
        margin: 18px 12px 0 12px;
    }
}
@media (max-width: 480px) {
    .travellers-directory-deals-panel,
    .travellers-directory-results-panel {
        width: calc(100% - 16px);
        margin: 16px 8px 0 8px;
        padding: 8px 12px 12px 12px;
    }
}
@media (max-width: 480px) {
    .flight-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .flight-header {
        padding: 16px 18px;
        border-radius: 0;
    }
    
    .flight-header h2 {
        font-size: 1rem;
    }
    
    .flight-body {
        padding: 15px 12px;
    }
    
    .empty-icon {
        font-size: 4rem;
    }
    
    .empty-schedule h3 {
        font-size: 1.4rem;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .form-tab {
        padding: 12px 16px;
    }
    
    .schedule-form {
        padding: 18px 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-btn {
        width: 100%;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .flight-number,
    .hotel-name {
        font-size: 1.05rem;
    }
    
    .countdown-timer {
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .time-unit strong {
        font-size: 1.2rem;
    }
    
    .toast-notification {
        right: 15px;
        left: 15px;
        bottom: -100px;
    }
    .toast-notification.show {
        bottom: 15px;
    }
    
    .view-selector {
        padding: 5px;
        gap: 6px;
    }
    
    .view-pill {
        padding: 10px 12px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .calendar-header {
        padding: 15px;
    }
    
    .calendar-title {
        font-size: 1.1rem;
    }
    
    .calendar-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .calendar-day-header {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .calendar-cell {
        min-height: 60px;
        padding: 5px;
    }
    
    .cell-date {
        font-size: 0.85rem;
    }
    
    .event-dot {
        height: 5px;
    }
    
    .calendar-legend {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .event-popup-content {
        padding: 20px 15px;
        width: 95%;
    }
    
    .event-popup-content h4 {
        font-size: 1.2rem;
    }
    
    .event-detail {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .add-to-calendar-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .add-to-calendar-btn i {
        font-size: 1rem;
    }
}
/* ===== TRAVELLER'S DIRECTORY - ADDITIONAL STYLES ===== */
/* District Badge */
.district-badge {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.1), rgba(74, 179, 194, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A808C;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.district-item:hover .district-badge {
    background: linear-gradient(135deg, #1A808C, #2A8C99);
    color: white;
    transform: translateX(4px);
}
/* District Item Hover Effect */
.district-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 128, 140, 0.05), rgba(74, 179, 194, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.district-item:hover::before {
    opacity: 1;
}

.district-item:hover .district-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== DISTRICT DEALS MODAL ===== */
.district-deals-fullscreen-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(9, 28, 30, 0.88);
    backdrop-filter: blur(18px);
    color: #0b1f24;
    font-family: 'Montserrat', sans-serif;
}

.district-deals-fullscreen-modal.open {
    display: flex;
    flex-direction: column;
}

.district-deals-fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    background: linear-gradient(135deg, rgba(25, 127, 140, 0.96), rgba(50, 150, 164, 0.92));
    box-shadow: 0 4px 22px rgba(9, 28, 30, 0.3);
    z-index: 2;
}

.district-deals-fullscreen-header .district-deals-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
}

.district-deals-fullscreen-header .district-deals-title i {
    font-size: 26px;
    color: rgba(255,255,255,0.85);
}

.district-deals-fullscreen-header .district-deals-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.district-deals-fullscreen-header .district-deals-close {
    background: rgba(25, 127, 140, 0.12);
    color: #197F8C;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.district-deals-fullscreen-header .district-deals-close:hover,
.district-deals-fullscreen-header .district-deals-close:focus-visible {
    background: rgba(25, 127, 140, 0.24);
    transform: scale(1.05);
}

.district-deals-fullscreen-header .district-deals-actions button {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255,255,255,0.18);
    color: #fff;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.district-deals-fullscreen-header .district-deals-actions button:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-1px);
}

.district-deals-fullscreen-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(320px, 40%) 1fr;
    gap: 0;
    background: linear-gradient(135deg, rgba(223, 238, 241, 0.9), rgba(232, 244, 246, 0.95));
    padding: 24px 24px 36px;
}

/* District deals map */
.district-deals-map-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(25, 127, 140, 0.12), rgba(25, 127, 140, 0.06));
    border: 2px solid rgba(22, 98, 108, 0.16);
    box-shadow: 0 16px 40px rgba(9, 28, 30, 0.18);
    min-height: 440px;
}

.district-deals-map-overlay {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    z-index: 2;
}

.district-deals-map-overlay .district-deals-sector-label {
    background: linear-gradient(135deg, rgba(25, 127, 140, 0.95), rgba(50, 150, 164, 0.9));
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(25, 127, 140, 0.25);
}

.district-deals-map-overlay .district-deals-focus {
    background: rgba(236, 249, 251, 0.82);
    color: #197F8C;
    border: 2px solid rgba(25, 127, 140, 0.2);
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.district-deals-map-overlay .district-deals-focus:hover {
    background: rgba(236, 249, 251, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(25, 127, 140, 0.18);
}

.district-deals-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.82);
}

.district-deals-map-hint {
    text-align: center;
    max-width: 280px;
    color: #1a4147;
    font-weight: 600;
    line-height: 1.6;
}

.district-deals-map-hint i {
    font-size: 28px;
    margin-bottom: 16px;
    color: #197F8C;
}

.district-deals-content {
    border-radius: 22px;
    background: #ffffff;
    padding: 30px 32px;
    box-shadow: 0 20px 55px rgba(9, 28, 30, 0.15);
    overflow-y: auto;
    max-height: calc(100vh - 132px);
}

.district-deals-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.district-deal-card {
    background: rgba(25, 127, 140, 0.05);
    border: 2px solid rgba(25, 127, 140, 0.18);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 12px 28px rgba(16, 59, 68, 0.08);
}

.district-deal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(25, 127, 140, 0.35);
    box-shadow: 0 16px 36px rgba(16, 59, 68, 0.15);
}

.district-deal-card h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f3d45;
}

.district-deal-card .deal-district {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.4px;
    color: #1a626d;
    text-transform: uppercase;
}

.district-deal-card .deal-business {
    margin: 0;
    font-weight: 600;
    color: #184952;
}

.district-deal-card .deal-description {
    margin: 0;
    color: #285862;
    line-height: 1.6;
    font-size: 14px;
}

.district-deal-card .deal-pricing {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.district-deal-card .deal-discount {
    background: #EA2839;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

.district-deal-card .deal-price {
    font-size: 16px;
    font-weight: 700;
    color: #197F8C;
}

.district-deal-card .deal-price-original {
    color: #9ba8ac;
    text-decoration: line-through;
    font-size: 12px;
    margin-left: 8px;
}

.district-deal-card .deal-button {
    margin-top: 16px;
    background: linear-gradient(135deg, #197F8C, #3296A4);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.district-deal-card .deal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(25, 127, 140, 0.3);
}

.district-deal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25, 127, 140, 0.08), rgba(50, 150, 164, 0.12));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.district-deal-card:hover::before {
    opacity: 1;
}

@media (max-width: 1024px) {
    .district-deals-fullscreen-body {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .district-deals-map-wrapper {
        min-height: 320px;
    }

    .district-deals-content {
        max-height: none;
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .district-deals-fullscreen-header {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 16px;
    }

    .district-deals-fullscreen-header .district-deals-actions {
        justify-content: space-between;
    }

    .district-deals-fullscreen-body {
        padding: 18px;
    }

    .district-deals-content {
        padding: 20px;
    }

    .district-deals-carousel {
        grid-template-columns: 1fr;
    }
}
.deal-card.island {
    --category-color: #00BCD4;
    --category-dark: #0097A7;
    --category-shadow: rgba(0, 188, 212, 0.3);
}

/* Traveller's Directory Modal Cards */
.district-deals-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.district-deals-fullscreen-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(9, 28, 30, 0.88);
    backdrop-filter: blur(18px);
    color: #0b1f24;
    font-family: 'Montserrat', sans-serif;
}

.district-deals-fullscreen-modal.open {
    display: flex;
    flex-direction: column;
}

.district-deals-fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    background: linear-gradient(135deg, rgba(25, 127, 140, 0.96), rgba(50, 150, 164, 0.92));
    box-shadow: 0 4px 22px rgba(9, 28, 30, 0.3);
    z-index: 2;
}

.district-deals-fullscreen-header .district-deals-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
}

.district-deals-fullscreen-header .district-deals-title i {
    font-size: 26px;
    color: rgba(255,255,255,0.85);
}

.district-deals-fullscreen-header .district-deals-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.district-deals-fullscreen-header .district-deals-close {
    background: rgba(25, 127, 140, 0.12);
    color: #197F8C;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.district-deals-fullscreen-header .district-deals-close:hover,
.district-deals-fullscreen-header .district-deals-close:focus-visible {
    background: rgba(25, 127, 140, 0.24);
    transform: scale(1.05);
}

.district-deals-fullscreen-header .district-deals-actions button {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255,255,255,0.18);
    color: #fff;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.district-deals-fullscreen-header .district-deals-actions button:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-1px);
}

.district-deals-fullscreen-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(320px, 40%) 1fr;
    gap: 0;
    background: linear-gradient(135deg, rgba(223, 238, 241, 0.9), rgba(232, 244, 246, 0.95));
    padding: 24px 24px 36px;
}

.district-deals-map-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(25, 127, 140, 0.12), rgba(25, 127, 140, 0.06));
    border: 2px solid rgba(22, 98, 108, 0.16);
    box-shadow: 0 16px 40px rgba(9, 28, 30, 0.18);
    min-height: 440px;
}

.district-deals-map-overlay {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    z-index: 2;
}

.district-deals-map-overlay .district-deals-sector-label {
    background: linear-gradient(135deg, rgba(25, 127, 140, 0.95), rgba(50, 150, 164, 0.9));
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(25, 127, 140, 0.25);
}
.district-deals-map-overlay .district-deals-focus {
    background: rgba(236, 249, 251, 0.82);
    color: #197F8C;
    border: 2px solid rgba(25, 127, 140, 0.2);
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.district-deals-map-overlay .district-deals-focus:hover {
    background: rgba(236, 249, 251, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(25, 127, 140, 0.18);
}

.district-deals-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
        justify-content: center;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.82);
}

.district-deals-map-hint {
    text-align: center;
    max-width: 280px;
    color: #1a4147;
    font-weight: 600;
    line-height: 1.6;
}

.district-deals-map-hint i {
    font-size: 28px;
    margin-bottom: 16px;
    color: #197F8C;
}

.district-deals-content {
    border-radius: 22px;
    background: #ffffff;
    padding: 30px 32px;
    box-shadow: 0 20px 55px rgba(9, 28, 30, 0.15);
    overflow-y: auto;
    max-height: calc(100vh - 132px);
}

.district-deals-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.district-deal-card {
    background: rgba(25, 127, 140, 0.05);
    border: 2px solid rgba(25, 127, 140, 0.18);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 12px 28px rgba(16, 59, 68, 0.08);
}

.district-deal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(25, 127, 140, 0.35);
    box-shadow: 0 16px 36px rgba(16, 59, 68, 0.15);
}

.district-deal-card h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f3d45;
}

.district-deal-card .deal-district {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.4px;
    color: #1a626d;
    text-transform: uppercase;
}

.district-deal-card .deal-business {
    margin: 0;
    font-weight: 600;
    color: #184952;
}

.district-deal-card .deal-description {
    margin: 0;
    color: #285862;
    line-height: 1.6;
    font-size: 14px;
}

.district-deal-card .deal-pricing {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}
.district-deal-card .deal-discount {
    background: #EA2839;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}
.district-deal-card .deal-price {
    font-size: 16px;
    font-weight: 700;
    color: #197F8C;
}
.district-deal-card .deal-price-original {
    font-size: 12px;
    margin-left: 8px;
    color: #9ba8ac;
    text-decoration: line-through;
}

.district-deal-card .deal-button {
    margin-top: 16px;
    background: linear-gradient(135deg, #197F8C, #3296A4);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.district-deal-card .deal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(25, 127, 140, 0.3);
}

.district-deal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25, 127, 140, 0.08), rgba(50, 150, 164, 0.12));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.district-deal-card:hover::before {
    opacity: 1;
}
/* ===== COMPREHENSIVE RESPONSIVE STYLES FOR ALL MODALS ===== */
/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    /* General Modal */
    .modal {
        padding: 20px;
    }
    
    .modal-content {
        width: 80%;
        max-width: 700px;
        max-height: 90vh;
        max-height: 90dvh;
        margin: auto; /* Center horizontally and vertically */
    }
    
    .modal-header {
        padding: 18px 22px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-content > div:not(.modal-header) {
        padding: 20px;
        max-height: calc(90vh - 110px);
    }
    
    /* Emergency Modal */
    .emergency-modal-content {
        width: 80%;
        max-width: 700px !important;
        max-height: 85vh !important;
    }
    
    .emergency-header {
        padding: 18px 22px !important;
    }
    
    .emergency-header h2 {
        font-size: 1.5rem !important;
    }
    
    /* Translator Modal */
    .translator-modal-content {
        width: 80%;
        max-width: 650px;
        max-height: 85vh;
    }
    
    .translator-body {
        padding: 20px;
        max-height: calc(85vh - 100px);
    }
    
    /* Guide Geek Modal */
    .guide-geek-modal-content {
        width: 80%;
        max-width: 700px;
        max-height: 88vh;
    }
    
    .guide-geek-header {
        padding: 18px 22px;
    }
    
    .guide-geek-header h2 {
        font-size: 1.5rem;
    }
    
    .guide-geek-body {
        padding: 20px;
        max-height: calc(88vh - 120px);
    }
    
    /* Itinerary Modal */
    .itinerary-modal-content {
        width: 80%;
        max-width: 750px;
        max-height: 90vh;
    }
    
    .itinerary-header {
        padding: 18px 22px;
    }
    
    .itinerary-header h2 {
        font-size: 1.5rem;
    }
    
    .itinerary-body {
        padding: 20px;
        max-height: calc(90vh - 120px);
    }
    
    .schedule-card {
        padding: 16px;
    }
    
    /* Flight Modal */
    .flight-modal-content {
        width: 80%;
        max-width: 700px;
        max-height: 90vh;
    }
    
    .flight-header {
        padding: 18px 22px;
    }
    
    .flight-header h2 {
        font-size: 1.5rem;
    }
    
    .flight-body {
        padding: 20px;
        max-height: calc(90vh - 120px);
    }
    
    .schedule-form {
        padding: 18px;
    }
    
    /* District Deals Modal */
    .district-deals-modal-content {
        width: 80%;
        max-width: 700px;
        max-height: 88vh;
    }
    
    .district-deals-header {
        padding: 18px 22px;
    }
    
    .district-deals-header h2 {
        font-size: 1.5rem;
    }
    
    .district-deals-body {
        padding: 22px;
        max-height: calc(88vh - 120px);
    }
    
    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .deal-card {
        padding: 18px;
    }
    
    /* GPS Modal */
    #gpsMapContainer {
        height: 420px !important;
        min-height: 420px;
    }
    
    .map-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Currency Modal */
    #currencyModal .language-selectors {
        grid-template-columns: 1fr auto 1fr !important;
        gap: 15px;
    }
    
    /* Weather Modal */
    #weatherContent {
        padding: 18px;
    }
    
    /* Hospitals Modal */
    #hospitalsList {
        padding: 18px;
    }
    
    /* eSIM Modal */
    #esimModal .modal-content > div {
        padding: 25px 22px;
    }
}
/* Tablet/Mobile - 768px and below */
@media (max-width: 768px) {
    /* General Modal */
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        width: 90%;
        max-width: 600px;
        max-height: 95vh;
        max-height: 95dvh;
        margin: auto; /* Center horizontally and vertically */
    }
    
    .modal-header {
        padding: 18px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-header h2 i {
        font-size: 1.3rem;
    }
    
    .modal-content > div:not(.modal-header) {
        padding: 20px;
        max-height: calc(95vh - 80px);
        max-height: calc(95dvh - 80px);
    }
    
    .close {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    /* Emergency Modal */
    .emergency-modal-content {
        width: 90%;
        max-width: 600px !important;
        max-height: 85vh !important;
        max-height: 85dvh !important;
        margin: auto !important; /* Center horizontally and vertically */
    }
    
    .emergency-header {
        padding: 18px 20px !important;
    }
    
    .emergency-header h2 {
        font-size: 1.4rem !important;
    }
    
    .emergency-modal-content .close,
    .emergency-header .close,
    span.emergency-close {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.3rem !important;
    }
    
    /* Translator Modal */
    .translator-modal-content {
        width: 90%;
        max-width: 580px;
        max-height: 90vh;
        max-height: 90dvh;
        margin: auto; /* Center horizontally and vertically */
    }
    
    .translator-body {
        padding: 18px;
        max-height: calc(90vh - 100px);
        max-height: calc(90dvh - 100px);
    }
    
    /* Guide Geek Modal */
    .guide-geek-modal-content {
        width: 90%;
        max-width: 600px;
        max-height: 90vh;
        max-height: 90dvh;
        margin: auto; /* Center horizontally and vertically */
    }
    
    .guide-geek-header {
        padding: 18px 20px;
    }
    
    .guide-geek-header h2 {
        font-size: 1.4rem;
    }
    
    .guide-geek-body {
        padding: 18px;
        max-height: calc(90vh - 110px);
        max-height: calc(90dvh - 110px);
    }
    
    /* Itinerary Modal */
    .itinerary-modal-content {
        width: 90%;
        max-width: 650px;
        max-height: 95vh;
        max-height: 95dvh;
        margin: auto; /* Center horizontally and vertically */
    }
    
    .itinerary-header {
        padding: 18px 20px;
    }
    
    .itinerary-header h2 {
        font-size: 1.4rem;
    }
    
    .itinerary-body {
        padding: 18px;
        max-height: calc(95vh - 110px);
        max-height: calc(95dvh - 110px);
    }
    
    .day-header {
        padding: 14px 18px;
        font-size: 1.1rem;
    }
    
    .schedule-card {
        padding: 15px;
    }
    
    /* Flight Modal */
    .flight-modal-content {
        width: 90%;
        max-width: 600px;
        max-height: 95vh;
        max-height: 95dvh;
        margin: auto; /* Center horizontally and vertically */
    }
    
    .flight-header {
        padding: 18px 20px;
    }
    
    .flight-header h2 {
        font-size: 1.4rem;
    }
    
    .flight-body {
        padding: 18px;
        max-height: calc(95vh - 110px);
        max-height: calc(95dvh - 110px);
    }
    
    .schedule-form {
        padding: 18px;
    }
    .form-tabs {
        gap: 8px;
    }
    
    .form-tab {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
    
    /* District Deals Modal */
    .district-deals-fullscreen-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 100000;
        background: rgba(9, 28, 30, 0.88);
        backdrop-filter: blur(18px);
        color: #0b1f24;
        font-family: 'Montserrat', sans-serif;
    }
    
    .district-deals-fullscreen-modal.open {
        display: flex;
        flex-direction: column;
    }
    
    .district-deals-fullscreen-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 26px;
        background: linear-gradient(135deg, rgba(25, 127, 140, 0.96), rgba(50, 150, 164, 0.92));
        box-shadow: 0 4px 22px rgba(9, 28, 30, 0.3);
        z-index: 2;
    }
    
    .district-deals-fullscreen-header .district-deals-title {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 14px;
    }
    
    .district-deals-fullscreen-header .district-deals-title i {
        font-size: 26px;
        color: rgba(255,255,255,0.85);
    }
    
    .district-deals-fullscreen-header .district-deals-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .district-deals-fullscreen-header .district-deals-close {
        background: rgba(25, 127, 140, 0.12);
        color: #197F8C;
        border-radius: 12px;
        padding: 10px 16px;
        font-size: 18px;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .district-deals-fullscreen-header .district-deals-close:hover,
    .district-deals-fullscreen-header .district-deals-close:focus-visible {
        background: rgba(25, 127, 140, 0.24);
        transform: translateY(-1px);
    }
    
    .district-deals-fullscreen-header .district-deals-actions button {
        border: 0;
        border-radius: 12px;
        padding: 10px 16px;
        font-weight: 600;
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        background: rgba(255,255,255,0.18);
        color: #fff;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }
    
    .district-deals-fullscreen-header .district-deals-actions button:hover {
        background: rgba(255,255,255,0.32);
        transform: translateY(-1px);
    }
    
    .district-deals-fullscreen-body {
        flex: 1;
        display: grid;
        grid-template-columns: minmax(320px, 40%) 1fr;
        gap: 0;
        background: linear-gradient(135deg, rgba(223, 238, 241, 0.9), rgba(232, 244, 246, 0.95));
        padding: 24px 24px 36px;
    }
    
    /* District deals map */
    .district-deals-map-wrapper {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        background: linear-gradient(180deg, rgba(25, 127, 140, 0.12), rgba(25, 127, 140, 0.06));
        border: 2px solid rgba(22, 98, 108, 0.16);
        box-shadow: 0 16px 40px rgba(9, 28, 30, 0.18);
        min-height: 440px;
    }
    
    .district-deals-map-overlay {
        position: absolute;
        top: 18px;
        left: 18px;
        right: 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #fff;
        z-index: 2;
    }
    
    .district-deals-map-overlay .district-deals-sector-label {
        background: linear-gradient(135deg, rgba(25, 127, 140, 0.95), rgba(50, 150, 164, 0.9));
        padding: 10px 16px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 1px;
        text-transform: uppercase;
        box-shadow: 0 10px 30px rgba(25, 127, 140, 0.25);
    }
    
    .district-deals-map-overlay .district-deals-focus {
        background: rgba(236, 249, 251, 0.82);
        color: #197F8C;
        border: 2px solid rgba(25, 127, 140, 0.2);
        border-radius: 12px;
        padding: 8px 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.4px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .district-deals-map-overlay .district-deals-focus:hover {
        background: rgba(236, 249, 251, 0.95);
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(25, 127, 140, 0.18);
    }
    
    .district-deals-map-placeholder {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(6px);
        background: rgba(255, 255, 255, 0.82);
    }
    
    .district-deals-map-hint {
        text-align: center;
        max-width: 280px;
        color: #1a4147;
        font-weight: 600;
        line-height: 1.6;
    }
    
    .district-deals-map-hint i {
        font-size: 28px;
        margin-bottom: 16px;
        color: #197F8C;
    }
    
    .district-deals-content {
        border-radius: 22px;
        background: #ffffff;
        padding: 30px 32px;
        box-shadow: 0 20px 55px rgba(9, 28, 30, 0.15);
        overflow-y: auto;
        max-height: calc(100vh - 132px);
    }
    
    .district-deals-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 22px;
    }
    
    .district-deal-card {
        background: rgba(25, 127, 140, 0.05);
        border: 2px solid rgba(25, 127, 140, 0.18);
        border-radius: 16px;
        padding: 22px 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transition: all 0.2s ease;
        box-shadow: 0 12px 28px rgba(16, 59, 68, 0.08);
    }
    
    .district-deal-card:hover {
        transform: translateY(-4px);
        border-color: rgba(25, 127, 140, 0.35);
        box-shadow: 0 16px 36px rgba(16, 59, 68, 0.15);
    }
    
    .district-deal-card h5 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #0f3d45;
    }
    
    .district-deal-card .deal-district {
        margin: 0;
        font-size: 13px;
        letter-spacing: 0.4px;
        color: #1a626d;
        text-transform: uppercase;
    }
    
    .district-deal-card .deal-business {
        margin: 0;
        font-weight: 600;
        color: #184952;
    }
    
    .district-deal-card .deal-description {
        margin: 0;
        color: #285862;
        line-height: 1.6;
        font-size: 14px;
    }
    
    .district-deal-card .deal-pricing {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 12px;
    }
    
    .district-deal-card .deal-discount {
        background: #EA2839;
        color: #fff;
        font-weight: 700;
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 999px;
    }
    
    .district-deal-card .deal-price {
        font-size: 16px;
        font-weight: 700;
        color: #197F8C;
    }
    .district-deal-card .deal-price-original {
        color: #9ba8ac;
        text-decoration: line-through;
        font-size: 12px;
        margin-left: 8px;
    }
    
    .district-deal-card .deal-button {
        margin-top: 16px;
        background: linear-gradient(135deg, #197F8C, #3296A4);
        color: white;
        padding: 10px 16px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 13px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .district-deal-card .deal-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(25, 127, 140, 0.3);
    }
    
    .district-deal-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(25, 127, 140, 0.08), rgba(50, 150, 164, 0.12));
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .district-deal-card:hover::before {
        opacity: 1;
    }
    
    @media (max-width: 1024px) {
        .district-deals-fullscreen-body {
            grid-template-columns: 1fr;
            gap: 22px;
        }

        .district-deals-map-wrapper {
            min-height: 320px;
        }

        .district-deals-content {
            max-height: none;
            padding: 24px;
        }
    }

    @media (max-width: 640px) {
        .district-deals-fullscreen-header {
            flex-direction: column-reverse;
            align-items: stretch;
            gap: 16px;
        }

        .district-deals-fullscreen-header .district-deals-actions {
            justify-content: space-between;
        }

        .district-deals-fullscreen-body {
            padding: 18px;
        }

        .district-deals-content {
            padding: 20px;
        }

        .district-deals-carousel {
        grid-template-columns: 1fr;
        }
    }
    
    /* Form elements in modals */
    .schedule-form h3 {
        font-size: 1.1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
        padding: 12px;
    }
}

/* Small Mobile - 360px and below */
@media (max-width: 360px) {
    .modal-header h2 {
        font-size: 1rem;
    }
    
    .modal-content > div:not(.modal-header) {
        padding: 12px;
    }
    
    .deal-card {
        padding: 12px;
    }
    
    .deal-title {
        font-size: 1rem;
    }
    
    .form-input,
    .form-select {
        padding: 10px;
        font-size: 16px;
    }
}
/* ===== ADDITIONAL RESPONSIVE STYLES FOR SPECIFIC WIDGET MODALS ===== */
/* GPS Modal Responsive */
@media (max-width: 768px) {
    #gpsMapContainer {
        height: 400px !important;
        min-height: 400px;
    }
    
    .map-controls {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .map-control-btn {
        flex: 1;
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    #gpsMapContainer {
        height: 350px !important;
        min-height: 350px;
    }
    
    .map-controls {
        flex-direction: column;
    }
    
    .map-control-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Currency Modal Responsive */
@media (max-width: 768px) {
    #currencyModal .language-selectors {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    #currencyModal .swap-button {
        transform: rotate(90deg) !important;
        align-self: center !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    
    #currencyModal .swap-button i {
        font-size: 16px !important;
    }
    
    #currencyModal .translation-textarea {
        font-size: 1.2rem !important;
    }
}
@media (max-width: 480px) {
    #currencyModal .translation-textarea {
        font-size: 1.1rem !important;
        padding: 10px !important;
    }
    
    #currencyModal .lang-dropdown {
        font-size: 0.9rem;
    }
    
    #currencyModal .translate-button {
        width: 100%;
        padding: 14px;
    }
}

/* Weather Modal Responsive */
@media (max-width: 768px) {
    #weatherContent {
        padding: 15px;
    }
    
    .weather-card {
        padding: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    #weatherContent {
        padding: 10px;
    }
    
    .weather-card {
        padding: 12px;
    }
    
    .weather-forecast {
        flex-direction: column;
        gap: 10px;
    }
}

/* eSIM Modal Responsive */
@media (max-width: 768px) {
    #esimModal .modal-content > div {
        padding: 25px 20px;
    }
    
    #esimModal h3 {
        font-size: 1.5rem;
    }
    
    #esimModal .fa-sim-card {
        font-size: 50px !important;
    }
    
    #esimModal div[style*="display:grid"] {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    #esimModal .modal-content > div {
        padding: 20px 15px;
    }
    
    #esimModal h3 {
        font-size: 1.3rem;
    }
    
    #esimModal p {
        font-size: 0.95rem !important;
    }
    
    #esimModal .fa-sim-card {
        font-size: 45px !important;
    }
    
    #esimModal div[style*="padding:20px"] {
        padding: 15px !important;
    }
    
    #esimModal div[style*="font-size:30px"] {
        font-size: 24px !important;
    }
}

/* Hospitals Modal Responsive */
@media (max-width: 768px) {
    #hospitalsList {
        padding: 15px;
    }
    
    .hospital-item {
        padding: 15px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    #hospitalsList {
        padding: 10px;
    }
    
    .hospital-item {
        padding: 12px;
        flex-direction: column;
        gap: 10px;
    }
    
    .hospital-info {
        width: 100%;
    }
    
    .hospital-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .hospital-actions button {
        width: 100%;
    }
}

/* Guide Geek Modal - Additional Responsive Styles */
@media (max-width: 768px) {
    .guide-geek-place-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .guide-geek-place-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .guide-geek-place-card {
        padding: 12px;
    }
    
    .guide-geek-place-title {
        font-size: 1.1rem;
    }
    
    .guide-geek-place-desc {
        font-size: 0.9rem;
    }
}

/* Itinerary Modal - Additional Responsive Styles */
@media (max-width: 768px) {
    .day-section {
        margin-bottom: 20px;
    }
    
    .day-header {
        padding: 12px 16px;
        font-size: 1.1rem;
    }
    
    .schedule-cards {
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .day-header {
        padding: 10px 14px;
        font-size: 1rem;
    }
    
    .schedule-cards {
        gap: 10px;
    }
    
    .card-time {
        font-size: 0.85rem;
    }
    
    .card-location {
        font-size: 0.9rem;
    }
}

/* Flight Modal - Additional Form Responsive Styles */
@media (max-width: 768px) {
    .flight-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group.full-width {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .flight-form-grid {
        gap: 12px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .flight-lookup-btn {
        width: 100%;
        padding: 12px;
    }
}

/* District Deals - Additional Grid Responsive */
@media (max-width: 768px) {
    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Translator Modal - Additional Responsive */
@media (max-width: 768px) {
    .translator-interface {
        padding: 15px;
    }
    
    .translation-textarea {
        min-height: 120px;
        font-size: 0.95rem;
    }
    
    .translate-button {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .translator-interface {
        padding: 12px;
    }
    
    .translation-textarea {
        min-height: 100px;
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .language-selectors {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .swap-button {
        transform: rotate(90deg) !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }
    
    .swap-button i {
        font-size: 14px !important;
    }
    
    #currencyModal .swap-button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }
    
    #currencyModal .swap-button i {
        font-size: 14px !important;
    }
}

/* General Modal Content Padding Responsive */
@media (max-width: 768px) {
    .modal-content > div[style*="padding:25px"],
    .modal-content > div[style*="padding:40px"] {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .modal-content > div[style*="padding:25px"],
    .modal-content > div[style*="padding:40px"],
    .modal-content > div[style*="padding:20px"] {
        padding: 15px !important;
    }
    
    .modal-content > div[style*="padding:30px"] {
        padding: 18px !important;
    }
}

/* ===== RESPONSIVE STYLES FOR INLINE ELEMENTS ===== */

/* Widget Panel Responsive */
@media (max-width: 1024px) {
    .widget-panel {
        width: 380px !important;
        right: -420px !important;
    }
    
    .widget-panel.open {
        right: 0 !important;
    }
}

@media (max-width: 768px) {
    .widget-panel {
        width: 90% !important;
        max-width: 400px !important;
        right: -calc(90% + 20px) !important;
    }
    
    .widget-panel.open {
        right: 0 !important;
    }
}
@media (max-width: 480px) {
    .widget-panel {
        width: 100% !important;
        max-width: 100% !important;
        right: -100% !important;
        border-radius: 0 !important;
    }
    
    .widget-panel.open {
        right: 0 !important;
    }
}

/* Directory Panel Responsive */
@media (max-width: 1024px) {
    .directory-panel {
        width: 500px !important;
        max-width: 90% !important;
        left: -550px !important;
    }
    
    .directory-panel.open {
        left: 0 !important;
    }
}

@media (max-width: 768px) {
    .directory-panel {
        width: 95% !important;
        max-width: 500px !important;
        left: -calc(95% + 20px) !important;
    }
    
    .directory-panel.open {
        left: 0 !important;
    }
}

@media (max-width: 480px) {
    .directory-panel {
        width: 100% !important;
        max-width: 100% !important;
        left: -100% !important;
        border-radius: 0 !important;
    }
    
    .directory-panel.open {
        left: 0 !important;
    }
}

/* GPS Map Container Responsive */
@media (max-width: 1024px) {
    #gpsMapContainer,
    .gps-map-container {
        min-height: 400px !important;
        height: 100% !important;
    }
    
    .gps-map-container .leaflet-container {
        min-height: 100% !important;
    }
    
    #directoryMapContainer {
        height: 650px !important;
        max-height: 75vh !important;
    }
}

@media (max-width: 768px) {
    #gpsMapContainer,
    .gps-map-container {
        min-height: 350px !important;
        height: 100% !important;
    }
    
    .gps-map-container .leaflet-container {
        min-height: 100% !important;
    }
    
    /* Ensure modal content takes full height */
    .gps-modal-content {
        height: 100dvh !important;
        max-height: 100dvh !important;
    }
    
    #directoryMapContainer {
        height: 500px !important;
        max-height: 70vh !important;
    }
}

@media (max-width: 480px) {
    #gpsMapContainer,
    .gps-map-container {
        min-height: 300px !important;
        height: 100% !important;
        flex: 1 1 auto !important;
    }
    
    .gps-map-container .leaflet-container {
        min-height: 100% !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Ensure modal content takes full height on mobile */
    .gps-modal-content {
        height: 100dvh !important;
        max-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ensure search section doesn't take too much space */
    .gps-search-section {
        flex-shrink: 0 !important;
    }
    
    #directoryMapContainer {
        height: 400px !important;
        max-height: 60vh !important;
    }
}
/* Map Panels Responsive */
@media (max-width: 768px) {
    #dealsManagementPanel,
    #districtDealsPanel {
        max-width: 85% !important;
        width: auto !important;
    }
    
    #mapSearchInput {
        max-width: 180px !important;
        min-width: 120px !important;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    #dealsManagementPanel,
    #districtDealsPanel {
        max-width: 95% !important;
        left: 2.5% !important;
        right: 2.5% !important;
    }
    
    #mapSearchInput {
        max-width: 150px !important;
        min-width: 100px !important;
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}

/* Fullscreen Map Modal Responsive */
@media (max-width: 768px) {
    #mapFullscreenModal .modal-content {
        margin-top: 60px !important;
        height: calc(100vh - 60px) !important;
        height: calc(100dvh - 60px) !important;
    }
}

@media (max-width: 480px) {
    #mapFullscreenModal .modal-content {
        margin-top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
    }
}

#directoryMapContainer { 
	width: 100% !important; 
	max-height: 80vh !important; 
}
/* Accent color states for directory map */
#directoryMapContainer.map-accent-normal,
#directoryFullscreenMapContainer.map-accent-normal { 
    border: 2px solid #197F8C !important; 
    box-shadow: 0 0 0 0 rgba(31,229,233,0) !important; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
#directoryMapContainer.map-accent-active,
#directoryFullscreenMapContainer.map-accent-active { 
    border: 2px solid #1FE5E9 !important; 
    box-shadow: 0 0 0 3px rgba(31,229,233,0.35) !important; 
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important; 
}

/* Fullscreen directory map modal */
#directoryFullscreenModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
}

#directoryFullscreenModal > div {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    background: white !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
}

#directoryFullscreenMapContainer {
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    min-height: 0 !important;
}

/* Responsive fullscreen map */
@media (max-width: 768px) {
    #directoryFullscreenModal > div {
        border-radius: 0 !important;
    }
    
    #directoryFullscreenModal > div > div:first-child {
        padding: 15px 20px !important;
    }
    
    #directoryFullscreenModal > div > div:first-child h2 {
        font-size: 18px !important;
    }
    
    #directoryFullscreenModal > div > div:first-child button {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

/* Map Deal Markers */
.map-deal-marker {
    background: transparent !important;
    border: none !important;
}

.deal-tooltip {
    background: linear-gradient(135deg, #197F8C, #3296A4) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(25, 127, 140, 0.3) !important;
}

.deal-popup .leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.deal-popup .leaflet-popup-content {
    margin: 0 !important;
}

.deal-popup .leaflet-popup-tip {
    background: white !important;
}

.directory-panel button { 
	display: inline-flex !important; 
	align-items: center !important; 
	justify-content: center !important; 
	gap: 8px !important; 
	line-height: 1.2 !important; 
	height: auto !important; 
	min-height: 42px !important; 
	max-width: 100% !important; 
	white-space: nowrap !important; 
	text-overflow: ellipsis !important; 
	overflow: hidden !important; 
	box-sizing: border-box !important;
}
.directory-panel input[type="text"],
.directory-panel textarea,
.directory-panel select { 
	max-width: 100% !important; 
	width: 100% !important; 
	box-sizing: border-box !important; 
}
@media (max-width: 768px) {
	.directory-panel button { padding: 10px 12px !important; font-size: 13px !important; }
	.directory-panel #mapSearchInput { max-width: 100% !important; min-width: 0 !important; }
}
@media (max-width: 480px) {
	.directory-panel button { min-height: 40px !important; }
}