.jvk-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overflow-y: auto; /* ← allows scrolling */
}
.jvk-modal-card {
  background: #fff;
  width: 360px;
  padding: 16px 20px 16px 20px;
  max-width: 92vw;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  animation: jvkPop 0.25s ease;
}
@keyframes jvkPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.jvk-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}
.jvk-title {
  margin: 0 0 16px;
  font-size: 22px;
}
.jvk-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}
.jvk-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jvk-field {
  margin-bottom: 10px;
}
.jvk-field {
  position: relative;
}
.jvk-field input,
.jvk-field textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}
.jvk-field input[type="number"] {
  padding-right: 14px;
  -moz-appearance: textfield;
}
.jvk-field input[type="number"]::-webkit-inner-spin-button,
.jvk-field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.jvk-field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 6px;
  border-radius: 18px;
  font-size: 13px;
  color: #888;
  pointer-events: none;
  transition: 0.2s ease;
}
.jvk-field input:focus + label,
.jvk-field input:not(:placeholder-shown) + label,
.jvk-field textarea:focus + label,
.jvk-field textarea:not(:placeholder-shown) + label {
  top: -6px;
  font-size: 11px;
  color: #111;
}
.jvk-actions {
  margin-top: 0px;
}
.jvk-field input[type="email"],
.jvk-field input[type="number"] {
  width: 100% !important;
  display: block;
}
.jvk-submit {
  width: 100%;
  height: 52px;
  border-radius: 18px !important;
  font-size: 15px;
  font-weight: 600;
}
.jvk-submit {
  background: #0a66ff;
  color: #fff;
}
.jvk-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.jvk-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-top: 8px;
}
.jvk-checkbox input {
  appearance: auto;
  -webkit-appearance: auto;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.jvk-loader {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.jvk-modal *,
.jvk-modal *::before,
.jvk-modal *::after {
  box-sizing: border-box;
}

.jvk-form input,
.jvk-form textarea {
  box-sizing: border-box;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.jvk-form button {
  font-family: inherit;
  cursor: pointer;
}
.jvk-field input,
.jvk-field textarea {
  width: 100%;
  height: 48px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
  color: #111;
}
.jvk-field textarea {
  resize: vertical;
  min-height: 80px;
  height: auto;
  padding-top: 22px;
}
.jvk-field textarea + label {
  top: 14px;
  transform: none;
}
.jvk-field input {
  color: #111 !important;
}
.jvk-field input,
.jvk-field textarea {
  background-color: #fafafa !important;
}
.jvk-field input,
.jvk-field textarea {
  border-radius: 18px;
}
.jvk-field input[type="email"],
.jvk-field input[type="number"] {
  border-radius: 18px !important;
  background: #fafafa !important;
}
.jvk-field input[type="email"] + label,
.jvk-field input[type="number"] + label {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.jvk-checkbox {
  pointer-events: auto;
}

.jvk-checkbox span {
  pointer-events: auto;
}
.jvk-checkbox input {
  appearance: auto !important;
  accent-color: #0a66ff;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.jvk-close {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.jvk-close:hover {
  background: #e5e5e5;
}
#jvk-reservation-modal input,
#jvk-reservation-modal textarea {
  margin: 0 !important;
  box-sizing: border-box;
  font-family: inherit;
}
.jvk-field input:focus + label,
.jvk-field textarea:focus + label,
.jvk-field input:not(:placeholder-shown) + label,
.jvk-field textarea:not(:placeholder-shown) + label,
.jvk-field input[type="email"]:valid + label,
.jvk-field input[type="number"]:valid + label {
  top: -6px !important;
  font-size: 11px !important;
  color: #111 !important;
}

/* START OF CALENDAR ====================================== */

.jvk-calendar {
  margin-top: 24px;
}

.jvk-calendar-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;

  font-size: 14px;
}
.jvk-legend {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 6px;
}
.jvk-legend.free {
  background: #6aa84f;
}
.jvk-legend.occupied {
  background: #d9534f;
}
.jvk-legend.pending {
  background: #999;
}
.jvk-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}

.jvk-house-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.jvk-house-header {
  padding: 8px;
  text-align: center;
  font-weight: 600;
}

.jvk-house-header img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
}
.jvk-house-duration {
  font-size: 20px;
  color: #666;
  margin-top: 2px;
  font-weight: 500;
}

.jvk-house-dates {
  padding: 6px;
  display: grid;
  gap: 0px;
}

.jvk-date-card {
  border-radius: 10px;
  padding: 2px;
  font-size: 13px;
  text-align: center;
  border: none;
}

.jvk-date-card.free {
  background: #6aa84f;
  color: #fff;
  cursor: pointer;
}

.jvk-date-card.pending {
  background: #999;
  color: #fff;
}

.jvk-date-card.occupied {
  background: #d9534f;
  color: #fff;
}

.jvk-date-card.free:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.jvk-calendar .jvk-date-card {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;

  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-height: 42px !important;
  padding: 10px 12px !important;

  font-size: 13px !important;
  line-height: 1 !important;
  border-radius: 10px !important;
}
.jvk-calendar .jvk-date-card {
  margin-bottom: 0 !important;
}

.jvk-calendar .jvk-date-card.free {
  background-color: #6aa84f !important;
  color: #fff !important;
  cursor: pointer !important;
}

.jvk-calendar .jvk-date-card.pending {
  background-color: #999 !important;
  color: #fff !important;
}

.jvk-calendar .jvk-date-card.occupied {
  background-color: #d9534f !important;
  color: #fff !important;
}

.jvk-calendar .jvk-house-dates {
  display: grid !important;
  grid-auto-rows: min-content !important;
  gap: 4px !important;
}

select[name="jvk_year"] {
  background: #fff !important;
  color: #222 !important;
  opacity: 1 !important;
  border: 1px solid #bbb !important;
  margin: 0;
}
.jvk-house-card:has(.jvk-house-header.has-boat) .jvk-date-card {
  position: relative;
}

.jvk-house-card:has(.jvk-house-header.has-boat) .jvk-date-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #0a66ff;
  border-radius: 10px 10px 0 0;
}
/* Force equal header height so dates align */
.jvk-house-header {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.jvk-house-header img {
  height: 70px;
  width: auto;
  object-fit: contain;
}
/* Boat indicator ON DATE CARDS */
.jvk-date-card.has-boat {
  position: relative;
  overflow: hidden;
}

.jvk-date-card.has-boat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #0a66ff;
}
.jvk-calendar-info {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.jvk-info-left {
  max-width: 60%;
  font-size: 16px !important;
  line-height: 1.5;
}

.jvk-info-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jvk-info-box {
  text-align: right;
  font-size: 14px;
}

.jvk-info-title {
  margin-bottom: 6px;
}

.jvk-info-date {
  background: #6aa84f;
  color: #fff;
  padding: 6px 12px;
  display: inline-block;
  font-weight: 600;
}

.jvk-info-date.has-boat {
  position: relative;
}

.jvk-info-date.has-boat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  height: 4px;
  background: #0a66ff;
  border-radius: 6px 6px 0 0;
}

.jvk-info-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

@media (max-width: 768px) {
  .jvk-calendar-info {
    flex-direction: column;
    gap: 24px;
  }

  .jvk-info-left {
    max-width: 100%;
    font-size: 14px !important;
  }

  .jvk-info-right {
    width: 100%;
  }

  .jvk-info-box {
    text-align: left;
  }
}

/* @media (min-width: 1024px) {
  .jvk-calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
} */
/* 
@media (max-width: 1023px) and (min-width: 600px) {
  .jvk-calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
} */

@media (max-width: 599px) {
  .jvk-date-card {
    font-size: 12px !important;
    padding: 0;
    min-height: 48px !important;
  }

  .jvk-house-duration {
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .jvk-house-header {
    min-height: auto;
    padding: 16px 12px;
  }
}
@media (max-width: 480px) {
  .jvk-modal-card {
    padding: 20px;
    border-radius: 18px;
  }
}
/* ========================================= */
/* CLEAN MOBILE IMAGE TABS */
/* ========================================= */

.jvk-mobile-tabs {
  display: none;
}
@media (max-width: 768px) {
  .jvk-mobile-tabs {
    display: flex !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 18px;
    gap: 22px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  }

  .jvk-mobile-tabs .jvk-tab {
    flex: 1;
    border: none !important;
    border-radius: 22px !important;
    padding: 16px 10px 16px 10px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #dfe4ec !important;
  }
  .jvk-mobile-tabs.jvk-visible {
    transform: translateY(0);
  }
  .jvk-mobile-tabs .jvk-tab img {
    width: 105px !important;
    height: auto;
    display: block;
  }

  .jvk-mobile-tabs .jvk-tab span {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #222;
  }

  .jvk-mobile-tabs .jvk-tab.active {
    background: #084f7d !important;
    box-shadow: 0 14px 35px rgba(10, 102, 255, 0.2);
    transform: translateY(-2px);
  }

  .jvk-mobile-tabs .jvk-tab.active span {
    color: #ffffff;
  }
}
@media (max-width: 768px) {
  .jvk-calendar {
    margin-left: -40px;
    margin-right: -40px;
  }
}
.jvk-filter {
  margin-bottom: 16px;
}

.jvk-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.jvk-filter-checkbox input {
  accent-color: #12a0ff;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.jvk-date-card.jvk-hidden {
  display: none !important;
}
@media (max-width: 480px) {
  .jvk-modal {
    align-items: flex-start; /* stop vertical centering */
    padding: 12px;
  }

  .jvk-modal-card {
    width: 100%;
    max-height: 90vh; /* prevent huge overflow */
    overflow-y: auto; /* scroll INSIDE card */
    padding: 16px;
    border-radius: 16px;
  }

  .jvk-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .jvk-meta {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .jvk-field input {
    height: 40px;
    font-size: 13px;
    padding: 10px 12px;
  }

  .jvk-field textarea {
    min-height: 70px;
    font-size: 13px;
  }

  .jvk-submit {
    height: 44px;
    font-size: 14px;
  }
}
.jvk-mobile-tabs {
  display: none;
}

@media (max-width: 768px) {
  .jvk-mobile-tabs {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 18px;
    gap: 22px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);

    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .jvk-mobile-tabs.jvk-visible {
    transform: translateY(0);
  }
}
