/* Responsive Design */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-content {
        padding-top: 90px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .navbar-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    /* Services Page Header Medium */
    .page-header {
        padding: 140px 0 75px;
        min-height: 45vh;
    }
    
    .page-title {
        font-size: 2.75rem;
        margin-bottom: 1rem;
        padding-top: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 1.15rem;
        margin-bottom: 1.85rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-features {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .feature-item {
        flex-basis: calc(50% - 0.75rem);
        justify-content: center;
    }
    
    .facility-card {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-content {
        padding-top: 90px;
    }
    
    /* Section Highlights Responsive */
    .section-highlights {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .highlight-item {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    /* Room Cards Mobile Optimization */
    .rooms-section {
        padding: 4rem 0;
    }
    
    .room-card {
        margin-bottom: 2.5rem;
        border-radius: 20px;
    }
    
    .room-content {
        padding: 1.5rem;
    }
    
    .room-content::before {
        left: 1.5rem;
        right: 1.5rem;
    }
    
    .room-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .room-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .features-grid .feature-item {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .amenities-list {
        gap: 0.75rem;
    }
    
    .amenities-list .amenity {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .room-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Section Header Mobile */
    .rooms-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .rooms-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Highlights Mobile */
    .section-highlights {
        margin-bottom: 3rem;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .highlight-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }
    
    /* Services Page Header Tablet */
    .page-header {
        padding: 140px 0 70px;
        min-height: 50vh;
        align-items: flex-start;
    }
    
    .page-title {
        font-size: 2.5rem;
        padding-top: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    

    
    .page-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .room-card {
        margin-bottom: 2rem;
    }
    
    .room-amenities {
        justify-content: center;
    }
    
    .facility-card {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
    }
    
    .facility-icon {
        width: 70px;
        height: 70px;
    }
    
    .facility-icon i {
        font-size: 1.8rem;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .building-exterior {
        height: 300px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-item {
        margin-bottom: 2rem;
        text-align: left;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand h3 {
        font-size: 1.3rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
        display: block;
    }
    
    .navbar-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .navbar-actions .btn {
        margin-left: 0 !important;
        margin-top: 0 !important;
        text-align: center;
        display: inline-block;
        width: auto;
    }
    
    .navbar-center {
        margin: 1rem 0;
        text-align: center;
    }
    
    .navbar-center .btn {
        display: inline-block;
        width: auto;
    }
    
    /* Hero Section */
    .hero-section {
        text-align: center;
        padding-top: 0;
    }
    
    .hero-content {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    /* Services Page Header Mobile */
    .page-header {
        padding: 120px 0 50px;
        min-height: 40vh;
        align-items: flex-start;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
        padding-top: 2rem;
        line-height: 1.3;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        line-height: 1.4;
    }
    
    /* Service Cards Mobile */
    .service-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-features {
        margin-bottom: 1rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 2px;
        bottom: -8px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 200px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0 !important;
    }
    
    /* Room Cards */
    .room-card {
        margin-bottom: 2rem;
    }
    
    .room-image {
        height: 250px;
    }
    
    .room-content {
        padding: 1.5rem;
    }
    
    .room-title {
        font-size: 1.3rem;
    }
    
    .room-description {
        font-size: 0.9rem;
    }
    
    .room-amenities {
        justify-content: flex-start;
        gap: 0.3rem;
    }
    
    .amenity {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    .period {
        font-size: 0.8rem;
    }
    
    /* Facility Cards */
    .facility-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .facility-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .facility-icon i {
        font-size: 1.5rem;
    }
    
    .facility-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .facility-card p {
        font-size: 0.85rem;
    }
    
    /* About Section */
    .about-image {
        margin-bottom: 2rem;
    }
    
    .building-exterior {
        height: 250px;
    }
    
    .about-stats {
        margin: 1.5rem 0;
    }
    
    .stat-item {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .feature-item {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 3rem 0 !important;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-section .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        margin-bottom: 2.5rem;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .contact-icon {
        margin: 0 auto 1rem;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        border-radius: 50%;
        font-size: 1.2rem;
    }
    
    .contact-text {
        text-align: center;
    }
    
    .contact-text h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        color: var(--secondary-color);
        font-weight: 600;
        text-align: center;
    }
    
    .contact-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
    
    .contact-form h3 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-form .form-control {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .contact-form .form-control::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .contact-form .btn {
        font-size: 1rem;
        padding: 1rem 2rem;
        width: 100%;
        border-radius: 50px;
        margin-top: 1rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
        padding: 2rem 0;
    }
    
    .footer .row > div {
        margin-bottom: 1rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 1rem;
        gap: 0.8rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    /* Utility classes for mobile */
    .d-mobile-none {
        display: none !important;
    }
    
    .text-mobile-center {
        text-align: center !important;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
}

/* Landscape orientation for mobile devices */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    section {
        padding: 2rem 0 !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .social-links,
    .room-overlay,
    .view-gallery {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
        min-height: auto;
    }
    
    .hero-title,
    .section-title {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    .room-card,
    .facility-card {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .contact-section {
        background: none !important;
        color: #000 !important;
    }
    
    .contact-text {
        color: #000 !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --secondary-color: #e6a500;
        --dark-color: #000000;
        --gray-medium: #333333;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8) !important;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .facility-card,
    .room-card {
        border: 2px solid #ccc;
    }
}

/* Reduced motion preference */
@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;
    }
    
    .animate-on-scroll {
        animation: none;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(255, 255, 255, 1) !important;
    }
    
    .navbar-nav .nav-link {
        color: #000000 !important;
    }
    
    .rooms-section,
    .about-section {
        background: #1a1a1a !important;
        color: #ffffff !important;
    }
    
    .room-card,
    .facility-card {
        background: #2d2d2d !important;
        color: #ffffff !important;
    }
    
    .section-title {
        color: #ffffff !important;
    }
    
    .room-title,
    .facility-card h4 {
        color: #ffffff !important;
    }
    
    .facilities-section {
        background: #1a1a1a !important;
    }
}

/* Additional Mobile Optimizations for Room Section */
@media (max-width: 575.98px) {
    .rooms-section {
        padding: 3rem 0 !important;
    }
    
    .rooms-section h2 {
        font-size: 1.75rem !important;
        text-align: center;
        line-height: 1.3;
    }
    
    .rooms-section .lead {
        font-size: 0.95rem !important;
        text-align: center;
        padding: 0 0.5rem;
        line-height: 1.5;
    }
    
    .section-highlights {
        margin: 2rem 0 !important;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 1.25rem !important;
        text-align: center;
        font-size: 0.9rem;
        border-radius: 16px;
    }
    
    .highlight-item i {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem;
        display: block;
    }
    
    .room-card {
        border-radius: 18px !important;
        margin-bottom: 2.5rem;
    }
    
    .room-content {
        padding: 1.5rem !important;
    }
    
    .room-title {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    .room-description {
        font-size: 0.95rem !important;
        text-align: center;
        line-height: 1.6;
    }
    
    .room-features h5 {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .features-grid .feature-item {
        justify-content: center !important;
        text-align: center;
        padding: 1rem;
    }
    
    .amenities-list {
        justify-content: center !important;
        text-align: center;
    }
    
    .room-actions {
        text-align: center !important;
    }
    
    /* Contact Section Mobile Enhancement */
    .contact-section {
        padding: 3rem 0 !important;
    }
    
    .contact-info {
        margin-bottom: 3rem;
    }
    
    .contact-item {
        margin-bottom: 2rem !important;
        padding: 1.25rem !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
    }
    
    .contact-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-text {
        text-align: center !important;
    }
    
    .contact-text h5 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }
    
    .contact-text p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }
    
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-form .form-control {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* Force center alignment for contact content on mobile */
@media (max-width: 767.98px) {
    .contact-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .contact-text {
        text-align: center !important;
        width: 100%;
    }
    
    .contact-text h5 {
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    .contact-text p {
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .contact-icon {
        margin: 0 auto 1rem auto !important;
    }
}
