/* main.css - Sinarades Property */
/* Copyright (c) 2023 Grammenos Stefanos https://stefanogramm.com// Copyright (c) 2023 Grammenos Stefanos https://stefanogramm.com
 */
 
:root {
  --primary: #ff385c; /* Airbnb red for primary actions */
  --background: #fff; /* Clean white background */
  --foreground: #222; /* Dark grey for text */
  --accent: #f7f7f7; /* Light grey for subtle backgrounds/accents */
  --border: #ddd; /* Light border color */
  --radius: 12px; /* Consistent border radius */
  --font-family: 'Inter', Arial, sans-serif; /* Modern, readable font */
}

html {
  box-sizing: border-box;
  overflow-x: hidden; /* Prevent horizontal scrolling at the HTML level */
}

*, *:before, *:after {
  box-sizing: inherit; /* All elements inherit box-sizing from html */
}
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden; /* Prevent horizontal scrolling at the body level */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  text-decoration: none;
}
.logo-icon {
  font-size: 2rem;
  margin-right: 0.5rem;
}
.main-nav {
  display: flex;
  align-items: center;
}
.main-nav a {
  margin-left: 1.5rem;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--primary);
}
.hero {
  background: var(--accent);
  padding: 3rem 0 2rem 0;
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.hero-text {
  flex: 1 1 320px;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover {
  background: #e11d48;
  transform: translateY(-2px) scale(1.03);
}
.hero-image.slider {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  z-index: 1;
}
.slider-img.active {
  opacity: 1;
  z-index: 2;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.slider-btn.prev { left: 0.5rem; }
.slider-btn.next { right: 0.5rem; }
.slider-btn:focus, .slider-btn:hover {
  background: var(--primary);
  color: #fff;
}
.gallery-section {
  padding: 3rem 0 2rem 0;
}
.gallery-section h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.about-section {
  background: var(--accent);
  padding: 3rem 0 2rem 0;
}
.about-section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.amenities-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.amenities-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
}
.contact-section {
  padding: 3rem 0 2rem 0;
}
.contact-section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.site-footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  font-size: 0.95rem;
}
.footer-nav a {
  margin-left: 1.2rem;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
}
.footer-nav a:hover {
  color: var(--primary);
}
@media (max-width: 800px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .main-nav a {
    margin-left: 1rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* Responsive adjustments for the menu */
@media (max-width: 768px) {
  .main-nav {
    display: none; /* Hide desktop navigation on mobile */
  }
  
  .hamburger {
    display: flex; /* Ensure hamburger is visible on mobile */
  }
  
  .menu-content a {
    font-size: 1.8rem; /* Slightly smaller font size on mobile */
  }
  
  .menu-content li {
    margin: 1.5rem 0; /* Adjust spacing for mobile */
  }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
  
  /* Show main navigation on desktop */
  .main-nav {
    display: flex !important;
  }
  
  /* Hide fullscreen menu only when it's not explicitly shown */
  .fullscreen-menu[aria-hidden="true"] {
    display: none;
  }
  
  /* Ensure fullscreen menu is positioned correctly when shown */
  .fullscreen-menu[aria-hidden="false"] {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
}

/* Adjust for very small screens */
@media (max-width: 500px) {
  .container {
    padding: 0 1rem;
  }
  
  .menu-content a {
    font-size: 1.6rem; /* Smaller font size for very small screens */
    padding: 0.8rem;
  }
  
  .hamburger {
    width: 44px;
    height: 44px;
    top: 1rem;
    right: 1rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
}

/* Lightbox Gallery Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0; left: 0; right: 0; bottom: 0;
  justify-content: center;
  align-items: center;
  background: rgba(34, 34, 34, 0.85);
  animation: fadeIn 0.2s;
}
.lightbox-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
  max-height: 90vh;
}
.lightbox-img {
  max-width: 80vw;
  max-height: 60vh;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  margin-bottom: 1.2rem;
  background: #f7f7f7;
}
.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #e11d48;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev {
  left: -1.5rem;
}
.lightbox-next {
  right: -1.5rem;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 600px) {
  .lightbox-content {
    padding: 0.5rem 0.5rem;
    max-width: 100vw;
    max-height: 100vh;
  }
  .lightbox-img {
    max-width: 95vw;
    max-height: 50vh;
  }
  .lightbox-prev, .lightbox-next {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
    left: 0.2rem;
    right: 0.2rem;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sticky Navigation */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Contact Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
}
#contact-form label {
  font-weight: 600;
  margin-bottom: 0.2rem;
}
#contact-form input,
#contact-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-family: var(--font-family);
  background: #fafafa;
  resize: vertical;
}
#contact-form button {
  align-self: flex-start;
}

/* Google Maps */
.map-section iframe {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 1rem;
}

/* FAQ Accordion */
.faq-section {
  padding: 3rem 0 2rem 0;
}
.faq-accordion {
  margin-top: 1.5rem;
}
.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  cursor: pointer;
  color: var(--primary);
  transition: background 0.2s;
}
.faq-question[aria-expanded="true"] {
  background: var(--accent);
}
.faq-answer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  color: var(--foreground);
  background: #fafafa;
}

/* Animated Scroll Effects */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
[data-animate].animate-in {
  opacity: 1;
  transform: none;
}

/* Calendar Date Picker Styles */
.calendar-popup {
  position: absolute;
  top: 110%;
  left: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 1rem;
  min-width: 320px;
  max-width: 100vw;
  margin-top: 0.3rem;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 2.2rem);
  gap: 0.2rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.calendar-day, .calendar-weekday {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.calendar-weekday {
  font-weight: 600;
  color: var(--primary);
  cursor: default;
}
.calendar-day.selected {
  background: var(--primary);
  color: #fff;
}
.calendar-day.in-range {
  background: var(--accent);
  color: var(--primary);
}
.calendar-day.disabled {
  color: #bbb;
  pointer-events: none;
  background: none;
}
.calendar-day:hover:not(.disabled):not(.selected) {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 500px) {
  .calendar-popup {
    min-width: 220px;
    padding: 0.5rem;
  }
  .calendar, .calendar-header {
    font-size: 0.95rem;
  }
}

/* Guests row (adults + kids side by side) */
.guests-row {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.guests-row > div {
  flex: 1 1 0;
  min-width: 0;
}
.guests-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.guests-row input[type="number"] {
  width: 100%;
  max-width: 80px;
  padding: 0.5rem 0.7rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fafafa;
}
@media (max-width: 600px) {
  .guests-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .guests-row input[type="number"] {
    max-width: 100%;
  }
}

/* Contact form row layout */
.contact-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.contact-form-col {
  flex: 2 1 320px;
  min-width: 0;
}
.contact-details-card {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--foreground);
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-details-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
}
.contact-details-card a {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-all;
}
@media (max-width: 900px) {
  .contact-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-details-card {
    width: 100%;
    min-width: 0;
    margin-top: 0;
  }
}

/* Plus/minus buttons for guests */
.guests-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.guests-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border);
  background: #fafafa;
  color: var(--primary);
  font-size: 1.3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.guests-btn:focus, .guests-btn:active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.guests-input-group input[type="number"], .guests-input-group input[type="text"] {
  width: 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.5rem 0.2rem;
  margin: 0 0.2rem;
  box-sizing: content-box; /* Ensures padding doesn't affect width */
  appearance: none; /* Remove default browser styles */ 
}
.guests-summary {
  color: #444;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}
.spinner {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #fff;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f9e6;
  color: #1a7f37;
  border: 1.5px solid #b6e2b6;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  padding: 1.5rem 1rem;
  min-height: 3.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  animation: fadeIn 0.5s;
}
.form-success::before {
  content: '\2714';
  color: #1a7f37;
  font-size: 2rem;
  margin-right: 1rem;
  animation: popIn 0.5s;
}
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
} 
/* Modern Fullscreen Hamburger Menu Styles */

/* Hamburger Icon */
.hamburger {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 20001;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Add a subtle scale effect on hover */
.hamburger:not([aria-expanded="true"]):hover {
  transform: scale(1.05);
  background: rgba(255,255,255,1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Accessibility focus styles */
.hamburger:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.hamburger:focus {
  outline: 2px solid var(--primary);
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: #f8f9fa;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-nav li {
  display: flex;
  align-items: center;
  margin: 0.25rem 0;
}

.breadcrumb-nav li:not(:first-child)::before {
  content: '›';
  margin: 0 0.5rem;
  color: #6c757d;
}

.breadcrumb-nav a {
  color: #495057;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: #007bff;
  text-decoration: underline;
}

.breadcrumb-nav [aria-current="page"] {
  color: #212529;
  font-weight: 500;
  pointer-events: none;
}

/* Fullscreen Menu Overlay */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  background: rgba(34,34,34,0.92);
  backdrop-filter: blur(6px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-in-out;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Menu when visible */
.fullscreen-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Menu when hidden */
.fullscreen-menu[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease-in-out, visibility 0.35s;
}
.menu-content {
  position: relative;
  background: transparent;
  padding: 0;
  text-align: center;
  width: 100vw;
  max-width: 100vw;
}
.menu-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-content li {
  margin: 2rem 0;
}
.menu-content a {
  font-size: 2.2rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.2s, transform 0.2s;
  outline: none;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.menu-content a:focus,
.menu-content a:hover {
  color: var(--primary);
  transform: translateY(-2px);
  text-shadow: 0 2px 16px rgba(255,56,92,0.12);
}

.menu-content a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu-content a:focus::after,
.menu-content a:hover::after {
  width: 80%;
}

/* Removed duplicate rule that was causing lint errors */
.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  transition: color 0.2s;
}
.close-menu:hover,
.close-menu:focus {
  color: var(--primary);
}

/* Quick Check-in Steps Section */
.quick-checkin-steps {
  padding: 2rem 0; /* Adjusted padding */
}

.quick-checkin-steps h2 {
  text-align: center;
  margin-bottom: 2.5rem; /* Increased margin */
  color: var(--primary);
  font-size: 1.8rem; /* Slightly larger title */
}

.steps-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Softer shadow */
  padding: 2.5rem; /* Increased padding */
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* Increased gap */
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number-container { /* Added for better alignment if needed */
  flex-shrink: 0;
}

.step-number {
  background-color: var(--primary);
  color: #fff;
  font-size: 1.6rem; /* Slightly larger number */
  font-weight: 700;
  width: 3.5rem; /* Slightly larger circle */
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(255,56,92,0.3); /* Shadow for the number */
}

.step-content h3 {
  margin-top: 0.2rem; /* Align with top of circle better */
  margin-bottom: 0.75rem;
  font-size: 1.4rem; /* Slightly larger step title */
  color: var(--foreground);
}

.step-content p {
  margin-bottom: 1.25rem;
  line-height: 1.65;
  color: #555; /* Slightly lighter text for description */
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  padding: 0.65rem 1.8rem; /* Adjusted padding */
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.03); /* Keep hover effect consistent */
}

@media (max-width: 768px) {
  .steps-card {
    padding: 1.5rem;
  }
  /* Step styles are handled by the step-content class */
  .step-content h3 {
    margin-top: 0; /* Adjust for smaller screens if number is above */
  }
  .step-content .btn {
    width: auto; /* Allow button to size naturally or set max-width */
    display: inline-flex; /* For icon alignment */
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .menu-content a {
    font-size: 1.5rem;
  }
  .close-menu {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }
}

/* What3Words Section */
.what3words-section {
  padding: 2rem 0;
  background-color: var(--accent); /* Or keep it white: var(--background) */
}

.what3words-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.8rem;
}

.what3words-section p {
  text-align: center;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.what3words-address-display {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.what3words-address-display strong a {
  color: var(--primary);
  text-decoration: none;
  font-family: monospace; /* For the /// look */
}
.what3words-address-display strong a:hover {
  text-decoration: underline;
}

#w3w-map-container what3words-map {
  width: 100%;
  height: 400px; /* Adjust as needed */
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.w3w-info {
  font-size: 0.9rem;
  color: #555;
  margin-top: 1.5rem;
}

/* Parallax Hero for Check-in Page */
.hero-parallax-checkin {
  position: relative;
  color: #fff; /* Text will be white */
  padding: 6rem 0; /* Adjust padding for desired height */
  text-align: center;
  overflow: hidden; /* Crucial for containing the moving background */
  min-height: 50vh; /* Ensure it has a decent height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-parallax-checkin .parallax-bg-layer {
  position: absolute;
  top: -10%; /* Start slightly outside to allow movement */
  left: -10%;
  width: 120%; /* Make it larger than the hero section */
  height: 120%;
  background-image: url('sinarades-villagee-beach.jpg'); /* Ensure this image is in the same dir as main.css or adjust path */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0; /* Behind content and overlay */
  transition: transform 0.2s ease-out; /* Smooth movement */
}

.hero-parallax-checkin .hero-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55); /* Semi-transparent dark overlay for text contrast */
  z-index: 1; /* On top of bg-layer, behind text-content */
}

.hero-parallax-checkin .hero-text-content {
  position: relative; /* To sit on top of the overlay */
  z-index: 2; /* Text on top */
}

.hero-parallax-checkin h1 {
  color: #fff;
  font-size: 2.8rem; /* Adjust as needed */
  margin-bottom: 1rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6); /* Enhanced text shadow */
}

.hero-parallax-checkin p {
  color: #f0f0f0; /* Slightly off-white */
  font-size: 1.3rem; /* Adjust as needed */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6); /* Enhanced text shadow */
}

/* Directions Section Styles */
.directions-section {
  padding: 2rem 0;
  background-color: var(--background); /* Or var(--accent) for a different bg */
}

.directions-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.8rem;
}

.directions-section p {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.directions-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background-color: #f9f9f9;
}

.form-group input[readonly] {
  background-color: #efefef;
  cursor: not-allowed;
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.input-with-button input[type="text"] {
  flex: 1 1 200px; /* Allow to grow but not below 200px */
  min-width: 0; /* Allow to shrink below content width */
}

.input-with-button .btn-small {
  flex: 1 0 auto;
  white-space: nowrap;
  min-width: 120px;
}

/* Stack on mobile */
@media (max-width: 480px) {
  .input-with-button {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .input-with-button input[type="text"],
  .input-with-button .btn-small {
    width: 100%;
    flex: 1 1 auto;
  }
  
  .input-with-button .btn-small {
    margin-top: 0.25rem;
  }
}
.btn-small {
  padding: 0.6rem 1rem; /* Slightly smaller padding for button next to input */
  font-size: 0.95rem;
  white-space: nowrap; /* Prevent text wrapping */
}

.form-text {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #555;
}

/* Enhanced Transfer Service Card (replaces old .transfer-section) */
.transfer-service-card {
  background: linear-gradient(145deg, #ffffff, #fdfdfd); /* Very subtle gradient for depth */
  border-radius: var(--radius);
  padding: 2rem 2.5rem; /* Generous padding */
  margin-top: 2.5rem; /* Space from the paragraph above */
  margin-bottom: 2.5rem; /* Space before the next paragraph */
  box-shadow: 0 10px 30px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05); /* Softer, more modern shadow */
  border: 1px solid #f0f0f0; /* Lighter border */
}

.transfer-service-card h3 {
  text-align: center;
  color: var(--primary);
  font-size: 1.7rem; /* Adjusted size */
  margin-top: 0;
  margin-bottom: 1rem;
}

.transfer-service-card > p { /* The main paragraph about Welcome Pickups */
  text-align: center;
  font-size: 1.1rem; /* Slightly larger for emphasis */
  color: #333; /* Darker for better readability */
  margin-bottom: 1.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.widget-instructions {
  background-color: #fffaf0; /* Light orange/yellowish background for info box */
  border: 1px solid #ffe6b3;
  border-left: 4px solid var(--primary); /* Accent border */
  border-radius: calc(var(--radius) - 6px); 
  padding: 1.25rem 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem; 
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.widget-instructions h4 {
  color: var(--primary); 
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.widget-instructions p {
  font-size: 1rem; /* Clearer instruction text */
  color: #4a4a4a; 
  line-height: 1.65;
  margin-bottom: 0; 
}
.widget-instructions p strong {
  color: var(--primary); 
  font-weight: 700; /* Bolder emphasis */
}

#welcomepickups-widget-container {
  max-width: 550px; 
  margin: 0 auto;
  /* Padding, background, border-radius, and box-shadow are removed
     as these visual aspects are now handled by .transfer-service-card */
}

/* Center the content injected by the Welcome Pickups widget */
#welcomepickups {
  display: flex;
  justify-content: center;
}

/* Sensitive Info Section Styles */
.sensitive-info-section {
  padding: 2.5rem 0;
  background-color: var(--background); /* Or var(--accent) for a different bg */
}

.sensitive-info-card {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(145deg, #ffffff, #fdfdfd);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid #eaeaea;
  text-align: center; /* Center align text within the card initially */
}

.sensitive-info-card h3 {
  color: var(--primary);
  font-size: 1.7rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.sensitive-info-card p {
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.access-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.access-form input[type="password"] {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background-color: #f9f9f9;
  flex-grow: 1;
  max-width: 300px; /* Limit width of password input */
}

/* Unlocked Content Styles */
#unlocked-content {
  text-align: left; /* Align text to left once unlocked */
}

.info-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border);
}
.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.info-item h4 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.info-item p {
  font-size: 1.05rem;
  color: var(--foreground);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.info-item p strong {
  font-weight: 600;
  color: #333;
}

/* Check-in Info Page Enhancements */
.checkin-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #e91e63 100%);
  color: white;
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.checkin-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="20" cy="80" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.checkin-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

.checkin-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.document-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  animation: slideInFromBottom 0.8s ease-out 0.4s both;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.document-container h2 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem 2rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  position: relative;
}

.document-container h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 2rem;
  width: 60px;
  height: 2px;
  background: var(--primary);
}

.document-embed {
  padding: 0;
  min-height: 600px;
  position: relative;
}

.document-embed iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Secure Info Card */
.secure-info-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  margin: 3rem 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  animation: slideInFromBottom 0.8s ease-out 0.6s both;
  transition: all 0.3s ease;
}

.secure-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.secure-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, #e91e63 100%);
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.secure-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
  50% { transform: translateX(0%) translateY(0%) rotate(180deg); }
}

.secure-card-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.secure-card-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

.password-form {
  padding: 2rem;
  text-align: center;
}

.password-input {
  width: 100%;
  max-width: 300px;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  background: white;
}

.password-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.1);
  transform: scale(1.02);
}

.unlock-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #e91e63 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.unlock-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

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

.unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 56, 92, 0.3);
}

.unlock-btn:active {
  transform: translateY(0);
}

.secure-content {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  display: none;
  animation: fadeInScale 0.5s ease-out;
}

.secure-content.unlocked {
  display: block;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.info-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.info-item h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.info-item p {
  margin: 0;
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-weight: 600;
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.success-icon {
  color: #28a745;
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .checkin-hero h1 {
    font-size: 2.2rem;
  }
  
  .checkin-hero p {
    font-size: 1rem;
  }
  
  .document-container h2 {
    padding: 1rem;
    font-size: 1.3rem;
  }
  
  .document-container h2::after {
    left: 1rem;
  }
  
  .secure-card-header {
    padding: 1.5rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* SEO Content Section */
.seo-content {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text);
}

.seo-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.seo-content h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem 0;
  line-height: 1.4;
}

.seo-content p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.seo-content strong {
  font-weight: 700;
  color: var(--primary);
}

.seo-content ul, .seo-content ol {
  margin: 1rem 0 1.5rem 2rem;
}

.seo-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.seo-content .highlight-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffd93d;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
}

.seo-content .highlight-box p {
  margin-bottom: 0;
  font-weight: 600;
  color: #856404;
}

/* Responsive adjustments for SEO content */
@media (max-width: 768px) {
  .seo-content {
    padding: 1rem;
  }

  .seo-content h2 {
    font-size: 1.6rem;
  }

  .seo-content h3 {
    font-size: 1.2rem;
  }
}

/* PWA Enhancement Styles v3.0 - Advanced 2024 Features */

/* PWA Install Button Enhancements */
@keyframes bounceIn {
  0% { 
    opacity: 0; 
    transform: scale(0.3) translateY(100px); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1.05) translateY(-10px); 
  }
  70% { 
    transform: scale(0.9) translateY(5px); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

@keyframes fadeOut {
  from { 
    opacity: 1; 
    transform: translateY(0); 
  }
  to { 
    opacity: 0; 
    transform: translateY(20px); 
  }
}

@keyframes slideOut {
  from { 
    transform: translateX(0); 
    opacity: 1; 
  }
  to { 
    transform: translateX(100%); 
    opacity: 0; 
  }
}

@keyframes slideDown {
  from { 
    transform: translateY(-100%); 
  }
  to { 
    transform: translateY(0); 
  }
}

@keyframes celebration {
  0% { 
    transform: translate(-50%, -50%) scale(0.5); 
    opacity: 0; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
    opacity: 1; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1; 
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Enhanced PWA Notification Styles */
.pwa-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  z-index: 10000;
  animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-notification.update {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
  animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), gradientShift 3s ease infinite;
}

.pwa-notification.success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.pwa-notification.error {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* PWA Install Button States */
.pwa-install-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, #e31c5f 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 56, 92, 0.4);
  z-index: 9999;
  font-size: 15px;
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 0.3s ease;
  transform-origin: center;
}

.pwa-install-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 56, 92, 0.6);
}

.pwa-install-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.pwa-install-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.3);
}

/* Offline Indicator */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  text-align: center;
  padding: 12px;
  z-index: 10000;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* PWA Enhancement for Standalone Mode */
@media (display-mode: standalone) {
  .site-header {
    padding-top: env(safe-area-inset-top, 1rem);
    background: linear-gradient(135deg, var(--background) 0%, #f8f9fa 100%);
  }
  
  .hero {
    margin-top: env(safe-area-inset-top, 0);
  }
  
  body {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  
  /* Hide browser-specific elements in standalone mode */
  .browser-only {
    display: none;
  }
  
  /* Show PWA-specific elements */
  .pwa-only {
    display: block;
  }
}

/* Enhanced Button Interactions for Touch Devices */
@media (pointer: coarse) {
  .btn, .pwa-install-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn:active, .pwa-install-btn:active {
    transform: scale(0.95);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .pwa-install-btn,
  .pwa-notification {
    animation: none;
    transition: opacity 0.3s ease;
  }
}

/* Print Styles for PWA */
@media print {
  .pwa-install-btn,
  .pwa-notification,
  .offline-indicator {
    display: none !important;
  }
}

/* PWA Enhancement Styles v3.0 - Advanced 2024 Features */

/* PWA Install Button Enhancements */
@keyframes bounceIn {
  0% { 
    opacity: 0; 
    transform: scale(0.3) translateY(100px); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1.05) translateY(-10px); 
  }
  70% { 
    transform: scale(0.9) translateY(5px); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

@keyframes fadeOut {
  from { 
    opacity: 1; 
    transform: translateY(0); 
  }
  to { 
    opacity: 0; 
    transform: translateY(20px); 
  }
}

@keyframes slideOut {
  from { 
    transform: translateX(0); 
    opacity: 1; 
  }
  to { 
    transform: translateX(100%); 
    opacity: 0; 
  }
}

@keyframes slideDown {
  from { 
    transform: translateY(-100%); 
  }
  to { 
    transform: translateY(0); 
  }
}

@keyframes celebration {
  0% { 
    transform: translate(-50%, -50%) scale(0.5); 
    opacity: 0; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
    opacity: 1; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1; 
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Enhanced PWA Notification Styles */
.pwa-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  z-index: 10000;
  animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-notification.update {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
  animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), gradientShift 3s ease infinite;
}

.pwa-notification.success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.pwa-notification.error {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* PWA Install Button States */
.pwa-install-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, #e31c5f 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 56, 92, 0.4);
  z-index: 9999;
  font-size: 15px;
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 0.3s ease;
  transform-origin: center;
}

.pwa-install-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 56, 92, 0.6);
}

.pwa-install-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.pwa-install-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.3);
}

/* Offline Indicator */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  text-align: center;
  padding: 12px;
  z-index: 10000;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* PWA Update Progress */
.pwa-update-progress {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 30px;
  border-radius: 15px;
  z-index: 10001;
  text-align: center;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-update-progress .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

/* Enhanced Share Button */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1DA1F2 0%, #1991db 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.share-btn:active {
  transform: translateY(0);
}

/* PWA Installation Success */
.pwa-welcome {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  z-index: 10001;
  animation: celebration 0.8s ease-out;
  box-shadow: 0 20px 60px rgba(76, 175, 80, 0.3);
  backdrop-filter: blur(10px);
}

.pwa-welcome .welcome-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: bounceIn 1s ease-out 0.3s both;
}

.pwa-welcome .welcome-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.pwa-welcome .welcome-message {
  opacity: 0.95;
  font-size: 16px;
  animation: fadeInUp 0.6s ease-out 0.9s both;
}

/* Enhanced Form Sync Indicator */
.form-sync-indicator {
  position: absolute;
  top: -40px;
  right: 0;
  background: #4CAF50;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  animation: slideInBounce 0.4s ease-out;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.form-sync-indicator.offline {
  background: #ff9800;
}

.form-sync-indicator.error {
  background: #f44336;
}

/* PWA Enhancement for Standalone Mode */
@media (display-mode: standalone) {
  .site-header {
    padding-top: env(safe-area-inset-top, 1rem);
    background: linear-gradient(135deg, var(--background) 0%, #f8f9fa 100%);
  }
  
  .hero {
    margin-top: env(safe-area-inset-top, 0);
  }
  
  body {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  
  /* Hide browser-specific elements in standalone mode */
  .browser-only {
    display: none;
  }
  
  /* Show PWA-specific elements */
  .pwa-only {
    display: block;
  }
}

/* PWA Performance Enhancement Indicators */
.performance-indicator {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.performance-indicator.show {
  opacity: 1;
}

.performance-indicator.fast {
  background: rgba(76, 175, 80, 0.9);
}

.performance-indicator.slow {
  background: rgba(255, 152, 0, 0.9);
}

/* Cache Status Indicator */
.cache-status {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  z-index: 9999;
  transition: all 0.3s ease;
}

.cache-status.cached {
  background: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.cache-status.network {
  background: #2196F3;
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.cache-status.offline {
  background: #ff6b6b;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
  animation: pulse 2s infinite;
}

/* Enhanced Loading States for PWA */
.pwa-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

.pwa-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Background Sync Notification */
.bg-sync-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, #673AB7 0%, #512DA8 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(103, 58, 183, 0.4);
  z-index: 10000;
  animation: slideInFromLeft 0.5s ease-out;
  max-width: 300px;
}

@keyframes slideInFromLeft {
  from { 
    transform: translateX(-100%); 
    opacity: 0; 
  }
  to { 
    transform: translateX(0); 
    opacity: 1; 
  }
}

/* Enhanced Button Interactions for Touch Devices */
@media (pointer: coarse) {
  .btn, .pwa-install-btn, .share-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn:active, .pwa-install-btn:active, .share-btn:active {
    transform: scale(0.95);
  }
}

/* Dark Mode Support for PWA */
@media (prefers-color-scheme: dark) {
  .pwa-notification.update {
    background: linear-gradient(135deg, #2E3440 0%, #3B4252 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .pwa-update-progress {
    background: rgba(46, 52, 64, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .offline-indicator {
    background: linear-gradient(90deg, #BF616A 0%, #D08770 100%);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .pwa-install-btn,
  .pwa-notification,
  .pwa-welcome {
    animation: none;
    transition: opacity 0.3s ease;
  }
  
  .spinner::after,
  .pwa-loading::after {
    animation: none;
    opacity: 0.5;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .pwa-notification,
  .pwa-install-btn,
  .offline-indicator {
    border: 2px solid currentColor;
  }
}

/* Print Styles for PWA */
@media print {
  .pwa-install-btn,
  .pwa-notification,
  .offline-indicator,
  .performance-indicator,
  .cache-status {
    display: none !important;
  }
}