@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../inc/Cinzel.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../inc/PlayfairDisplay.woff2') format('woff2');
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: 'Playfair Display', serif;
    -webkit-font-optical-sizing: auto;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 18px;
    font-style: normal;
    background: #e8dcd0;
    color: #6b5a4a;
    min-height: 100vh;
    padding: 0px;
    position: relative;
}
body::before {
    left: 0;
    width: 100%;
    min-width: 1200px;
    background-position: 0 0, 0 0;
    animation: mirrorSlide 0s infinite linear;
}
body::after {
    left: 50%;
    right: 0;
    transform: scaleX(-1);
}
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    height: 100%;
    background-image: url('./img/bg.webp');
    background-repeat: repeat-x;
    background-size: 1000px 100%;
    z-index: -1;
}
h2 {
	font-size: 18px;
}
.foot-copy {
	font-size: 16px;
	max-width: 700px;
	margin: 0 auto;
    padding: 10px;
} 
.hidden {
    display: none;
}
.container {
	max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.4); 
	margin: 0 auto;
	padding: 40px;
    border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Slider */
.slide-in {
    transform: translateX(0);
    opacity: 1;
}
#page-transition {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 600px;
}
#page-content {
    display: block;
    width: 100%;
    opacity: 1;
    transform: translateX(0);
    will-change: transform, opacity;
}
.slide-out {
    transform: translateX(-100%) !important;
    opacity: 0 !important;
    transition: transform 0.6s ease-in, opacity 0.6s ease-in !important;
}

/* Header */
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0;
	border-bottom: 2px solid #d4b896;
	margin-bottom: 30px;
    flex-wrap: wrap;
}
hr {
    color: #d4b896;
    border-top: 1px solid #d4b896;
}
.logo_img {
    background-image: url('./img/logo_new_gold.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
	width: 144px;
    height: 111px;
    margin-bottom: 20px;
}
.logo_text {
    background-image: url('./img/logo_text_trans_new.webp');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
	width: 405px;
    height: 95px;
    margin-left: -40px;
    margin-top: -25px;
}
nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: -25px;
    align-items: flex-end; /* Zarovná oba řádky doprava */
}

.nav-row {
    display: flex;
    gap: 10px;
}
nav a {
	border-radius: 16px;
    min-width: 124px;
}
.btn {
	display: inline-block;
    min-width: 100px;
	border-radius: 18px;
    border: none;
}
nav a,
.btn {
    text-align: center;
	padding: 8px 20px;
    background-image: url('./img/button_trans.webp');
    background-repeat: no-repeat;
    background-size: 99% 99%;
    font-family: 'Cinzel', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #574028;
	text-decoration: none;
	transition: all 0.3s;
}
nav a:hover,
.btn:hover {
	transform: translateY(+2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-rezervace {
    margin: -50px 0 25px auto;
    flex-basis: 100%;
    text-align: center;
    background-position: right;
    max-width: 124px;
	border-radius: 16px;
    border: none;
}
/* Hero */
.hero {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	margin-bottom: 40px;
}
.hero-image {
	height: 250px;
	background-size: cover;
	background-position: center;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
/* Services */
.services {
	display: grid;
	grid-template-columns: repeat(2,1fr) !important;
	gap: 30px;
	margin-bottom: 40px;
}
.service-card {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.service-card2 {
    grid-column: 1 / -1;
    max-width: 50%; /* Pokud nechceš, aby byla přes celou šířku mřížky */
    justify-self: center; /* Zarovná ji na střed */
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.service-image {
	height: 300px;
	background-size: cover;
	background-position: center;
}
.service-content {
	padding: 30px;
}
.service-content h1 {
	margin-bottom: 15px;
	font-size: 24px;
}
.service-content h2 {
	margin-bottom: 15px;
	font-size: 18px;
}
.service-content p {
	line-height: 1.6;
	margin-bottom: 20px;
}
/* Gallery - home */
.gallery-section {
	background: white;
	border-radius: 10px;
}
.gallery-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 20px;
}
.gallery-container {
    overflow: hidden;
    width: 100%;
}
.gallery {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 12px;
    padding: 0;
}
.gallery-item {
    flex: 0 0 calc(25% - 15px);
    aspect-ratio: 1/1;
    cursor: pointer;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}
#gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
/* Galerie */
.gallery-grid-container {
    overflow: hidden;
    width: 100%;
}
.gallery-grid {
    display: grid !important;
    grid-template-rows: repeat(4, 200px);
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 20px;
    width: max-content;
    transition: transform 0.6s ease-in-out;
}
.gallery-grid-item {
    width: 200px;
    height: 100%;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
}
.gallery-grid-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gallery-grid-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: #c4a676;
}
.nav-btn {
    background: #b89968;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}
.nav-btn:hover {
    background: #9e7f4d;
    transform: scale(1.1);
}
/* HeadSpa,Cosmetics */
.headspa,
.cosmetics {
	margin-bottom: 40px;
}
/* Contact */
.contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-top: 40px;
}
.contact-section {
	background: white;
	padding: 30px;
	border-radius: 10px;
}
.contact-info h3 {
	margin-bottom: 20px;
}
.contact-info input {
	width: 100%;
	padding: 12px;
	margin-bottom: 15px;
	border: 1px solid #d4b896;
	border-radius: 5px;
	font-size: 14px;
}
.contact-info textarea {
	width: 100%;
	padding: 12px;
	margin-bottom: 15px;
	border: 1px solid #d4b896;
	border-radius: 5px;
	font-size: 14px;
    resize: vertical;
}
.social-links {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}
.social-links a {
	width: 40px;
	height: 40px;
	background: #b89968;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	transition: all 0.3s;
}
.social-links a:hover {
	background: #9e7f4d;
	transform: translateY(-3px);
}
.map {
	height: 100%;
	min-height: 250px;
    max-height: 500px;
    background: linear-gradient(135deg,#e8dcd0,#d4c4b0);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-style: italic;
    padding: 15px;
}
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 20px 0;
}
.time-slot {
    padding: 10px;
    border: 1px solid #d4b896;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    background: #fff;
    font-family: 'Cinzel', sans-serif;
}
.time-slot.occupied {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    border-color: #ccc;
}
.time-slot.selected {
    background: #d4b896;
    color: white;
}
/* Footer */
footer {
	display: grid;
	margin-top: 40px;
    grid-template-columns: 1fr;
}
.footer-section {
	background: white;
	padding: 30px;
	border-radius: 10px;
}
.opening {
    width: 50%;
	margin: auto;
    text-align: center;
}
/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}
#lightbox.active {
    display: flex !important;
}
#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: zoomIn 0.25s ease;
    cursor: default;
}
.lightbox-prev, .lightbox-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    z-index: 10000;
}
#lightbox.active .lightbox-prev,
#lightbox.active .lightbox-next {
    display: block;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover, .lightbox-next:hover {
    color: #c4a676;
}
#lightbox {
    display: none;
}
#lightbox.active {
    display: flex !important;
}
.no-scroll {
    overflow: hidden !important;
}
@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* --- Responzivita --- */
/* --- Tablet --- */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* --- Mobil--- */
@media (max-width: 768px) {
    /* 1. Celkové nastavení */
    body {
        padding: 5px 10px;
    }
    .container {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    /* 2. Hlavička a Menu */
    header {
        flex-direction: column; 
        height: auto;
        padding: 0px 0px 10px 0px;
        gap: 15px;
    }
    .logo_text {
        background-position: center;
        margin-left: 0;
        width: 99%;
    }
    nav {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 0;
    }
    nav a {
        font-size: 15px;
        padding: 5px 8px;
        min-width: 70px;
    }
    .btn-rezervace {
        font-size: 13px;
        margin: 0 auto 10px auto;
        padding: 5px 8px;
        min-width: 95px;
        text-align: center;
    }
    /* 3. Hero sekce (Úvodní fotky) */
    .hero {
        flex-direction: column;
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-image {
        height: 200px;
        width: 100%;
    }
    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 8px;
    }
    /* 4. Služby (Karty) */
    .services, .headspa, .cosmetics {
        display: flex;
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 20px;
        padding: 10px 0;
    }
    .service-card {
        flex-direction: column !important;
        height: auto;
        width: 100%;
    }
    .service-image {
        width: 100% !important;
        height: 200px;
    }
    .service-content {
        width: 100% !important;
        padding: 20px;
        text-align: center;
    }
    /* 5. Kontaktní formulář (Vynucení šířky) */
    .contact-form input, 
    .contact-form textarea {
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }
    /* 6. Mapa a Footer */
    .contact {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr !important;
    }
    .contact-section {
        width: 100% !important;
        padding: 30px;
    }
    .contact-section.map iframe {
        height: 250px;
    }
    /* 7. Galerie */
    .gallery-grid {
        grid-template-rows: repeat(3,220px);
    }
    .gallery-grid-item {
        width: 220px;
        height: 220px;
    }
    #gallery-track {
        gap: 15px 15px;
    }
    .opening {
        width: 100%;
    }
}
/* Extrémně malé telefony */
@media (max-width: 480px) {
    nav a {
        font-size: 13px;
    }
    h2 {
        font-size: 24px;
    }
}