/*
Theme Name: Mountain View
Description: A modern digital welcome book theme for Airbnb and vacation rental properties. Features a mobile-first design with navigation sections for check-in, house rules, local recommendations, and host contact information.
Author: Stay Guide
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mountain-view
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f5f1;
  color: #5a4e3e;
  line-height: 1.6;
}

/* App Container */
.app-container {
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  min-height: 100vh;
  background: white;
  position: relative;
  padding-bottom: 80px;
}

/* Navigation Icons */
.nav-icon {
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-icon:hover {
  transform: scale(1.1);
}

/* Sections */
.section {
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none !important;
}

.section.active {
  opacity: 1;
  display: block !important;
}

/* Ensure welcome section specifically follows visibility rules */
#welcome {
  display: none !important;
}

#welcome.active {
  display: block !important;
}

/* Welcome section will be shown by JavaScript by default */

/* Buttons */
.btn-primary {
  background-color: #b08968;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #9a7555;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* Header */
.app-header {
  background-color: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-header h1 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #b08968;
}

.app-header button {
  background: none;
  border: none;
  color: #5a4e3e;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Section Titles */
.section-title {
  font-family: 'Times New Roman', serif;
  color: #5a4e3e;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* Navigation Grid */
.nav-grid {
  padding: 1rem;
  display: flex;
  justify-center;
  gap: 0.75rem;
  overflow-x: auto;
  flex-wrap: wrap;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-width: 60px;
}

.nav-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b08968;
  margin-bottom: 0.25rem;
  color: #b08968;
}

.nav-item-text {
  font-size: 0.75rem;
  text-align: center;
}

/* Search Box */
.search-box {
  padding: 1rem;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.search-box.hidden {
  display: none;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  color: #9ca3af;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  z-index: 40;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu-content {
  background: white;
  width: 16rem;
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.mobile-menu-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #b08968;
}

.mobile-menu-close {
  color: #6b7280;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-item {
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.mobile-menu-item:hover {
  background-color: #f9fafb;
  text-decoration: none;
  color: inherit;
}

.mobile-menu-item i {
  margin-right: 0.75rem;
  color: #b08968;
}

/* Content Container */
.content-container {
  padding: 1rem;
}

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.card-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-icon {
  color: #b08968;
  font-size: 1.25rem;
}

.card-title {
  font-weight: 600;
}

.card-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Special Background Cards */
.bg-cream {
  background-color: #f8f5f1;
}

.bg-red-light {
  background-color: #fef2f2;
}

.bg-yellow-light {
  background-color: #fffbeb;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.amenity-icon {
  color: #b08968;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.amenity-text {
  font-size: 0.875rem;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
}

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

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s;
}

.bottom-nav-item.active {
  color: #b08968;
}

.bottom-nav-item i {
  margin-bottom: 0.25rem;
}

.bottom-nav-item span {
  font-size: 0.75rem;
}

/* Emergency Styles */
.emergency-contact {
  display: flex;
  align-items: center;
  margin: 0.75rem 0;
}

.emergency-icon {
  background: #fecaca;
  padding: 0.5rem;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.emergency-icon i {
  color: #dc2626;
}

.emergency-title {
  font-weight: 600;
}

.emergency-number {
  font-size: 1.25rem;
  font-weight: bold;
  color: #dc2626;
}

/* Star Ratings */
.stars {
  color: #fbbf24;
  font-size: 0.875rem;
}

.stars .rating-text {
  color: #6b7280;
  margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 640px) {
  .nav-grid {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .nav-item-icon {
    width: 40px;
    height: 40px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .content-container {
    padding: 0.75rem;
  }
}

/* WordPress Specific Styles */
.wp-block-group {
  margin: 0;
}

.wp-block-group__inner-container {
  padding: 0;
}

/* Hide WordPress admin bar when viewing theme */
body.admin-bar .app-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .app-header {
    top: 46px;
  }
}

/* ==========================================================================
   Enhanced Property Features Styling
   Theme-specific overrides matching the Mountain View theme design
   Colors: #b08968 (warm brown), #5a4e3e (dark brown), #f8f5f1 (cream)
   ========================================================================== */

/* Welcome Section - Matching Theme Design */
.welcome-section {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.welcome-section .bg-white {
  background-color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(90, 78, 62, 0.1);
  padding: 2rem 1.5rem;
}

.welcome-section h1 {
  color: #b08968;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.welcome-section p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Property Quick Facts - Matching Screenshot Icons */
.property-quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (min-width: 480px) {
  .property-quick-facts {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.fact-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background-color: transparent;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
}

.fact-item:hover {
  transform: translateY(-2px);
}

.fact-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Icon Colors Matching Screenshot - Brighter vibrant colors with !important */
.property-quick-facts .fact-item:nth-child(1) i.fa-users,
.property-quick-facts .fact-item:nth-child(1) .fas.fa-users {
  color: #4a90e2 !important; /* Bright blue for users */
}

.property-quick-facts .fact-item:nth-child(2) i.fa-bed,
.property-quick-facts .fact-item:nth-child(2) .fas.fa-bed {
  color: #22c55e !important; /* Bright green for bedrooms */
}

.property-quick-facts .fact-item:nth-child(3) i.fa-bath,
.property-quick-facts .fact-item:nth-child(3) .fas.fa-bath {
  color: #a855f7 !important; /* Bright purple for bathrooms */
}

.property-quick-facts .fact-item:nth-child(4) i.fa-wifi,
.property-quick-facts .fact-item:nth-child(4) .fas.fa-wifi {
  color: #fb923c !important; /* Bright orange for WiFi */
}

.fact-item .text-sm {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-weight: 500;
}

.fact-item .font-semibold {
  font-weight: 600;
  font-size: 1rem;
  color: #374151;
  line-height: 1.2;
}

/* Check-in/Check-out Info - Matching Screenshot Design */
.checkin-checkout-info {
  background-color: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 0.875rem;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 400px;
}

.checkin-checkout-info .flex {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 479px) {
  .checkin-checkout-info .flex {
    gap: 1rem;
  }
}

.checkin-checkout-info .text-center {
  text-align: center;
  flex: 1;
}

.checkin-checkout-info .text-sm {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.checkin-checkout-info .text-lg {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1;
}

/* Property Switcher - Theme Consistent */
.property-switcher-section {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.property-switcher-section .bg-white {
  background-color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(90, 78, 62, 0.1);
  padding: 1.5rem;
}

.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.property-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(176, 137, 104, 0.15);
  border-color: #b08968;
}

.property-card.ring-2 {
  border: 2px solid #b08968;
  background-color: #faf9f7;
}

.property-image {
  height: 8rem;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  position: relative;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-info h4 {
  color: var(--text-primary, #333333);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Enhanced Sections */
.section.active {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.section .bg-white {
  background-color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(90, 78, 62, 0.1);
  padding: 1.5rem;
}

.section h2 {
  color: #5a4e3e;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.section h2 i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
  color: #b08968;
}

/* Access Cards */
.access-card {
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid #b08968;
  background-color: #faf9f7;
  transition: all 0.2s ease;
}

.access-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(176, 137, 104, 0.15);
}

.access-card h3 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #5a4e3e;
  display: flex;
  align-items: center;
}

.access-card h3 i {
  margin-right: 0.5rem;
  color: #b08968;
}

.access-card code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-weight: 600;
  font-size: 1.125rem;
  color: #5a4e3e;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #e8e5e0;
}

/* Amenities Grid */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .amenity-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

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

.amenity-item {
  background: #faf9f7;
  border: 1px solid #e8e5e0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.amenity-item:hover {
  background-color: #f0ede8;
  border-color: #b08968;
  transform: translateY(-1px);
}

.amenity-item i {
  font-size: 1rem;
  color: #b08968;
  flex-shrink: 0;
}

.amenity-item span {
  font-weight: 500;
  color: #5a4e3e;
  line-height: 1.2;
}

/* House Rules Enhancement */
.house-rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rule-item {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.rule-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.rule-item i {
  font-size: 1.25rem;
  margin-top: 0.125rem;
  width: 1.5rem;
  text-align: center;
}

.rule-item span {
  color: var(--text-secondary, #4b5563);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Contact Cards Enhancement */
.contact-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-card h3 i {
  margin-right: 0.5rem;
}

.contact-methods a {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.contact-methods a:hover {
  background-color: var(--hover-bg, #f9fafb);
  border-color: var(--primary-color, #b08968);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.contact-methods a i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* Toast Notifications */
.toast-notification {
  animation: slideInUp 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
}

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

/* Mobile Responsiveness */
@media (max-width: 479px) {
  .welcome-section h1 {
    font-size: 1.5rem;
  }

  .welcome-section .bg-white {
    padding: 1.5rem 1rem;
  }

  .property-quick-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .fact-item {
    padding: 0.75rem 0.25rem;
  }

  .fact-item i {
    font-size: 1.5rem;
  }

  .checkin-checkout-info {
    padding: 1rem;
  }

  .checkin-checkout-info .text-lg {
    font-size: 1.25rem;
  }

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

  .section .bg-white {
    padding: 1rem;
  }

  .amenity-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}