/*
Theme Name: MADIKEYS
Theme URI: https://breakdance.com/zero-theme // todo
Author: Steven DIAI
Author URI: https://www.steven-diai.fr
Description: Entirely disables the WordPress theme system and lets you design every part of your site with Breakdance, while keeping other theme functionality like templates overrides and functions.php.
Version: 1.0.0
Tested up to: 5.9
Requires PHP: 8.2
License: GNU General Public License v2 or later // todo no idea about this
License URI: LICENSE
Text Domain: breakdance

Requires Breakdance to be installed.
/*--------------------------------------------------------------*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 10rem;
}

body {
  overflow-x: hidden;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

.bde-faq__answer-content ol {
  list-style: decimal;
  padding-left: 4rem;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

.shortcode-lang {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}
.shortcode-lang ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}
.shortcode-lang ul li:first-child:after {
  color: #000000;
  content: "●";
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.shortcode-lang ul li a {
  color: #000000;
  font-weight: 400;
  text-decoration: none;
}

.shortcode-lang ul li a:hover {
  color: white;
  text-decoration: underline;
}

/* ============================================
   Madikeys Date Range Picker (Flatpickr)
   ============================================ */

/* Date range input styling */
.madikeys-daterange-input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1.6rem;
  font-family: "Poppins", sans-serif;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background-color: white;
  transition: border-color 0.3s ease;
}

.madikeys-daterange-input:hover {
  border-color: #999;
}

.madikeys-daterange-input:focus {
  outline: none;
  border-color: #8fc8a4;
  box-shadow: 0 0 0 3px rgba(143, 200, 164, 0.2);
}

/* Flatpickr calendar customization */
.flatpickr-calendar {
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  border: none;
}

.flatpickr-innerContainer {
  padding-bottom: 1.5rem;
}

.flatpickr-day {
  border-radius: 0 !important;
}

/* Split view - 2 months side by side */
.flatpickr-calendar.multiMonth {
  display: flex;
  gap: 1rem;
}

.flatpickr-calendar.multiMonth .flatpickr-months {
  padding: 1rem;
}

.flatpickr-calendar.multiMonth .flatpickr-month {
  margin: 0;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.startRange,
.flatpickr-day.selected.endRange {
  background: #8fc8a4 !important;
  border-color: #8fc8a4 !important;
  color: white !important;
}

.flatpickr-day.inRange {
  background: rgba(143, 200, 164, 0.2);
  border-color: rgba(143, 200, 164, 0.2);
}

.flatpickr-day:hover {
  background: #ddffcc !important;
  border-color: #ddffcc !important;
}

/* Booked date types with visual indicators */
.flatpickr-day.booked-full {
  background: #e0e0e0 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  position: relative;
}

.flatpickr-day.booked-full:hover {
  background: #d0d0d0 !important;
}

/* Arrival date - someone arriving PM, available for departure AM */
.flatpickr-day.booked-arrival {
  background: linear-gradient(
    135deg,
    #ddffcc 0%,
    #ddffcc 50%,
    #ffc0bd 50%,
    #ffc0bd 100%
  ) !important;
  color: #333 !important;
  position: relative;
  cursor: pointer;
  border: 0.1rem solid #fff !important;
}

.flatpickr-day.booked-arrival:hover {
  background: linear-gradient(
    135deg,
    #c8f0b3 0%,
    #c8f0b3 50%,
    #ffaaa7 50%,
    #ffaaa7 100%
  ) !important;
}

/* Departure date - someone leaving AM, available for arrival PM */
.flatpickr-day.booked-departure {
  background: linear-gradient(
    135deg,
    #ffc0bd 0%,
    #ffc0bd 50%,
    #ddffcc 50%,
    #ddffcc 100%
  ) !important;
  color: #333 !important;
  position: relative;
  cursor: pointer;
  border: 0.1rem solid #fff !important;
}

.flatpickr-day.booked-departure:hover {
  background: linear-gradient(
    135deg,
    #ffaaa7 0%,
    #ffaaa7 50%,
    #c8f0b3 50%,
    #c8f0b3 100%
  ) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .madikeys-daterange-input {
    font-size: 1.4rem;
    padding: 1rem;
  }
}

/* ============================================
   Single Location Booking System - Search Form
   ============================================ */

.madikeys-locations-search {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  max-width: 100%;
}

/* Search field containers */
.madikeys-search-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.madikeys-search-field label {
  color: #333;
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

/* Guest selector styling */
.madikeys-search-field select {
  width: 100%;
  padding: 1.2rem 3.5rem 1.2rem 4rem;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #555;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background-color: white;
  background-image: url("assets/icons/2 User.svg"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 1.2rem center, calc(100% - 1.2rem) center;
  background-size: 2rem, 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.madikeys-search-field select:hover {
  border-color: #999;
}

.madikeys-search-field select:focus {
  outline: none;
  border-color: #ffc845;
  box-shadow: 0 0 0 3px rgba(255, 200, 69, 0.1);
}

/* Date range input styling */
.madikeys-search-field input[type="text"].madikeys-daterange-input {
  width: 100%;
  padding: 1.2rem 3.5rem 1.2rem 4rem;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #555;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background-color: white;
  background-image: url("assets/icons/Calendar.svg"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 1.2rem center, calc(100% - 1.2rem) center;
  background-size: 2rem, 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.madikeys-search-field input[type="text"].madikeys-booking-daterange:hover {
  border-color: #999;
}

.madikeys-search-field input[type="text"].madikeys-booking-daterange:focus {
  outline: none;
  border-color: #ffc845;
  box-shadow: 0 0 0 3px rgba(255, 200, 69, 0.1);
}

/* Search button styling */
.madikeys-search-submit {
  flex: 0 0 auto;
  min-width: 30rem;
}

.madikeys-search-submit {
  width: auto;
  padding: 1.35rem 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 0.8rem;
  border: 1px solid #fbc646;
  background: #fbc646;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.2rem;
}

.madikeys-search-submit:hover {
  background: #8fc8a4;
}

.madikeys-search-submit:active,
.madikeys-search-submit:focus {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 200, 69, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .madikeys-locations-search {
    flex-direction: column;
    gap: 1.5rem;
  }

  .madikeys-search-field {
    width: 100%;
  }

  .madikeys-search-submit {
    width: 100%;
    min-width: 0;
  }

  .madikeys-search-field select,
  .madikeys-search-field input[type="text"].madikeys-booking-daterange,
  .madikeys-location-booking .madikeys-daterange-input {
    font-size: 1.4rem;
    padding: 1rem 3rem 1rem 3.5rem;
  }

  .madikeys-search-submit button,
  .madikeys-search-submit input[type="submit"] {
    padding: 1.2rem 2rem;
    font-size: 1.4rem;
  }
}

.madikeys-location-booking {
  font-family: "Poppins", sans-serif;
}

.madikeys-booking-field {
  margin-bottom: 2rem;
}

.madikeys-booking-field label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
}

.madikeys-booking-daterange {
  width: 100%;
  padding: 1.2rem 3.5rem 1.2rem 4rem;
  font-size: 1.6rem;
  font-family: "Poppins", sans-serif;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  cursor: pointer;
  background-color: white;
  background-image: url("assets/icons/Calendar.svg"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 1.2rem center, calc(100% - 1.2rem) center;
  background-size: 2rem, 1.2rem;
  transition: all 0.3s ease;
}

.madikeys-booking-daterange:hover {
  border-color: #999;
}

.madikeys-booking-daterange:focus {
  outline: none;
  border-color: #ffc845;
  box-shadow: 0 0 0 3px rgba(255, 200, 69, 0.1);
}

.madikeys-booking-info {
  margin: 2rem 0;
  padding-left: 0.5rem;
  border-radius: 8px;
}

.madikeys-booking-info p {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #666;
}

.madikeys-booking-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 0;
  margin: 2rem 0 0;
  border-top: 2px solid #444;
}

.madikeys-booking-total-nights {
  font-size: 1.8rem;
  font-weight: 500;
  color: #8fc8a4;
}

.madikeys-booking-total-nights .nights-count {
  font-weight: 500;
  font-size: 2.4rem;
}

.madikeys-booking-total-price {
  font-size: 3rem;
  font-weight: 500;
  color: #8fc8a4;
}

.madikeys-booking-total-price .total-amount {
  color: #8fc8a4;
}

.madikeys-booking-tax-notice {
  margin: 1rem 0 2rem;
  font-size: 1.2rem;
  font-style: italic;
  color: #999;
}

.madikeys-booking-submit {
  width: 100%;
  padding: 1.5rem 3rem;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: white;
  background-color: #fbc646;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.madikeys-booking-submit:hover:not(:disabled) {
  background-color: #8fc8a4;
}

.madikeys-booking-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Flatpickr disabled dates styling */
.flatpickr-day.booked-date {
  background-color: #f0f0f0 !important;
  color: #ccc !important;
  cursor: not-allowed !important;
  text-decoration: line-through;
}

.flatpickr-day.booked-date:hover {
  background-color: #f0f0f0 !important;
  color: #ccc !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .madikeys-booking-daterange {
    font-size: 1.4rem;
    padding: 1rem 3rem 1rem 3.5rem;
  }

  .madikeys-booking-total {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .madikeys-booking-total-price {
    font-size: 2.4rem;
  }

  .madikeys-booking-submit {
    font-size: 1.6rem;
    padding: 1.2rem 2rem;
  }
}

/* ==================================================
   OpenStreetMap Integration Styles
   ================================================== */

.madikeys-osm-wrapper {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.madikeys-osm-map {
  width: 100%;
  border: none;
  border-radius: 8px;
}

.madikeys-osm-iframe-wrapper {
  margin: 2rem 0;
  text-align: center;
}

.madikeys-osm-iframe-wrapper iframe {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.madikeys-osm-iframe-wrapper small {
  display: inline-block;
  margin-top: 0.5rem;
  color: #666;
}

.madikeys-osm-iframe-wrapper small a {
  color: #0066cc;
  text-decoration: none;
}

.madikeys-osm-iframe-wrapper small a:hover {
  text-decoration: underline;
}

.madikeys-osm-error {
  padding: 1rem;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  color: #856404;
  margin: 1rem 0;
}

/* Leaflet marker adjustments */
.leaflet-container {
  font-family: inherit;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.wpsbc-calendars-wrapper.wpsbc-legend-position-side {
  max-width: 100% !important;
}

.wpsbc-calendars {
  display: flex !important;
}
