/* Comprehensive Responsive Design System */
/* Mobile, Tablet, and Desktop optimized styles */

/* Base Reset and Typography */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Container System */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Grid System */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Typography Responsive System */
h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.625rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 2rem;
    }
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    line-height: 1;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #1f2937;
    color: white;
}

.btn-primary:hover {
    background-color: #374151;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #D4AF37;
    color: white;
}

.btn-secondary:hover {
    background-color: #c49b3f;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #1f2937;
    border: 2px solid #1f2937;
}

.btn-outline:hover {
    background-color: #1f2937;
    color: white;
}

/* Mobile Button Adjustments */
@media (max-width: 767px) {
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
}

/* Card System */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (min-width: 640px) {
    .card-image {
        height: 240px;
    }
}

@media (min-width: 768px) {
    .card-image {
        height: 280px;
    }
}

.card-content {
    padding: 1.5rem;
}

@media (max-width: 639px) {
    .card-content {
        padding: 1rem;
    }
}

/* Room Card Specific Styles */
.room-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (min-width: 640px) {
    .room-card img {
        height: 240px;
    }
}

@media (min-width: 768px) {
    .room-card img {
        height: 280px;
    }
}

.room-card .p-6 {
    padding: 1rem;
}

@media (min-width: 640px) {
    .room-card .p-6 {
        padding: 1.5rem;
    }
}

/* Facilities Icons Responsive */
.facilities-icons {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.facilities-icons li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #D4AF37;
    font-weight: 500;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.facilities-icons li i {
    font-size: 0.75rem;
    color: #D4AF37;
}

@media (min-width: 640px) {
    .facilities-icons {
        gap: 0.75rem;
    }
    
    .facilities-icons li {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
        gap: 0.375rem;
    }
    
    .facilities-icons li i {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .facilities-icons li {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .facilities-icons li i {
        font-size: 0.875rem;
    }
}

/* Section Spacing */
.section {
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .section {
        padding: 4rem 0;
    }
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }
}

/* Hero Section Responsive */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

@media (min-width: 640px) {
    .hero-section {
        min-height: 70vh;
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 4rem 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 90vh;
        padding: 5rem 2rem;
    }
}

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
}

.responsive-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Spacing Utilities */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.m-4 {
    margin: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Color Utilities */
.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

.text-white {
    color: white;
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

/* Mobile-First Media Queries */

/* Extra Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .facilities-icons li {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Small Mobile (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {
    .container {
        padding: 0 1rem;
    }
    
    .grid {
        gap: 1.25rem;
    }
}

/* Large Mobile / Small Tablet (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Extra Large Desktop (1536px+) */
@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu,
    .btn,
    .fixed {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .facilities-icons li {
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #1f2937;
        color: white;
    }
    
    .text-gray-800 {
        color: #f9fafb;
    }
    
    .text-gray-600 {
        color: #d1d5db;
    }
}