/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Earth tone palette */
:root {
  --dark-blue: #000000;
  --light-blue: #000000;
  --misty-blue: #000000;
  --tawny-bronze: #000000;
  --earthy-brown: #000000;
  --cocoa-brown: #000000;
  --deep-mahogany: #000000;
  --white: #ffffff;
}

body {
  font-family: "Roboto", "Arial", sans-serif;
  line-height: 1.6;
  color: var(--dark-blue);
  background-color: var(--white);
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
}

body.maintenance-active {
  overflow: hidden;
}

body.maintenance-active > *:not(#maintenance-overlay) {
  visibility: hidden;
  pointer-events: none;
}

.maintenance-note {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.4rem;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Navigation Tabs */
.nav-tabs {
  background-color: var(--dark-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  display: block;
}

.site-title {
  color: var(--white);
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
  user-select: none;
}

.site-title:hover {
  opacity: 0.8;
}

.site-title:active {
  opacity: 0.6;
}

.spacer {
  width: 32px;
}

.desktop-nav {
  display: none;
}

.tab {
  color: var(--white);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  margin: 0 8px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  background-color: var(--white);
  color: var(--dark-blue);
  border-color: var(--white);
}

.tab:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu {
  background-color: var(--dark-blue);
  padding: 8px;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-tab {
  background: none;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
}

.mobile-tab.active {
  background-color: var(--white);
  color: var(--dark-blue);
  border-color: var(--white);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Hero section */
.hero {
  background-color: var(--dark-blue);
  color: var(--white);
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.7) 0%, rgb(5, 5, 5) 70%);
  z-index: 0;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 0 16px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.button-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 220px;
  text-align: center;
  background-color: var(--white);
  color: var(--dark-blue);
  border: 2px solid var(--white);
}

/* Add swipe animation */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn:hover::before {
  left: 100%;
}

/* Floating card animation */
.floating-card {
  position: absolute;
  width: 200px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

/* Features section */
.features {
  background-color: var(--white);
  padding: 64px 0;
}

.features h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: var(--dark-blue);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature {
  text-align: center;
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.feature h3 {
  color: var(--white);
  margin-bottom: 16px;
}

/* Testimonials section */
.testimonials {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 64px 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 32px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 10px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 16px;
}

/* Feedback section */
.feedback {
  background-color: var(--white);
  text-align: center;
  padding: 64px 0;
}

.feedback h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--dark-blue);
}

.feedback p {
  margin-bottom: 32px;
  color: var(--dark-blue);
}

/* Listings section */
.listings-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 48px); /* Adjust for nav height */
}

.listings {
  flex-grow: 1;
  padding: 16px 8px;
}

.airtable-embed {
  width: 100%;
  height: calc(100vh - 80px);
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Footer */
.main-footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer-section {
  margin-bottom: 16px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.contact-info a {
  color: var(--light-blue);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.contact-info a:hover {
  color: var(--white);
}

.contact-info {
  margin-top: 24px;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* Compact footer for listings */
.compact-footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 8px 12px;
  font-size: 0.75rem;
}

.compact-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bold {
  font-weight: bold;
}

.compact-links {
  display: flex;
  gap: 12px;
}

.compact-links a {
  color: var(--light-blue);
  transition: color 0.3s ease;
}

.compact-links a:hover {
  color: var(--white);
}

/* Fix for iOS button touch issues */
button,
a {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
  button,
  a {
    cursor: pointer;
    user-select: none;
  }

  /* Smoother scrolling for iOS */
  body {
    -webkit-overflow-scrolling: touch;
  }

  /* Fix for iOS iframe rendering */
  .airtable-embed {
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
    overscroll-behavior: none;
  }
}

/* Media Queries */
@media (min-width: 768px) {
  .menu-toggle,
  .site-title,
  .spacer {
    display: none;
  }

  .desktop-nav {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.placeholder-message {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #666;
}

.maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 1000;
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.maintenance-overlay .overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Add these styles if not already present */
#subleasers-content .listings-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px);
}

#subleasers-content .listings {
    flex-grow: 1;
    padding: 16px 8px;
}

#subleasers-content .airtable-embed {
    width: 100%;
    height: calc(100vh - 80px);
    border-radius: 8px;
    border: 1px solid #ccc;
}

.removal-notice {
    font-size: 0.9rem;
    margin-top: 8px;
    color: var(--light-blue);
}

.removal-notice a {
    color: var(--white);
    text-decoration: underline;
}

.removal-notice a:hover {
    color: var(--light-blue);
}

/* Maintenance page overrides */
body.maintenance-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--misty-blue);
  color: #000000;
  font-family: "Roboto", "Arial", sans-serif;
}

.maintenance-wrapper {
  width: min(520px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1.75rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  margin: 0 auto;
}

.maintenance-logo {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
}

.maintenance-wrapper h1 {
  font-size: 2.6rem;
  margin: 0;
  color: #000000;
}

.maintenance-description {
  font-size: 1.18rem;
  line-height: 1.8;
  color: #000000;
}

.maintenance-description a {
  color: #000000;
  text-decoration: underline;
}

.maintenance-description a:hover {
  color: #2f2f2f;
}

.pixel-hourglass {
  width: clamp(180px, 30vw, 240px);
  display: flex;
  justify-content: center;
}

.pixel-hourglass img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

@keyframes pulse {
  0%, 20% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
  80%, 100% {
    opacity: 0.85;
  }
}

.pixel-hourglass svg .sand {
  animation: pulse 1.8s steps(1) infinite;
}

.maintenance-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  color: rgba(0, 0, 0, 0.75);
}

.maintenance-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.maintenance-links a {
  color: #000000;
  font-weight: 600;
  transition: color 0.3s ease;
}

.maintenance-links a:hover {
  color: #2f2f2f;
}

.maintenance-meta {
  font-size: 0.9rem;
  color: #000000;
}

@media (min-width: 768px) {
  .maintenance-wrapper h1 {
    font-size: 3rem;
  }

  .maintenance-description {
    font-size: 1.28rem;
  }
}

