/* Public-facing styles */
.hotel-boycott-map-container {
	width: 100% !important;
	max-width: 100% !important;
	margin: 20px 0;
	box-sizing: border-box;
}

/* ===== BLACK/RED THEME STYLING ===== */
.hotel-boycott-map-filters {
	margin-bottom: 15px;
	padding: 20px;
	background: #000000;
	border: 2px solid #ff0000;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

.hotel-boycott-map-filters label {
	font-weight: bold;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hotel-boycott-map-filters select,
.hotel-boycott-map-filters input[type="date"] {
	padding: 10px 15px;
	background-color: #1a1a1a;
	color: #ffffff;
	border: 1px solid #ff0000;
	border-radius: 4px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.hotel-boycott-map-filters select:hover,
.hotel-boycott-map-filters input[type="date"]:hover {
	background-color: #2a2a2a;
	border-color: #ff3333;
	transform: translateY(-1px);
}

.hotel-boycott-map-filters .button {
	background: #ff0000;
	color: #ffffff;
	border: 2px solid #ff0000;
	padding: 10px 20px;
	border-radius: 4px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.hotel-boycott-map-filters .button:hover {
	background: #cc0000;
	border-color: #cc0000;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(255, 0, 0, 0.4);
}

/* Dark mode for map filters */
@media (prefers-color-scheme: dark) {
	.hotel-boycott-map-filters {
		background: #1e1e1e;
		border-color: #555;
	}
	
	.hotel-boycott-map-filters label {
		color: #fff;
	}
	
	.hotel-boycott-map-filters select {
		background-color: #1e1e1e;
		color: #fff;
		border-color: #555;
	}
	
	.hotel-boycott-map-filters select option {
		background-color: #1e1e1e;
		color: #fff;
	}
	
	.hotel-boycott-map-filters input[type="date"] {
		background-color: #1e1e1e;
		color: #fff;
		border-color: #555;
	}
	
	.hotel-boycott-map-filters .button {
		background-color: #2271b1;
		color: #fff;
		border-color: #2271b1;
	}
}

.hotel-boycott-map-wrapper {
	margin-top: 15px;
}

#hotel-boycott-map {
	border: 2px solid #ff0000;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Dark overlay for map tiles */
#hotel-boycott-map .leaflet-container {
	background-color: #000000;
}

#hotel-boycott-list {
	border: 2px solid #ff0000;
	border-radius: 4px;
	padding: 15px;
	background: #000000;
	color: #ffffff;
}

#hotel-boycott-list h3 {
	margin-top: 0;
	color: #ff0000;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #ff0000;
	padding-bottom: 10px;
}

.map-popup {
	min-width: 200px;
}

/* Leaflet popup styling - black/red theme */
.leaflet-popup-content-wrapper {
	background: #000000 !important;
	border: 2px solid #ff0000 !important;
	border-radius: 4px !important;
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
	color: #ffffff !important;
}

.leaflet-popup-content {
	color: #ffffff !important;
	margin: 15px !important;
}

.leaflet-popup-content strong {
	color: #ff0000 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.leaflet-popup-tip {
	background: #000000 !important;
	border: 2px solid #ff0000 !important;
}

.leaflet-popup-close-button {
	color: #ffffff !important;
}

.leaflet-popup-close-button:hover {
	color: #ff0000 !important;
}

/* Map controls - red/black theme */
.leaflet-control-zoom a {
	background-color: #ff0000 !important;
	color: #ffffff !important;
	border: 2px solid #ffffff !important;
	font-weight: bold !important;
	box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important;
	transition: all 0.3s ease !important;
}

.leaflet-control-zoom a:hover {
	background-color: #cc0000 !important;
	transform: scale(1.1) !important;
}

.leaflet-control-attribution {
	background: rgba(0, 0, 0, 0.8) !important;
	color: #ffffff !important;
	border: 1px solid #ff0000 !important;
	border-radius: 4px !important;
	padding: 4px 8px !important;
	font-size: 11px !important;
}

.leaflet-control-attribution a {
	color: #ff0000 !important;
}

.hotel-boycott-map-form {
	width: 100% !important;
	max-width: 100% !important;
	margin: 20px 0;
	padding: 0 !important;
	background: transparent;
	box-sizing: border-box;
}

/* Ensure form container and all parent elements allow full width */
.hotel-boycott-map-form,
.hotel-boycott-map-form form,
.hotel-boycott-map-form > * {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* Override any WordPress theme constraints - very aggressive */
.entry-content .hotel-boycott-map-form,
.wp-block-group .hotel-boycott-map-form,
.content-area .hotel-boycott-map-form,
.site-content .hotel-boycott-map-form,
.wp-block-shortcode .hotel-boycott-map-form,
.wp-block-columns .hotel-boycott-map-form,
.wp-block-column .hotel-boycott-map-form,
.elementor-widget-shortcode .hotel-boycott-map-form,
.elementor-element .hotel-boycott-map-form,
.wpb_wrapper .hotel-boycott-map-form,
.vc_column-inner .hotel-boycott-map-form,
[class*="container"] .hotel-boycott-map-form,
[class*="wrapper"] .hotel-boycott-map-form {
	width: 100% !important;
	max-width: 100% !important;
}

/* Break out of parent container max-width constraints */
.wp-block-shortcode,
.wp-block-column,
.elementor-widget-shortcode,
.elementor-element {
	max-width: 100% !important;
}

/* Ensure form and its direct children are full width */
.hotel-boycott-map-form,
.hotel-boycott-map-form form,
.hotel-boycott-map-form > * {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.hotel-boycott-map-form p {
	margin-bottom: 15px;
}

.hotel-boycott-map-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.hotel-boycott-map-form input[type="text"],
.hotel-boycott-map-form input[type="email"],
.hotel-boycott-map-form input[type="datetime-local"],
.hotel-boycott-map-form select,
.hotel-boycott-map-form textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	color: #000;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.hotel-boycott-map-form input[type="text"],
	.hotel-boycott-map-form input[type="email"],
	.hotel-boycott-map-form input[type="datetime-local"],
	.hotel-boycott-map-form select,
	.hotel-boycott-map-form textarea {
		background-color: #1e1e1e;
		color: #fff;
		border-color: #555;
	}
	
	.hotel-boycott-map-form select option {
		background-color: #1e1e1e;
		color: #fff;
	}
	
	.hotel-boycott-map-form label {
		color: #fff;
	}
	
	.brand-radio-group label,
	.radio-group label {
		background-color: #1e1e1e !important;
		color: #fff !important;
		border-color: #555 !important;
	}
	
	.brand-radio-group label:hover,
	.radio-group label:hover {
		background-color: #2e2e2e !important;
	}
	
	.brand-radio-group label input[type="radio"],
	.radio-group label input[type="radio"] {
		accent-color: #2271b1;
	}
}

.hotel-boycott-map-form .required {
	color: #d63638;
}

.hotel-boycott-map-form .button-primary,
.hotel-boycott-map-form button[type="submit"] {
	background: #4a90e2;
	color: #ffffff;
	border: 1px solid #357abd;
	padding: 10px 20px;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.hotel-boycott-map-form .button-primary:hover,
.hotel-boycott-map-form button[type="submit"]:hover {
	background: #357abd;
	border-color: #2c5aa0;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

/* Radio button group styling */
.brand-radio-group,
.radio-group {
	margin-top: 8px;
}

.brand-radio-group label,
.radio-group label {
	display: block;
	margin-bottom: 8px;
	padding: 8px;
	border: 1px solid #4a90e2;
	border-radius: 4px;
	cursor: pointer;
	background: #e8f4fd;
	transition: all 0.2s;
	color: #2c5aa0;
}

.brand-radio-group label:hover,
.radio-group label:hover {
	background: #d0e8fc;
	border-color: #357abd;
}

.brand-radio-group label input[type="radio"],
.radio-group label input[type="radio"] {
	margin-right: 8px;
	accent-color: #4a90e2;
}

/* Dark mode for radio groups */
@media (prefers-color-scheme: dark) {
	.brand-radio-group label,
	.radio-group label {
		background: rgba(74, 144, 226, 0.15);
		color: #a8d0f0;
		border-color: #4a90e2;
	}
	
	.brand-radio-group label:hover,
	.radio-group label:hover {
		background: rgba(74, 144, 226, 0.25);
		border-color: #5ba0f2;
	}
}

#hotel_boycott_form_message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
}

#hotel_boycott_form_message.success {
	line-height: 1.6;
}

/* Ticket code styling - very specific and high priority */
#hotel_boycott_form_message.success code,
#hotel_boycott_form_message code,
.hotel-boycott-map-form code,
code[style*="background"],
code.ticket-code-display,
.ticket-code-display,
#hotel_boycott_form_message code.ticket-code-display {
	display: inline-block !important;
	margin: 5px 0 !important;
	font-family: 'Courier New', monospace !important;
	background: #2a2a2a !important;
	color: #ffffff !important;
	padding: 5px 10px !important;
	border-radius: 3px !important;
	border: 1px solid #444 !important;
	box-sizing: border-box !important;
}

#ticket-code-display,
#ticket-code-display * {
	background: #2a2a2a !important;
	color: #ffffff !important;
	padding: 5px 10px !important;
	border-radius: 3px !important;
	border: 1px solid #444 !important;
	font-family: monospace !important;
}

/* Catch-all for any code element in form area */
.hotel-boycott-map-form code,
.hotel-boycott-map-form #hotel_boycott_form_message code {
	background: #2a2a2a !important;
	color: #ffffff !important;
	padding: 5px 10px !important;
	border-radius: 3px !important;
	border: 1px solid #444 !important;
	font-family: monospace !important;
}

#hotel_boycott_form_message.success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

/* Ensure code elements inside success message don't inherit text color */
#hotel_boycott_form_message.success code,
#hotel_boycott_form_message.success code * {
	color: #ffffff !important;
}

#hotel_boycott_form_message.error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.address-suggestion {
	padding: 8px;
	cursor: pointer;
	background: #2a2a2a !important;
	border-bottom: 1px solid #444 !important;
	color: #ffffff !important;
	transition: background 0.2s;
}

.address-suggestion:hover {
	background: #3a3a3a !important;
}

.address-suggestion:last-child {
	border-bottom: none;
}

/* Radio group styling */
.radio-group {
	margin-top: 8px;
}

.radio-group .radio-option {
	display: block;
	margin-bottom: 8px;
	padding: 10px 12px;
	border: 1px solid #444;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}

.radio-group .radio-option:hover {
	background: rgba(255,255,255,0.05);
}

.radio-group .radio-option input[type="radio"] {
	margin-right: 10px;
}

/* Other text input - simple disabled/enabled states */
.other-text-input {
	width: 100%;
	margin-top: 10px;
	padding: 10px 12px;
	box-sizing: border-box;
	transition: opacity 0.2s;
}

.other-text-input:disabled {
	opacity: 0.5;
}

.other-text-input:enabled {
	opacity: 1;
}

#hotel_boycott_address_suggestions {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	z-index: 10000 !important;
	background: #1a1a1a !important;
	border: 1px solid #444 !important;
	border-top: none !important;
	max-height: 200px;
	overflow-y: auto;
	width: 100% !important;
	max-width: 500px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important;
	margin-top: 0;
}

/* Listings page styles */
.hotel-boycott-listings-container {
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
}

.hotel-boycott-listings-search {
	background: #f9f9f9;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 30px;
}

.hotel-boycott-listings-search h2 {
	margin-top: 0;
}

.hotel-boycott-listings-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.hotel-boycott-search-field {
	display: flex;
	flex-direction: column;
}

.hotel-boycott-search-field label {
	font-weight: bold;
	margin-bottom: 5px;
}

.hotel-boycott-search-field input[type="text"],
.hotel-boycott-search-field select {
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background-color: #fff;
	color: #000;
}

/* Dark mode for listings search */
@media (prefers-color-scheme: dark) {
	.hotel-boycott-listings-search {
		background: #1e1e1e;
		border-color: #555;
	}
	
	.hotel-boycott-listings-search h2,
	.hotel-boycott-listings-search p,
	.hotel-boycott-search-field label {
		color: #fff;
	}
	
	.hotel-boycott-search-field input[type="text"],
	.hotel-boycott-search-field select {
		background-color: #1e1e1e;
		color: #fff;
		border-color: #555;
	}
	
	.hotel-boycott-search-field select option {
		background-color: #1e1e1e;
		color: #fff;
	}
	
	.hotel-boycott-autocomplete-suggestions {
		background: #1e1e1e;
		border-color: #555;
	}
	
	.hotel-boycott-autocomplete-item {
		color: #fff;
		border-color: #555;
	}
	
	.hotel-boycott-autocomplete-item:hover {
		background: #2e2e2e;
	}
	
	.hotel-boycott-listing-item {
		background: #1e1e1e;
		border-color: #555;
		color: #fff;
	}
	
	.hotel-boycott-listing-header h4 {
		color: #fff;
	}
	
	.hotel-boycott-listing-address,
	.hotel-boycott-listing-reason {
		color: #ccc;
	}
}

.hotel-boycott-address-autocomplete-wrapper {
	position: relative;
}

.hotel-boycott-autocomplete-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1000;
	background: white;
	border: 1px solid #ddd;
	border-top: none;
	max-height: 200px;
	overflow-y: auto;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	display: none;
}

.hotel-boycott-autocomplete-item {
	padding: 10px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
}

.hotel-boycott-autocomplete-item:hover {
	background: #f0f0f0;
}

.hotel-boycott-autocomplete-item:last-child {
	border-bottom: none;
}

.hotel-boycott-search-button {
	padding: 12px 24px;
	background: #0073aa;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	align-self: flex-start;
}

.hotel-boycott-search-button:hover {
	background: #005a87;
}

.hotel-boycott-listings-results {
	margin-top: 30px;
}

.hotel-boycott-listings-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.hotel-boycott-listings-header h3 {
	margin: 0;
}

.hotel-boycott-listings-content {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.hotel-boycott-listings-list {
	flex: 1;
	min-width: 300px;
}

.hotel-boycott-listings-map-container {
	flex: 1;
	min-width: 300px;
}

.hotel-boycott-listings-map-container #hotel-boycott-listings-map {
	border: 1px solid #ddd;
	border-radius: 4px;
}

.hotel-boycott-listing-item {
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 15px;
	cursor: pointer;
	transition: box-shadow 0.2s;
}

.hotel-boycott-listing-item:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hotel-boycott-listing-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.hotel-boycott-listing-header h4 {
	margin: 0;
	color: #0073aa;
	font-size: 18px;
}

.hotel-boycott-listing-distance {
	background: #0073aa;
	color: white;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: bold;
}

.hotel-boycott-listing-address {
	color: #666;
	margin-bottom: 10px;
	font-size: 14px;
}

.hotel-boycott-listing-reason {
	color: #333;
	margin-bottom: 10px;
	font-size: 14px;
	font-style: italic;
}

.hotel-boycott-listing-date {
	color: #999;
	font-size: 12px;
}

.hotel-boycott-listings-loading,
.hotel-boycott-listings-error {
	padding: 20px;
	text-align: center;
	margin-top: 20px;
}

.hotel-boycott-listings-loading {
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.hotel-boycott-listings-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	border-radius: 4px;
}

@media (max-width: 768px) {
	.hotel-boycott-listings-content {
		flex-direction: column;
	}
	
	.hotel-boycott-listings-map-container {
		order: -1;
	}
}

