:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background-color: #f8fafc;
  color: #0f172a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-y: scroll;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
}

a {
  color: #2563eb;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  padding: 1rem 2rem;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.site-header__brand img {
  width: 40px;
  height: 40px;
}

.site-header__brand span {
  text-transform: uppercase;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__nav a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.site-header__nav a:hover {
  opacity: 0.8;
  text-decoration: none;
}

.site-header__nav-right {
  display: flex;
  align-items: center;
}

.site-header__nav-right a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.site-header__nav-right a:hover {
  opacity: 0.8;
  text-decoration: none;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.site-footer {
  font-size: 1.5rem;
  color: #64748b;
  padding: 2rem 1rem;
}

.site-footer__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  text-align: center;
}

.site-footer__left {
  text-align: center;
}

.site-footer__left p {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
}

.site-footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  margin: 0 auto;
  max-width: 1200px;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 1.3rem;
  opacity: 0.8;
}

.site-footer__bottom a {
  font-weight: bold;
  opacity: 1;
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.github-link:hover {
  transform: scale(1.1);
  text-decoration: none;
}

.hero {
  margin-bottom: 2rem;
  scroll-margin-top: 80px;
}

.hero__content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.filters {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  box-shadow:
    0 -10px 15px -15px rgba(15, 23, 42, 0.3),
    0 20px 25px -20px rgba(15, 23, 42, 0.45);
  scroll-margin-top: calc(80px - 1.5rem);
}

.filters__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filters__header h2 {
  margin-bottom: 0;
}

.filters__toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.filters__toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: block;
}

.filters__toggle-icon::before,
.filters__toggle-icon::after {
  content: '';
  position: absolute;
  background: #475569;
  transition: transform 0.3s ease;
}

.filters__toggle-icon::before {
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.filters__toggle-icon::after {
  top: 50%;
  left: 50%;
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.filters[aria-expanded="false"] .filters__toggle-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.filters[aria-expanded="true"] .filters__toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.filters__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.filters[aria-expanded="false"] .filters__form {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.filters[aria-expanded="true"] .filters__form {
  max-height: 2000px;
  opacity: 1;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 15px;
}

.filter-group input[type="number"] {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  font-size: 15px;
}

.filter-group--checkboxes {
  gap: 0.35rem;
}

.filter-group--checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 15px;
}

.filter-group--checkboxes input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-group--actions {
  flex-direction: row;
  gap: 0.75rem;
}

.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 32px !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px !important;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: none;
  line-height: normal;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.btn--primary {
  border: none;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #ffffff;
  box-shadow: 0 12px 20px -12px rgba(59, 130, 246, 0.9);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 24px -18px rgba(59, 130, 246, 0.9);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.btn--secondary {
  border: 1px solid #cbd5f5;
  color: #1e293b;
  background: #fff;
}

.btn--small {
  padding: 7px 20px !important;
  font-size: 15px !important;
}

.btn--small.btn--primary {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  color: #ffffff;
  box-shadow: 0 8px 16px -10px rgba(56, 189, 248, 0.5);
}

.btn--small.btn--primary:hover {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  box-shadow: 0 12px 20px -12px rgba(56, 189, 248, 0.6);
}

.map-section {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 30px 35px -32px rgba(15, 23, 42, 0.45);
  scroll-margin-top: calc(80px - 1.5rem);
}

.listings-table {
  scroll-margin-top: 80px;
}

.filters h2,
.map-section h2,
.listings-table h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.map-embed {
  position: relative;
  width: 100%;
  height: 600px;
  max-height: 600px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

.map-embed > div {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 600px !important;
}

.map-embed.map-embed--small {
  height: 500px;
}

.legend {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  font-size: 15px;
  color: #475569;
}

.legend__item::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.legend__item--green::before {
  background: #22c55e;
}
.legend__item--orange::before {
  background: #f97316;
}
.legend__item--red::before {
  background: #ef4444;
}

.table-wrapper {
  background: #fff;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 24px 32px -28px rgba(15, 23, 42, 0.45);
  isolation: isolate;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: visible;
}

thead {
  position: -webkit-sticky;
  position: sticky;
  top: 56px;
  z-index: 500;
  background: #e2e8f0;
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform;
}

thead::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #94a3b8;
  box-shadow: 0 4px 6px -2px rgba(15, 23, 42, 0.3);
}

th,
td {
  padding: 1rem 1.2rem;
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  background: #e2e8f0;
  border-right: 1px solid #cbd5e1;
}

th:last-child {
  border-right: none;
}

tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.listing-summary {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
}

.listing-summary img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 18px -18px rgba(15, 23, 42, 0.75);
}

.listing-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 0.2rem 0.4rem;
  margin: -0.2rem -0.4rem;
  border-radius: 6px;
}

.listing-title-link:hover {
  background-color: #e2e8f0;
  color: #1e40af;
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill--free-rooms {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.status-pill--tbd {
  background: rgba(249, 115, 22, 0.15);
  color: #9a3412;
}

.status-pill--full {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.empty-state {
  text-align: center;
  font-style: italic;
  color: #64748b;
  padding: 2rem;
}

.breadcrumb {
  margin-bottom: 0.25rem;
}

.listing-detail {
  background: #fff;
  border-radius: 20px;
  padding: 0.1rem;
  box-shadow: 0 36px 45px -32px rgba(15, 23, 42, 0.45);
}

.listing-detail__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.1rem 1.5rem 0.5rem;
}

.listing-detail__header h1 {
  margin: 0;
}

.listing-detail__meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0 0 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.meta-value {
  font-weight: 600;
}

.listing-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 0 1.5rem 1.5rem;
}

.listing-description {
  font-size: 1.5rem;
  color: #1e293b;
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

.card {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.25rem;
  border-radius: 16px;
  margin: 1rem 0;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.availability-history {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}

.availability-record {
  padding: 0.75rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0;
}

.availability-record:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.availability-record:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.availability-record + .availability-record {
  border-top: none;
}

.availability-record__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.availability-record__date {
  font-size: 1.4rem;
  font-weight: 950;
  color: #475569;
}

.availability-record__description {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.property-image {
  margin-top: 0.5rem;
}

.property-image__container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 600px;
  margin-top: 1rem;
}

.property-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 35px -26px rgba(15, 23, 42, 0.75);
}

.contact-section {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 24px 32px -28px rgba(15, 23, 42, 0.45);
  scroll-margin-top: calc(80px - 2rem);
}

.contact-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Privacy Page */
.privacy-container {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem;
  margin-top: 1rem;
  box-shadow: 0 24px 32px -28px rgba(15, 23, 42, 0.45);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-container h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.privacy-container h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.privacy-container h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #334155;
}

.privacy-section {
  margin-bottom: 1.5rem;
}

.privacy-container p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #475569;
}

.privacy-container ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #475569;
}

.privacy-container li {
  margin-bottom: 0.5rem;
}

.privacy-container a {
  color: #2563eb;
  text-decoration: none;
}

.privacy-container a:hover {
  text-decoration: underline;
}

.privacy-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.privacy-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.privacy-back a:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  text-decoration: none;
}

.site-footer a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #2563eb;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .site-footer__content {
    padding: 0 1rem 2rem;
  }

  .listing-summary {
    grid-template-columns: 1fr;
  }

  .listing-detail__layout {
    grid-template-columns: 1fr;
  }

  .filters__form {
    grid-template-columns: 1fr;
  }

  /* Collapse filters by default on mobile */
  .filters {
    padding: 1rem;
  }

  .filters[aria-expanded="false"] .filters__form {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }

  .filters[aria-expanded="true"] .filters__form {
    max-height: 2000px;
    opacity: 1;
  }

  .filters__header {
    margin-bottom: 0;
  }

  .filters[aria-expanded="true"] .filters__header {
    margin-bottom: 0.5rem;
  }

  .filters__header h2 {
    font-size: 1.25rem;
  }

  .site-header__inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .site-header__left {
    flex-direction: row;
    gap: 0.75rem;
    width: auto;
    flex: 1;
  }

  .site-header__brand {
    gap: 0.5rem;
    font-size: 14px;
  }

  .site-header__brand img {
    width: 32px;
    height: 32px;
  }

  .site-header__nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    font-size: 13px;
  }

  .site-header__nav-right {
    font-size: 13px;
  }

  .privacy-container {
    padding: 1.5rem;
  }

  .privacy-container h1 {
    font-size: 2rem;
  }

  /* Reduce map height for mobile */
  .map-embed {
    height: 400px;
    max-height: 400px;
  }

  .map-embed > div {
    max-height: 400px !important;
  }

  /* Make table horizontally scrollable on mobile */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 800px;
  }

  /* Adjust scroll margin for listings section on mobile */
  .listings-table {
    scroll-margin-top: 60px;
  }

  /* Disable sticky table header on mobile to prevent overlap issues */
  thead {
    position: relative;
    top: 0;
  }

  /* Fix Leaflet popup sizing for mobile */
  .leaflet-popup-content-wrapper {
    max-width: 200px !important;
  }

  .leaflet-popup-content {
    margin: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .leaflet-popup-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 100px !important;
  }

  .leaflet-popup-content strong {
    font-size: 13px !important;
  }

  .leaflet-popup-content a {
    font-size: 11px !important;
  }

  .leaflet-popup-content div[style*="padding:8px"] {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  /* Reduce header padding on mobile */
  .site-header {
    padding: 0.75rem 1rem;
  }

  .site-main {
    padding: 1rem 1rem 3rem;
  }
}

/* Large screens: scale up map tooltips and popups */
@media (min-width: 1400px) {
  /* Increase tooltip font size */
  .leaflet-tooltip {
    font-size: 15px !important;
    padding: 6px 10px !important;
    line-height: 1.4 !important;
  }

  /* Increase popup content size */
  .leaflet-popup-content-wrapper {
    max-width: 420px !important;
  }

  .leaflet-popup-content {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin: 14px 16px !important;
  }

  .leaflet-popup-content strong {
    font-size: 16px !important;
  }

  .leaflet-popup-content img {
    max-width: 220px !important;
    max-height: 160px !important;
  }

  .leaflet-popup-content a {
    font-size: 14px !important;
  }

  .leaflet-popup-content div[style*="padding"] {
    font-size: 14px !important;
  }
}

/* Extra large screens: scale up even more */
@media (min-width: 1920px) {
  .leaflet-tooltip {
    font-size: 16px !important;
    padding: 8px 12px !important;
  }

  .leaflet-popup-content-wrapper {
    max-width: 480px !important;
  }

  .leaflet-popup-content {
    font-size: 16px !important;
    margin: 16px 18px !important;
  }

  .leaflet-popup-content strong {
    font-size: 18px !important;
  }

  .leaflet-popup-content img {
    max-width: 250px !important;
    max-height: 180px !important;
  }

  .leaflet-popup-content a {
    font-size: 15px !important;
  }
}

