/* 
BASE
*/

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.2px;
  background: #f7e1d5;
  color: #1f1f1f;
  margin: 0;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/*
HEADER
*/

.site-header {
  background: #4e8bab;
  height: 110px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 80px;
  object-fit: contain;
}

/*
LOGIN BUTTON
*/

.login-btn {
  width: 100%;
  border: none;
  border-radius: 12px;

  padding: 13px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  color: #fff;

  background: linear-gradient(135deg, #4e8bab, #6ea5c3);

  box-shadow: 0 4px 12px rgba(78,139,171,0.3);

  transition: 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(78,139,171,0.35);
}

.login-btn:active {
  transform: scale(0.98);
}

/*
FOOTER
*/

.site-footer {
  background: #4e8bab;
  text-align: center;
  padding: 15px 10px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: auto;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: white;
}

.site-footer a {
  text-decoration: none;
  color: inherit;
}

/*
TOOLBAR
*/

.toolbar {
  display: flex;
  justify-content:center;
  align-items:center;
  gap: 10px;
  padding: 20px;
  background: #ffffff;
  border-bottom: 1px solid #e8e4df;
  position: sticky;
  top: 0;
  z-index: 10;
}
#selectedDateText{
    font-size:16px;
    font-weight:600;
    color:#444;
}
#datePicker {
  padding: 10px 14px;
  border: 1px solid #d8d2ca;
  border-radius: 8px;
  background: #faf9f7;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

#datePicker:focus {
  border-color: #b8a99a;
  box-shadow: 0 0 0 2px rgba(184, 169, 154, 0.2);
}


/*BANK IMAGES*/
.payment-badges {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .payment-badges img {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.15s ease;
  }

  .payment-badges img:hover {
    opacity: 1;
  }

  
  .payment-badges img.tall {
    height: 34px;
  }

  .payment-badges .divider {
    width: 1px;
    height: 24px;
    background: #e3e5e8;
  }
/*END BANK IMAGES*/  
  


/*
UMBRELLAS STATUS
*/

.beach-map .cell.reserved {
  color: red;
}

.beach-map .cell.open {
  color: black;
}



/*
========================
MODAL (RESPONSIVE FIXED)
========================
*/

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;

  overflow-y: auto;
  padding: 20px 10px;
}

.modal-content {
  background: #ffffff;

  width: min(750px, 92%);
  max-height: 90vh;

  margin: 40px auto;
  border-radius: 16px;

  padding: 22px;

  position: relative;

  display: flex;
  flex-direction: column;

  box-shadow: 0 20px 60px rgba(0,0,0,0.2);

  overflow: hidden;
}

#modalImage {
  width: 100%;
  max-height: 300px;

  object-fit: cover;

  border-radius: 12px;
  margin-bottom: 15px;
}

#modalTitle {
  font-size: 20px;
  margin-bottom: 10px;
}

#modalInfo {
  flex: 1;

  font-size: 14px;
  line-height: 1.6;
  color: #5c5752;

  overflow-y: auto;
  padding-right: 6px;
}

#reserveBtn {
  margin-top: 16px;

  align-self: flex-end;

  padding: 12px 18px;
  border: none;
  border-radius: 10px;

  background: #2f2f2f;
  color: #fff;

  cursor: pointer;
  transition: 0.2s;
}

#reserveBtn:hover {
  background: #444;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #888;
}

.close-btn:hover {
  color: #000;
}

/*
ZOOM / SCROLL
*/

#scrollable{
  flex:1;

  display:flex;
  flex-direction:column;
}

.zoom-controls{
  display:none;
}

/*
RESPONSIVE
*/
@media (min-width: 1400px){
  .grid-row{
    grid-auto-columns: minmax(90px, 1fr);
  }
}

@media (max-width: 1024px) {

  .logo {
    height: 65px;
  }

  .modal-content {
    width: 94%;
    padding: 20px;
  }

  #modalImage {
    max-height: 260px;
  }
}

@media (max-width: 768px) {
.grid-wrapper{
  overflow-x:auto;
  overflow-y:auto;

  width:100%;
}



.grid{
  min-width:100%;
  transition:0.2s ease;
}
  .grid-row{
    grid-auto-columns: 55px;
    width:max-width;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #datePicker,
  #searchBtn {
    width: 90%;
  }


  .modal-content {
    width: 90%;
    margin: 20px auto;
    padding: 18px;
    max-height: 85vh;
  }

  #modalImage {
    max-height: 220px;
  }

  #modalTitle {
    font-size: 18px;
  }

  #modalInfo {
    font-size: 13px;
  }

  #reserveBtn {
    width: 100%;
    align-self: stretch;
  }
  
  .zoom-controls{

    display:flex;

    position:fixed;

    bottom:90px;
    left:50%;

    transform:translateX(-50%);

    gap:14px;

    z-index:9999;
  }

  .zoom-controls button{

    width:52px;
    height:52px;

    border:none;
    border-radius:14px;

    background:#2f2f2f;
    color:white;

    font-size:18px;

    box-shadow:0 6px 18px rgba(0,0,0,0.2);

    cursor:pointer;

    transition:0.2s ease;
  }

  .zoom-controls button:active{

    transform:scale(0.92);
  }


}

@media (max-width: 480px) {

  .grid {
    padding: 10px;
    gap: 10px;
  }

  .status {
    font-size: 6px;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    width: 90%;
    margin: 10px auto;

    padding: 14px;
    border-radius: 14px;

    max-height: 82vh;
  }

  #modalImage {
    max-height: 160px;
    border-radius: 10px;
  }

  #modalTitle {
    font-size: 16px;
  }

  #modalInfo {
    font-size: 12px;
    line-height: 1.4;
  }

  #reserveBtn {
    width: 100%;
    font-size: 14px;
  }

  .site-footer p {
    font-size: 12px;
  }
}