/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background: #04070e;
  color: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Header */
.header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.logo img {
  height: 40px;
}
.nav ul {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  font-weight: 600;
  color: #475569;
  transition: color 0.2s;
}
.nav a:hover {
  color: #10b981;
}

/* Hero */
.hero {
  background: url("/assets/header-9a4b2f8b.png") center/cover no-repeat;
  padding: 6rem 3rem;
  text-align: center;
  color: #fff;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
}
.hero-sub {
  margin-top: 1rem;
  font-size: 1.125rem;
}

/* Booking Section */

#no-date { color: #000; display: none;}
.booking {
  background: #ffffff;
  padding: 4rem 2rem;
  margin: -4rem auto 4rem;
  max-width: 900px;
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
}
.booking h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #058b8c;
  margin-bottom: 2rem;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.controls label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #475569;
}
.controls input,
.controls select {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.controls input:focus,
.controls select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}
.thanks {
  color: #000;
}
.thanks p {
  margin-bottom: 2rem;
}
/* Calendar */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.calendar .header {
  background: #e2e8f0;
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
}
.calendar .day {
  position: relative;
  padding: 1rem 0.5rem;
  text-align: center;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-weight: 600;
  color: #1e293b;
}
.calendar .day.available {
  background: #ecfdf5;
  border: 2px solid #10b981;
}
.calendar .day.available:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}
.calendar .day.unavailable {
  background: #fef2f2;
  border: 2px solid #fda4af;
  opacity: 0.6;
  cursor: not-allowed;
}
.calendar .day .count {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 0.75rem;
  background: #ffffff;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Day Label */
#dayLabel {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

/* Timeslots */
.timeslot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.timeslot {
  padding: 1rem;
  text-align: center;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  background: #03a8a8;
  color: #fff;
}
.timeslot:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.timeslot.selected {
  background: #058b8c;
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}
.timeslot.booked {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Details Form */
.new_booking {
  display: none;
  margin-top: 2rem;
  gap: 1rem;
}
.new_booking label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #475569;
}
.new_booking input {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.new_booking textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.new_booking .full-width {
  grid-column: 1/-1;
}
.two-col {
  grid-template-columns: 1fr 1fr;
  display: grid;
  gap: 1rem;
}
.one-col {
  grid-template-columns: 1fr;
  display: grid;
  gap: 2rem;
}

#slotView {
  display: none;
}
.spacer {
  height: 120px;
  width: 100%;
}

/* Actions */
.actions {
  text-align: center;
}
.actions button {
  background: #058b8c;
  color: #fff;
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.actions button:hover:not(:disabled) {
  background: #058b8c;
  transform: translateY(-2px);
}
.actions button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background: #334155;
  color: #f1f5f9;
  padding: 2rem;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer .contact h3 {
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.footer a {
  color: #10b981;
}

/* Wrapper to enable horizontal scrolling on narrow screens */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

/* Core table styling */
.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Sticky header with gradient background */
.styled-table thead th {
  position: sticky;
  top: 0;
  background: #64748b;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
}

/* Body cells */
.styled-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #334155;
  font-size: 0.95rem;
}

/* Zebra striping */
.styled-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* Hover highlight */
.styled-table tbody tr:hover {
  background: #ecfdf5;
}

/* First and last cell rounding */
.styled-table thead th:first-child {
  border-top-left-radius: 0.5rem;
}
.styled-table thead th:last-child {
  border-top-right-radius: 0.5rem;
}
.styled-table tbody td:first-child {
  border-bottom-left-radius: 0.5rem;
}
.styled-table tbody td:last-child {
  border-bottom-right-radius: 0.5rem;
}

/* ODW-style Footer */

/* Container & layout */
.odw-footer {
  background: #04070e;
  color: #fff;
  padding: 4rem 2rem;
}
.odw-footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.odw-footer .footer-col {
  flex: 1 1 200px;
}
.odw-footer .footer-col .footer-logo {
  width: 250px;
  margin-bottom: 20px;
}
/* Headings */
.odw-footer h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.odw-footer .social-list {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.odw-footer .social-list svg {
  fill: #fff;
  display: inline-block;
  height: 20px;
  position: relative;
  width: 20px;
}

.odw-footer .social-list .social {
  width: 45px;
  height: 45px;
  border: 1px solid #fff;
  display: inline-flex;
  justify-content: center;
  text-align: center;
  align-items: center;
}

/* Lists & links */
.odw-footer ul {
  list-style: none;
  padding: 0;
}
.odw-footer li {
  margin-bottom: 0.5rem;
}
.odw-footer a {
  color: #fff;
  transition: color 0.2s;
}
.odw-footer a:hover {
  color: #ffffff;
}

/* Address styling */
.odw-footer address {
  font-style: normal;
  line-height: 1.6;
}

/* Copyright */
.odw-footer .footer-copy {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive tweak */
@media (max-width: 600px) {
  .odw-footer .footer-columns {
    flex-direction: column;
    gap: 1.5rem;
  }
}
