/**
 * Single Boat Elements Styling
 * Theme: Premium Marine & Yacht Rental Marketplace (Click&Boat style)
 */

/* Pricing Badges */
.rentboat-pricing-badges {
	display: flex;
	gap: 15px;
	margin: 15px 0;
	flex-wrap: wrap;
}

.rentboat-price-badge {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 119, 182, 0.15);
	padding: 10px 18px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	min-width: 90px;
	transition: all 0.3s ease;
}

.rentboat-price-badge.highlighted {
	background: linear-gradient(135deg, #0077b6, #0096c7);
	border-color: transparent;
	color: #ffffff;
}

.rentboat-price-badge.highlighted .rentboat-badge-label {
	color: rgba(255, 255, 255, 0.8);
}

.rentboat-badge-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #666;
	margin-bottom: 4px;
	font-weight: 600;
}

.rentboat-badge-value {
	font-size: 18px;
	font-weight: 700;
}

/* Specs Table */
.rentboat-specs-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	margin: 20px 0;
}

.rentboat-specs-table {
	width: 100%;
	border-collapse: collapse;
}

.rentboat-specs-table tr {
	border-bottom: 1px solid #f0f0f0;
}

.rentboat-specs-table tr:last-child {
	border-bottom: none;
}

.rentboat-specs-table td {
	padding: 12px 0;
	font-size: 14px;
	color: #333333;
}

.rentboat-spec-label {
	font-weight: 500;
	color: #777777;
}

.rentboat-spec-value {
	text-align: right;
	font-weight: 600;
}

/* Location Badge */
.rentboat-location-card {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #e0f2fe;
	color: #0369a1;
	padding: 8px 14px;
	border-radius: 99px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 15px;
}

/* Gallery Slider */
.rentboat-gallery-slider {
	position: relative;
	width: 100%;
	margin-bottom: 25px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rentboat-slider-main {
	position: relative;
	height: 400px;
	background: #111;
}

.rentboat-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	z-index: 1;
}

.rentboat-slide.active {
	opacity: 1;
	z-index: 2;
}

.rentboat-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rentboat-slider-prev,
.rentboat-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #111;
	font-size: 18px;
	padding: 12px 16px;
	cursor: pointer;
	z-index: 10;
	border-radius: 50%;
	transition: all 0.2s ease;
	line-height: 1;
}

.rentboat-slider-prev:hover,
.rentboat-slider-next:hover {
	background: rgba(255, 255, 255, 0.8);
	transform: translateY(-50%) scale(1.1);
}

.rentboat-slider-prev { left: 20px; }
.rentboat-slider-next { right: 20px; }

.rentboat-slider-thumbnails {
	display: flex;
	gap: 8px;
	padding: 10px;
	background: #f8fafc;
	overflow-x: auto;
	border-top: 1px solid #e2e8f0;
}

.rentboat-thumbnail {
	width: 80px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	transition: all 0.2s ease;
	border: 2px solid transparent;
	flex-shrink: 0;
}

.rentboat-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rentboat-thumbnail.active,
.rentboat-thumbnail:hover {
	opacity: 1;
	border-color: #0077b6;
}

/* Booking Widget Card */
.rentboat-booking-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
	margin-bottom: 25px;
}

.rentboat-booking-tabs {
	display: flex;
	gap: 6px;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 12px;
	margin-bottom: 20px;
}

.rentboat-tab-btn {
	flex: 1;
	background: transparent;
	border: none;
	padding: 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s ease;
}

.rentboat-tab-btn.active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.rentboat-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 18px;
}

.rentboat-form-group {
	flex: 1 1 180px;
	display: flex;
	flex-direction: column;
}

.rentboat-form-group label {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	color: #94a3b8;
	margin-bottom: 6px;
	letter-spacing: 0.5px;
}

.rentboat-form-group input {
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 14px;
	color: #1e293b;
	outline: none;
	transition: border-color 0.2s;
}

.rentboat-form-group input:focus {
	border-color: #0077b6;
}

/* Pricing Summary Box */
.rentboat-pricing-summary {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
}

.rentboat-summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #475569;
	margin-bottom: 10px;
}

.rentboat-summary-row:last-child {
	margin-bottom: 0;
}

.rentboat-summary-row .label {
	font-weight: 500;
}

.rentboat-summary-row .value {
	font-weight: 700;
	color: #0f172a;
}

.rentboat-summary-row.highlight {
	border-top: 1px solid #e2e8f0;
	padding-top: 10px;
	margin-top: 10px;
	font-size: 16px;
}

.rentboat-summary-row.highlight .label {
	color: #0f172a;
	font-weight: 700;
}

.rentboat-summary-row.highlight .value {
	color: #0077b6;
	font-size: 20px;
}

.rentboat-submit-btn {
	width: 100%;
	background: linear-gradient(135deg, #0077b6, #0096c7);
	border: none;
	color: #ffffff;
	padding: 14px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
	transition: all 0.2s ease;
}

.rentboat-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.rentboat-submit-btn:active {
	transform: translateY(0);
}

/* Chat Button and modal overlay */
.rentboat-chat-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #cbd5e1;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.rentboat-chat-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Overlay modal -> Floating bottom-right chat widget */
.rentboat-chat-modal {
	position: fixed;
	bottom: 20px;
	right: 20px;
	top: auto;
	left: auto;
	width: 420px;
	max-width: 90%;
	height: 500px;
	background: transparent;
	backdrop-filter: none;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	z-index: 99999;
}

.rentboat-chat-modal-content {
	background: #ffffff;
	border-radius: 20px;
	width: 100%;
	height: 100%;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.08);
}

.rentboat-chat-modal-header {
	padding: 16px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.rentboat-chat-modal-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.rentboat-close-modal {
	font-size: 24px;
	font-weight: 700;
	cursor: pointer;
	color: #94a3b8;
}

.rentboat-close-modal:hover {
	color: #0f172a;
}

.rentboat-chat-messages {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Chat bubble aesthetics */
.rentboat-msg {
	max-width: 75%;
	padding: 10px 14px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.bubble-sender {
	align-self: flex-end;
	background: #0077b6;
	color: #ffffff;
	border-bottom-right-radius: 4px;
}

.bubble-receiver {
	align-self: flex-start;
	background: #ffffff;
	color: #334155;
	border-bottom-left-radius: 4px;
	border: 1px solid #e2e8f0;
}

.msg-meta {
	font-size: 9px;
	text-align: right;
	margin-top: 4px;
	opacity: 0.7;
}

.rentboat-chat-send-form {
	padding: 15px 20px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	gap: 10px;
	background: #ffffff;
}

.rentboat-chat-send-form input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
}

.rentboat-chat-send-form button {
	background: #0077b6;
	color: #ffffff;
	border: none;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
}

.rentboat-chat-send-form button:hover {
	background: #0096c7;
}

/* Owner Profile */
.rentboat-owner-profile-card {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	background: #ffffff;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	margin-bottom: 20px;
}

.rentboat-owner-avatar img {
	border-radius: 50%;
	object-fit: cover;
}

.rentboat-owner-meta h4 {
	margin: 0 0 4px 0;
	font-size: 16px;
	font-weight: 700;
}

.rentboat-owner-joined {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 6px 0;
}

.rentboat-owner-badge {
	display: inline-block;
	background: #dcfce7;
	color: #15803d;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 99px;
}

/* Status ticks and typing indicator styles */
.rentboat-ticks {
	display: inline-block;
	vertical-align: middle;
}
@keyframes rentboat-bounce {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1.0); }
}
.rentboat-typing-indicator .typing-dot {
	width: 6px;
	height: 6px;
	background: #64748b;
	border-radius: 50%;
	display: inline-block;
	animation: rentboat-bounce 1.4s infinite both;
}
.rentboat-typing-indicator .typing-dot:nth-child(2) {
	animation-delay: 0.2s;
}
.rentboat-typing-indicator .typing-dot:nth-child(3) {
	animation-delay: 0.4s;
}

/* Dynamic Registration Role Card Selector */
.rentboat-role-selector label.role-selector-card:has(input:checked) {
	border-color: #0077b6 !important;
	background: #f0f9ff !important;
}
.rentboat-role-selector label.role-selector-card:has(input:checked) span {
	filter: none !important;
	color: #0077b6 !important;
}
.rentboat-role-selector label.role-selector-card:hover {
	border-color: #0077b680;
	background: rgba(240, 249, 255, 0.3);
}
