/* Define CSS variables for colors */


:root {
	--background: #CFC4B1;
	--text-colour: #676127;
	--button-border: #141414;

	--font: 'Cormorant Garamond', serif;
}


@media (prefers-color-scheme: dark) {
	:root {
		--background: #141414;
		--text-colour: #676137;
		--button-border: #CFC4B1;
	}
}



:root {
	--fc-border-color: grey;
	--fc-button-text-color: var(--button-border);
	--fc-button-bg-color: var(--background);
	--fc-button-border-color: var(--button-border);

	--fc-button-hover-bg-color: var(--text-colour);
	--fc-button-hover-border-color: var(--button-border);

	--fc-button-active-bg-color: var(--text-colour);
	--fc-button-active-border-color: var(--button-border);

	--fc-event-text-color: #CFC4B1;
	--fc-event-bg-color: #7f3723;
	--fc-event-border-color: var(--text-colour);
}

body {
	font-family: var(--font);
	background-color: var(--background);
	color: var(--text-colour);
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

header.newspaper-header {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 1rem 2rem;
	height: 120px;
	border-bottom: 2px solid var(--text-colour);
	background-color: var(--background);
	color: var(--text-colour);
	box-sizing: border-box;
	font-family: var(--font);
}

.newspaper-header h1 {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	font-size: var(--title-font-size);
}

header.newspaper-header nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

header.newspaper-header .menu-toggle {
	font-size: var(--base-font-size);
	text-decoration: none;
	color: var(--text-colour);
	padding: 0.85rem 1.6rem;
	border: 2px solid var(--text-colour);
	border-radius: 4px;
	background-color: transparent;
	transition: background-color 0.3s, color 0.3s;
	cursor: pointer;
}

header.newspaper-header .menu-toggle:hover {
	background-color: var(--text-colour);
	color: var(--background);
}

nav.fullscreen-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--background);
	z-index: 1000;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

nav.fullscreen-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

nav.fullscreen-menu li {
	margin: 1rem 0;
}

nav.fullscreen-menu a {

	color: var(--text-colour);
	text-decoration: none;
	font-size: 1.5rem;
}

main {
	flex: 1;
	padding: 1rem;
}

#calendar {
	margin-bottom: 2rem;
}

.fc .fc-col-header-cell {
	background-color: var(--text-colour);
	color: var(--background);
	padding: 0.5rem;
}

.fc .fc-col-header{
	background-color: var(--background);
}

#booking-form {
	display: none;
	flex-direction: column;
}

#booking-form label {
	margin-top: 1rem;
}

#booking-form input,
#booking-form textarea,
#booking-form button {
	width: auto;
	font-size: 1.4rem;
	font-family: 'Cormorant Garamond', serif;
	padding: 0.5rem;
	margin-top: 0.5rem;
	border: 1px solid var(--text-colour);
	border-radius: 4px;
	background-color: var(--background);
	color: var(--text-colour);
}

#booking-form input:focus,
#booking-form textarea:focus {
	background-color: var(--background);
	border-color: var(--text-colour);
	outline: none;
}

#booking-form input:-webkit-autofill {
	background-color: var(--background) !important;
	color: var(--text-colour) !important;
	border: 1px solid var(--text-colour)!important;
	-webkit-box-shadow: 0 0 0px 1000px var(--background) inset;
	-webkit-text-fill-color: var(--text-colour)!important;
}

#booking-form button {
	background-color: var(--text-colour);
	color: var(--background);
	border: none;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

#booking-form button:hover {
	background-color: var(--background);
	color: var(--text-colour);
	border: 1px solid var(--text-colour);
	border-color: var(--text-colour);
}

/* Header: center logo, align left edge of language selector and logo */
header.newspaper-header {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 1rem 2rem;
	height: 120px;
	border-bottom: 2px solid var(--text-colour);
	background-color: var(--background);
	color: var(--text-colour);
	box-sizing: border-box;
	font-family: var(--font);
}


.newspaper-header .logo {
	width: 150px;
	height: auto;
	margin: 0 2rem;
	display: block;
}

.newspaper-header nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

/* Logo styles (match home.css) */
.newspaper-header .logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 150px;
	height: auto;
	top: 50%;
	transform: translate(-50%, -50%);
}

/* Language selector styles (match home.css) */
.language-selector {
	font-size: 1.4rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: nowrap;
	border-radius: 0;
}

@media (max-width: 600px) {
	.language-selector {
		display: grid;
		grid-template-columns: repeat(2, auto);
		gap: 0.5rem;
	}
}

.language-link:not(:first-child):not(:last-child) {
	border-radius: 0;
}

.language-link:first-child {
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	border-top-left-radius: 15px;
}

.language-link:last-child {
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 15px;
}

.language-link {
	font-size: 1.2rem;
	padding: 0.2rem 0.6rem; /* reduced padding */
	text-decoration: none;
	color: var(--text-colour);
	border: 2px solid var(--text-colour);
	border-radius: 2px; /* reduced border-radius */
	background-color: transparent;
	transition: background-color 0.3s, color 0.3s;
	cursor: pointer;
}

.language-link[data-selected="true"] {
	background-color: var(--text-colour);
	color: var(--background);
}

.language-link:hover {
	background-color: var(--text-colour);
	color: var(--background);
}

#phone-prefix {
	width: 8em;
	padding: 0.4rem;
	border: 1px solid var(--text-colour);
	border-radius: 4px;
	background: var(--background);
	color: var(--text-colour);
	font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Cormorant Garamond', serif;
	font-size: 1rem;
	margin-right: 0.5rem;
}

#phone-prefix option {
	background: var(--background);
	color: var(--text-colour);
	font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Cormorant Garamond', serif;
}

#booking-form input[type="name"],
#booking-form input[type="email"],
#booking-form input[type="reason"],
#booking-form input[type="tel"] {
	background: var(--background);
	color: var(--text-colour);
	border: 1px solid var(--text-colour);
	border-radius: 4px;
	padding: 0.5rem;
	font-family: 'Cormorant Garamond', serif;
	font-size: 1rem;
}

/* Style for the search input above the dropdown */
#booking-form input[type="text"][placeholder="Search country..."] {
	width: 10em;
	margin-bottom: 0;
}

/* Custom dropdown styles for phone prefix with flags */
.custom-select-wrapper {
	position: relative;
}

.custom-select {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: var(--background);
	border: 2px solid var(--button-border);
	border-radius: 8px;
	cursor: pointer;
	font-family: 'Cormorant Garamond', serif;
	font-size: 16px;
	color: var(--text-colour);
	transition: all 0.3s ease;
}

.custom-select:hover,
.custom-select:focus {
	border-color: var(--text-colour);
	outline: none;
}

.selected-option {
	display: flex;
	align-items: center;
	gap: 8px;
}

.select-arrow {
	font-size: 12px;
	transition: transform 0.3s ease;
	color: var(--text-colour);
}

.custom-select.open .select-arrow {
	transform: rotate(180deg);
}

.custom-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--background);
	border: 2px solid var(--text-colour);
	border-top: none;
	border-radius: 0 0 8px 8px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar styling */
.custom-dropdown::-webkit-scrollbar {
	width: 8px;
}

.custom-dropdown::-webkit-scrollbar-track {
	background: var(--background);
	border-radius: 4px;
}

.custom-dropdown::-webkit-scrollbar-thumb {
	background: var(--text-colour);
	border-radius: 4px;
}

.custom-dropdown::-webkit-scrollbar-thumb:hover {
	background: var(--text-colour);
	opacity: 0.8;
}

/* Firefox scrollbar styling */
.custom-dropdown {
	scrollbar-width: thin;
	scrollbar-color: var(--text-colour) var(--background);
}

.custom-dropdown-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	cursor: pointer;
	font-family: 'Cormorant Garamond', serif;
	font-size: 16px;
	color: var(--text-colour);
	background-color: var(--background);
	transition: background-color 0.2s ease;
	border-bottom: 1px solid var(--text-colour);
	border-color: var();
}

.custom-dropdown-option:last-child {
	border-bottom: none;
}

.custom-dropdown-option:hover {
	background-color: var(--text-colour);
	color: var(--background);
}

/* Search input styling within dropdown */
.custom-dropdown input[type="text"] {
	width: 100%;
	padding: 8px 12px;
	border: none;
	border-bottom: 2px solid var(--text-colour);
	background-color: var(--background);
	color: var(--text-colour);
	font-family: 'Cormorant Garamond', serif;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
}

.custom-dropdown input[type="text"]:focus {
	border-bottom-color: var(--text-colour);
	background-color: var(--background);
}

.custom-dropdown input[type="text"]::placeholder {
	color: var(--text-colour);
	opacity: 0.6;
	font-style: italic;
}

html {
	scroll-behavior: smooth;
}

/* Notification styles */
.notification {
	position: fixed;
	top: 20px;
	right: 20px;
	max-width: 400px;
	padding: 16px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 10000;
	font-family: 'Cormorant Garamond', serif;
	font-size: 16px;
	animation: slideIn 0.3s ease-out;
}

.notification-info {
	background-color: var(--text-colour);
	color: var(--background);
	border: 2px solid var(--background);
}

.notification-error {
	background-color: #dc3545;
	color: white;
	border: 2px solid #c82333;
}

.notification-success {
	background-color: #28a745;
	color: white;
	border: 2px solid #218838;
}

.notification-message {
	flex: 1;
	margin-right: 12px;
}

.notification-close {
	background: none;
	border: none;
	color: inherit;
	font-size: 20px;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease;
}

.notification-close:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Logo hitbox styles */
.logo-hitbox {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 170px;   /* slightly larger than logo */
	height: 90px;   /* adjust as needed */
	cursor: pointer;
	background: transparent;
	border-radius: 12px;
	transition: background 0.2s;
}
.logo-hitbox:hover {
	background: rgba(0,0,0,0.04); /* subtle hover effect */
}
