html, body{
  font-size: 14px;
  font-family: "Century Gothic", sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.hero {
  position: relative;
  background: url("/images/hostelFACADE.jpg")
  no-repeat center center / cover;
  height: 75vh;
  color: white;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.section {
  padding: 4rem 1.5rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  gap: 2rem;
}

.feature-item {
  flex: 1 1 250px;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 400px;
  text-align: left;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.booking-form {
  max-width: 500px;
  margin: 0 auto;
}

.booking-form input,
.booking-form select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem;
  border: none;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover {
  background-color: #1d4ed8;
}

.page-body {
  background-color: #f9fafb;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .nav-links {
    width: 100%;
  }

  .booking-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: black;
  font-family: 'Century Gothic', sans-serif;
}

.nav-links a,
.nav-links span.nav-link {
  margin-left: 1.5rem;
  text-decoration: none;
  color: black;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active {
  background-color: #f0f0f0;
}

.nav-links .active {
  background-color: #e5e7eb;
  font-weight: bold;
  cursor: default;
  pointer-events: none;
}

.booking-btn {
  background-color: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.booking-btn:hover {
  background-color: #1e40af;
}

.main-content {
  flex: 1;
  padding-bottom: 1rem;
}

.footer {
  background-color: #f3f4f6;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.contact-section {
  padding: 3rem 1.5rem;
  background-color: #ffffff;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-container h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.yandex-map {
  max-width: 1200px;
  height: 600px;
  margin: 0 auto;
  padding: 0;
}

.general-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #f9fafb;
}

.general-h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: 'Century Gothic', sans-serif;
}
.general-h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.general-paragraph {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: 'Century Gothic', sans-serif;
}

.room-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 40px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.room-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.room-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.room-info {
  padding: 20px;
  flex-grow: 1;
}

.room-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.room-price {
  margin-bottom: 15px;
  color: #444;
}

.room-book-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.room-book-link:hover {
  text-decoration: underline;
}

.room-image-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
}

.carousel-image {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 4px;
  display: block;
}

.booking-section {
  padding: 48px 16px;
  background: #f6f6f6;
}

.booking-container {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.booking-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.booking-form input {
  padding: 10px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  outline: none;
}

.booking-form input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: #2563eb; }

.btn-secondary {
  background: #eee;
  color: #333;
}

.error {
  color: #d00;
  font-size: 0.9rem;
}
