body {
  background: #f7f8f8;
}

.top-actions {
  justify-content: flex-end;
}

.card-box {
  background: #fff;
  border: 1px solid #e2e7e8;
  border-radius: 10px;
  padding: 20px;
}

.resource-card img {
  aspect-ratio: 1 / 1.3;
  object-fit: cover;
}

.resource-card:hover img {
  opacity: .9;
}

.booking-person-img {
  width: 145px;
  height: 155px;
  object-fit: cover;
}

.calendar-nav {
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays {
  font-weight: 600;
  color: #303944;
}

.calendar-day {
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  position: relative;
  color: #222;
}

.calendar-day.has-times {
  cursor: pointer;
  font-weight: 700;
}

.calendar-day.no-times {
  color: #c8ccd0;
  cursor: default;
}

.calendar-day.is-today {
  outline: 2px solid #9bd0f5;
}

.calendar-day.is-selected {
  background: #aee0ff;
  color: #111;
}

.calendar-dot {
  width: 6px;
  height: 6px;
  background: #0a7c74;
  border-radius: 50%;
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.calendar-loading {
  grid-column: 1 / -1;
  color: #777;
}

.time-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #b8dadd;
  background: #f7fcfc;
  color: #087b82;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.time-slot:hover {
  background: #eef8f8;
}

.time-slot-checking,
.time-slot-checking:hover {
  background: #e9f5ff;
  border-color: #5aa9e6;
  color: #075d89;
  box-shadow: 0 0 0 3px rgba(90, 169, 230, 0.18);
  cursor: wait;
}

.time-slot-check-disabled {
  opacity: 0.62;
  pointer-events: none;
}

.time-slot-disabled,
.time-slot-disabled:hover {
  background: #f5f5f3;
  border-color: #ddd8d0;
  color: #777;
  cursor: not-allowed;
}

.summary-box {
  background: #eef5f5;
  border-radius: 10px;
  padding: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.summary-img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: #087b82;
}

@media (max-width: 576px) {
  .top-actions {
    justify-content: flex-start;
  }
}


.calendar-day.is-past {
  color: #9aa0a6;
  background: #edf0f1;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar-day:disabled {
  cursor: not-allowed;
}


.validation-alert {
  border-left: 4px solid #dc3545;
}

.form-control.is-invalid,
.form-check-input.is-invalid {
  border-color: #dc3545;
  background-color: rgba(255,255,255,0.6);
}

.form-control.is-valid,
.form-check-input.is-valid {
  border-color: #198754;
}

.safety-link {
  text-decoration: underline;
  color: #087b82;
}

.prices-modal-content {
  background: #f2f2f2;
}

.prices-modal-title {
  width: 100%;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #5b3638;
}

.prices-modal-body {
  padding: 24px;
}

.info-panel {
  background: #fff;
  padding: 28px 32px;
}

.info-panel h6 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #5b3638;
  margin-bottom: 18px;
}

.info-panel p,
.info-panel li {
  font-size: 14px;
  line-height: 1.35;
}

.safety-modal-content .modal-body {
  background: #f2f2f2;
}

@media (max-width: 576px) {
  .prices-modal-title {
    font-size: 26px;
  }

  .info-panel {
    padding: 22px;
  }
}


.required-missing {
  background-color: #fff1f1 !important;
}

.form-check-input.required-missing {
  background-color: #ffdede !important;
}


.time-slot-combined {
  margin-left: 18px;
  border-style: dashed;
  background: #fbfefe;
}

.time-slot-combined span::before {
  content: "↳ ";
  color: #087b82;
}


.time-slot-price {
  text-align: right;
}


.resource-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

@media (max-width: 576px) {
  .resource-image {
    height: 180px;
  }
}


.resource-detail-image {
  width: 145px;
  height: 155px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}


.resource-unavailable {
  color: #9b4a4a;
  background: #fff1f1;
  border-radius: 6px;
  padding: 6px 8px;
}


.resource-card-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.resource-card-disabled .card {
  pointer-events: none;
}

.resource-unavailable {
  color: #9b4a4a;
  background: #fff1f1;
  border-radius: 6px;
  padding: 6px 8px;
}


/* Reference layout refinements */
:root {
  --ulkerod-green: #28332b;
  --ulkerod-burgundy: #8d5f6b;
  --ulkerod-page: #f5f1eb;
  --ulkerod-card: rgba(255,255,255,0.82);
}

body {
  font-family: Ebrima, "Segoe UI", Arial, sans-serif;
  background-color: var(--ulkerod-page);
  color: #222;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../img/watermark-logo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(70vw, 760px);
  opacity: 0.055;
  pointer-events: none;
}

.container.my-4 {
  max-width: 1260px;
  padding-top: 18px;
  padding-bottom: 34px;
}

h4, h5, h6 {
  letter-spacing: -0.01em;
}

.member-resource-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 1px solid rgba(70, 70, 70, 0.16);
  border-left: 4px solid #28332b;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.member-resource-avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.member-resource-avatar img {
  width: 62px;
  height: auto;
  display: block;
}

.member-resource-kicker {
  color: #5f3438;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.member-resource-name {
  color: #28332b;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.member-resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #5f5a55;
  margin-top: 8px;
  line-height: 1.35;
}

.member-resource-meta strong {
  color: #28332b;
}


@media (max-width: 576px) {
  .member-resource-card {
    align-items: flex-start;
    padding: 15px;
  }

  .member-resource-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .member-resource-avatar img {
    width: 48px;
  }
}

.resource-card {
  display: block;
  height: 100%;
}

.resource-card .card {
  background: var(--ulkerod-card) !important;
  border: 1px solid rgba(70, 70, 70, 0.18) !important;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.resource-card:not(.resource-card-disabled):hover .card {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.resource-card-loading,
.resource-card-loading:hover {
  cursor: wait;
}

.resource-card-loading .card,
.resource-card-loading:hover .card {
  transform: translateY(-2px);
  border-color: #5aa9e6 !important;
  box-shadow: 0 0 0 3px rgba(90, 169, 230, 0.18), 0 14px 30px rgba(0,0,0,0.10);
}

.resource-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #075d89;
  background: #e9f5ff;
  border: 1px solid rgba(90, 169, 230, 0.45);
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.35;
}

.resource-loading-state[hidden] {
  display: none;
}

.resource-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  background: rgba(255,255,255,0.35);
}

.resource-card .card-body {
  text-align: center;
}

.resource-card .fw-semibold {
  font-size: 1.15rem;
  line-height: 1.28;
}

.resource-card-disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.resource-card-disabled .card {
  pointer-events: none;
  filter: grayscale(20%);
}

.resource-unavailable {
  color: #5f3438;
  background: rgba(255, 241, 241, 0.85);
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.35;
}

.card-box,
.summary-box {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(70, 70, 70, 0.12);
}

.booking-person-img,
.resource-detail-image {
  width: 145px;
  height: 155px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
}

@media (max-width: 576px) {
  body::before {
    background-size: 105vw;
    opacity: 0.045;
  }

  .resource-image {
    height: 220px;
  }

  .resource-card .fw-semibold {
    font-size: 1rem;
  }
}


/* Wider resource cards */
.resource-image {
  height: 380px;
}

@media (min-width: 992px) {
  .resource-image {
    height: 420px;
  }
}

@media (max-width: 576px) {
  .resource-image {
    height: 220px;
  }
}


/* Mobile resource card sizing */
@media (max-width: 576px) {
  .resource-card .card {
    padding: 8px;
  }

  .resource-image {
    height: 240px;
  }

  .resource-card .fw-semibold {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .resource-unavailable {
    font-size: 0.78rem;
    padding: 6px 7px;
  }
}


/* First booking step */
.booking-start {
  max-width: 1180px;
  margin: 0 auto;
}

.booking-start-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #6b6260;
  margin-bottom: 10px;
}

.booking-start-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #28332b;
  margin-bottom: 14px;
}

.booking-start-lead {
  max-width: 680px;
  margin: 0 auto;
  color: #5f5b57;
  font-size: 1.08rem;
}

.booking-choice-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(70, 70, 70, 0.14);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 38px rgba(0,0,0,0.07);
  backdrop-filter: blur(2px);
}

.booking-choice-card h5 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #28332b;
  margin-bottom: 16px;
}

.booking-choice-card p {
  color: #4f4a46;
}

.booking-choice-card-secondary {
  background: rgba(255,255,255,0.78);
}

.booking-choice-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 18px;
  background: rgba(40,51,43,0.10);
  color: #28332b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.booking-choice-badge-guest {
  background: rgba(141,95,107,0.12);
  color: #6c3f4b;
}

.booking-choice-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: #4f4a46;
}

.booking-choice-list li {
  margin-bottom: 9px;
}

.member-login-box {
  background: rgba(245,241,235,0.75);
  border-radius: 12px;
  padding: 18px;
}

@media (max-width: 576px) {
  .booking-choice-card {
    padding: 24px 20px;
  }

  .booking-start-lead {
    font-size: 1rem;
  }
}


.member-contact-presentation {
  background: rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.55;
}

.member-email-edit {
  background: rgba(255,255,255,0.65);
  border-radius: 8px;
  padding: 12px 14px;
}


#timeDurationFilter .btn {
  min-width: 82px;
}


/* Uniform time slot design */
.time-slot-combined {
  margin-left: 0 !important;
  border-style: solid !important;
  background: inherit !important;
}

.time-slot-combined span::before {
  content: none !important;
}


.member-email-current {
  background: rgba(255,255,255,0.65);
  border-radius: 8px;
  padding: 12px 14px;
}

.member-email-display {
  font-size: 1.05rem;
  font-weight: 700;
  color: #28332b;
  margin-top: 2px;
  word-break: break-word;
}


.forgot-member-logo {
  width: 132px;
  max-width: 40%;
  height: auto;
  opacity: 0.9;
}


/* Booking confirmation */
.booking-confirmation {
  max-width: 1180px;
  margin: 0 auto;
}

.confirmation-hero,
.confirmation-panel,
.confirmation-next-step {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(70,70,70,0.14);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.07);
}

.confirmation-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 34px;
  margin-bottom: 24px;
}

.confirmation-hero-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.confirmation-logo {
  width: 118px;
  height: auto;
  flex: 0 0 auto;
}

.confirmation-kicker,
.confirmation-section-label {
  color: #6c3f4b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.confirmation-hero h4,
.confirmation-panel h5 {
  color: #28332b;
  font-weight: 700;
  margin-bottom: 10px;
}

.confirmation-hero p,
.confirmation-panel p,
.confirmation-next-step p {
  color: #504b47;
  margin-bottom: 0;
  line-height: 1.55;
}

.confirmation-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.confirmation-actions span {
  color: #6a625e;
  font-size: 0.92rem;
  line-height: 1.35;
}

.confirmation-calendar-button {
  white-space: nowrap;
}

.confirmation-status {
  min-width: 210px;
  background: #28332b;
  color: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  text-align: right;
}

.confirmation-status span,
.confirmation-status small {
  display: block;
  color: rgba(255,255,255,0.76);
}

.confirmation-status strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.15;
  margin: 6px 0;
}

.confirmation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 24px;
  margin-bottom: 24px;
}

.confirmation-grid-lower {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.confirmation-panel {
  padding: 26px;
}

.confirmation-resource {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}

.confirmation-resource-image {
  width: 164px;
  height: 184px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid rgba(70,70,70,0.12);
}

.confirmation-resource h5 {
  font-size: 1.55rem;
}

.confirmation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.confirmation-facts > div,
.confirmation-detail-list > div,
.confirmation-note,
.confirmation-message {
  background: rgba(245,241,235,0.74);
  border: 1px solid rgba(70,70,70,0.09);
  border-radius: 8px;
  padding: 14px 15px;
}

.confirmation-facts span,
.confirmation-detail-list span,
.confirmation-note span,
.confirmation-message span,
.confirmation-cost-row span {
  display: block;
  color: #6a625e;
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.confirmation-facts strong,
.confirmation-detail-list strong,
.confirmation-note strong {
  color: #28332b;
  font-size: 1rem;
  word-break: break-word;
}

.confirmation-facts-strong strong {
  font-size: 1.12rem;
}

.confirmation-detail-list {
  display: grid;
  gap: 12px;
}

.confirmation-note {
  margin-top: 14px;
}

.confirmation-message {
  margin-top: 14px;
}

.confirmation-message p {
  color: #28332b;
  margin: 0;
  word-break: break-word;
}

.confirmation-price-panel {
  background: rgba(255,255,255,0.94);
}

.confirmation-cost-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.confirmation-cost-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(70,70,70,0.10);
  padding: 0 0 12px;
}

.confirmation-cost-row strong {
  color: #28332b;
}

.confirmation-cost-row > strong {
  white-space: nowrap;
}

.confirmation-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px solid rgba(40,51,43,0.20);
}

.confirmation-total-row span {
  color: #28332b;
  font-weight: 700;
}

.confirmation-total-row strong {
  color: #28332b;
  font-size: 1.75rem;
}

.confirmation-price-note {
  margin-top: 8px;
  color: #6c3f4b !important;
  font-size: 0.94rem;
}

.confirmation-next-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
}

.confirmation-next-step small {
  display: block;
  color: #6a625e;
  margin-top: 10px;
}

.confirmation-debug {
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 991px) {
  .confirmation-hero,
  .confirmation-next-step {
    align-items: flex-start;
    flex-direction: column;
  }

  .confirmation-status {
    text-align: left;
    width: 100%;
  }

  .confirmation-grid,
  .confirmation-grid-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .confirmation-hero,
  .confirmation-panel,
  .confirmation-next-step {
    padding: 20px;
  }

  .confirmation-hero-brand,
  .confirmation-resource {
    grid-template-columns: 1fr;
    display: grid;
  }

  .confirmation-logo {
    width: 104px;
  }

  .confirmation-resource {
    justify-items: center;
    text-align: center;
  }

  .confirmation-resource > div {
    text-align: left;
    width: 100%;
  }

  .confirmation-resource-image {
    width: min(62vw, 190px);
    height: 260px;
  }

  .confirmation-facts {
    grid-template-columns: 1fr;
  }

  .confirmation-cost-row,
  .confirmation-total-row {
    flex-direction: column;
    gap: 6px;
  }
}


.booking-form-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.35;
}

.booking-lock-heading-text {
  color: #59656b;
  font-size: 0.95rem;
  font-weight: 500;
}

.booking-lock-countdown {
  color: #9f513f;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media (max-width: 576px) {
  .booking-form-heading {
    display: block;
  }

  .booking-lock-heading-text {
    display: block;
    font-size: 0.9rem;
    margin-top: 4px;
  }
}

.booking-error-shell {
  max-width: 760px;
  margin: 42px auto 64px;
}

.booking-error-card {
  background: #fff;
  border: 1px solid #eadbd5;
  border-top: 4px solid #9f513f;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 16px 34px rgba(32, 42, 48, 0.08);
}

.booking-error-kicker {
  color: #9f513f;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.booking-error-card h1 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #263238;
}

.booking-error-card p {
  color: #59656b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.booking-error-message {
  background: #fff6f3;
  border: 1px solid #f0c8bc;
  border-radius: 8px;
  color: #743526;
  font-weight: 600;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.booking-error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .booking-error-card {
    padding: 22px;
  }

  .booking-error-card h1 {
    font-size: 25px;
  }

  .booking-error-actions .btn {
    width: 100%;
  }
}
