/* Upit za rezervaciju - vidi core/element/booking.php */

.bk-trigger,
.bk-modal,
.bk-inline-section {
  --bk-red: #9A0E26;
  --bk-red-dark: #7a0b1e;
  --bk-red-tint: #f8eef0;
  --bk-text: #1f1f1f;
  --bk-muted: #666666;
  --bk-border: #d6d6d6;
  --bk-bar: 54px;
}

/* ---------- gumb: desktop = desni rub ekrana ---------- */
.bk-trigger {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 790; /* ispod headera (800) i lightboxa (999) */
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  margin: 0;
  padding: 24px 13px;
  border: 0;
  border-radius: 0 4px 4px 0; /* nakon rotacije: zaobljeno s lijeve strane */
  background: #9A0E26;
  background: var(--bk-red);
  color: #ffffff;
  font-family: "Montserrat", "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, padding 0.2s ease;
}
.bk-trigger:hover,
.bk-trigger:focus-visible {
  background: var(--bk-red-dark);
  padding-bottom: 30px;
}
.bk-trigger:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -5px;
}

/* ---------- gumb: mobitel = traka na dnu ---------- */
@media (max-width: 768px) {
  .bk-trigger {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    writing-mode: horizontal-tb;
    height: calc(var(--bk-bar) + env(safe-area-inset-bottom, 0px));
    padding: 0 16px env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    font-size: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
  }
  .bk-trigger:hover,
  .bk-trigger:focus-visible {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* da traka ne prekrije dno stranice (footer) */
  body {
    padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px));
  }
  /* "Special offer" traka na EN naslovnici ide iznad trake za rezervaciju */
  .popup-special {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ---------- prozor ---------- */
html.bk-lock,
html.bk-lock body {
  overflow: hidden;
}
.bk-modal[hidden] {
  display: none;
}
.bk-modal {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.bk-backdrop {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.6);
  animation: bk-fade 0.2s ease;
}
.bk-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 780px;
  max-height: 100%;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: bk-rise 0.25s ease;
}
.bk-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #ececec;
  flex: 0 0 auto;
}
.bk-dialog-head h2 {
  margin: 0;
  color: var(--bk-red);
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.bk-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: -6px -10px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bk-text);
  font-size: 30px;
  line-height: 40px;
  cursor: pointer;
}
.bk-close:hover,
.bk-close:focus-visible {
  background: #f1f1f1;
}
.bk-dialog-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 24px 26px;
}
@keyframes bk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .bk-modal {
    padding: 0;
    align-items: stretch;
  }
  .bk-dialog {
    max-width: none;
    height: 100%;
    border-radius: 0;
  }
  .bk-dialog-head {
    padding: 14px 16px;
  }
  .bk-dialog-head h2 {
    font-size: 19px;
  }
  .bk-dialog-body {
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- obrazac na dnu stranice restorana ---------- */
.bk-inline-section {
  clear: both;
  max-width: 820px;
  margin: 90px auto 70px;
  padding: 0 16px;
  box-sizing: border-box;
}
.bk-inline-title {
  margin: 0 0 20px;
  color: var(--bk-red);
  font-size: 30px;
  font-weight: normal;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .bk-inline-section {
    margin: 50px auto 40px;
  }
  .bk-inline-title {
    font-size: 24px;
  }
}

/* ---------- zajedničko ---------- */
.bk {
  color: var(--bk-text);
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.bk *,
.bk *::before,
.bk *::after {
  box-sizing: border-box;
}
.bk [hidden] {
  display: none !important;
}
.bk p {
  margin: 0;
}
.bk a {
  color: var(--bk-red);
  font-weight: 600;
  text-decoration: none;
}
.bk a:hover {
  text-decoration: underline;
}
.bk-step-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
}

/* kartice restorana */
.bk-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bk-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.bk-card:hover,
.bk-card:focus-visible {
  border-color: var(--bk-red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  outline: none;
}
.bk-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.bk-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 14px;
}
.bk-card-name {
  font-size: 16px;
  font-weight: 700;
}
.bk-card-type {
  color: var(--bk-red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bk-card-address {
  color: var(--bk-muted);
  font-size: 14px;
}
@media (max-width: 600px) {
  .bk-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bk-card {
    flex-direction: row;
    align-items: stretch;
  }
  .bk-card img {
    width: 112px;
    flex: 0 0 112px;
    aspect-ratio: auto;
    height: auto;
    min-height: 92px;
  }
  .bk-card-body {
    justify-content: center;
  }
}

/* odabrani restoran */
.bk-selected {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
}
.bk-selected-img {
  width: 76px;
  height: 54px;
  flex: 0 0 76px;
  border-radius: 4px;
  object-fit: cover;
}
.bk-selected-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.bk-selected-name {
  font-size: 16px;
}
.bk-selected-address {
  color: var(--bk-muted);
  font-size: 14px;
}
.bk-change {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--bk-red);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 480px) {
  .bk-selected {
    flex-wrap: wrap;
  }
  .bk-change {
    width: 100%;
    padding: 4px 0 0;
    text-align: left;
  }
}

.bk-notice {
  margin: 16px 0 18px !important;
  padding: 12px 14px;
  border-left: 3px solid var(--bk-red);
  background: var(--bk-red-tint);
  font-size: 14px;
}

/* polja */
.bk-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 16px;
}
.bk-col-6 { grid-column: span 6; }
.bk-col-3 { grid-column: span 3; }
.bk-col-2 { grid-column: span 2; }
@media (max-width: 600px) {
  .bk-col-3 { grid-column: span 6; }
  .bk-col-m-3 { grid-column: span 3; }
  .bk-col-m-6 { grid-column: span 6; }
}
.bk-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bk-field label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bk-optional {
  color: var(--bk-muted);
  font-weight: 400;
}
.bk input,
.bk select,
.bk textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--bk-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--bk-text);
  font-family: "Raleway", sans-serif;
  font-size: 16px; /* 16px = bez zumiranja na iOS-u */
  line-height: normal;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bk select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239A0E26' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.bk input[type="date"],
.bk input[type="time"] {
  min-height: 48px;
  line-height: 46px;
}
.bk textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}
.bk input:focus,
.bk select:focus,
.bk textarea:focus {
  border-color: var(--bk-red);
  box-shadow: 0 0 0 3px rgba(154, 14, 38, 0.12);
}
.bk-invalid input,
.bk-invalid select {
  border-color: var(--bk-red);
}
.bk-err {
  display: block;
  min-height: 0;
  margin-top: 4px;
  color: var(--bk-red);
  font-size: 13px;
  font-style: normal;
}
.bk-err:empty {
  display: none;
}

/* zamka za spam robote */
.bk-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* obavijesti (grupe, isti dan, greška) */
.bk-alert {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--bk-red);
  border-radius: 4px;
  background: var(--bk-red-tint);
  font-size: 15px;
}
.bk-contact {
  margin-top: 6px !important;
  font-size: 16px;
}
.bk-sep {
  margin: 0 10px;
  color: #c4a2a8;
}
@media (max-width: 480px) {
  .bk-contact a {
    display: block;
  }
  .bk-sep {
    display: none;
  }
}

/* slanje */
.bk-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 20px;
}
.bk-submit {
  min-width: 220px;
  height: 52px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: var(--bk-red);
  color: #ffffff;
  font-family: "Montserrat", "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.bk-submit:hover:not(:disabled),
.bk-submit:focus-visible {
  background: var(--bk-red-dark);
}
.bk-submit:focus-visible {
  outline: 2px solid var(--bk-red);
  outline-offset: 2px;
}
.bk-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bk-privacy {
  flex: 1 1 200px;
  color: var(--bk-muted);
  font-size: 13px;
}
@media (max-width: 600px) {
  .bk-submit {
    width: 100%;
  }
}

/* potvrda slanja */
.bk-step-success {
  padding: 20px 0 6px;
  text-align: center;
}
.bk-success-icon {
  width: 60px;
  height: 60px;
  color: #2e7d4f;
}
.bk-success-title {
  margin: 12px 0 10px;
  color: var(--bk-text);
  font-size: 24px;
  font-weight: 600;
}
.bk-success-text {
  max-width: 520px;
  margin: 0 auto 14px !important;
  font-size: 16px;
}
.bk-success-note {
  max-width: 520px;
  margin: 0 auto 22px !important;
  padding: 12px 14px;
  border-left: 3px solid var(--bk-red);
  background: var(--bk-red-tint);
  font-size: 14px;
  text-align: left;
}
