@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Reset and base styles */
body {
  width: 100%;
  margin: 0;
}

/* Widget container */
.lw-widget {
  width: 100%;
  font-family: "Inter", sans-serif;
  color: #000;
}

/* Results count */
.lw-count {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

/* Table wrapper for horizontal scrolling */
.lw-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: transparent;
}

/* Main table styles */
.lw-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #000;
}

/* Table header cells */
.lw-table thead th {
  padding: 10px;
  border-bottom: 3px solid #FD4D3D;
  font-weight: 400;
  text-align: left;
  vertical-align: bottom;
}

/* Table body cells */
.lw-table tbody td {
  padding: 10px;
  vertical-align: top;
  font-weight: 300;
}

/* Table links */
.lw-table a {
  font-weight: 400;
  color: #000;
  text-decoration: none;
}

/* Link hover states */
.lw-table a:hover,
.lw-table a:hover.button {
  opacity: 0.5;
  transition-duration: 0.6s;
}

/* Focus states for accessibility */
.lw-table a:focus-visible,
.lw-table .button:focus-visible {
  outline: 3px solid #003b71;
  outline-offset: 2px;
  opacity: 1;
}

/* Book button styling */
.lw-table .lw-book-button {
  display: inline-block;
  background: #000;
  color: #fff;
  border-radius: 1000px;
  padding: 12px 22px;
  text-decoration: none;
  text-align: center;
  min-width: 120px;
}

.lw-table .lw-book-button:hover,
.lw-table .lw-book-button:focus-visible {
  color: #fff;
}

/* Table layout without details column */
.lw-table--no-details .lw-col-place,
.lw-table--no-details .lw-cell-place {
  width: 25%;
}

.lw-table--no-details .lw-col-hotel,
.lw-table--no-details .lw-cell-hotel {
  width: 55%;
}

.lw-table--no-details .lw-col-book,
.lw-table--no-details .lw-cell-book {
  width: 20%;
  text-align: right;
}

/* Table layout with details column */
.lw-table--with-details .lw-col-place,
.lw-table--with-details .lw-cell-place {
  width: 15%;
}

.lw-table--with-details .lw-col-hotel,
.lw-table--with-details .lw-cell-hotel {
  width: 45%;
}

.lw-table--with-details .lw-col-details,
.lw-table--with-details .lw-cell-details {
  width: 25%;
}

.lw-table--with-details .lw-col-book,
.lw-table--with-details .lw-cell-book {
  width: 15%;
  text-align: right;
}

/* Details list styling */
.lw-details-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lw-details-list li {
  margin: 0 0 6px;
  padding: 0;
}

.lw-details-list li:last-child {
  margin-bottom: 0;
}

/* Empty state for details */
.lw-details-empty {
  color: #666;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet breakpoint */
@media screen and (max-width: 1280px) {
  .lw-table {
    font-size: 14px;
  }

  .lw-table--with-details .lw-col-book,
  .lw-table--with-details .lw-cell-book {
    width: 16%;
  }
}

/* Mobile breakpoint */
@media screen and (max-width: 768px) {
  .lw-count {
    font-size: 14px;
  }

  .lw-table {
    font-size: 14px;
  }

  .lw-table thead th {
    text-align: center;
    padding: 10px 6px;
  }

  .lw-table tbody td {
    text-align: center;
    padding: 10px 6px;
  }

  .lw-table .lw-cell-book,
  .lw-table .lw-col-book {
    text-align: center;
  }

  .lw-table .lw-book-button {
    padding: 6px 15px;
    min-width: 0;
  }

  .lw-details-list {
    display: inline-block;
    text-align: left;
    padding-left: 18px;
  }
}

/* ============================================
   MAP COMPONENTS
   ============================================ */

/* Map canvas - supports both old and new markup */
.lw-mapcanvas,
.lw-map__canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Map empty state - supports both old and new markup */
.lw-mapempty,
.lw-map__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  color: var(--lw-muted);
  background: #eef2f6;
  text-align: center;
  position: absolute;
  inset: 0;
  z-index: 1;
  font-weight: 700;
}

/* Map container */
.lw-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 320px;
  border: 1px solid var(--lw-border);
  box-shadow: var(--lw-shadow);
  margin: 0 0 1.5rem;
  background: #eef2f6;
}

/* ============================================
   MAP CARD COMPONENT
   ============================================ */

/* Base map card styles */
.lw-map-card {
  font: 14px/1.45 Arial, Helvetica, sans-serif;
  color: #364152;
  max-width: 430px;
}

/* Map card strong text */
.lw-map-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #003b71;
}

/* Enhanced card variant */
.lw-map-card--enhanced {
  position: relative;
  padding: 16px 18px 18px;
}

/* Close button */
.lw-map-cardclose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #7a7a7a;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* Card header */
.lw-map-cardheader {
  padding-right: 28px;
}

/* Card title */
.lw-map-cardtitle {
  display: inline-block;
  margin: 0 0 8px;
  color: #1e5b8f;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  text-decoration: none;
}

.lw-map-cardtitle:hover,
.lw-map-cardtitle:focus {
  color: #0f4e86;
  text-decoration: underline;
}

/* Card subtitle */
.lw-map-cardsubtitle {
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.35;
}

/* Card body with grid layout */
.lw-map-cardbody {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* Full width card body variant */
.lw-map-cardbody--full {
  grid-template-columns: minmax(0, 1fr);
}

/* Card media container */
.lw-map-cardmedia {
  width: 110px;
}

/* Card image */
.lw-map-cardimage {
  display: block;
  width: 110px;
  height: 66px;
  object-fit: cover;
  background: #eef2f6;
}

/* Card copy container */
.lw-map-cardcopy {
  min-width: 0;
  width: 100%;
}

/* Card text with line clamping */
.lw-map-cardtext {
  color: #6a6f76;
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Card actions container */
.lw-map-cardactions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* Card button */
.lw-map-cardbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  padding: 11px 18px;
  border: 0;
  border-radius: 4px;
  background: #f58220;
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.lw-map-cardbutton:hover,
.lw-map-cardbutton:focus {
  background: #de6f12;
  color: #fff !important;
}

/* ============================================
   RESPONSIVE STYLES - MAP CARD MOBILE
   ============================================ */
@media (max-width: 640px) {
  .lw-map-card {
    max-width: 290px;
  }

  .lw-map-card--enhanced {
    padding: 14px 14px 16px;
  }

  .lw-map-cardbody,
  .lw-map-cardbody--full {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lw-map-cardmedia,
  .lw-map-cardimage {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
  }

  .lw-map-cardactions {
    justify-content: stretch;
  }

  .lw-map-cardbutton {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================
   MAP EMPTY STATE OVERRIDE
   ============================================ */
.lw-map__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  color: #6b7280;
  background: #eef2f6;
  text-align: center;
  position: absolute;
  inset: 0;
  z-index: 1;
  font-weight: 700;
}

/* ============================================
   NOTICE COMPONENT
   ============================================ */

/* Base notice styles */
.lw-notice {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--lw-gold);
  background: #fff7e8;
  color: #5f470b;
}

/* Error notice variant */
.lw-notice--error {
  border-left-color: #a12828;
  background: #fdecec;
  color: #6f1d1d;
}