/* RESPONSIVE STYLES FOR HOTEL SRIDHI REGENCY */

/* Ensure proper viewport behavior */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  -webkit-overflow-scrolling: touch;
}

/* Fix for container max-width on all devices */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Mobile First Approach - Base styles for mobile */
@media (max-width: 767.98px) {
  /* Navigation */
  .modern-nav {
    padding: 8px 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .nav-content {
    flex-wrap: wrap;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 1rem 0;
  }
  
  .nav-toggle {
    display: flex !important;
  }
  
  .nav-actions {
    order: -1;
    margin-right: 1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh !important;
    padding-bottom: 30px !important;
    padding-top: 0 !important;
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0 40px;
  }
  
  .hero-text {
    margin-top: 0 !important;
    padding: 20px 15px !important;
  }
  
  .hero-text {
    margin-top: 80px !important;
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    display: block;
  }
  
  .hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0 10px;
    line-height: 1.5;
  }
  
  /* Hero Stats */
  .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem !important;
    margin: 1.5rem auto !important;
    max-width: 350px;
    border-radius: 15px;
  }
  
  .stat-item {
    min-width: 80px;
    flex: 1;
    text-align: center;
  }
  
  .stat-icon {
    margin-bottom: 0.5rem !important;
  }
  
  .stat-icon i {
    font-size: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 1.2rem !important;
    font-weight: bold;
    color: white;
  }
  
  .stat-label {
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.9);
  }
  
  /* Hero Actions */
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 250px;
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 25px;
  }
  
  /* Services Section */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  .gallery-filter {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .filter-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .gallery-card {
    margin-bottom: 1rem;
  }
  
  /* Room Categories */
  .modern-card-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .modern-card {
    width: 100%;
    max-width: none;
  }
  
  .modern-card-header img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  /* Room Showcase */
  .room-image-container {
    margin-bottom: 2rem;
  }
  
  .room-content {
    text-align: center;
  }
  
  /* Footer */
  .footer-section .row > div {
    margin-bottom: 2rem;
    text-align: center;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  /* Services */
  .service-card {
    height: 100%;
  }
  
  /* Gallery */
  .gallery-container .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Room Categories */
  .modern-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Large Tablet/Small Desktop */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .modern-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* General Responsive Utilities */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .heading {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

/* Fix for images */
img {
  max-width: 100%;
  height: auto;
}

/* Ensure proper spacing on all devices */
.section {
  padding: 3rem 0;
}

@media (max-width: 767.98px) {
  .section {
    padding: 2rem 0;
  }
  
  .py-3xl {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Navigation Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--primary, #007bff);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Fix for Bootstrap grid system */
.row {
  margin-left: -15px;
  margin-right: -15px;
}

.col-lg-3, .col-lg-4, .col-lg-6, .col-md-6, .col-md-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Ensure proper image scaling */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Fix for owl carousel on mobile */
.owl-carousel .owl-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Additional mobile fixes */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 100vh !important;
    padding: 0 !important;
  }
  
  .hero-content {
    padding: 70px 0 30px !important;
  }
  
  .hero-text {
    padding: 15px !important;
  }
  
  .hero-title {
    font-size: 1.8rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.85rem !important;
  }
  
  .hero-description {
    font-size: 0.9rem !important;
    padding: 0 5px;
  }
  
  .hero-stats {
    max-width: 300px;
    padding: 0.75rem !important;
    margin: 1rem auto !important;
  }
  
  .stat-item {
    min-width: 70px;
  }
  
  .stat-number {
    font-size: 1.1rem !important;
  }
  
  .stat-label {
    font-size: 0.7rem !important;
  }
  
  .hero-actions {
    padding: 0 1rem;
    margin-top: 1rem;
  }
  
  .hero-actions .btn {
    margin: 0.5rem 0;
    max-width: 220px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .service-card {
    padding: 1.5rem !important;
  }
  
  .gallery-card {
    margin-bottom: 1.5rem;
  }
  
  .room-content {
    padding: 1rem;
  }
  
  .footer-section {
    padding: 2rem 0;
  }
  
  .footer-section .col-md-3 {
    margin-bottom: 2rem;
  }
  
  /* Hero overlay fix for mobile */
  .hero-overlay {
    background: rgba(0,0,0,0.4) !important;
  }
}