/* ============================================
   BED & BREAKFAST TEMPLATE - RESPONSIVE STYLES
   ============================================ */

/* === MOBILE FIRST APPROACH === */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  :root {
    --font-size-base: 14px;
  }
  
  /* Header */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
  font-size: 10px !important;
    margin: 5px 0;
    padding: 8px 15px;
    text-align: center;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 15px;
    margin-bottom: 1.5rem;
  }
  
  /* Sections */
  .section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 1.4rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Services */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  .service-content {
    padding: 1rem;
  }
  
  .service-price {
    font-size: 1.2rem;
  }
  
  /* Team */
  .team-member {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  /* Contact */
  .contact-form {
    padding: 1rem;
  }
  
  .form-control {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-3,
  .footer .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  /* Services grid */
  .services-row .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team grid */
  .team-row .col-md-4,
  .team-row .col-lg-2 {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Swiper autoplay and effects disabled as per requirements */
  .swiper-container .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper-slide {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* Services grid */
  .services-row .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Gallery responsive */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Contact form layout */
  .contact-section .row {
    align-items: center;
  }
  
  /* FAQ items */
  .faq-item {
    margin-bottom: 1rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Gallery optimal layout */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Team members in row */
  .team-row .col-lg-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }
  
  /* Service cards height consistency */
  .service-card {
    display: flex;
    flex-direction: column;
  }
  
  .service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .service-features {
    flex-grow: 1;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Hero section full layout */
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  /* Gallery masonry-like layout */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Enhanced spacing */
  .section {
    padding: 100px 0;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
}

/* === PRINT STYLES === */
@media print {
  /* Hide non-essential elements */
  .navbar,
  .hero-section,
  .footer,
  .swiper-pagination,
  .btn,
  button {
    display: none !important;
  }
  
  /* Ensure good print contrast */
  body {
  overflow-x: hidden;
    color: #000 !important;
    background: #fff !important;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 20px 0;
  }
  
  /* Adjust fonts for print */
  body {
  overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    color: #000 !important;
  }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disable swiper autoplay */
  .swiper-container {
    --swiper-autoplay-delay: 999999999;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  /* Increase contrast for better accessibility */
  .service-card,
  .team-member,
  .contact-form {
    border: 2px solid var(--navy-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--navy-dark);
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* === DEVICE ORIENTATION === */
@media (orientation: landscape) and (max-height: 600px) {
  /* Landscape phone adjustments */
  .hero-section {
    min-height: 70vh;
  }
  
  .navbar {
    padding: 0.3rem 0;
  }
}

/* === HOVER STATES FOR TOUCH DEVICES === */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .service-card:hover,
  .team-member:hover,
  .feature-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Make interactive elements more touch-friendly */
  .navbar-nav .nav-link {
  font-size: 10px !important;
    padding: 12px 15px;
  }
  
  .faq-question {
    padding: 1.8rem 1.5rem;
  }
  
  .btn-primary {
    padding: 15px 30px;
  }
}

/* === SPECIFIC FIXES FOR EDGE CASES === */
/* Fix for very wide screens */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-section::before {
    right: -20%;
    width: 40%;
  }
}

/* Fix for very short screens */
@media (max-height: 500px) {
  .hero-section {
    min-height: 400px;
  }
  
  .section {
    padding: 30px 0;
  }
}
