/* ============================================================
   Farnham Road Club - style.css
   Replaces asm_css.css + css.css; adds responsive layout.
   ============================================================ */

/* === BASE ELEMENTS === */
P { margin-top: 3px; margin-bottom: 8px; }
A { color: #000000; }
BODY { font-size: 75%; margin: 0px; color: #000000; font-family: Arial, Helvetica, sans-serif; }
IMG { border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px; }
LI { line-height: 15px; text-align: left; }
PRE { font-size: 90%; font-family: Geneva, Arial, Helvetica, sans-serif; }
UL { padding-right: 5px; padding-left: 5px; padding-bottom: 5px; margin: 15px; padding-top: 5px; }
INPUT {}
TEXTAREA { font-size: 100%; font-family: Arial, Helvetica, sans-serif; background-color: #f5f5f5; }
LEGEND { border: #000000 1px solid; padding: 2px 6px; font-weight: bold; color: #000000; background-color: #97b1ff; }

/* === HEADINGS === */
H1 { margin-top: 10px; font-weight: bold; font-size: 95%; color: #ffffff; font-family: Arial, Helvetica, sans-serif; }
H2 { margin-top: 4px; font-weight: bold; font-size: 130%; margin-bottom: 10px; color: #4179c5; border-bottom: #dff2ff 1px solid; font-family: Arial, Helvetica, sans-serif; }
H3 { font-weight: bold; font-size: 120%; color: #000066; }
H4 { font-weight: bold; font-size: 100%; }

/* === UTILITY CLASSES === */
.address    { padding-right: 5px; font-weight: bold; font-size: 105%; font-family: Arial, Helvetica, sans-serif; }
.bold       { font-weight: bold; }
.breadcrumb { font-size: 90%; text-align: left; }
.button     { color: #ffffff; background-color: #6699cc; }
.centre     { font-size: 0.85em; color: Gray; text-align: center; }
.centre marquee { font-size: 1.20em; }
.county     { font-size: 75%; text-align: center; }
.custservices { margin-top: 10px; font-weight: bold; font-size: 100%; color: #ffffff; font-family: Arial, Helvetica, sans-serif; }
.external   { color: #230046; text-decoration: underline; }
.external:hover { color: #410082; text-decoration: none; }
.filetype   { font-size: 0.85em; color: Gray; }
.green      { font-weight: bold; color: #009933; text-decoration: none; }
.grey       { color: #999999; }
.headline   { font-weight: bold; color: #000066; text-decoration: none; }
.hide       { display: none; }
.homepage-headings { margin-top: 1px; font-weight: bold; font-size: 120%; margin-bottom: 5px; color: #000066; line-height: 25px; border-bottom: #000066 2px solid; font-family: Verdana, Arial, Helvetica, sans-serif; }
.homepageimageleft { float: left; margin-bottom: 28px; margin-right: 5px; }
.homepagelink { font-weight: normal; }
.homepagetable1, .homepagetable2, .homepagetable3 { font-size: 90%; vertical-align: top; font-family: Verdana, Arial, Helvetica, sans-serif; }
.howlink    { font-size: 95%; color: #333333; font-family: Geneva, Arial, Helvetica, sans-serif; text-decoration: none; }
.howlink:hover { font-family: Geneva, Arial, Helvetica, sans-serif; text-decoration: underline; }
.imageleft  { padding-right: 5px; float: left; }
.imageright { padding-left: 5px; float: right; }
.italic     { font-style: italic; }
.label      { margin-top: 2px; display: block; float: left; width: 70px; margin-right: 2px; }
.left       { text-align: left; }
.marquee    { color: #ffffff; background-color: #ff0000; font-weight: bold; }
.menulinks  { color: #000000; text-decoration: none; }
.menulinks:hover { color: #000000; text-decoration: underline; }
.newsbold   { font-weight: bold; font-size: 100%; color: #000066; font-family: Arial, Helvetica, sans-serif; }
.newsbold2  { padding: 2px 2px 2px 5px; color: #1c3383; border-bottom: #006699 thin solid; }
.newslink   { font-weight: normal; color: #840000; text-align: left; text-decoration: underline; }
.newslink:hover { color: #ff0000; text-decoration: none; }
.numbers    { padding-right: 5px; font-size: 80%; }
.priority   { font-weight: bold; font-size: 120%; color: #000066; font-family: Arial, Helvetica, sans-serif; }
.priority2  { font-weight: bold; font-size: 120%; color: #cc6600; font-family: Arial, Helvetica, sans-serif; }
.red        { font-weight: bold; color: #ff0000; text-decoration: none; }
.related    { color: #333399; text-decoration: underline; }
.related:hover { color: #0042cc; text-decoration: none; }
.right      { text-align: right; }
.rightmenu  { border-right: #ffffff 2px outset; border-top: #a6dbff 4px solid; margin-top: 10px; padding: 2px; font-size: 95%; float: right; border-left: #e6f4ff 2px solid; width: 170px; color: #000000; border-bottom: #a6dbff 4px outset; background-color: #ffffff; text-align: center; }
.rowhigh, .rowlow { padding: 3px; }
.small      { font-size: 100%; font-family: Geneva, Arial, Helvetica, sans-serif; }
.submit INPUT { left: 75px; margin-bottom: 5px; color: #003366; position: relative; background-color: #f0f0ff; }
.table      { background-color: #e8eff7; text-align: center; }
.titlecase  { text-transform: capitalize; }
.useful     { color: #002400; text-decoration: underline; }
.useful:hover { color: #005300; text-decoration: none; }
.whiteout   { background: #fff; color: #fff; }
.box1, .box2, .box3 { padding: 5px; font-weight: bold; font-size: 120%; color: #ffffff; background-color: #003366; }
.boxlinks       { font-weight: normal; color: #000066; text-decoration: none; }
.boxlinks:hover { color: #000066; text-decoration: underline; }
.content { padding: 2px; overflow: auto; }

/* Rollover nav buttons */
.rollover1 A { display: block; font-weight: bold; font-size: 95%; padding: 5px 0; width: auto; color: #000000; text-indent: 15px; font-family: Arial, Helvetica, sans-serif; height: 20px; background-color: #a3a9c5; text-decoration: none; border-bottom: 1px solid #7a8099; }
.rollover1 A:hover { background-image: url(arrow.gif); color: #003399; background-repeat: no-repeat; background-color: #b7bbcf; }
#navigation { border-top: 1px solid #7a8099; }

/* Thumbnail gallery */
.thumbslist { margin: 10px 0 0 0; clear: both; overflow: hidden; }
.thumbslist UL { padding: 0; margin: 0; list-style-type: none; text-align: center; border: none; }
.thumbslist UL LI { display: block; float: left; padding: 0; margin: 0; width: 120px; height: 200px; text-align: center; background: none; }

#ticker { color: #ffffff; font-weight: bold; text-align: center; width: 370px; margin: 0 auto; }
#asmbotleft  { width: 10%; float: left; }
#asmbotright { width: 10%; float: right; }
#asmbotcentre { width: 80%; }

/* ============================================================
   LAYOUT - SITE HEADER
   ============================================================ */
.site-header { width: 100%; }

.topmenubar { font-weight: bold; font-size: 130%; background-image: url(topmenubar.gif); background-repeat: repeat-x; width: 100%; color: #ffffff; font-family: Arial, Helvetica, sans-serif; height: 40px; line-height: 40px; padding-left: 8px; box-sizing: border-box; }

.menubar { background-position: center 50%; background-image: url(banner.gif); background-repeat: no-repeat; width: 100%; height: 88px; }

.header-bottom { display: flex; align-items: stretch; }
.infobar { width: 205px; flex-shrink: 0; background-color: #091573; text-align: center; display: flex; align-items: center; justify-content: center; }
.infobar H1 { margin: 0; padding: 0; }
.bottommenubar { flex: 1; background-image: url(bottommenubar.gif); background-repeat: repeat-x; height: 40px; text-align: right; padding-top: 7px; box-sizing: border-box; overflow: hidden; }

/* ============================================================
   LAYOUT - SITE BODY (flexbox row: sidebar + content)
   ============================================================ */
.site-body { display: flex; flex-direction: row; align-items: flex-start; }

.sidebar { width: 205px; flex-shrink: 0; }



.nav-toggle { display: none; width: 100%; background: #6d748f; color: #fff; border: none; font-size: 1.3em; padding: 7px 12px; cursor: pointer; text-align: left; box-sizing: border-box; }

.nav-links { display: block; }

.navigation { width: 100%; height: auto; }

#homepagebox { flex: 1; min-width: 0; padding: 10px 15px; box-sizing: border-box; }

#frccontent { width: 100%; float: none; margin-bottom: 10px; padding-bottom: 10px; border-bottom: solid 1px #a0a0a0; }

#frccontent img { max-width: 90%; }

/* ============================================================
   LAYOUT - SITE FOOTER
   ============================================================ */
.site-footer { clear: both; text-align: center; padding: 10px; border-top: 1px solid #cccccc; font-size: 90%; }
.footer { clear: both; }

/* ============================================================
   EVENTS TABLE (moved from events.html inline style)
   ============================================================ */
#frccontent table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
#frccontent th, #frccontent td { border: 1px solid #bbb; padding: 4px 6px; text-align: left; }
#frccontent th { background-color: #e0e0e0; font-weight: bold; }
#frccontent tr:nth-child(even) td { background-color: #f5f5f5; }
.row-bold td { font-weight: bold; }
.notes { margin-top: 1.5rem; font-size: 0.9rem; color: #444; }
.notes p { margin: 0.4rem 0; }

/* ============================================================
   ROUTE GRID / CARDS (moved from courses.php inline style)
   ============================================================ */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 16px 0; }
.route-card { border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.route-card-link { display: block; text-decoration: none; color: inherit; }
.route-card-link:hover .route-card-header { background: #1a2a8f; }
.route-card-header { background: #091573; color: #fff; padding: 6px 10px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-map { height: 250px; background: #e8e8e8; display: flex; align-items: center; justify-content: center; color: #555; font-size: 0.85em; }
.route-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background: #f5f5f5; border-top: 1px solid #ddd; font-size: 0.85em; }
.route-distance { color: #333; font-weight: bold; }
.route-download { background: #4179c5; color: #fff; padding: 3px 10px; border-radius: 3px; text-decoration: none; white-space: nowrap; }
.route-download:hover { background: #2d5fa8; color: #fff; }

/* ============================================================
   COURSE DETAIL PAGE (moved from course.php inline style)
   ============================================================ */
.course-back { margin-bottom: 8px; font-size: 0.9em; }
.course-back a { color: #091573; text-decoration: none; }
.course-back a:hover { text-decoration: underline; }
.course-stats { background: #f0f4fb; border: 1px solid #c5d4ef; border-radius: 4px; padding: 8px 14px; margin-bottom: 14px; font-size: 1em; font-weight: bold; color: #333; }
#course-map { height: 420px; width: 100%; margin-bottom: 14px; border-radius: 4px; border: 1px solid #ccc; }
.elev-chart-wrap { margin-bottom: 20px; border: 1px solid #ccc; border-radius: 4px; padding: 10px; background: #fafafa; }
.elev-chart-wrap canvas { width: 100% !important; }
.meta-section { margin-top: 20px; }
.meta-section h3 { border-bottom: 2px solid #091573; padding-bottom: 4px; color: #091573; }
.cake-stop-card { border: 1px solid #ddd; border-radius: 4px; padding: 12px; background: #fffdf8; margin-bottom: 14px; }
.cake-stop-card p { margin: 4px 0; }
.cake-photos { margin-top: 10px; }
.cake-photos img { max-width: 100%; border-radius: 4px; margin-bottom: 6px; }
.review-item { border-left: 3px solid #4179c5; padding: 6px 10px; margin-top: 8px; background: #f5f8ff; border-radius: 0 4px 4px 0; }
.review-score { font-weight: bold; color: #091573; }
.media-section { margin-top: 20px; }
.media-item { display: none; }
.media-item.active { display: block; }
.media-item video, .media-item img { max-width: 100%; border-radius: 4px; }
.carousel-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.carousel-btn { background: #091573; color: #fff; border: none; padding: 6px 14px; border-radius: 3px; cursor: pointer; font-size: 0.9em; }
.carousel-btn:hover { background: #1a2a8f; }
.carousel-counter { font-size: 0.9em; color: #555; }
.media-link { display: inline-block; margin-top: 6px; font-size: 0.85em; color: #4179c5; }
.gpx-download-wrap { margin-top: 10px; }

/* ============================================================
   RESPONSIVE - mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
	.site-body { flex-direction: column; }
	.sidebar { width: 100%; }
	.nav-toggle { display: block; }
	.nav-links { display: none; }
	.nav-links.open { display: block; }
	.bottommenubar { display: none; }
	.menubar { background-size: contain; height: 60px; }
	#homepagebox { padding: 8px; }
	.route-grid { grid-template-columns: 1fr; }
	#course-map { height: 280px; }
	.events-scroll { overflow-x: auto; }
}
