/*
Theme Name: GeneratePress Child - Northampton Rooms
Template: generatepress
Version: 1.0
Description: Child theme for the Northampton student rooms site, with custom Room templates.
*/

/* Hide the fallback text site title now that a logo image is set */
.site-logo + .site-branding {
	display: none;
}

.site-logo {
	padding-left: 0;
}

/* The new SVG logo has no stored width/height (unlike the old PNG), so
   without this it renders at its native, oversized dimensions. */
.header-image.is-logo-image {
	height: 125px;
	width: auto;
}

.inside-header {
	padding-left: 0;
}

/* --- Room archive grid --- */
.nr-rooms-archive__intro {
	max-width: 640px;
	margin: 12px 0 0;
	color: #555;
	line-height: 1.6;
	font-size: 1.05em;
}

.nr-rooms-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 24px 0 8px;
	padding: 16px;
	background: #f7f7f7;
	border-radius: 8px;
}

.nr-filter-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nr-filter-group label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #777;
}

.nr-filter-group select {
	padding: 6px 10px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	background: #fff;
	font-size: 0.95em;
	min-width: 160px;
}

.nr-js-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 24px 0;
	grid-column: 1 / -1;
}

.nr-js-pagination button {
	padding: 8px 18px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 0.9em;
}

.nr-js-pagination button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.nr-js-pagination__status {
	font-size: 0.9em;
	color: #555;
}

.nr-rooms-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 30px 0;
}

@media (max-width: 800px) {
	.nr-rooms-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 550px) {
	.nr-rooms-grid {
		grid-template-columns: 1fr;
	}
}

.nr-room-card {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.nr-room-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.nr-room-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.nr-room-card__body {
	padding: 16px;
}

.nr-room-card__title {
	margin: 0 0 8px;
	font-size: 1.1em;
}

.nr-room-card__title a {
	text-decoration: none;
	color: inherit;
}

.nr-room-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 0.9em;
	color: #555;
}

.nr-room-card__price {
	font-weight: 700;
	color: #1a1a1a;
}

.nr-room-card__desc {
	margin: 10px 0 0;
	font-size: 0.9em;
	color: #555;
	line-height: 1.4;
}

.nr-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.nr-badge--available {
	background: #e3f7e8;
	color: #1a7d3a;
}

.nr-badge--reserved {
	background: #fdf0dc;
	color: #b8600b;
}

.nr-badge--next-year {
	background: #eaf1fb;
	color: #1a5ba8;
}

.nr-badge--let {
	background: #fbe4e4;
	color: #c0392b;
}

/* --- Single room page --- */
.nr-room-single__breadcrumb {
	margin: 20px 0 16px;
	font-size: 0.9em;
	color: #777;
}

.nr-room-single__breadcrumb a {
	color: #1a2b52;
	text-decoration: none;
}

.nr-room-single__breadcrumb a:hover {
	text-decoration: underline;
}

.nr-room-single__breadcrumb span[aria-hidden] {
	margin: 0 6px;
	color: #bbb;
}

.nr-room-single__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 800px) {
	.nr-room-single__layout {
		grid-template-columns: 1fr;
	}
}

.nr-room-single__title {
	margin: 0 0 12px;
	font-size: 2.2em;
}

.nr-room-single__intro {
	color: #555;
	line-height: 1.6;
	margin: 0 0 28px;
	font-size: 1.05em;
}

.nr-room-single__features {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nr-room-feature {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.nr-room-feature__icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #eef1fa;
	color: #1a2b52;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nr-room-feature__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nr-room-feature__text strong {
	font-size: 1.02em;
}

.nr-room-feature__text span {
	color: #666;
	font-size: 0.92em;
	line-height: 1.5;
}

.nr-room-single__hero {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 12px;
}

.nr-room-single__hero img {
	width: 100%;
	height: 340px;
	object-fit: cover;
	display: block;
}

.nr-room-hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.9);
	color: #1a2b52;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nr-room-hero-nav:hover {
	background: #fff;
}

.nr-room-hero-nav svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.nr-room-hero-nav--prev {
	left: 12px;
}

.nr-room-hero-nav--next {
	right: 12px;
}

.nr-room-single__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}

.nr-room-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #d5d5d5;
	padding: 0;
	cursor: pointer;
}

.nr-room-dot.is-active {
	background: #1a2b52;
}

.nr-room-single__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.nr-room-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	line-height: 0;
}

.nr-room-thumb img {
	width: 100%;
	height: 80px;
	object-fit: cover;
	display: block;
}

.nr-room-thumb.is-active {
	border-color: #1a2b52;
}

.nr-room-single__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 32px 0;
	padding: 20px;
	background: #f7f7f7;
	border-radius: 10px;
}

.nr-room-single__fact {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nr-room-single__fact-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #eef1fa;
	color: #1a2b52;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nr-room-single__fact-label {
	display: block;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #888;
	margin-bottom: 2px;
}

.nr-room-single__fact-value {
	font-size: 1.1em;
	font-weight: 700;
}

.nr-room-single__cta {
	display: inline-block;
	padding: 12px 28px;
	background: #1a2b52;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
}

.nr-room-single__cta:hover {
	background: #2a3d6b;
	color: #fff;
}

.nr-room-single__description {
	margin-top: 20px;
	line-height: 1.7;
}

/* --- Contact form --- */
.nr-contact-form {
	max-width: 520px;
	margin: 20px 0;
}

.nr-contact-form__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 18px;
}

.nr-contact-form__row label {
	font-size: 0.9em;
	font-weight: 600;
	color: #333;
}

.nr-contact-form__row input,
.nr-contact-form__row textarea {
	padding: 10px 12px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	font-size: 1em;
	font-family: inherit;
}

.nr-contact-form button {
	border: none;
	cursor: pointer;
	font-size: 1em;
}

.nr-contact-form__notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.nr-contact-form__notice--success {
	background: #e3f7e8;
	color: #1a7d3a;
}

.nr-contact-form__notice--error {
	background: #fbe4e4;
	color: #c0392b;
}

/* --- Property floor plans --- */
.nr-property-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0;
	border-bottom: 1px solid #e2e2e2;
	padding-bottom: 0;
}

.nr-property-tab {
	padding: 10px 20px;
	border: none;
	background: transparent !important;
	cursor: pointer;
	font-size: 0.95em;
	font-weight: 600;
	color: #777;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}

.nr-property-tab.is-active {
	color: #eaf1fb;
	background: #1a2b52 !important;
	border-bottom-color: #1a2b52;
	border-radius: 6px 6px 0 0;
}

.nr-property-tab:hover {
	background: #1a2b52 !important;
	color: #fff;
	border-radius: 6px 6px 0 0;
}

.nr-property-panel {
	display: none;
}

.nr-property-panel.is-active {
	display: block;
}

.nr-property-plan-image {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #e2e2e2;
	margin: 20px 0;
}

.nr-property-room-links {
	margin-top: 16px;
}

.nr-property-room-links ul {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nr-property-room-links li a {
	display: inline-block;
	padding: 6px 14px;
	background: #eef1fa;
	color: #1a2b52;
	text-decoration: none;
	border-radius: 20px;
	font-size: 0.9em;
	font-weight: 600;
}

.nr-property-room-links li a:hover {
	background: #1a2b52;
	color: #fff;
}

.nr-property-communal-note {
	color: #777;
	font-style: italic;
	margin-top: 16px;
}

.nr-facility-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 20px;
}

@media (max-width: 800px) {
	.nr-facility-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.nr-facility-grid {
		grid-template-columns: 1fr;
	}
}

.nr-facility-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 14px;
}

.nr-facility-photos {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}

.nr-facility-photos img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.nr-facility-photos--multi img {
	width: 50%;
}

.nr-facility-label {
	font-weight: 600;
	color: #1a2b52;
}

.nr-facility-note {
	color: #777;
	font-size: 0.85em;
	margin-top: 4px;
}

.nr-facility-card--placeholder {
	border-style: dashed;
}

.nr-facility-placeholder-box {
	width: 100%;
	height: 150px;
	border-radius: 6px;
	background: #f5f6f9;
	color: #999;
	display: flex;
	align-items: center;
	justify-content: center;
	font-style: italic;
	font-size: 0.9em;
}

.nr-room-shared-facilities {
	margin: 24px 0;
	padding: 16px;
	background: #f5f6f9;
	border-radius: 10px;
}

.nr-room-shared-facilities strong {
	color: #1a2b52;
}

.nr-room-shared-facilities__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 10px;
}

.nr-room-shared-facility {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 20px;
	padding: 6px 14px 6px 6px;
	text-decoration: none;
	color: #1a2b52;
	font-weight: 600;
	font-size: 0.9em;
}

.nr-room-shared-facility img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.nr-room-shared-facility:hover {
	background: #eef1fa;
}

/* --- Homepage --- */
.nr-hero {
	position: relative;
	background-color: #1a2b52;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	padding: 70px 0 40px;
	text-align: center;
}

.nr-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(26, 43, 82, 0.72);
}

.nr-hero > .grid-container {
	position: relative;
	z-index: 1;
}

.nr-hero__title {
	font-size: 2.6em;
	margin: 0 0 16px;
	color: #fff;
}

.nr-hero__subtitle {
	font-size: 1.15em;
	max-width: 640px;
	margin: 0 auto 28px;
	color: #d8dfef;
	line-height: 1.6;
}

.nr-hero__cta {
	background: #fff;
	color: #1a2b52;
}

.nr-hero__cta:hover {
	background: #eef1fa;
	color: #1a2b52;
}

.nr-hero__contact-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid rgba(255,255,255,0.2);
}

.nr-hero__contact-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.92em;
}

.nr-hero__contact-group a {
	color: #fff;
	text-decoration: none;
}

.nr-hero__contact-group a:hover {
	text-decoration: underline;
}

.nr-hero__contact-label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
	margin-bottom: 2px;
}

.nr-section {
	padding: 64px 0;
}

.nr-section--alt {
	background: #f7f7f7;
}

.nr-section--white {
	background: #fff;
}

.nr-section__title {
	text-align: center;
	font-size: 2em;
	margin: 0 0 12px;
}

.nr-section__intro {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 40px;
	color: #555;
	line-height: 1.6;
	font-size: 1.05em;
}

.nr-section__intro--wide {
	max-width: 820px;
}

.nr-feature-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 800px) {
	.nr-feature-cards {
		grid-template-columns: 1fr;
	}
}

.nr-feature-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	text-align: center;
}

.nr-feature-card__image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.nr-feature-card__body {
	padding: 28px;
}

.nr-feature-card h3 {
	margin: 0 0 10px;
	color: #1a2b52;
}

.nr-feature-card p {
	color: #555;
	line-height: 1.6;
	margin: 0;
}

.nr-amenities-list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 900px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}

@media (max-width: 800px) {
	.nr-amenities-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.nr-amenities-list {
		grid-template-columns: 1fr;
	}
}

.nr-amenities-list li {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 28px 16px;
	font-weight: 600;
	color: #1a2b52;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.nr-amenity-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #eef1fa;
	color: #1a2b52;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nr-home-links {
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.nr-home-links__secondary {
	color: #1a2b52;
	text-decoration: none;
	font-weight: 600;
}

.nr-home-links__secondary:hover {
	text-decoration: underline;
}

.nr-testimonial {
	max-width: 720px;
	margin: 0 auto;
	padding: 0;
	border: none;
}

.nr-testimonial p {
	font-size: 1.1em;
	line-height: 1.7;
	color: #333;
}

.nr-testimonial footer {
	margin-top: 12px;
	font-weight: 600;
	color: #1a2b52;
}

.nr-testimonial__rating {
	text-align: center;
	margin-top: 24px;
	color: #555;
}

.nr-testimonial__rating a {
	color: #1a2b52;
}

.nr-cta {
	background: #1a2b52;
	color: #fff;
	padding: 60px 0;
	text-align: center;
}

.nr-cta h2 {
	color: #fff;
	margin: 0 0 12px;
}

.nr-cta p {
	color: #d8dfef;
	margin: 0 0 24px;
}

.nr-cta__button {
	background: #fff;
	color: #1a2b52;
}

.nr-cta__button:hover {
	background: #eef1fa;
	color: #1a2b52;
}

/* --- Split sections (Our Accommodation / Testimonial) --- */
.nr-split-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

@media (max-width: 800px) {
	.nr-split-section {
		grid-template-columns: 1fr;
	}
}

.nr-section__title--left,
.nr-section__intro--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.nr-home-links--left {
	justify-content: flex-start;
}

.nr-testimonial--left,
.nr-testimonial__rating--left {
	text-align: left;
	margin-left: 0;
}

.nr-image-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #e9ecf2;
	border: 2px dashed #b9c2d6;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8592ac;
	font-weight: 600;
	font-size: 1.05em;
}

.nr-split-section__photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

/* --- Accreditation logos --- */
.nr-accreditation-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 48px;
	margin-top: 20px;
}

.nr-accreditation-logo {
	display: flex;
	align-items: center;
	height: 38px;
	width: auto;
}

.nr-accreditation-logo svg,
.nr-accreditation-logo img {
	height: 100%;
	width: auto;
	display: block;
}

.nrla-logo .logo-primary {
	fill: #173b54;
}

.nrla-logo .logo-secondary {
	fill: #f37321;
}

/* --- Footer social icons --- */
.nr-footer-social {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 12px;
}

.nr-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #eef1fa;
	color: #1a2b52;
}

.nr-footer-social a:hover {
	background: #1a2b52;
	color: #fff;
}

.nr-footer-copyright {
	text-align: center;
	color: #555;
	font-size: 0.9em;
}

/* Hide GeneratePress's default "Built with GeneratePress" credits line,
   without disturbing our own social icons / copyright line above it. */
.copyright-bar {
	font-size: 0;
}

.copyright-bar .nr-footer-social,
.copyright-bar .nr-footer-copyright {
	font-size: 1rem;
}

.copyright-bar > .copyright,
.copyright-bar a[href="https://generatepress.com"] {
	display: none;
}

/* --- About page --- */
.nr-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	text-align: center;
	margin-bottom: 40px;
}

@media (max-width: 800px) {
	.nr-stats {
		grid-template-columns: 1fr;
	}
}

.nr-stat__number {
	font-size: 2.8em;
	font-weight: 700;
	color: #1a2b52;
	line-height: 1;
}

.nr-stat__label {
	font-weight: 600;
	margin: 8px 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.9em;
	color: #555;
}

.nr-stat p {
	color: #666;
	line-height: 1.6;
	margin: 0;
}

.nr-team {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

@media (max-width: 600px) {
	.nr-team {
		grid-template-columns: 1fr;
	}
}

.nr-image-placeholder--team {
	display: none; /* hidden until Joanne & Alan's real photos are ready */
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	max-width: 200px;
	margin: 0 auto 16px;
}

.nr-team-member h3 {
	margin: 0 0 4px;
	color: #1a2b52;
}

.nr-team-member p {
	color: #666;
	margin: 0;
}

/* --- Contact page --- */
.nr-contact-layout {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 48px;
	align-items: start;
	margin-top: 20px;
}

@media (max-width: 800px) {
	.nr-contact-layout {
		grid-template-columns: 1fr;
	}
}

.nr-contact-layout__details {
	display: flex;
	flex-direction: column;
	gap: 28px;
	background: #f7f7f7;
	border-radius: 10px;
	padding: 28px;
}

.nr-contact-info-block__label {
	display: block;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #888;
	margin-bottom: 8px;
}

.nr-contact-info-block h3 {
	margin: 0 0 8px;
	color: #1a2b52;
	font-size: 1.1em;
}

.nr-contact-info-block p {
	margin: 0 0 4px;
}

.nr-contact-info-block a {
	color: #1a2b52;
	text-decoration: none;
}

.nr-contact-info-block a:hover {
	text-decoration: underline;
}

.nr-contact-social-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.nr-footer-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #eef1fa;
	color: #1a2b52;
	flex: 0 0 auto;
}

/* --- No-photo placeholders --- */
.nr-image-placeholder--card {
	aspect-ratio: 4 / 3;
	border-radius: 0;
	border-width: 1px;
	font-size: 0.9em;
}

.nr-image-placeholder--single {
	aspect-ratio: 4 / 3;
	margin-bottom: 12px;
}
