/* ==========================================================================
   Virginia City Grand Prix — attending-the-event-styles.css
   Page-specific styles for the Attending The Event subpage.
   Load after styles.css and subpage-styles.css.
   ========================================================================== */

/* ---------- Event Info band (parchment section wrapping the tile grid) ---------- */
.subpage-content.event-info-band {
  background: var(--parchment);
  padding-top: 80px;
}
.event-info-band h2 { text-align: center; margin-bottom: 1em; }

/* ---------- Event Info photo-tile grid (hotels, camping, dining, etc.) ---------- */
.info-tile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin: 0 0 0.5em;
}

.info-tile {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 190px;
	overflow: hidden;
	border-radius: var(--radius);

	/* Fallback color plus fixed photo positioning */
	background-color: var(--charcoal-3);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;

	isolation: isolate;
	box-shadow: 0 5px 15px rgba(27, 23, 18, 0.18);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

/* Dark overlay for readable text */
.info-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		160deg,
		rgba(193, 135, 63, 0.35),
		rgba(27, 23, 18, 0.55)
	);
	transition: background 0.25s ease;
}

.info-tile-label {
	padding: 0 16px;
	color: var(--white);
	font-family: var(--font-display);
	font-size: 1.1rem;
	letter-spacing: 0.1em;
	text-align: center;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	transition: color 0.25s ease;
}

/* Card lifts slightly, but the photo remains stationary */
.info-tile:hover,
.info-tile:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(27, 23, 18, 0.3);
	background-position: center;
	background-size: cover;
}

.info-tile:hover::before,
.info-tile:focus-visible::before {
	background: linear-gradient(
		160deg,
		rgba(193, 135, 63, 0.18),
		rgba(27, 23, 18, 0.45)
	);
}

.info-tile:hover .info-tile-label,
.info-tile:focus-visible .info-tile-label {
	color: var(--cream);
}

.info-tile:focus-visible {
	outline: 3px solid var(--rust);
	outline-offset: 4px;
}

@media (max-width: 640px) {
	.info-tile-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Visitor-conduct rule list (icon + rule text) ---------- */
.rules-list {
  margin: 1.2em 0 1.4em;
  display: grid;
  gap: 12px;
}
.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rules-list .rule-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--parchment);
  border: 1px solid #e7e0d2;
  color: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  margin-top: 1px;
}

/* Event information image cards */
.info-tile-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.info-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 190px;
	overflow: hidden;
	border-radius: 4px;
	background-color: var(--charcoal);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: 0 5px 15px rgba(27, 23, 18, 0.18);
	text-decoration: none;
	isolation: isolate;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

/* Dark overlay for readable text */
.info-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		180deg,
		rgba(27, 23, 18, 0.08) 25%,
		rgba(27, 23, 18, 0.82) 100%
	);
	transition: background 0.25s ease;
}

.info-tile-label {
	display: block;
	width: 100%;
	padding: 18px 12px;
	color: var(--white);
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.info-tile:hover,
.info-tile:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(27, 23, 18, 0.3);
}

.info-tile:hover::before,
.info-tile:focus-visible::before {
	background: linear-gradient(
		180deg,
		rgba(27, 23, 18, 0) 20%,
		rgba(27, 23, 18, 0.68) 100%
	);
}

.info-tile:focus-visible {
	outline: 3px solid var(--rust);
	outline-offset: 4px;
}

@media (max-width: 1100px) {
	.info-tile-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.info-tile-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.info-tile {
		min-height: 165px;
	}
}

@media (max-width: 460px) {
	.info-tile-grid {
		grid-template-columns: 1fr;
	}

	.info-tile {
		min-height: 210px;
	}
}

/* Tighten spacing between Parking and Visitor Conduct */
#camping {
	padding-bottom: 30px;
}

.conduct-section {
	padding-top: 30px;
}
