/* 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;
}

/* This corner block is the site's only navigation, so the links have to be
   real tap targets: 22px line-height + 11px above and below = 44px. */
#header-right a {
	color: #2d5a5c;
	text-decoration: none;
	display: inline-block;
	line-height: 22px;
	padding: 11px 0;
	margin-left: 15px;
	font-weight: 500;
	transition: color 0.2s;
}

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

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

/* Hero Section
   No background image. Everything here that existed only to lift text off a
   photo went with it: the gradient scrim, the frosted panel and its drop
   shadow, the white text-shadows, the flex centering, and the min-height that
   was reserving room for the picture. What is left is type on white.
   Padding matches .section-content so the hero lines up with the sections
   below it. */
.hero-section {
	padding: 40px;
}

.hero-content {
	max-width: 600px;
	text-align: left;
}

.hero-title {
	font-size: 52px;
	font-weight: 900;
	color: #1a1a1a;
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero-subtitle {
	font-size: 22px;
	color: #1a1a1a;
	line-height: 1.6;
	margin-bottom: 30px;
}

.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],
input[type=tel],
select,
textarea {
	width: 100%;
	padding: 12px 15px;
	/* 16px is a hard floor: iOS Safari zooms the page in when a field smaller
	   than this receives focus, which makes one-handed form entry unusable. */
	font-size: 16px;
	min-height: 44px;
	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,
input[type=tel]: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: 16px;
	min-height: 44px;
	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 {
		padding: 30px 20px;
	}

	.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%;
	}
}

@media (max-width: 480px) {
	/* Body text stays at 16px on the smallest screens. This used to drop to
	   14px, which is backwards for an app used one-handed outdoors. */

	#bodyTop {
		padding: 15px;
	}

	#header-right {
		font-size: 15px;
	}

	#main {
		padding: 0;
	}

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

	.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;
	}
}
/* ================================================================
   9. SHARE PHOTO PAGE STYLES
   ================================================================ */

.mission-text {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 1.5em;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1em;
    margin: 1em 0;
    border-radius: 4px;
}

.info-box p {
    margin: 0;
    color: #1565c0;
}

.share-form-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.upload-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.upload-message {
    color: white;
    font-size: 1.5em;
    margin-top: 1.5em;
    font-weight: bold;
    text-align: center;
}

.photo-upload-label {
    display: block;
    cursor: pointer;
}

.photo-input {
    position: absolute;
    left: -9999px;
}

.upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #42a5f5, #1e88e5);
    color: white;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    font-size: 2.8em;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0 auto;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3),
                0 4px 8px rgba(0,0,0,0.2),
                inset 0 -2px 8px rgba(0,0,0,0.2);
    text-align: center;
    line-height: 1.2;
    padding: 20px;
}

.upload-button:hover {
    background: linear-gradient(145deg, #64b5f6, #2196F3);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35),
                0 6px 12px rgba(0,0,0,0.25),
                inset 0 -2px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.upload-button:active {
    transform: translateY(2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25),
                0 2px 4px rgba(0,0,0,0.15),
                inset 0 2px 8px rgba(0,0,0,0.3);
}

.upload-button-green {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #66BB6A, #43A047);
    color: white;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    font-size: 2.8em;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0 auto;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3),
                0 4px 8px rgba(0,0,0,0.2),
                inset 0 -2px 8px rgba(0,0,0,0.2);
    text-align: center;
    line-height: 1.2;
    padding: 20px;
}

.upload-button-green:hover {
    background: linear-gradient(145deg, #81C784, #4CAF50);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35),
                0 6px 12px rgba(0,0,0,0.25),
                inset 0 -2px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.upload-button-green:active {
    transform: translateY(2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25),
                0 2px 4px rgba(0,0,0,0.15),
                inset 0 2px 8px rgba(0,0,0,0.3);
}

.cancel-link {
    display: block;
    text-align: center;
    margin-top: 1em;
    background: none;
    color: #666;
    padding: 0;
    border: none;
    font-size: 1em;
    font-weight: normal;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.cancel-link:hover {
    color: #333;
}

.photo-preview {
    display: none;
    margin-top: 1em;
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.privacy-notice {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    text-align: center;
}

.privacy-notice small {
    color: #666;
}

#action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
}

.share-button {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 1em 2em;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    min-height: 60px;
    transition: background-color 0.3s;
}

.share-button:hover {
    background-color: #45a049;
}

.cancel-button {
    background: none;
    color: #666;
    padding: 0;
    border: none;
    font-size: 1em;
    font-weight: normal;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.cancel-button:hover {
    color: #333;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1.5em;
    border-radius: 4px;
    margin-bottom: 1.5em;
}

.success-message a {
    color: #155724;
    text-decoration: underline;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1.5em;
    border-radius: 4px;
    margin-bottom: 1.5em;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .share-button {
        font-size: 1.1em;
        padding: 0.9em 1.5em;
    }
}

/* END OF SHARE PHOTO PAGE STYLES */

/* ================================================================
   Photo Moderation Styles
   ================================================================ */

.filter-links {
    margin: 1em 0;
    padding: 1em;
    background: #f5f5f5;
    border-radius: 4px;
}

.filter-links a {
    margin-right: 1em;
    text-decoration: none;
    color: #2196f3;
    font-weight: 500;
}

.filter-links a:hover {
    text-decoration: underline;
}

.photo-counts {
    margin: 1em 0;
    padding: 0.5em;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3em;
    margin-top: 2em;
}

.photo-card {
    border: 3px solid #999;
    border-radius: 8px;
    padding: 1.5em;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 1.5em;
}

.photo-card.status-pending {
    border-left: 4px solid #ff9800;
}

.photo-card.status-approved {
    border-left: 4px solid #4caf50;
}

.photo-card.status-rejected {
    border-left: 4px solid #f44336;
}

.photo-thumbnail {
    margin-bottom: 1em;
}

.photo-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.photo-details {
    margin-bottom: 1em;
}

.photo-details p {
    margin: 0.5em 0;
    font-size: 0.9em;
}

.status-badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.photo-actions {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
}

.photo-actions form {
    margin: 0;
}

.btn-approve {
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
    min-width: 100px;
    font-size: 0.95em;
}

.btn-approve:hover {
    background: #45a049;
}

.btn-reject {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
    min-width: 100px;
    font-size: 0.95em;
}

.btn-reject:hover {
    background: #da190b;
}

.btn-delete {
    background: #9e9e9e;
    color: white;
    border: none;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
    min-width: 100px;
    font-size: 0.95em;
}

.btn-delete:hover {
    background: #757575;
}

/* Mobile responsiveness for photo grid */
@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   Latest Photos Page Styles
   ================================================================ */

.latest-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.latest-photo-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.latest-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.latest-photo-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.latest-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-photo-details {
    padding: 1em;
}

.photo-date {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 0.5em 0;
}

.photo-location a {
    color: #2196f3;
    text-decoration: none;
    font-size: 0.9em;
}

.photo-location a:hover {
    text-decoration: underline;
}

.photo-location-notes {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .latest-photos-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   Location Map Page Styles
   ================================================================ */

#map-container {
    margin: 2em 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#map {
    height: 600px;
    width: 100%;
}

.map-info {
    margin-top: 1.5em;
    padding: 1em;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

.map-info p {
    margin: 0.5em 0;
}

.map-popup {
    max-width: 220px;
}

/* Mobile map adjustments */
@media (max-width: 768px) {
    #map {
        height: 400px;
    }
}

/* ---- Training course: sidebar nav, sections, reader feedback ---- */

.training-wrap {
	display: block;
}

/* The nav is a <details> so it collapses on a phone; the media query below
   forces it open and floats it into a sidebar on wider screens. */
.training-nav {
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	margin-bottom: 20px;
}

.training-nav__summary {
	padding: 15px 20px;
	cursor: pointer;
	font-weight: 600;
	color: #2d5a5c;
}

.training-nav__inner {
	padding: 0 20px 20px 20px;
}

.training-nav__title {
	font-weight: 600;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 2px solid #2d5a5c;
}

.training-nav__title a {
	color: #2d5a5c;
	text-decoration: none;
}

.training-nav__group {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6c757d;
	margin: 18px 0 6px 0;
}

.training-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.training-nav__list > li {
	margin-bottom: 6px;
}

.training-nav__link {
	text-decoration: none;
	color: #1a1a1a;
}

.training-nav__link:hover {
	text-decoration: underline;
}

.training-nav__link.is-current {
	font-weight: 700;
	color: #2d5a5c;
}

.training-nav__sections {
	list-style: none;
	margin: 6px 0 12px 0;
	padding: 0 0 0 14px;
	border-left: 2px solid #d7e0e0;
}

.training-nav__sections li {
	margin: 4px 0;
}

.training-nav__sections a {
	font-size: 14px;
	color: #4a4a4a;
	text-decoration: none;
}

.training-nav__sections a:hover {
	text-decoration: underline;
}

.training-section {
	scroll-margin-top: 20px;
}

.training-objective {
	border-left: 4px solid #2d5a5c;
	padding-left: 15px;
}

/* "Link to this section" - the glyph lives here so the anchor contributes no
   text to the heading (training_sectionize reads titles with strip_tags). */
.training-anchor {
	text-decoration: none;
	opacity: 0;
	margin-left: 8px;
	font-size: 0.7em;
	vertical-align: middle;
}

.training-anchor::before {
	content: "\00A7";
}

h2:hover .training-anchor,
h3:hover .training-anchor,
.training-anchor:focus {
	opacity: 0.6;
}

.training-flag {
	margin: 0 40px 30px 40px;
	font-size: 14px;
}

.training-flag__summary {
	cursor: pointer;
	color: #6c757d;
}

.training-flag__summary:hover {
	color: #2d5a5c;
}

.training-flag--signin a {
	color: #6c757d;
}

.training-flag__body {
	padding-top: 10px;
}

.training-flag__label {
	display: block;
	margin-bottom: 6px;
}

.training-flag__note {
	width: 100%;
	max-width: 600px;
	display: block;
	margin-bottom: 10px;
}

@media (min-width: 1140px) {
	/* The 800px shell has no room for a sidebar, so training pages get a wider
	   one. Only widens when the viewport can actually take it. */
	body.page-training #bodyWrap {
		max-width: 1100px;
	}

	.training-wrap {
		display: flex;
		align-items: flex-start;
		gap: 30px;
	}

	.training-nav {
		flex: 0 0 260px;
		position: sticky;
		top: 20px;
		margin-bottom: 0;
	}

	/* Override the UA rule that hides a closed <details>' contents. */
	.training-nav > .training-nav__summary {
		display: none;
	}

	.training-nav > .training-nav__inner {
		display: block !important;
		padding-top: 20px;
	}

	.training-main {
		flex: 1 1 auto;
		min-width: 0;
	}
}

@media (max-width: 480px) {
	.training-flag {
		margin-left: 20px;
		margin-right: 20px;
	}
}

/* Print - guide sections get printed and kept behind a counter, so they have to
   come off the printer as a clean document. Applies site-wide. */
@media print {
    #header-left, #header-right, #footer, .action-bar,
    .training-nav, .training-flag, .training-anchor { display: none; }
    /* draft/status notices must survive onto paper - a printed outline that looks
       finished when it isn't is the whole failure mode here */
    .alert { background: #fff; color: #000; border: 1px solid #000; }
    body, #bodyWrap, .widget_body, .section-content {
	background: #fff;
	color: #000;
	box-shadow: none;
	border: none;
	max-width: none;
	margin: 0;
	padding: 0;
    }
    .section-content { margin-bottom: 1.5em; page-break-inside: avoid; }
    h1, h2, h3 { color: #000; page-break-after: avoid; }
    table { page-break-inside: avoid; }
    a { color: #000; text-decoration: none; }
}
