/* Reset podstawowych ustawień */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tło strony – upewnij się, że obraz znajduje się w folderze /images */
body {
    background: url('/data/images/airplane.png') no-repeat center center fixed;
    background-size: cover;
    color: #e0f7fa;
    position: relative;
}
/* Czcionki */
/* <weight>: Use a value from 100 to 900 */
/* <uniquifier>: Use a unique and descriptive class name */

.doto-<uniquifier> {
  font-family: "Doto", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "ROND" 0;
}

.rg {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px; /* np. 8–16px dla lekkiego efektu */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* opcjonalny cień */
  display: block;
  border-radius: 0;
}
.rg-box{
	background: #6d6d6f66;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 2em;
    display: flex;
    flex-direction: column;
    font-family: "Gantari", sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #499aa5;
    justify-content: center;
    text-align: justify;
    align-items: center;
}
.img-container {
  position: relative; /* potrzebne, by overlay działał */
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 0;
  display: inline-block;
  font-family: "Gantari", sans-serif;
  overflow: hidden;
}


/* Przyciemnienie (overlay) */
.img-container .overlay2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Tekst na obrazku */
.img-container .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 2;
  font-size: 1.2rem;
  text-shadow: 0 0 5px black;
  text-align: center;
}


a {
	text-decoration: none !important;  /* Usuwa podkreślenie */
    color: inherit !important;         /* Zachowuje kolor nagłówka */
    border-bottom: none !important;    /* Usuwa podkreślenie generowane przez border */
}


/* Nakładka – lekko przyciemnia tło */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Nagłówek */
header {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
	
}

header h1 {
    font-size: 3rem;
    color: #00bcd4;
	text-decoration: none !important;
	font-family: Doto;
	font-style: bold;
}


.opis {
	background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
	text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.opiss {
	display:flex;
	align-items: center;
	background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
	text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
	margin-bottom: 20px;
}

/* Opis parkingu */
.description {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Formularz rezerwacji */
.reservation-form {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.reservation-form h2 {
    margin-bottom: 15px;
    color: #00bcd4;
}

.form-row {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.form-row label {
    flex: 1;
    min-width: auto;
    margin-left: 50px;
    font-size: 1rem;
}

.form-row-reg {
	margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: auto;
    margin-left: 50px;
    font-size: 1rem;
}
.form-row-reg input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
	margin-left: 15px;
}

.form-row select,
.form-row input,
.form-row button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row button {
    background-color: #00bcd4;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s;
}

.form-row button:hover {
    background-color: #0097a7;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    color: #e0f7fa;
    font-size: 0.9rem;
}

/* Responsywność */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    .description, .reservation-form {
        padding: 15px;
		width: 100%;
        margin-left: 0;
    }
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-row label,
    .form-row input {
        width: 100%;
        margin: 5px 0;
    }
	.form-row-reg {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
    }
}
/* Domyślnie Flatpickr blokuje daty wyblakłym stylem, nadpisujemy to */
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    background: rgba(255, 0, 0, 0.5) !important; /* Czerwone tło */
    color: white !important;
    border-radius: 5px;
    cursor: not-allowed;
    opacity: 1 !important; /* Pełna widoczność, zamiast wyblakłego efektu */
}

/* Styl dla chmurki z ceną */
#price-popup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    background: rgba(0, 188, 212, 0.9); /* Kolor pasujący do reszty */
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    font-family: "Segoe UI", sans-serif;
    text-align: center;
    min-width: 250px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, transform 0.3s ease-out;
    z-index: 10;
}

/* Ikona w chmurce */
#price-popup .icon {
    font-size: 2rem;
    margin-bottom: 5px;
    display: block;
}

/* Animacja pojawiania się chmurki */
.show-popup {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-10px);
}

/* Galeria */
.galeria {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
    color: #e0f7fa;
}

.galeria h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00bcd4;
}

.opis h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00bcd4;
}

.opis h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: #00bcd4;
}

.galeria p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.gallery-grid img:hover {
    transform: scale(1.05);
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}


/* Regulamin */ 

.regulamin {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 30px;
    color: #e0f7fa;
    line-height: 1.6;
    font-size: 1.1rem;
}

.regulamin h2, .regulamin h3, .regulamin h4 {
    color: #00bcd4;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.regulamin h2 {
    font-size: 2rem;
}

.regulamin h3 {
    font-size: 1.6rem;
}

.regulamin h4 {
    font-size: 1.3rem;
    text-align: left;
}

.regulamin p {
    margin-bottom: 15px;
}

.regulamin ol {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: decimal;
}

.regulamin ul {
    list-style-type: disc;
    margin-left: 40px;
    margin-top: 10px;
}

.regulamin li {
    margin-bottom: 10px;
}

.regulamin a {
    color: #00bcd4;
    text-decoration: underline;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px 20px;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.arrow.left {
    left: 30px;
}

.arrow.right {
    right: 30px;
}

/* Główna zawartość – wyśrodkowana */
@media (min-width: 769px){
	main {
		display: flex;
		flex-direction: column; /* Układ pionowy */
		align-items: center; /* Wyśrodkowanie poziome */
		justify-content: center; /* Wyśrodkowanie pionowe */
		min-height: 90vh; /* Minimalna wysokość ekranu */
		padding: 20px;
	}
}

@media (max-width: 768px){
		main {
			display: flex;
			flex-direction: column;
			align-items: center; /* Wyśrodkowanie poziome */
			justify-content: center; /* Wyśrodkowanie pionowe */
			min-height: 60vh;
			padding: 20px;
		}
    }
	
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}