/**
 * Frontend Booking Widget & Native Interactive Calendar Stylesheet for MIC Vacation Rentals
 */

.mic-property-booking-section {
	margin: 40px auto;
	max-width: 1080px;
	width: 100%;
	box-sizing: border-box;
}

.mic-booking-widget {
	background: #ffffff;
	border: 1px solid #e2ece8;
	border-radius: 20px;
	padding: 28px 26px;
	box-shadow: 0 10px 35px rgba(14, 42, 39, 0.08);
	font-family: var(--e-global-typography-primary-font-family, 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: #0E2A27;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

/* Header */
.mic-widget-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eef3f1;
	padding-bottom: 20px;
	margin-bottom: 24px;
	gap: 16px;
}

.mic-widget-title-area {
	flex: 1;
}

.mic-widget-title {
	font-size: 22px;
	font-weight: 700;
	color: #0E2A27;
	margin: 0 0 4px 0;
	letter-spacing: -0.3px;
}

.mic-widget-subtitle {
	font-size: 14px;
	color: #64748b;
	margin: 0;
}

.mic-rate-pill {
	display: flex;
	align-items: baseline;
	gap: 5px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 8px 16px;
	border-radius: 9999px;
}

.mic-rate-pill-amount {
	font-size: 24px;
	font-weight: 800;
	color: #0E2A27;
}

.mic-rate-pill-period {
	font-size: 14px;
	color: #166534;
	font-weight: 600;
}

/* 2-Column Responsive Grid */
.mic-booking-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 32px;
	align-items: start;
}

@media (max-width: 880px) {
	.mic-booking-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Selected Dates Bar */
.mic-selected-dates-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f8faf9;
	border: 1px solid #dcd5d0;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 14px;
}

.mic-date-badge {
	flex: 1;
}

.mic-date-badge .badge-lbl {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.mic-date-badge .badge-val {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #0E2A27;
}

.mic-date-arrow {
	font-size: 18px;
	color: #94a3b8;
	font-weight: bold;
}

/* Instruction Banner */
.mic-cal-instruction {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.mic-cal-instruction .instruction-icon {
	margin-right: 6px;
}

.mic-cal-reset-btn {
	background: #ffffff;
	border: 1px solid #93c5fd;
	color: #1e40af;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	cursor: pointer;
	transition: background 0.15s;
}

.mic-cal-reset-btn:hover {
	background: #dbeafe;
}

/* Embedded Calendar */
.mic-calendar-embed {
	background: #ffffff;
	border: 1px solid #dcd5d0;
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.mic-cal-nav-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}

.mic-cal-nav-title {
	font-size: 14px;
	font-weight: 700;
	color: #0E2A27;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mic-cal-nav-btn {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	color: #0E2A27;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	font-size: 18px;
	line-height: 28px;
	cursor: pointer;
	transition: all 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mic-cal-nav-btn:hover:not(:disabled) {
	background: #0E2A27;
	color: #ffffff;
	border-color: #0E2A27;
}

.mic-cal-nav-btn.mic-btn-disabled, .mic-cal-nav-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.mic-cal-months-wrap {
	display: flex;
	gap: 20px;
}

.mic-cal-month-card {
	flex: 1;
	min-width: 0;
}

.mic-cal-month-header {
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: #0E2A27;
	margin-bottom: 10px;
}

.mic-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	margin-bottom: 6px;
}

.mic-cal-weekday {
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	padding: 4px 0;
}

.mic-cal-days-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.mic-cal-day-cell {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	border: none;
	background: transparent;
	padding: 0;
	margin: 0;
	border-radius: 6px;
	position: relative;
	user-select: none;
}

.mic-day-blank {
	pointer-events: none;
}

.mic-cal-day {
	cursor: pointer;
	transition: background 0.1s, color 0.1s;
}

.mic-day-num {
	position: relative;
	z-index: 2;
}

/* Day States */
.mic-day-past {
	color: #cbd5e1 !important;
	cursor: not-allowed !important;
	text-decoration: line-through;
}

.mic-day-booked {
	background: #fee2e2 !important;
	color: #dc2626 !important;
	cursor: not-allowed !important;
	text-decoration: line-through;
	border-radius: 4px;
}

.mic-day-available {
	color: #0E2A27;
}

.mic-day-available:hover {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #10b981;
}

/* Range Highlights */
.mic-day-selected {
	background: #0E2A27 !important;
	color: #ffffff !important;
	font-weight: 700;
}

.mic-day-start {
	border-radius: 50% 0 0 50% !important;
}

.mic-day-end {
	border-radius: 0 50% 50% 0 !important;
}

.mic-day-start.mic-day-end {
	border-radius: 50% !important;
}

.mic-day-in-range {
	background: #e2ece8 !important;
	color: #0E2A27 !important;
	border-radius: 0 !important;
}

.mic-day-hover-range {
	background: #f1f5f9 !important;
	border-radius: 0 !important;
}

/* Calendar Footer & Legend */
.mic-cal-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
	font-size: 11px;
	color: #64748b;
	flex-wrap: wrap;
	gap: 8px;
}

.mic-cal-legend {
	display: flex;
	gap: 12px;
	align-items: center;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.dot-available {
	background: #ffffff;
	border: 1px solid #10b981;
}

.dot-booked {
	background: #fee2e2;
	border: 1px solid #dc2626;
}

.dot-selected {
	background: #0E2A27;
}

.mic-minstay-hint {
	font-weight: 600;
	color: #C15A2E;
}

/* Guests Selector */
.mic-guests-selector-wrap {
	margin-top: 16px;
}

.mic-section-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #64748b;
	margin-bottom: 6px;
}

.mic-select-input {
	width: 100%;
	border: 1px solid #dcd5d0;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #0E2A27;
	outline: none;
	background: #ffffff;
	box-sizing: border-box;
}

.mic-select-input:focus {
	border-color: #0E2A27;
}

/* Right Column: Subheadings */
.mic-card-subheading {
	font-size: 16px;
	font-weight: 700;
	color: #0E2A27;
	margin: 0 0 12px 0;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 8px;
}

/* Stay Summary Breakdown */
.mic-stay-breakdown {
	background: #f8faf9;
	border: 1px solid #dcd5d0;
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 20px;
}

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

.mic-breakdown-total {
	border-top: 1px solid #cbd5e1;
	padding-top: 12px;
	margin-top: 12px;
	font-size: 17px;
	font-weight: 800;
	color: #0E2A27;
}

.mic-hold-explainer {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 12px;
	line-height: 1.5;
	color: #1e40af;
	margin-top: 14px;
}

.mic-hold-explainer .dashicons {
	font-size: 18px;
	line-height: 18px;
	color: #2563eb;
	flex-shrink: 0;
}

.mic-deposit-note {
	margin: 10px 0 0 0;
	color: #64748b;
	line-height: 1.4;
}

/* Extras */
.mic-extras-section {
	margin-bottom: 20px;
}

.mic-extras-toggle-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	padding: 10px 14px;
	background: #fdfaf6;
	border: 1px solid #f1eae2;
	border-radius: 10px;
}

.mic-extras-toggle-bar .mic-section-label {
	margin: 0;
}

.mic-toggle-hint {
	font-size: 12px;
	color: #C15A2E;
	font-weight: 700;
}

.mic-extras-container {
	background: #fdfaf6;
	border: 1px solid #f1eae2;
	border-top: none;
	border-radius: 0 0 10px 10px;
	padding: 14px;
}

.mic-extras-intro {
	font-size: 12px;
	color: #718096;
	margin: 0 0 12px 0;
}

.mic-extras-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mic-extra-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	cursor: pointer;
}

.mic-extra-item input[type="checkbox"] {
	margin-top: 3px;
	accent-color: #0E2A27;
}

.mic-extra-content strong {
	display: block;
	color: #0E2A27;
}

.mic-extra-content small {
	display: block;
	color: #64748b;
	font-size: 11px;
}

/* Contact Inputs */
.mic-guest-details-section {
	margin-bottom: 20px;
}

.mic-field-row {
	margin-bottom: 12px;
}

.mic-field-row input, .mic-field-row textarea {
	width: 100%;
	border: 1px solid #dcd5d0;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	box-sizing: border-box;
	outline: none;
	background: #ffffff;
	color: #0E2A27;
	font-family: inherit;
}

.mic-field-row input:focus, .mic-field-row textarea:focus {
	border-color: #0E2A27;
	box-shadow: 0 0 0 3px rgba(14,42,39,0.08);
}

/* Stripe Payment Element */
.mic-payment-section {
	margin-bottom: 24px;
}

.mic-secure-badge {
	font-size: 12px;
	color: #10b981;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px 0;
}

.mic-stripe-mount {
	min-height: 160px;
	border: 1px solid #dcd5d0;
	border-radius: 10px;
	padding: 14px;
	background: #ffffff;
}

.mic-stripe-placeholder {
	color: #94a3b8;
	font-size: 13px;
	text-align: center;
	padding: 40px 10px;
}

.mic-card-errors {
	color: #dc2626;
	font-size: 13px;
	margin-top: 10px;
	font-weight: 600;
}

/* Submit Button */
.mic-submit-area {
	margin-top: 20px;
}

.mic-submit-btn {
	width: 100%;
	background: #0E2A27;
	color: #ffffff;
	border: none;
	border-radius: 12px;
	padding: 18px 24px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.mic-submit-btn:hover:not(:disabled) {
	background: #17423e;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(14,42,39,0.25);
}

.mic-submit-btn:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.mic-submit-footnote {
	text-align: center;
	font-size: 11px;
	color: #94a3b8;
	margin: 10px 0 0 0;
}

/* Feedback / Confirmation Overlay */
.mic-feedback-overlay {
	padding: 40px 20px;
	text-align: center;
}

.mic-feedback-card {
	max-width: 540px;
	margin: 0 auto;
}

.mic-feedback-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	border-radius: 50%;
	background: #dcfce7;
	color: #15803d;
	font-size: 32px;
	font-weight: bold;
	margin: 0 auto 18px auto;
}

.mic-feedback-title {
	font-size: 24px;
	font-weight: 800;
	color: #0E2A27;
	margin: 0 0 12px 0;
}

.mic-feedback-msg {
	font-size: 15px;
	line-height: 1.6;
	color: #475569;
	margin-bottom: 24px;
}

.mic-feedback-details {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
	font-size: 14px;
	color: #1e293b;
}

