/* --- RENTAL PAGE CSS --- */

/* 5.1 HERO */
.rental-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 4rem;
    position: relative;
    border-bottom: 1px solid var(--accent-line);
}

.label-badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    font-family: var(--primary-font);
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    width: max-content;
}
.hero-scroll-indicator {
    margin-top: 10px;
    cursor: pointer;
}
.rental-title {
    font-family: var(--heading-font);
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.85;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 2rem;
}

.rental-intro {
    font-family: var(--primary-font);
    font-size: 1.2rem;
    color: var(--gray-400);
    max-width: 600px;
    line-height: 1.6;
}

/* 5.2 SPECS & GALLERY */
.gallery-marquee {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--accent-line);
    height: 400px;
}

.marquee-track-img {
    display: flex;
    height: 100%;
    width: max-content;
}

.marquee-track-img img {
    height: 100%;
    width: 600px; /* Fixed width per image */
    object-fit: cover;
    border-right: 1px solid var(--accent-line);
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.marquee-track-img img:hover {
    filter: grayscale(0%);
}

.specs-grid-container {
    padding: 4rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: var(--accent-line);
    border: 1px solid var(--accent-line);
    margin: 2rem 0;
}

.spec-item {
    background: var(--bg-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    font-family: var(--primary-font);
    color: var(--gray-500);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.spec-value {
    font-family: var(--heading-font);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.policies-box {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.policies-box h3 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
}

.policies-box ul li {
    font-family: var(--primary-font);
    color: var(--gray-400);
    list-style: square;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 5.3 PRICING */
.pricing-section {
    padding: 6rem 4rem;
    border-top: 1px solid var(--accent-line);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.price-card {
    border: 1px solid var(--accent-line);
    padding: 3rem 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.price-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.price-card.active {
    border-color: var(--primary-color);
    border-width: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.card-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--black);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--primary-font);
}

.card-top {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--accent-line);
    padding-bottom: 1rem;
}

.plan-name {
    font-family: var(--primary-font);
    color: var(--gray-400);
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.price-wrap {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0;
}

.amount {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.billing {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-family: var(--primary-font);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    font-family: var(--primary-font);
    color: var(--gray-200);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li::before {
    content: '✓';
    color: var(--primary-color);
}

.klarna-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--gray-400);
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 4px;
}

.klarna-badge {
    font-weight: 800;
    color: #FFB3C7; /* Klarna Pink */
}

/* 5.4 - 5.6 BOOKING ENGINE */
.booking-engine {
    background: var(--gray-700);
    padding: 4rem;
    border-top: 1px solid var(--accent-line);
}

.booking-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.config-block {
    margin-bottom: 3rem;
}

.config-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

/* FullCalendar Styling */
#bookingCalendar {
    margin: 1.5rem 0;
    min-height: 400px;
}

.fc {
    font-family: var(--primary-font);
    color: var(--text-color);
}
.fc-theme-standard thead tr {
    height: 40px;
    display: flex;
    justify-content: space-between;
}
.fc-theme-standard th {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--accent-line);
}

.fc-theme-standard .fc-scrollgrid {
    border-color: var(--accent-line);
    background: var(--bg-color);
}

.fc-toolbar-title {
    font-family: var(--heading-font);
    color: var(--white);
    font-weight: 600;
}

.fc-button {
    background: transparent !important;
    border: 1px solid var(--accent-line) !important;
    color: var(--text-color) !important;
    font-family: var(--primary-font) !important;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease !important;
}

.fc-button:hover {
    background: var(--white) !important;
    color: var(--black) !important;
    border-color: var(--white) !important;
}

.fc-button:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.fc-button-active {
    background: var(--white) !important;
    color: var(--black) !important;
    border-color: var(--white) !important;
}

.fc-daygrid-day {
    background: var(--bg-color);
}

.fc-daygrid-day-number {
    color: var(--text-color) !important;
    padding: 0.5rem;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Day labels (Mon, Tue, Wed, etc.) */
.fc-col-header-cell {
    background: var(--bg-color);
    border-color: var(--accent-line);
}

.fc-col-header-cell-cushion {
    color: var(--text-color) !important;
    padding: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Remove styling from .fc-day-today - only .fc-day-selected should have styling */
.fc-day-today {
    /* No special styling - today is just another day unless selected */
}

.fc-day-today .fc-daygrid-day-number {
    /* No special styling for today's number */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Blocked dates styling */
.fc-blocked-date {
    background: rgba(220, 53, 69, 0.2) !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.fc-blocked-date .fc-daygrid-day-number {
    color: var(--gray-500) !important;
    text-decoration: line-through;
    opacity: 1 !important;
    visibility: visible !important;
}

.fc-blocked-event {
    pointer-events: none !important;
}

/* Non-working days */
.fc-non-working-day {
    background: rgba(255, 255, 255, 0.02) !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.fc-non-working-day .fc-daygrid-day-number {
    color: var(--gray-500) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Past dates - visible but disabled */
.fc-past-date {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.fc-past-date .fc-daygrid-day-number {
    color: var(--gray-500) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Selected date - only apply to the main td element */
/* This is the ONLY class that should provide selection styling */
.fc-daygrid-day.fc-day-selected {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid var(--primary-color) !important;
}

.fc-daygrid-day.fc-day-selected .fc-daygrid-day-number {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* When today is selected, it should have both classes but only selected styling applies */
.fc-day-today.fc-day-selected {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid var(--primary-color) !important;
}

.fc-day-today.fc-day-selected .fc-daygrid-day-number {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Ensure child divs don't have the selected class */
.fc-daygrid-day-top.fc-day-selected {
    /* Remove any styling that might conflict */
    background: transparent !important;
    border: none !important;
}

/* Hover effect for selectable dates */
.fc-daygrid-day:not(.fc-blocked-date):not(.fc-non-working-day):not(.fc-past-date):hover {
    background: rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
}

.fc-daygrid-day:not(.fc-blocked-date):not(.fc-non-working-day):not(.fc-past-date):hover .fc-daygrid-day-number {
    color: var(--primary-color) !important;
}

/* Ensure all day numbers are visible */
.fc-daygrid-day-frame {
    min-height: 3rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-daygrid-day-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide event containers - we don't show events in day cells, only background colors for blocked dates */
.fc-daygrid-day-events {
    display: none !important;
}

/* Event styling - hidden since we don't use them */
.fc-event {
    display: none !important;
}

.fc-event-title {
    display: none !important;
}

/* Background events (blocked dates) - these render as background colors */
.fc-daygrid-day-bg {
    /* This is where background events are rendered */
}

/* Additional visibility fixes */
.fc-daygrid-day-number,
.fc-day-today .fc-daygrid-day-number,
.fc-past-date .fc-daygrid-day-number,
.fc-blocked-date .fc-daygrid-day-number,
.fc-non-working-day .fc-daygrid-day-number {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Time Slots */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.time-btn {
    background: transparent;
    border: 1px solid var(--accent-line);
    color: var(--gray-200);
    padding: 1rem;
    cursor: pointer;
    font-family: var(--primary-font);
    transition: all 0.2s;
}

.time-btn:hover, .time-btn.selected {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Duration Select */
#durationSelect {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--accent-line);
    color: var(--white);
    font-family: var(--primary-font);
    margin-top: 1rem;
}

/* Addons */
.addons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.addon-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--accent-line);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.addon-card:hover {
    border-color: var(--gray-400);
}

.addon-card input {
    display: none;
}

.addon-content {
    display: flex;
    flex-direction: column;
}

.addon-name {
    font-family: var(--heading-font);
    font-weight: 600;
}

.addon-price {
    font-family: var(--primary-font);
    color: var(--gray-400);
    font-size: 0.9rem;
}

.check-circle {
    width: 20px;
    height: 20px;
    border: 1px solid var(--gray-400);
    border-radius: 50%;
    position: relative;
}

.addon-card input:checked ~ .check-circle {
    background: var(--white);
    border-color: var(--white);
}

/* CHECKOUT PANEL */
.checkout-panel {
    position: relative;
}

.sticky-receipt {
    position: sticky;
    top: 2rem;
    background: var(--bg-color);
    border: 1px solid var(--accent-line);
    padding: 2rem;
}

.receipt-header {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--accent-line);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.line-item {
    display: flex;
    justify-content: space-between;
    font-family: var(--primary-font);
    margin-bottom: 1rem;
    color: var(--gray-200);
}

.line-item.faded { color: var(--gray-500); font-style: italic; }
.line-item.total { font-weight: 700; color: var(--white); font-size: 1.2rem; margin-top: 1rem; }
.line-item.deposit { color: var(--star-color); font-size: 0.9rem; }
.divider-dashed { border-bottom: 1px dashed var(--gray-600); margin: 1rem 0; }

/* Payment Form */
.payment-form { 
	margin-top: 2rem; 
}

.payment-title {
	font-family: var(--heading-font);
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
	color: var(--text-color);
}

.input-group { 
	margin-bottom: 1.5rem; 
}

.input-group label {
	display: block;
	font-family: var(--primary-font);
	font-size: 0.9rem;
	color: var(--gray-400);
	margin-bottom: 0.5rem;
}

.input-group input { 
	width: 100%;
	padding: 0.75rem; 
	background: rgba(255, 255, 255, 0.05); 
	border: 1px solid var(--accent-line); 
	color: var(--text-color); 
	font-family: var(--primary-font);
	font-size: 1rem;
	outline: none;
	transition: border-color 0.3s;
}

.input-group input:focus {
	border-color: var(--primary-color);
}

/* Stripe Payment Element Container */
#stripe-payment-element {
	margin: 1rem 0;
}

/* Legacy stripe-box styles (kept for backwards compatibility if needed) */
.stripe-box {
	border: 1px solid var(--accent-line);
	background: var(--gray-700);
	margin-bottom: 1rem;
}
.card-row {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--accent-line);
	padding: 0 1rem;
}
.card-row:last-child { border-bottom: none; }
.card-icon { width: 24px; stroke: var(--white); fill: none; margin-right: 10px; }
.stripe-input { background: transparent; border: none; color: var(--white); padding: 1rem 0; width: 100%; outline: none; }
.card-row.split input { width: 50%; }
.card-row.split input:first-child { border-right: 1px solid var(--accent-line); }

.payment-methods { 
	display: flex; 
	gap: 1rem; 
	margin: 1.5rem 0; 
	flex-wrap: wrap; 
}

.method-btn { 
	flex: 1;
	min-width: 120px;
	padding: 0.75rem 1rem; 
	background: rgba(255, 255, 255, 0.05); 
	border: 1px solid var(--accent-line); 
	color: var(--text-color); 
	font-family: var(--primary-font);
	font-size: 0.9rem;
	cursor: pointer; 
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.method-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--primary-color);
}

.method-btn svg {
	width: 50px;
	height: 50px;
	fill: currentColor;
}

.klarna-btn { 
	background: rgba(255, 255, 255, 0.1);
	font-weight: 600;
}
.pay-btn {
	width: 100%;
	background: var(--white);
	color: var(--black);
	padding: 1.2rem;
	font-family: var(--heading-font);
	font-weight: 700;
	border: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	transition: transform 0.2s;
}

.pay-btn:hover { 
	transform: translateY(-2px);
}

.pay-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.terms-text {
	font-family: var(--primary-font);
	font-size: 0.85rem;
	color: var(--gray-400);
	text-align: center;
	margin-top: 1rem;
}

.terms-text a {
	color: var(--primary-color);
	text-decoration: none;
}

.terms-text a:hover {
	text-decoration: underline;
}

/* 5.7 CONFIRMATION MODAL */
.confirmation-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}

.conf-content {
    background: var(--bg-color);
    border: 1px solid var(--white);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.conf-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}
.conf-icon svg { width: 30px; stroke: currentColor; stroke-width: 3; fill: none; }

.email-preview {
    background: var(--gray-100);
    color: var(--black);
    padding: 1.5rem;
    text-align: left;
    margin: 1.5rem 0;
    font-family: var(--primary-font);
    font-size: 0.9rem;
}

.close-conf {
    background: transparent;
    border: 1px solid var(--gray-500);
    color: var(--white);
    padding: 1rem 2rem;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .rental-title { font-size: 4rem; }
    .pricing-cards { grid-template-columns: 1fr; }
    .booking-container { grid-template-columns: 1fr; }
    .sticky-receipt { position: static; }
}