/* Fibre Hub Booking - Public Styles */

.fibrehub-booking-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.fibrehub-filters {
	background: #f5f5f5;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.fibrehub-filters h2 {
	margin-top: 0;
	color: #333;
}

.fibrehub-filters form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	align-items: end;
}

.filter-group {
	display: flex;
	flex-direction: column;
}

.filter-group label {
	font-weight: 600;
	margin-bottom: 8px;
	color: #555;
}

.filter-group input,
.filter-group select {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.btn-primary,
.btn-secondary {
	padding: 10px 20px;
	border: 1px solid #dadce0;
	border-radius: 4px;
	background: white;
	color: #5f6368;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
	background: #f8f9fa;
	border-color: #dadce0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
	background: #1a73e8;
	color: white;
	border-color: #1a73e8;
}

.btn-primary:hover {
	background: #1765cc;
	border-color: #1765cc;
	box-shadow: 0 2px 4px rgba(26, 115, 232, 0.3);
}

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

.room-card {
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 25px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.room-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.room-header h3 {
	margin: 0;
	color: #333;
	font-size: 1.4em;
}

.room-type-badge {
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.room-type-small {
	background: #e3f2fd;
	color: #1976d2;
}

.room-type-medium {
	background: #fff3e0;
	color: #f57c00;
}

.room-type-large {
	background: #f3e5f5;
	color: #7b1fa2;
}

.room-details {
	margin-bottom: 20px;
}

.room-spec {
	display: flex;
	margin-bottom: 12px;
	font-size: 14px;
}

.spec-label {
	font-weight: 600;
	color: #666;
	min-width: 120px;
}

.spec-value {
	color: #333;
}

.room-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.room-actions button {
	flex: 1;
	min-width: 120px;
}

.no-rooms-message {
	text-align: center;
	padding: 40px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	color: #666;
}

/* Modal Styles */
.fibrehub-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.5);
}

.modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 30px;
	border: 1px solid #888;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	position: relative;
}

.modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 20px;
}

.modal-close:hover,
.modal-close:focus {
	color: #000;
}

.modal-content h2 {
	margin-top: 0;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.form-group .required {
	color: #d32f2f;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

#booking-messages {
	margin: 20px 0;
	padding: 15px;
	border-radius: 4px;
	display: none;
}

#booking-messages.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}

#booking-messages.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}

/* Calendar View Styles - Google Calendar Inspired */
.fibrehub-calendar-container {
	max-width: 100%;
	width: 100%;
	margin: 0 auto;
	padding: 30px 20px;
	background: #f8f9fa;
}

.calendar-navigation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 24px 0;
	padding: 16px 24px;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	flex-wrap: wrap;
	gap: 12px;
}

.calendar-week-display {
	font-size: 20px;
	font-weight: 500;
	color: #202124;
	flex: 1;
	text-align: center;
	letter-spacing: 0.3px;
}

.calendar-wrapper {
	margin: 0;
	overflow-x: auto;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fibrehub-availability-calendar {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	min-width: 100%;
	table-layout: fixed;
	background: white;
}

.fibrehub-availability-calendar th,
.fibrehub-availability-calendar td {
	border-right: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	padding: 16px 12px;
	text-align: left;
	vertical-align: middle;
}

.fibrehub-availability-calendar th:last-child,
.fibrehub-availability-calendar td:last-child {
	border-right: none;
}

.fibrehub-availability-calendar thead th {
	background: #f8f9fa;
	font-weight: 500;
	text-align: center;
	border-bottom: 2px solid #e0e0e0;
	padding: 14px 12px;
	color: #5f6368;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.room-name-col {
	width: 220px;
	min-width: 220px;
	position: sticky;
	left: 0;
	background: #f8f9fa;
	z-index: 10;
	border-right: 2px solid #e0e0e0;
}

.day-header {
	text-align: center;
	min-width: 140px;
	width: calc((100% - 280px) / 5);
	padding: 16px 12px;
}

.day-name {
	font-weight: 500;
	color: #202124;
	margin-bottom: 4px;
	font-size: 14px;
}

.day-date {
	color: #5f6368;
	font-size: 12px;
	font-weight: 400;
}

.room-name-cell {
	background: #f8f9fa;
	font-weight: 400;
	position: relative;
	padding: 20px 16px;
	font-size: 14px;
	color: #202124;
	border-right: 2px solid #e0e0e0;
}

.period-label-col {
	background: #f8f9fa;
	font-weight: 500;
	text-align: center;
	width: 60px;
	min-width: 60px;
	border-right: 2px solid #e0e0e0;
	color: #5f6368;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.period-label-cell {
	background: #f8f9fa;
	font-weight: 500;
	text-align: center;
	vertical-align: middle;
	padding: 20px 8px;
	font-size: 13px;
	color: #5f6368;
	border-right: 2px solid #e0e0e0;
}

/* iCal links removed from public calendar */

.day-cell {
	min-height: 100px;
	position: relative;
	padding: 16px 12px;
	background: white;
	transition: background-color 0.2s ease;
}

.room-period-row {
	border-bottom: 1px solid #e0e0e0;
}

.room-period-row:last-child {
	border-bottom: none;
}

.room-period-row.period-am {
	border-top: 1px solid #e0e0e0;
}

.period-label {
	display: inline-block;
	margin-top: 8px;
	padding: 2px 6px;
	font-size: 0.75em;
	font-weight: 500;
	text-transform: uppercase;
	border-radius: 2px;
}

.period-am-label {
	background: #e3f2fd;
	color: #1976d2;
}

.period-pm-label {
	background: #fff3e0;
	color: #f57c00;
}

.day-cell.period-am {
	border-bottom: 1px solid #e8eaed;
}

.day-cell.period-pm {
	border-top: 1px solid #e8eaed;
}

.day-cell.status-available {
	background: #e8f5e9;
}

.day-cell.status-partial {
	background: #fff9c4;
}

.day-cell.status-booked {
	background: #ffebee;
}

.availability-status {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 60px;
}

.status-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
	text-align: center;
}

.status-icon {
	font-size: 28px;
	font-weight: bold;
	line-height: 1;
	display: block;
}

.status-indicator.available {
	background: transparent;
}

.status-indicator.available .status-icon {
	color: #34a853;
}

.status-indicator.available .status-text {
	color: #202124;
	font-size: 13px;
	font-weight: 500;
}

.status-indicator.available .book-link {
	color: #1a73e8;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.status-indicator.available .book-link:hover {
	border-bottom-color: #1a73e8;
	text-decoration: none;
}

.status-indicator.partial {
	background: #ff9800;
	color: white;
}

.status-indicator.booked {
	background: transparent;
	position: relative;
}

.status-indicator.booked .status-icon {
	color: #ea4335;
}

.status-indicator.booked .status-text-hover {
	opacity: 0;
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	color: #ea4335;
	font-size: 13px;
	font-weight: 500;
	background: white;
	padding: 6px 12px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	white-space: nowrap;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 10;
}

.status-indicator.booked:hover .status-text-hover {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.status-indicator.booked .status-text-hover::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-bottom-color: white;
}

.day-bookings {
	margin-top: 8px;
}

.booking-item {
	display: block;
	padding: 6px 8px;
	margin-bottom: 4px;
	background: rgba(0, 0, 0, 0.05);
	border-left: 3px solid #0073aa;
	border-radius: 2px;
	font-size: 0.85em;
}

.booking-item:hover {
	background: rgba(0, 0, 0, 0.1);
}

.booking-time {
	display: block;
	font-weight: 600;
	color: #0073aa;
}

.calendar-legend {
	margin-top: 24px;
	padding: 20px 24px;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-legend h3 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 500;
	color: #202124;
}

.calendar-legend ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.calendar-legend li {
	padding: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #5f6368;
}

/* Responsive */
@media (max-width: 768px) {
	.fibrehub-filters form {
		grid-template-columns: 1fr;
	}
	
	.rooms-grid {
		grid-template-columns: 1fr;
	}
	
	.modal-content {
		width: 95%;
		margin: 10% auto;
		padding: 20px;
	}
	
	.calendar-navigation {
		flex-direction: column;
		text-align: center;
	}
	
	.calendar-week-display {
		order: -1;
		width: 100%;
		margin-bottom: 10px;
	}
	
	.fibrehub-availability-calendar {
		font-size: 0.9em;
	}
	
	.room-name-col {
		width: 150px;
		min-width: 150px;
	}
	
	.day-cell {
		min-height: 80px;
		padding: 12px 8px;
	}
	
	.availability-status {
		min-height: 50px;
	}
	
	.status-indicator {
		padding: 6px 12px;
		font-size: 12px;
	}
}

/* Hourly Calendar Styles */
.fibrehub-hourly-calendar {
	margin-top: 20px;
}

.room-hourly-section {
	margin-bottom: 40px;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.room-hourly-title {
	margin-top: 0;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 500;
	color: #202124;
}

.room-hourly-title .room-type-badge {
	font-size: 0.7em;
	padding: 4px 8px;
}

.hourly-calendar-wrapper {
	overflow-x: auto;
}

.fibrehub-hourly-calendar-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	min-width: 600px;
	background: white;
}

.fibrehub-hourly-calendar-table th {
	background: #f8f9fa;
	font-weight: 500;
	text-align: center;
	padding: 16px 12px;
	border: 1px solid #e0e0e0;
	color: #202124;
	font-size: 14px;
}

.fibrehub-hourly-calendar-table .hour-col {
	background: #f8f9fa;
	font-weight: 500;
	width: 80px;
	min-width: 80px;
	text-align: center;
	border: 1px solid #e0e0e0;
	color: #5f6368;
}

.fibrehub-hourly-calendar-table .day-header {
	min-width: 120px;
}

.fibrehub-hourly-calendar-table .day-header .day-name {
	color: #202124;
	font-size: 14px;
	font-weight: 500;
}

.fibrehub-hourly-calendar-table .day-header .day-date {
	color: #5f6368;
	font-size: 12px;
	font-weight: 400;
}

.fibrehub-hourly-calendar-table td {
	padding: 12px 8px;
	border: 1px solid #e0e0e0;
	text-align: center;
	vertical-align: middle;
	transition: background-color 0.2s ease;
}

.fibrehub-hourly-calendar-table .hour-label {
	background: #f8f9fa;
	font-weight: 500;
	text-align: center;
	color: #5f6368;
	font-size: 13px;
}

.fibrehub-hourly-calendar-table .hour-slot {
	min-width: 100px;
}

.fibrehub-hourly-calendar-table .hour-slot.status-available {
	background: #e8f5e9;
}

.fibrehub-hourly-calendar-table .hour-slot.status-booked {
	background: #ffebee;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
	text-align: center;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.available {
	background: transparent;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.available .status-icon {
	color: #34a853;
	font-size: 28px;
	font-weight: bold;
	line-height: 1;
	display: block;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.available .status-text {
	color: #202124;
	font-size: 13px;
	font-weight: 500;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.available .book-link {
	color: #1a73e8;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.available .book-link:hover {
	border-bottom-color: #1a73e8;
	text-decoration: none;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.booked {
	background: transparent;
	position: relative;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.booked .status-icon {
	color: #ea4335;
	font-size: 28px;
	font-weight: bold;
	line-height: 1;
	display: block;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.booked .status-text-hover {
	opacity: 0;
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	color: #ea4335;
	font-size: 13px;
	font-weight: 500;
	background: white;
	padding: 6px 12px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	white-space: nowrap;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 10;
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.booked:hover .status-text-hover {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.fibrehub-hourly-calendar-table .hour-slot .status-indicator.booked .status-text-hover::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-bottom-color: white;
}

/* Responsive for hourly calendar */
@media (max-width: 768px) {
	.room-hourly-section {
		padding: 15px;
	}
	
	.hourly-calendar-wrapper {
		overflow-x: scroll;
		-webkit-overflow-scrolling: touch;
	}
	
	.fibrehub-hourly-calendar-table {
		font-size: 0.85em;
		min-width: 500px;
	}
	
	.fibrehub-hourly-calendar-table th,
	.fibrehub-hourly-calendar-table td {
		padding: 8px 6px;
	}
	
	.fibrehub-hourly-calendar-table .hour-col {
		width: 60px;
		min-width: 60px;
	}
	
	.fibrehub-hourly-calendar-table .hour-slot .status-indicator {
		padding: 8px 6px;
		gap: 4px;
	}
	
	.fibrehub-hourly-calendar-table .hour-slot .status-indicator .status-icon {
		font-size: 20px;
	}
	
	.fibrehub-hourly-calendar-table .hour-slot .status-indicator .status-text,
	.fibrehub-hourly-calendar-table .hour-slot .status-indicator .book-link {
		font-size: 11px;
	}
}

/* Room Hire Form Styles */
.fibrehub-room-hire-form-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 30px 20px;
	background: #f8f9fa;
}

.fibrehub-room-hire-form-container h2 {
	margin-top: 0;
	margin-bottom: 30px;
	font-size: 28px;
	font-weight: 500;
	color: #202124;
	text-align: center;
}

.room-hire-form {
	background: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section {
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 2px solid #e0e0e0;
}

.form-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.form-section h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 20px;
	font-weight: 500;
	color: #202124;
	padding-bottom: 10px;
	border-bottom: 1px solid #e0e0e0;
}

.form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

.form-row .form-group {
	flex: 1;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #202124;
	font-size: 14px;
}

.form-group label .required {
	color: #ea4335;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #dadce0;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #1a73e8;
	box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 80px;
}

.form-group select[multiple] {
	min-height: 120px;
	padding: 8px;
}

.form-group small {
	display: block;
	margin-top: 6px;
	color: #5f6368;
	font-size: 12px;
}

.checkbox-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
	width: auto;
	margin: 0;
	cursor: pointer;
}

.form-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

#room-hire-messages {
	margin: 20px 0;
	padding: 16px;
	border-radius: 4px;
	display: none;
}

#room-hire-messages.success {
	background: #e8f5e9;
	border: 1px solid #4caf50;
	color: #2e7d32;
}

#room-hire-messages.error {
	background: #ffebee;
	border: 1px solid #f44336;
	color: #c62828;
}

/* Responsive for room hire form */
@media (max-width: 768px) {
	.room-hire-form {
		padding: 20px;
	}
	
	.form-row {
		flex-direction: column;
		gap: 0;
	}
	
	.form-actions {
		flex-direction: column;
	}
	
	.form-actions .btn-primary,
	.form-actions .btn-secondary {
		width: 100%;
	}
}

/* Form highlight animation */
.fibrehub-room-hire-form-container.form-highlight {
	animation: formHighlight 2s ease-in-out;
}

@keyframes formHighlight {
	0% {
		box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7);
	}
	50% {
		box-shadow: 0 0 0 10px rgba(26, 115, 232, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
	}
}

.fibrehub-room-hire-form-container {
	transition: box-shadow 0.3s ease;
}

