/*
  MB Hotel And Resorts - Responsive Styles
  Mobile First Design
*/

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 56px;
  }

  .section-title h2 {
    font-size: 36px;
  }

  .welcome-content h2 {
    font-size: 36px;
  }

  .page-banner-content h1 {
    font-size: 48px;
  }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
  .navbar {
    padding: 15px 0;
    background: var(--pure-white);
  }

  .navbar .navbar-brand {
    color: var(--dark-navy);
  }

  .navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813, 59, 102, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .navbar-collapse {
    background: var(--pure-white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: var(--shadow-md);
  }

  .navbar .navbar-nav .nav-link {
    color: var(--dark-navy);
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
  }

  .navbar .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  .nav-btn {
    margin-left: 0;
    margin-top: 15px;
    display: block;
  }

  .nav-btn .btn {
    width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .welcome-content {
    padding: 20px 0;
    margin-bottom: 40px;
  }

  .welcome-image .experience-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
    display: inline-block;
  }

  .stat-item h3 {
    font-size: 36px;
  }

  .cta-content h2 {
    font-size: 32px;
  }

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

  .footer-widget {
    margin-bottom: 40px;
  }

  .booking-summary {
    margin-top: 40px;
    position: static;
  }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 600px;
  }

  .hero-slide {
    min-height: 600px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  .scroll-down {
    display: none;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 14px;
  }

  .page-banner {
    height: 300px;
  }

  .page-banner-content h1 {
    font-size: 32px;
  }

  .welcome-content h2 {
    font-size: 28px;
  }

  .room-card .room-features {
    gap: 10px;
  }

  .room-card .room-buttons {
    flex-direction: column;
  }

  .room-card .room-buttons .btn-sm {
    width: 100%;
  }

  .testimonial-card {
    padding: 30px 20px;
  }

  .testimonial-card p {
    font-size: 14px;
  }

  .testimonial-card .author {
    flex-direction: column;
    text-align: center;
  }

  .food-card img {
    height: 200px;
  }

  .cta-content h2 {
    font-size: 26px;
  }

  .cta-content p {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .stat-item {
    padding: 20px 10px;
  }

  .stat-item h3 {
    font-size: 32px;
  }

  .stat-item p {
    font-size: 12px;
  }

  .footer {
    padding: 50px 0 0;
  }

  .footer-widget h4 {
    font-size: 18px;
  }

  .footer-social {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-item img {
    height: 200px;
  }

  .branch-card .branch-buttons {
    flex-direction: column;
  }

  .branch-card .branch-buttons .btn-sm {
    width: 100%;
  }

  .booking-form-card {
    padding: 25px;
  }

  .booking-summary {
    padding: 25px;
  }

  .contact-info-card {
    padding: 30px;
    margin-bottom: 30px;
  }

  .contact-form-card {
    padding: 25px;
  }

  .airport-pickup-content {
    flex-direction: column;
    text-align: center;
  }

  .airport-pickup-text h3 {
    font-size: 24px;
  }

  .offer-content {
    flex-direction: column;
    text-align: center;
  }

  .offer-text {
    flex-direction: column;
    gap: 20px;
  }

  .menu-item {
    flex-direction: column;
    text-align: center;
  }

  .menu-item img {
    width: 150px;
    height: 150px;
  }

  .restaurant-feature {
    flex-direction: column;
    text-align: center;
  }

  .story-image .image-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
    display: inline-block;
  }

  .floating-inquiry-btn {
    bottom: 80px;
  }

  .floating-inquiry-btn button {
    padding: 12px 25px;
    font-size: 12px;
  }

  .floating-whatsapp {
    bottom: 150px;
  }

  .floating-whatsapp a {
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp a i {
    font-size: 24px;
  }

  .back-to-top {
    right: 20px;
    bottom: 220px;
    width: 45px;
    height: 45px;
  }

  .mobile-booking-bar {
    display: block;
  }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  .navbar .navbar-brand {
    font-size: 22px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content .subtitle {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .section-title .subtitle {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .page-banner-content h1 {
    font-size: 26px;
  }

  .page-banner-content .breadcrumb {
    font-size: 12px;
  }

  .btn-luxury,
  .btn-luxury-outline,
  .btn-blue {
    padding: 12px 25px;
    font-size: 13px;
  }

  .btn-whatsapp {
    padding: 10px 25px;
    font-size: 13px;
  }

  .stat-item h3 {
    font-size: 28px;
  }

  .stat-item .stat-icon {
    width: 60px;
    height: 60px;
  }

  .stat-item .stat-icon i {
    font-size: 24px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-card .icon {
    width: 60px;
    height: 60px;
  }

  .service-card .icon i {
    font-size: 24px;
  }

  .why-card {
    padding: 25px 20px;
  }

  .why-card .icon {
    width: 55px;
    height: 55px;
  }

  .why-card .icon i {
    font-size: 22px;
  }

  .value-card {
    padding: 25px 20px;
  }

  .value-card .icon {
    width: 60px;
    height: 60px;
  }

  .value-card .icon i {
    font-size: 24px;
  }

  .team-card .team-image img {
    height: 250px;
  }

  .inquiry-popup {
    width: 95%;
    margin: 10px;
  }

  .inquiry-popup .popup-header {
    padding: 25px 15px;
  }

  .inquiry-popup .popup-header h3 {
    font-size: 20px;
  }

  .inquiry-popup .popup-body {
    padding: 20px;
  }

  .form-group .form-control,
  .form-group .form-select {
    padding: 12px 15px;
    font-size: 13px;
  }

  .form-group label {
    font-size: 13px;
  }

  .menu-category-tabs .nav-link {
    padding: 10px 20px;
    font-size: 12px;
  }

  .experience-item .icon {
    width: 80px;
    height: 80px;
  }

  .experience-item .icon i {
    font-size: 32px;
  }

  .airport-pickup {
    padding: 40px 0;
  }

  .airport-pickup-text h3 {
    font-size: 20px;
  }

  .banquet-card .card-image {
    height: 200px;
  }

  .dining-card {
    padding: 25px 20px;
  }

  .dining-card .icon {
    width: 55px;
    height: 55px;
  }

  .dining-card .icon i {
    font-size: 22px;
  }

  .offer-badge {
    padding: 12px 20px;
  }

  .offer-badge h3 {
    font-size: 24px;
  }

  .cta-section {
    padding: 50px 0;
  }

  .cta-content h2 {
    font-size: 22px;
  }

  .cta-content p {
    font-size: 14px;
  }
}

/* Ultra Small Devices (less than 400px) */
@media (max-width: 399.98px) {
  .hero-content h1 {
    font-size: 24px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .page-banner-content h1 {
    font-size: 22px;
  }

  .navbar .navbar-brand {
    font-size: 18px;
  }

  .stat-item h3 {
    font-size: 24px;
  }

  .testimonial-card::before {
    font-size: 40px;
    top: 10px;
    left: 15px;
  }

  .floating-inquiry-btn {
    right: 10px;
    bottom: 70px;
  }

  .floating-inquiry-btn button {
    padding: 10px 20px;
    font-size: 11px;
    gap: 8px;
  }

  .floating-whatsapp {
    right: 10px;
    bottom: 140px;
  }

  .floating-whatsapp a {
    width: 45px;
    height: 45px;
  }

  .floating-whatsapp a i {
    font-size: 22px;
  }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }

  .hero-slide {
    min-height: 100vh;
  }

  .hero-content {
    padding-top: 80px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 12px;
  }

  .scroll-down {
    display: none;
  }
}

/* Touch Device Hover Fixes */
@media (hover: none) {
  .room-card:hover .room-image img {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .food-card:hover img {
    transform: none;
  }

  .branch-card:hover .branch-image img {
    transform: none;
  }

  .team-card:hover .team-image img {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-section,
  .floating-whatsapp,
  .floating-inquiry-btn,
  .mobile-booking-bar,
  .back-to-top,
  .footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section-padding {
    padding: 30px 0;
  }

  a {
    color: black !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --royal-blue: #0a2d4d;
    --luxury-gold: #c9a227;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide::before {
    background: rgba(8, 27, 51, 0.8);
  }

  .scroll-down .mouse::before {
    animation: none;
  }

  .loader .spinner {
    animation: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-gray: #1a1a1a;
  }
}
