/* OneOpenBed Design System V07 - Complete Redesign */

* {
	box-sizing: border-box;
}

/* CSS Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, button, form {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}

body {
	line-height: 1.6;
}

ol, ul {
	margin-left: 20px;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
}

:focus {
	outline: 0;
}

ins {
	text-decoration: none;
}

del {
	text-decoration: line-through;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Base Typography and Colors */
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1a1a1a;
	background: #d4dfe8;
	min-height: 100vh;
}

/* Layout Structure - 800px wide */
#bodyWrap {
	max-width: 800px;
	margin: 0 auto;
	background-color: #ffffff;
	position: relative;
	box-shadow: 0 0 40px rgba(0,0,0,0.08);
	min-height: 100vh;
}

/* Header */
#bodyTop {
	background: #ffffff;
	width: 100%;
	padding: 30px 40px 20px;
	border-bottom: 3px solid #2d5a5c;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

#header-left {
	padding: 0;
	margin: 0;
}

#header-left #logo {
	display: block;
	padding: 0;
	margin: 0;
}

#header-left #logo img {
	width: 280px;
	max-width: 100%;
	height: auto;
	display: block;
}

#header-right {
	text-align: right;
	padding: 0;
	color: #666;
	font-weight: 400;
	font-size: 14px;
	padding-top: 5px;
	margin-left: auto;
}

#header-right a {
	color: #2d5a5c;
	text-decoration: none;
	margin-left: 15px;
	font-weight: 500;
	transition: color 0.2s;
}

#header-right a:hover {
	color: #1a3a3c;
}

/* Navigation */
#navbar {
	background-color: #2d5a5c;
	padding: 0;
	margin: 0;
	text-align: center;
	border-bottom: 1px solid #1a3a3c;
}

#navbar .navlinks {
	padding: 0;
	margin: 0;
}

#navbar .navlinks a {
	display: inline-block;
	color: #ffffff;
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	padding: 15px 20px;
	transition: background-color 0.2s;
}

#navbar .navlinks a:hover {
	background-color: #1a3a3c;
}

/* Main Content Area */
#main {
	padding: 0;
	min-height: 400px;
}

/* Hero Section */
.hero-section {
	background-image: url('/images/bunk-beds-hero.png');
	background-size: cover;
	background-position: center;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 60px 40px;
	position: relative;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 70%);
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 600px;
	text-align: left;
	background: rgba(255,255,255,0.15);
	padding: 35px;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
	backdrop-filter: blur(3px);
}

.hero-title {
	font-size: 52px;
	font-weight: 900;
	color: #1a1a1a;
	line-height: 1.2;
	margin-bottom: 20px;
	text-shadow: 0 2px 8px rgba(255,255,255,0.8), 0 1px 3px rgba(255,255,255,0.9);
}

.hero-subtitle {
	font-size: 22px;
	color: #1a1a1a;
	line-height: 1.6;
	margin-bottom: 30px;
	text-shadow: 0 2px 6px rgba(255,255,255,0.7), 0 1px 2px rgba(255,255,255,0.8);
}

.hero-button {
	display: inline-block;
	padding: 16px 40px;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	background: #1e90ff;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.3s, transform 0.2s;
}

.hero-button:hover {
	background: #1873cc;
	transform: translateY(-2px);
	color: #fff;
}

/* How It Works Section */
.section-how-it-works {
	background: #f8f9fa;
	padding: 60px 40px;
	text-align: center;
}

.section-title {
	font-size: 32px;
	font-weight: 700;
	color: #3d4f5c;
	letter-spacing: 2px;
	margin-bottom: 50px;
}

.steps-container {
	display: flex;
	justify-content: space-around;
	gap: 40px;
	max-width: 900px;
	margin: 0 auto;
}

.step {
	flex: 1;
	text-align: center;
}

.step-icon {
	width: 120px;
	height: 120px;
	margin-bottom: 20px;
}

.step-number {
	font-size: 20px;
	font-weight: 600;
	color: #1e90ff;
	margin-bottom: 10px;
}

.step-title {
	font-size: 16px;
	font-weight: 700;
	color: #3d4f5c;
	letter-spacing: 1px;
	margin-bottom: 15px;
}

.step-description {
	font-size: 15px;
	color: #666;
	line-height: 1.6;
}

/* Content Sections */
.section-content {
	padding: 40px;
	background: #fff;
}

.section-content h2 {
	color: #2d5a5c;
	border-bottom: 3px solid #2d5a5c;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.section-content p a {
	text-decoration: underline;
}

/* Widget System */
.widget_label {
	font-size: 26px;
	font-weight: 600;
	color: #1a1a1a;
	text-align: center;
	padding: 0 0 10px 0;
	margin: 0 0 30px 0;
	border-bottom: 3px solid #2d5a5c;
}

.widget_body {
	padding: 0;
}

/* Shelter Cards */
.shelter-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.shelter-card {
	background: #ffffff;
	border: 2px solid #e0e0e0;
	border-left: 5px solid #2d5a5c;
	padding: 20px;
	margin-bottom: 20px;
	transition: all 0.2s;
	cursor: pointer;
}

.shelter-card-link:hover .shelter-card {
	border-left-color: #52c196;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transform: translateX(2px);
}

.shelter-card:hover {
	border-left-color: #52c196;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.shelter-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.shelter-details {
	flex: 1;
}

.shelter-name {
	font-size: 20px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 8px;
	transition: color 0.2s;
}

.shelter-card-link:hover .shelter-name {
	color: #2d5a5c;
}

.shelter-meta {
	display: flex;
	gap: 15px;
	align-items: center;
	font-size: 14px;
	color: #666;
}

.spa-badge {
	display: inline-block;
	background: #2d5a5c;
	color: #fff;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
}

.beds-display {
	text-align: right;
	min-width: 100px;
}

.bed-number {
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 5px;
}

.bed-number.available {
	color: #52c196;
}

.bed-number.low {
	color: #f4a261;
}

.bed-number.none {
	color: #e74c3c;
}

.bed-number.unknown {
	color: #999;
}

.bed-label {
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
}

/* Action Bar */
.action-bar {
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 30px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Filter Controls */
.filter-section {
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 30px;
}

.filter-controls {
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
}

.filter-controls label {
	margin: 0;
	font-weight: 500;
	color: #1a1a1a;
	font-size: 14px;
}

.filter-controls select {
	margin: 0;
	min-width: 250px;
}

/* Forms */
form {
	background-color: #ffffff;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
	margin-bottom: 20px;
}

.widget_body form {
	background-color: #f8f9fa;
	border: 2px solid #e0e0e0;
	padding: 30px;
	border-radius: 4px;
	margin: 20px auto;
	max-width: 450px;
}

input[type=text],
input[type=password],
input[type=number],
input[type=email],
select,
textarea {
	width: 100%;
	padding: 12px 15px;
	font-size: 15px;
	font-family: inherit;
	color: #1a1a1a;
	background-color: #fff;
	border: 2px solid #d0d0d0;
	border-radius: 4px;
	transition: border-color 0.2s;
	margin-bottom: 15px;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=email]:focus,
select:focus,
textarea:focus {
	border-color: #2d5a5c;
	outline: none;
}

textarea {
	min-height: 120px;
	resize: vertical;
}

label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #1a1a1a;
}

/* Buttons */
button,
.button {
	display: inline-block;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: #2d5a5c;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s;
	text-decoration: none;
	text-align: center;
}

button:hover,
.button:hover {
	background: #1a3a3c;
}

button.secondary,
.button.secondary {
	background: #f8f9fa;
	color: #2d5a5c;
	border: 2px solid #e0e0e0;
}

button.secondary:hover,
.button.secondary:hover {
	background: #e0e0e0;
	border-color: #d0d0d0;
}

button.danger {
	background: #e74c3c;
}

button.danger:hover {
	background: #c0392b;
}

button.success {
	background: #52c196;
}

button.success:hover {
	background: #42a078;
}

.phone-button {
	display: inline-block;
	padding: 16px 32px;
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	background: #2d5a5c;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phone-button:hover {
	background: #52c196;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
	color: #fff;
}

/* Links */
a {
	color: #2d5a5c;
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: #1a3a3c;
}

/* Typography */
h1 {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 20px;
}

h2 {
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 15px;
}

h3 {
	font-size: 22px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 12px;
}

h4 {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 10px;
}

p {
	margin-bottom: 15px;
	line-height: 1.7;
}

/* Tables */
table {
	width: 100%;
	background-color: #fff;
	border: 2px solid #e0e0e0;
}

table th {
	background-color: #2d5a5c;
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 12px 15px;
	font-size: 14px;
}

table td {
	padding: 12px 15px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: middle;
}

table tr:last-child td {
	border-bottom: none;
}

table tr:hover {
	background-color: #f8f9fa;
}

table a {
	color: #2d5a5c;
	font-weight: 500;
}

table a:hover {
	color: #1a3a3c;
}

/* Alert Messages */
.pageform {
	background-color: #fff3cd;
	border: 2px solid #f4a261;
	border-radius: 4px;
	padding: 20px;
	margin: 20px 0;
	text-align: center;
	color: #856404;
}

.alert {
	padding: 15px 20px;
	border-radius: 4px;
	margin-bottom: 20px;
	border: 2px solid;
}

.alert-success {
	background-color: #d4edda;
	border-color: #52c196;
	color: #155724;
}

.alert-warning {
	background-color: #fff3cd;
	border-color: #f4a261;
	color: #856404;
}

.alert-error {
	background-color: #f8d7da;
	border-color: #e74c3c;
	color: #721c24;
}

.alert-info {
	background-color: #d1ecf1;
	border-color: #2d5a5c;
	color: #0c5460;
}

/* Dropdown/Select Styling */
select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 40px;
}

/* Footer */
#footer {
	background: #2d5a5c;
	color: #fff;
	padding: 30px 40px;
	text-align: center;
	font-size: 14px;
}

#footer a {
	color: #fff;
	text-decoration: underline;
}

#footer a:hover {
	color: #52c196;
}

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

/* Utility Classes */
.clearFloat {
	clear: both;
}

.floatLeft {
	float: left;
}

.floatRight {
	float: right;
}

.center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.bold {
	font-weight: 700;
}

.muted {
	color: #666;
}

hr {
	border: none;
	border-top: 2px solid #e0e0e0;
	margin: 30px 0;
}

/* Empty States */
.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #999;
}

.empty-state-icon {
	font-size: 48px;
	margin-bottom: 20px;
	opacity: 0.5;
}

.empty-state-title {
	font-size: 20px;
	font-weight: 600;
	color: #666;
	margin-bottom: 10px;
}

.empty-state-description {
	font-size: 15px;
	color: #999;
}

/* Responsive Design */
@media (max-width: 800px) {
	#bodyWrap {
		box-shadow: none;
	}

	#bodyTop {
		padding: 20px;
	}

	#main {
		padding: 0;
	}

	.hero-section {
		min-height: 400px;
		padding: 40px 20px;
		justify-content: center;
	}

	.hero-content {
		padding: 25px;
	}

	.hero-title {
		font-size: 32px;
	}

	.hero-subtitle {
		font-size: 16px;
	}

	.section-how-it-works {
		padding: 40px 20px;
	}

	.steps-container {
		flex-direction: column;
		gap: 40px;
	}

	.section-content {
		padding: 30px 20px;
	}

	.shelter-info {
		flex-direction: column;
		align-items: flex-start;
	}

	.beds-display {
		text-align: left;
		width: 100%;
		margin-top: 10px;
	}

	.action-bar {
		flex-direction: column;
	}

	.action-bar .button {
		width: 100%;
	}

	#navbar .navlinks a {
		display: block;
		padding: 12px 20px;
		border-bottom: 1px solid #1a3a3c;
	}

	#navbar .navlinks a:last-child {
		border-bottom: none;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 14px;
	}

	#bodyTop {
		padding: 15px;
	}

	#main {
		padding: 0;
	}

	.hero-section {
		min-height: 350px;
		padding: 30px 15px;
	}

	.hero-content {
		padding: 20px;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-subtitle {
		font-size: 15px;
	}

	.hero-button {
		padding: 14px 30px;
		font-size: 16px;
	}

	.section-how-it-works {
		padding: 30px 15px;
	}

	.section-title {
		font-size: 26px;
	}

	.step-icon {
		width: 100px;
		height: 100px;
	}

	.section-content {
		padding: 20px 15px;
	}

	.shelter-card {
		padding: 15px;
	}

	.shelter-name {
		font-size: 18px;
	}

	.bed-number {
		font-size: 28px;
	}

	button,
	.button {
		padding: 10px 20px;
		font-size: 14px;
	}
}
