@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--color-bg, #ffffff);
  color: var(--color-W, #252524);
  line-height: 1.5;
}

:root {
  --color-bg: #ffffff;
  --color-W: #252524;
  --color-P: #c52f21;
  --color-success: #28a745;
  --color-danger: #dc3545;
}

.site-header {
  background: var(--color-bg);
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
}
.inner-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.back-button {
  font-size: 1.5em;
  color: var(--color-W);
  text-decoration: none;
  margin-right: 1em;
}
.logo-link {
  display: inline-block;
}
.logo {
  height: 80px;
}
.open-status {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.status-text {
  font-weight: bold;
  margin-right: 10px;
}
.status-text.open {
  color: var(--color-success);
}
.status-text.closed {
  color: var(--color-danger);
}
.icon-btn {
  color: var(--color-P);
  font-size: 1.2em;
  margin-left: 8px;
  text-decoration: none;
}
.icon-btn:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .site-header {
    padding: 8px 10px;
  }
  .inner-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .logo {
    height: 40px;
  }
  .open-status {
    width: 100%;
    justify-content: center;
    display: flex;
    gap: 10px;
  }
  .status-text {
    font-size: 0.9em;
    text-align: center;
  }
  .icon-btn,
  .login-footer,
  .settings-footer {
    font-size: 1.6em;
  }
}

.slider-ubytovani {
  width: 100%;
  height: 700px;
  margin: auto;
  position: relative;
  overflow: hidden;
}
.slider-ubytovani .list {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
}
.slider-ubytovani .item {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
}
.slider-ubytovani .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slider-ubytovani .item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.centered-text {
  position: absolute;
  bottom: 20px; left: 20px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.slider-ubytovani .item.active .centered-text {
  opacity: 1;
}
.slider-ubytovani .buttons {
  position: absolute;
  top: 45%; left: 5%;
  width: 90%;
  display: flex; justify-content: space-between;
  display: none;
}
.slider-ubytovani .buttons button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-P);
  color: #fff;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, color 0.3s;
  display: none;
}
.slider-ubytovani .buttons button:hover {
  background: var(--color-P);
  color: #fff;
}
.slider-ubytovani .dots {
  position: absolute;
  bottom: 10px; left: 0;
  width: 100%;
  display: flex; justify-content: center;
  list-style: none;
  display: none;
}
.slider-ubytovani .dots li {
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  margin: 0 5px;
  transition: background 0.3s, transform 0.3s;
}
.slider-ubytovani .dots li.active {
  background: var(--color-P);
  transform: scale(1.2);
}

@media (max-width:768px) {
  .slider-ubytovani {
    height: 250px; 
  }

  .slider-ubytovani .centered-text {
    font-size: 1rem;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .slider-ubytovani .item img {
    object-fit: cover;
  }
}


.login-page {
  padding: 40px;
  max-width: 400px;
  margin: 60px auto;
}
.login-page h2 {
  margin-bottom: 20px;
  text-align: center;
}
.login-page form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login-page input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.login-page button {
  padding: 10px;
  background: var(--color-P);
  color: #fff;
  border: none;
  cursor: pointer;
}
.login-page .error {
  color: var(--color-danger);
  font-weight: bold;
  text-align: center;
}

.admin-settings {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.admin-settings h1 {
  margin-bottom: 20px;
}
.admin-settings table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.admin-settings th,
.admin-settings td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}
.admin-settings th {
  background: #f5f5f5;
}
.admin-settings input[type="time"] {
  padding: 4px;
}
.admin-settings button {
  margin-top: 15px;
  padding: 8px 16px;
  background: var(--color-P);
  color: #fff;
  border: none;
  cursor: pointer;
}
.admin-settings button:hover {
  background: #b52828;
}
.admin-settings .success {
  color: var(--color-success);
  font-weight: bold;
  text-align: center;
}

@media (max-width: 768px) {
  .admin-settings {
    padding: 20px 10px !important;
    margin: 20px auto !important;
  }
  .admin-settings form {
    overflow-x: auto;
  }
  .admin-settings table {
    display: block;
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
  }
  .admin-settings table thead,
  .admin-settings table tbody,
  .admin-settings table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }
  .admin-settings table th,
  .admin-settings table td {
    padding: 8px 6px !important;
    font-size: 0.9em;
    white-space: nowrap;
  }
  .admin-settings input[type="time"] {
    width: 100%;
    box-sizing: border-box;
  }
  .admin-settings input[type="checkbox"] {
    transform: scale(1.3);
    margin: 0;
  }
  .admin-settings button[type="submit"],
  .admin-settings .btn-back {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

.site-footer {
  background: var(--color-P);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.inner-footer {
  max-width: 1200px;
  margin: 0 auto;
}
.inner-footer a{
  color: #fff;
  text-decoration: none;
}
.inner-footer a:hover{
  text-decoration: underline;
}
.site-footer {
  position: relative;
}
.settings-footer,
.login-footer {
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 1em;
  color: var(--color-P);
  text-decoration: none;
  transition: opacity 0.2s;
}
.settings-footer:hover,
.login-footer:hover {
  opacity: 0.8;
}

.btn-back {
  background: var(--color-P);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.status-text {
  color: var(--color-W, #252524);
  font-weight: bold;
  margin-right: 10px;
}
.status-word.open {
  color: #28a745;
}
.status-word.closed {
  color: #dc3545;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-section {
  padding: 60px 0;
  padding-top: 100px;
}

.about {
  display: flex;
  align-items: center;
  gap: 40px;
}
.about.reverse {
  flex-direction: row-reverse;
}
.about-text,
.about-image {
  flex: 1;
}

.section-subtitle {
  display: block;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 10px;
}

.about-text h2 {
  font-family: var(--font-nadpis);
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--color-W);
}
.about-text h2 span {
  color: var(--color-P);
  text-transform: uppercase;
}

.about-text p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--color-G2);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
  }
  .about.reverse {
    flex-direction: column;
  }
  .about-text,
  .about-image {
    width: 100%;
    margin: 0;
  }
  .about-text {
    margin-bottom: 30px;
  }
}

.info-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 60px auto;
  max-width: 1400px;
  padding: 40px 20px;
}

.info-box {
  flex: 0 1 calc(33.333% - 30px);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.info-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px; 
}
.info-box h3 .fa {
  font-size: 1.2em;
  color: var(--color-P);
}
.info-box p {
  margin-bottom: 12px;
  font-size: 1.1em;
  color: var(--color-G2);
  line-height: 1.6;
  margin-left: calc(1.2em + 10px);
}
.info-box p strong {
  color: var(--color-C);
}

@media (max-width: 768px) {
  .info-section {
    flex-direction: column;
  }
  .info-box {
    flex: 1;
    margin-bottom: 20px;
  }
}

.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 100px;
}

.center-container img {
  width: 100%;        
  max-width: 650px;   
  height: auto;       
  object-fit: cover;  
}


@media (max-width: 480px) {
  .center-container img {
    max-width: 90%;   
  }
}

.plain-link {
  color: black;
  text-decoration: none;
}
.plain-link:hover {
  text-decoration: underline;
}
