:root {
	--primary-color: #E94747;
	--primary-dark: #D93A3A;
	--text-color: #333;
	--light-text: #666;
	--white: #fff;
	--background: #fff;
	--border-radius: 8px;
	--box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;
}

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

body {
	font-family: 'Inter', sans-serif;
	color: var(--text-color);
	background-color: var(--background);
	line-height: 1.6;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

a {
	text-decoration: none;
	color: inherit;
}

/* Header Styles */
.header {
	background-color: var(--primary-dark);
	padding: 15px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-logo {
	display: flex;
	align-items: center;
	color: var(--white);
	font-weight: 700;
	font-size: 1.5rem;
}

.header-logo svg {
	margin-right: 8px;
}

.nav-links {
	display: flex;
	gap: 20px;
}

.nav-links a {
	color: var(--white);
	font-size: 1rem;
	transition: opacity 0.3s;
}

.nav-links a:hover {
	opacity: 0.8;
}

.nav-right {
	display: flex;
	align-items: center;
	margin-right: 20px;
}

.btn-get-started {
	background-color: var(--primary-dark);
	color: var(--white);
	padding: 8px 16px;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: 600;
	transition: var(--transition);
}

.btn-get-started:hover {
	background-color: rgba(255, 255, 255, 0.9);
	transform: translateY(-2px);
	color: var(--text-color);
}

.btn-get-ideas {
	background-color: var(--primary-dark);
	color: var(--white);
	padding: 8px 16px;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: 400;
	transition: var(--transition);
}

.btn-get-ideas:hover {
	transform: translateY(-2px);
}

/* Hero Section */
.hero {
	margin-top: 80px;
	padding-bottom: 80px;
	text-align: center;
	background-color: var(--white);
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	font-weight: 700;
	color: var(--text-color);
}

.hero-text {
	font-size: 1.5rem;
	margin-bottom: 30px;
	color: var(--text-color);
}

.brand-name {
	font-weight: 600;
}

.highlight {
	font-weight: 600;
}

/* Section styles */
section {
	padding: 80px 0;
}

.section-header {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 40px;
}

.section-header h2 {
	font-size: 2.5rem;
	margin-bottom: 20px;
	font-weight: 700;
}

.section-header p {
	font-size: 1.2rem;
	color: inherit;
}

.section-header.center {
	text-align: center;
}

.section-red {
	background-color: var(--primary-dark);
	color: var(--white);
	position: relative;
}

/* Date Generator Form */
.date-generator {
	position: relative;
}

.generator-form {
	background-color: rgba(255, 255, 255, 0.1);
	padding: 30px;
	border-radius: var(--border-radius);
	margin: 40px auto;
	backdrop-filter: blur(5px);
	max-width: 800px;
}

.form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

.form-group {
	flex: 1;
}

label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.form-control {
	width: 100%;
	padding: 12px 15px;
	border-radius: var(--border-radius);
	border: 1px solid rgba(255, 255, 255, 0.3);
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--white);
	font-size: 1rem;
	transition: var(--transition);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}

.form-control:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.btn {
	background-color: var(--white);
	color: var(--primary-dark);
	font-weight: 600;
	font-size: 1rem;
	border: none;
	border-radius: var(--border-radius);
	padding: 14px 28px;
	cursor: pointer;
	transition: var(--transition);
	display: block;
	margin: 30px auto 0;
	min-width: 220px;
	text-align: center;
}

.btn:hover {
	background-color: rgba(255, 255, 255, 0.9);
	transform: translateY(-2px);
}

/* Loading Indicator */
.loading-container {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 40px auto;
	color: var(--white);
	max-width: 800px;
}

.loading-spinner {
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top: 4px solid var(--white);
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Results Section */
.results-container {
	display: none;
	background-color: var(--white);
	border-radius: var(--border-radius);
	padding: 30px;
	box-shadow: var(--box-shadow);
	color: var(--text-color);
	max-width: 800px;
	margin: 0 auto;
}

.results-header {
	text-align: center;
	margin-bottom: 30px;
}

.results-header h3 {
	font-size: 1.8rem;
	margin-bottom: 10px;
	color: var(--primary-dark);
}

.results-subheader {
	color: var(--light-text);
}

.date-ideas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.date-idea-card {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.date-idea-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(233, 71, 71, 0.2);
}

.date-idea-image {
	background-color: rgba(233, 71, 71, 0.1);
	height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-dark);
	font-weight: 500;
	font-size: 1.2rem;
}

.date-idea-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 400px;
}

.date-idea-title {
	font-size: 1.2rem;
	margin-bottom: 10px;
	color: var(--primary-dark);
}

.date-idea-description {
	margin-bottom: 15px;
	color: var(--light-text);
	font-size: 0.95rem;
}

.date-idea-info {
	display: flex;
	flex-direction: column;
	margin-top: auto;
	min-height: 200px;
	position: relative;
}

.date-idea-details {
	padding-top: 12px;
	border-top: 1px solid rgba(233, 71, 71, 0.2);
	font-size: 0.9rem;
	margin-bottom: 16px;
}

.date-idea-details p {
	margin: 6px 0;
	line-height: 1.4;
}

.date-idea-citation {
	padding-top: 16px;
	border-top: 1px solid rgba(233, 71, 71, 0.1);
	font-size: 0.85rem;
}

.citation-snippet {
	font-style: italic;
	color: var(--light-text);
	margin-bottom: 8px;
	line-height: 1.4;
	display: block;
}

.citation-source {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--light-text);
}

.citation-source span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.citation-link {
	color: var(--primary-dark);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	padding: 6px 12px;
	border-radius: 4px;
	background: rgba(233, 71, 71, 0.1);
	display: inline-block;
	text-align: center;
	margin-top: 8px;
}

.date-idea-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.date-tag {
	background-color: rgba(233, 71, 71, 0.1);
	color: var(--primary-dark);
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
}

.date-idea-item {
	font-weight: 500;
	margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
	background-color: #f9f9f9;
}

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.testimonial-card {
	background-color: var(--white);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

.testimonial-card p {
	font-size: 1.1rem;
	line-height: 1.6;
	position: relative;
	padding-left: 25px;
}

.testimonial-card p::before {
	content: "“";
	position: absolute;
	left: 0;
	top: -10px;
	font-size: 2.5rem;
	color: var(--primary-dark);
	font-family: serif;
	line-height: 1;
}

/* Callout Section */
.callout-section {
	background-color: var(--white);
	color: var(--text-color);
	text-align: center;
	padding: 120px 0;
	margin-bottom: 40px;
}

.callout-section h2 {
	font-size: 2.5rem;
	margin-bottom: 20px;
}

.callout-section p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.callout-section .btn-get-ideas {
	display: inline-block;
	padding: 16px 32px;
	font-size: 1.2rem;
}

/* Footer Styles */
.footer {
	background-color: var(--primary-dark);
	padding: 40px 0;
	color: var(--white);
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-logo {
	display: flex;
	align-items: center;
	color: var(--white);
	font-weight: 600;
	font-size: 1.2rem;
}

.footer-logo svg {
	margin-right: 8px;
}

.footer-text {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
	.form-row {
		flex-direction: column;
		gap: 15px;
	}

	h1 {
		font-size: 2.5rem;
	}

	.section-header h2 {
		font-size: 2rem;
	}

	.footer-content {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.testimonial-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.header-container {
		flex-wrap: wrap;
		justify-content: center;
		gap: 15px;
	}

	.nav-links {
		order: 3;
		justify-content: center;
		width: 100%;
		margin-top: 10px;
	}

	h1 {
		font-size: 2rem;
	}

	.section-header h2 {
		font-size: 1.8rem;
	}

	.hero-text {
		font-size: 1.2rem;
	}

	.date-ideas-grid {
		grid-template-columns: 1fr;
	}

	.btn,
	.btn-get-started,
	.btn-get-ideas {
		width: 100%;
	}
}

.logo-svg {
	width: 160px;
	height: auto;
	margin-left: 20px;
}

/* For responsive design */
@media (max-width: 768px) {
	.logo-svg {
		width: 140px;
	}
}

@media (max-width: 480px) {
	.logo-svg {
		width: 120px;
	}
}

/* Location Picker Styles */
.form-section {
	margin-bottom: 30px;
}

.form-section-title {
	font-size: 1.3rem;
	margin-bottom: 20px;
	color: var(--white);
	font-weight: 600;
}

.location-picker {
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: var(--border-radius);
	padding: 20px;
	margin-bottom: 10px;
}

.location-input-wrapper {
	position: relative;
	display: flex;
}

.location-input-wrapper input {
	padding-right: 45px;
	flex: 1;
}

.map-container {
	height: 250px;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: var(--border-radius);
	margin-top: 20px;
	overflow: hidden;
	position: relative;
}

.map-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
	text-align: center;
	padding: 20px;
}

.map-active .map-placeholder {
	display: none;
}

.form-actions {
	margin-top: 30px;
	text-align: center;
}

/* Map Marker Styles */
.map-marker {
	width: 30px;
	height: 30px;
	border-radius: 50% 50% 50% 0;
	background: var(--primary-dark);
	position: absolute;
	transform: rotate(-45deg);
	left: 50%;
	top: 50%;
	margin: -15px 0 0 -15px;
	animation-name: bounce;
	animation-duration: 1s;
	animation-fill-mode: both;
}

.map-marker:after {
	content: '';
	width: 14px;
	height: 14px;
	margin: 8px 0 0 8px;
	background: rgba(255, 255, 255, 0.8);
	position: absolute;
	border-radius: 50%;
}

@keyframes bounce {
	0% {
		opacity: 0;
		transform: translateY(-2000px) rotate(-45deg);
	}

	60% {
		opacity: 1;
		transform: translateY(30px) rotate(-45deg);
	}

	80% {
		transform: translateY(-10px) rotate(-45deg);
	}

	100% {
		transform: translateY(0) rotate(-45deg);
	}
}

/* Radius Circle Styles */
.radius-circle {
	border: 2px solid rgba(233, 71, 71, 0.6);
	border-radius: 50%;
	background-color: rgba(233, 71, 71, 0.1);
	position: absolute;
	pointer-events: none;
	transform-origin: center;
	transition: all 0.3s ease;
}

.text-input {
	width: 100%;
	padding: 12px 15px;
	border-radius: var(--border-radius);
	border: 1px solid rgba(255, 255, 255, 0.3);
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--white);
	font-size: 1rem;
	transition: var(--transition);
	background-image: none;
}

.text-input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Placeholder styling for all browsers */
.text-input::placeholder {
	color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

/* For older Firefox */
.text-input::-moz-placeholder {
	color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

/* For older WebKit/Chrome */
.text-input::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.7);
}

/* For older Microsoft browsers */
.text-input:-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.date-idea-citation {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(233, 71, 71, 0.1);
	font-size: 0.85rem;
}

.citation-snippet {
	font-style: italic;
	color: var(--light-text);
	margin-bottom: 8px;
	line-height: 1.4;
	display: block;
}

.citation-source {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--light-text);
	margin-top: auto;
}

.citation-source span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.citation-link {
	color: var(--primary-dark);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	padding: 6px 12px;
	border-radius: 4px;
	background: rgba(233, 71, 71, 0.1);
	display: inline-block;
	text-align: center;
	margin-top: 8px;
	align-self: flex-start;
}

.citation-link:hover {
	color: var(--primary-color);
	background: rgba(233, 71, 71, 0.2);
}

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
	.header-container {
		flex-wrap: wrap;
		padding: 10px 15px;
	}

	.header-logo {
		order: 1;
		flex: 1;
	}

	.nav-right {
		order: 2;
	}

	.nav-links {
		order: 3;
		width: 100%;
		margin-top: 15px;
		display: none;
		/* Hidden by default on mobile */
		flex-direction: column;
		gap: 15px;
	}

	.nav-links.active {
		display: flex;
	}

	/* Mobile menu toggle button */
	.mobile-menu-toggle {
		order: 2;
		background: none;
		border: none;
		color: white;
		font-size: 24px;
		cursor: pointer;
		display: block;
		width: 40px;
		height: 40px;
		padding: 0;
		position: relative;
	}

	/* Hamburger icon */
	.hamburger-icon {
		width: 25px;
		height: 3px;
		background-color: white;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		transition: all 0.3s ease;
	}

	.hamburger-icon::before,
	.hamburger-icon::after {
		content: '';
		width: 25px;
		height: 3px;
		background-color: white;
		position: absolute;
		left: 0;
		transition: all 0.3s ease;
	}

	.hamburger-icon::before {
		top: -8px;
	}

	.hamburger-icon::after {
		bottom: -8px;
	}

	/* Open state for hamburger */
	.mobile-menu-toggle.active .hamburger-icon {
		background-color: transparent;
	}

	.mobile-menu-toggle.active .hamburger-icon::before {
		top: 0;
		transform: rotate(45deg);
	}

	.mobile-menu-toggle.active .hamburger-icon::after {
		bottom: 0;
		transform: rotate(-45deg);
	}
}

@media (min-width: 769px) {
	.mobile-menu-toggle {
		display: none;
	}

	.nav-links {
		display: flex !important;
	}
}

/* Map Container and GPS Button Fixes */

/* Map container fixes */
.map-container {
	height: 250px;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: var(--border-radius);
	margin-top: 20px;
	overflow: hidden;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
	text-align: center;
	padding: 20px;
	z-index: 1;
	/* Ensure this is below the actual map */
	pointer-events: none;
	/* Allow clicking through to the map */
}

/* Force the map to be visible */
.map-container>div {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 2 !important;
	/* Ensure map is above placeholder */
}

/* Improved GPS Button */
.location-input-wrapper {
	position: relative;
	display: flex;
}

.location-input-wrapper input {
	padding-right: 45px;
	flex: 1;
}

.gps-btn {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.1);
	border: none;
	height: 30px;
	width: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	opacity: 0.8;
	cursor: pointer;
	transition: all 0.2s ease;
	/* Reset browser defaults */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 0;
	background-image: none;
	box-shadow: none;
	text-align: center;
}

.gps-btn:hover {
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.2);
}

.gps-btn svg {
	width: 18px;
	height: 18px;
}

/* GPS loading animation */
.gps-loading {
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0% {
		transform: translateY(-50%) scale(1);
		opacity: 0.8;
	}

	50% {
		transform: translateY(-50%) scale(1.1);
		opacity: 1;
	}

	100% {
		transform: translateY(-50%) scale(1);
		opacity: 0.8;
	}
}

/* Make maps work better in dark mode */
.gm-style {
	background-color: #f5f5f5 !important;
}
  
/* Card Grid Layout Solution */
.date-ideas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
  }
  
  .date-idea-card {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
	display: grid;
	/* Define a fixed structure with grid template rows */
	grid-template-rows: auto 1fr auto auto;
	grid-template-areas:
	  "title"
	  "description"
	  "details"
	  "citation";
  }
  
  .date-idea-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(233, 71, 71, 0.2);
  }
  
  .date-idea-content {
	padding: 20px;
	display: grid;
	grid-template-rows: subgrid;
	grid-row: 1 / span 4;
	grid-template-areas:
	  "title"
	  "description"
	  "details"
	  "citation";
	height: 100%;
  }
  
  .date-idea-title {
	grid-area: title;
	font-size: 1.2rem;
	margin-bottom: 10px;
	color: var(--primary-dark);
	/* Ensure consistent height */
	min-height: 2.5em;
	display: flex;
	align-items: flex-start;
  }
  
  .date-idea-description {
	grid-area: description;
	color: var(--light-text);
	font-size: 0.95rem;
	/* Allow reasonable space for description */
	max-height: 220px;
	overflow: hidden;
	margin-bottom: 20px;
  }
  
  .date-idea-info {
	display: contents; /* This allows children to participate in the parent's grid layout */
  }
  
  .date-idea-details {
	grid-area: details;
	padding-top: 12px;
	border-top: 1px solid rgba(233, 71, 71, 0.2);
	font-size: 0.9rem;
	margin-bottom: 16px;
  }
  
  .date-idea-details p {
	margin: 6px 0;
	line-height: 1.4;
  }
  
  .date-idea-citation {
	grid-area: citation;
	padding-top: 16px;
	border-top: 1px solid rgba(233, 71, 71, 0.1);
	font-size: 0.85rem;
	/* Place at bottom of card */
	align-self: end;
  }
  
  .citation-snippet {
	font-style: italic;
	color: var(--light-text);
	margin-bottom: 8px;
	line-height: 1.4;
	display: block;
  }
  
  .citation-source {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--light-text);
  }
  
  .citation-source span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
  }
  
  .citation-link {
	color: var(--primary-dark);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	padding: 6px 12px;
	border-radius: 4px;
	background: rgba(233, 71, 71, 0.1);
	display: inline-block;
	text-align: center;
	margin-top: 8px;
	align-self: flex-start;
  }
  
  .citation-link:hover {
	background: rgba(233, 71, 71, 0.2);
  }