	/* ========================================
	   AUTOPŮJČOVNA - KARTY VOZŮ
	   ======================================== */
	
	#autopujcovna-grid {
		background-color: transparent;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(380px, auto));
		justify-items: center;
		gap: 2em;
	}
	
	#autopujcovna-grid:empty {
		display: none;
	}
	
	.karta-auto {
		position: relative;
		width: 380px;
		background: #fff;
		box-shadow: 0 4px 15px rgba(0,0,0,0.1);
		padding: 1.5rem;
		text-align: center;
		transition: transform 0.3s ease, box-shadow 0.3s ease;
		/* NOVÉ - flexbox pro zarovnání obsahu */
		display: flex;
		flex-direction: column;
	}
	@media (max-width: 768px) {
		#autopujcovna-grid {
			grid-template-columns: 1fr;
			padding: 0.5rem;
		}
		#autopujcovna.section-block {
			padding-left: 0;
			padding-right: 0;
		}
		.karta-auto {
			max-width: 360px;
		}
	}
	
	.karta-auto:hover {
		transform: translateY(-5px);
		box-shadow: 0 8px 25px rgba(0,0,0,0.15);
	}

	.karta-auto.karta-unavailable {
		background: #f5f5f5; /* #e6e6e6 */
	}

	.status-badge {
		position: absolute;
		top: 10px;
		right: 10px;
		font-size: 0.85em;
		padding: 5px 12px;
		border-radius: 20px;
		font-weight: 600;
	}

	.status-available {
		background: #4caf50;
		color: white;
	}

	.status-unavailable {
		background: #e67300;
		color: white;
	}

	/* UPRAVENO - kontejner pro obrázek s fixní výškou */
	.karta-auto-image {
		height: 180px;           /* Fixní výška kontejneru */
		display: flex;
		align-items: center;     /* Vertikální centrování obrázku */
		justify-content: center; /* Horizontální centrování obrázku */
		margin-bottom: 1rem;
	}
	
	/* UPRAVENO - obrázek zachová proporce */
	.karta-auto-image img {
		max-width: 90%;
		max-height: 100%;
		width: auto;
		height: auto;
		object-fit: contain;     /* Zachová proporce, nevyplní celý prostor */
		border-radius: 10px;
	}

	.karta-auto-title {
		margin-bottom: 1rem;
	}

	.karta-auto-brand {
		font-size: 1.3em;
		color: #666;
		margin-bottom: 0.3em;
	}

	.karta-auto-model {
		font-size: 1.1em;
		color: #888;
	}
	
	/* UPRAVENO - cena se roztáhne a vytlačí tlačítka dolů */
	.karta-auto-price {
		margin-bottom: 1.5rem;
		flex-grow: 1;            /* Zabere zbývající prostor */
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
	}

	.price-label {
		color: #888;
		margin-bottom: 0.5em;
	}

	.price-main {
		font-weight: bold;
		font-size: 1.5em;
		margin-bottom: 0.3em;
	}

	.price-month {
		font-weight: bold;
		font-size: 0.95em;
		margin-bottom: 0.5em;
	}

	.price-note {
		font-size: 0.85em;
		color: #999;
	}
	
	/* UPRAVENO - tlačítka vždy na spodku karty */
	.karta-auto-buttons {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
		margin-top: auto;        /* Tlačí tlačítka ke spodku */
	}

	.karta-auto-buttons button {
		padding: 0.75rem 1.5rem;
		border: none;
		border-radius: 8px;
		font-size: 1em;
		cursor: pointer;
		transition: all 0.3s ease;
	}

	.btn-detail {
		background: #4caf50;
		color: white;
	}

	.btn-detail:hover {
		background: #43a047;
	}

	.btn-request {
		background: #3598db;
		color: white;
	}

	.btn-request:hover:not(:disabled) {
		background: #2980b9;
	}

	.btn-request: disabled {
		background: #ccc;
		cursor: not-allowed;
	}

	/* ========================================
	   MODÁLNÍ OKNA - SPOLEČNÉ STYLY
	   ======================================== */

	.modal-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.7);
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 10000;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
		padding: 1rem;
		box-sizing: border-box;
		overflow-y: auto;
	}

	.modal-overlay.active {
		opacity: 1;
		visibility: visible;
	}

	.modal-container {
		background: #f5f5f5;
		border-radius: 15px;
		max-width: 1200px;
		width: 100%;
		max-height: 90vh;
		overflow-y: auto;
		position: relative;
		padding: 2rem;
		box-shadow: 0 10px 40px rgba(0,0,0,0.3);
		animation: modalSlideIn 0.3s ease;
	}

	@keyframes modalSlideIn {
		from {
			transform: translateY(-30px);
			opacity: 0;
		}
		to {
			transform: translateY(0);
			opacity: 1;
		}
	}

	.modal-close {
		position: absolute;
		top: 15px;
		right: 15px;
		width: 40px;
		height: 40px;
		border: none;
		background: #e74c3c;
		color: white;
		font-size: 1.5em;
		border-radius: 50%;
		cursor:  pointer;
		transition: background 0.3s ease;
		z-index: 10;
	}

	.modal-close:hover {
		background: #c0392b;
	}

	.modal-header-badge {
		font-family: Arial !important;
		display: inline-block;
		background: #f1c40f;
		color: #333;
		padding: 0.5rem 1.5rem;
		border-radius: 25px;
		font-weight: bold;
		font-size: 1.1em;
		margin-bottom: 1.5rem;
	}

	.modal-title {
		text-align: center;
		margin-bottom: 1.5rem;
		color: #333;
	}

	.modal-footer {
		display: flex;
		justify-content: center;
		gap: 1rem;
		margin-top: 2rem;
		padding-top: 1rem;
		border-top: 1px solid #ddd;
	}

	/* ========================================
	   MODAL DETAIL - TŘI KARTY
	   ======================================== */

	.modal-detail-container {
		text-align: center;
	}

	.modal-detail-cards {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}

	@media (max-width: 992px) {
		.modal-detail-cards {
			grid-template-columns: 1fr;
		}
	}

	.detail-card {
		background: white;
		border-radius: 12px;
		padding: 1.5rem;
		box-shadow: 0 4px 15px rgba(0,0,0,0.08);
		text-align: left;
	}

	.detail-card h3 {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		margin-bottom: 1rem;
		padding-bottom: 0.75rem;
		border-bottom: 2px solid #3598db;
		color: #333;
		font-size: 1.1em;
	}

	.detail-icon {
		width: 24px;
		height: 24px;
	}

	.detail-card-content {
		font-size: 0.95em;
		color: #555;
		line-height: 1.6;
	}

	.detail-card-content ul {
		margin: 0;
		padding-left: 1.2rem;
	}

	.detail-card-content li {
		margin-bottom: 0.5rem;
	}

	.pricing-table {
		width: 100%;
		border-collapse: collapse;
	}

	.pricing-table td {
		padding:  0.5rem 0;
		border-bottom: 1px solid #eee;
	}

	.pricing-table td:last-child {
		text-align: right;
		font-weight: bold;
	}

	.pricing-highlight {
		background: #e8f5e9;
		padding: 0.75rem;
		border-radius: 8px;
		margin-top: 1rem;
		text-align: center;
	}

	.pricing-highlight strong {
		color: #2e7d32;
	}

	.specs-table {
		width: 100%;
	}

	.specs-table tr td {
		padding: 0.5rem 0;
		border-bottom: 1px solid #eee;
	}

	.specs-table tr td:first-child {
		color: #888;
	}

	.specs-table tr td:last-child {
		font-weight: 500;
		text-align: right;
	}

	.btn-back {
		background: #e74c3c;
		color: white;
		border: none;
		padding: 0.75rem 2rem;
		border-radius: 8px;
		font-size: 1em;
		cursor: pointer;
		transition: background 0.3s ease;
	}

	.btn-back:hover {
		background: #c0392b;
	}

	/* ========================================
	   MODAL REQUEST - FORMULÁŘ
	   ======================================== */

	.modal-request-container {
		max-width: 700px;
	}

	.form-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	@media (max-width: 600px) {
		.form-grid {
			grid-template-columns: 1fr;
		}
	}

	.form-group {
		text-align: left;
	}

	.form-group-full {
		grid-column: 1 / -1;
	}

	.form-group label {
		display: block;
		margin-bottom: 0.4rem;
		font-weight: 500;
		color: #333;
	}

	.form-group input,
	.form-group select,
	.form-group textarea {
		width: 100%;
		padding: 0.75rem;
		border: 2px solid #ddd;
		border-radius: 8px;
		font-size: 1em;
		transition: border-color 0.3s ease;
		box-sizing: border-box;
	}

	.form-group input:focus,
	.form-group select:focus,
	.form-group textarea:focus {
		outline: none;
		border-color: #3598db;
	}

	.form-group input.field-valid,
	.form-group select.field-valid {
		border-color: #4caf50;
	}

	.form-group input.field-invalid,
	.form-group select.field-invalid {
		border-color: #e74c3c;
	}

	.field-status {
		display: block;
		font-size: 0.85em;
		margin-top: 0.3rem;
		min-height: 1.2em;
	}

	.field-status.status-ok {
		color: #4caf50;
	}

	.field-status.status-ok::before {
		content: "✓ ";
	}

	.field-status.status-error {
		color: #e74c3c;
	}

	.field-status.status-error::before {
		content: "✗ ";
	}

	.btn-cancel {
		background: #95a5a6;
		color: white;
		border: none;
		padding: 0.75rem 2rem;
		border-radius: 8px;
		font-size: 1em;
		cursor: pointer;
		transition:  background 0.3s ease;
	}

	.btn-cancel:hover {
		background: #7f8c8d;
	}

	.btn-submit {
		background: #3598db;
		color: white;
		border: none;
		padding: 0.75rem 2rem;
		border-radius: 8px;
		font-size: 1em;
		cursor: pointer;
		transition: background 0.3s ease;
	}

	.btn-submit:hover {
		background: #2980b9;
	}

	.btn-submit:disabled {
		background: #ccc;
		cursor: not-allowed;
	}

	/* ========================================
	   MODAL SUCCESS
	   ======================================== */

	.modal-success-container {
		max-width: 400px;
		text-align: center;
		padding: 3rem 2rem;
	}

	.success-icon {
		width: 80px;
		height: 80px;
		background: #4caf50;
		color: white;
		font-size: 3em;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 auto 1.5rem;
	}

	.modal-success-container h2 {
		color: #333;
		margin-bottom: 1rem;
	}

	.modal-success-container p {
		color: #666;
		margin-bottom: 2rem;
	}

	.btn-success-ok {
		background: #4caf50;
		color: white;
		border: none;
		padding: 1rem 3rem;
		border-radius: 8px;
		font-size: 1.1em;
		cursor: pointer;
		transition: background 0.3s ease;
	}

	.btn-success-ok:hover {
		background: #43a047;
	}

	/* ========================================
	   VLASTNÍ DATEPICKER
	   ======================================== */

	/* Zajistí, že datepicker je vždy nad modalem */
	.datepicker-container {
		position: fixed;
		z-index: 10002; /* Zvýšeno z 10001 */
		display: none;
	}

	.datepicker-container.active {
		display: block;
	}

	/* Alternativní řešení - overlay pod datepickerem pro lepší UX */
	.datepicker-container.active::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.3);
		z-index: -1;
	}
	
	.datepicker {
		background: white;
		border-radius: 12px;
		box-shadow: 0 10px 40px rgba(0,0,0,0.2);
		padding: 1rem;
		width: 300px;
	}

	.datepicker-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 1rem;
		padding-bottom: 0.5rem;
		border-bottom: 1px solid #eee;
	}

	.datepicker-month-year {
		font-weight: bold;
		color: #333;
	}

	.datepicker-prev,
	.datepicker-next {
		background: #3598db;
		color: white;
		border: none;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		cursor:  pointer;
		font-size: 1em;
		transition: background 0.3s ease;
	}

	.datepicker-prev:hover,
	.datepicker-next:hover {
		background: #2980b9;
	}

	.datepicker-weekdays {
		display: grid;
		grid-template-columns: repeat(7, 1fr);
		text-align: center;
		font-weight: bold;
		color: #888;
		font-size: 0.85em;
		margin-bottom: 0.5rem;
	}

	.datepicker-days {
		display: grid;
		grid-template-columns: repeat(7, 1fr);
		gap: 2px;
	}

	.datepicker-day {
		aspect-ratio: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		cursor: pointer;
		font-size: 0.9em;
		transition: all 0.2s ease;
	}

	.datepicker-day:hover:not(.disabled):not(.reserved) {
		background: #e3f2fd;
	}

	.datepicker-day.today {
		background: #fff3e0;
		font-weight: bold;
		color: #e67300;
		border: 2px solid #e67300;
	}

	.datepicker-day.selected {
		background: #3598db;
		color: white;
	}

	.datepicker-day.in-range {
		background: #bbdefb;
		border-radius: 0;
	}

	.datepicker-day.range-start {
		border-radius: 50% 0 0 50%;
	}

	.datepicker-day.range-end {
		border-radius: 0 50% 50% 0;
	}

	.datepicker-day.disabled {
		color: #ccc;
		cursor: not-allowed;
		text-decoration: line-through;
	}

	.datepicker-day.reserved {
		background: #ffebee;
		color: #c62828;
		cursor: not-allowed;
		position: relative;
	}

	.datepicker-day.reserved::after {
		content: "";
		position: absolute;
		width: 70%;
		height: 2px;
		background: #c62828;
		transform: rotate(-45deg);
	}

	.datepicker-day.other-month {
		color: #bbb;
	}

	.datepicker-day.empty {
		visibility: hidden;
	}

/* ========================================
   DATEPICKER - MOBILNÍ ÚPRAVY
   ======================================== */

@media (max-width: 480px) {
    .datepicker {
        width: calc(100vw - 20px);
        max-width: 300px;
    }
    
    .datepicker-day {
        font-size: 0.85em;
    }
}
