/* ==========================================================================
   Shallow Creek Booking Portal - Staylist Style
   ========================================================================== */

:root {
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.2s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--color-primary-hover); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text-light);
    color: var(--color-text);
}

/* Header */
.header {
    background: var(--color-bg);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.header .container {
    display: flex;
    align-items: center;
}

.header-with-back {
    justify-content: space-between;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--color-text);
}

.header-spacer {
    width: 60px;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Main */
.main {
    flex: 1;
    padding: 32px 0 48px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    margin-bottom: 8px;
}

.subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-light);
    font-size: 14px;
}

/* ========================================
   LANDING PAGE - Category Cards
   ======================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

.category-card {
    display: block;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: inherit;
}

.category-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-bg-light);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 20px;
}

.category-content h2 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.category-content p {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.category-price {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.category-price strong {
    font-size: 1.25rem;
    color: var(--color-text);
}

.category-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 14px;
}

.category-card:hover .category-cta {
    gap: 10px;
}

/* ========================================
   VILLAS PAGE - Large Villa Cards
   ======================================== */

.villa-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.villa-card-large {
    display: flex;
    flex-direction: row;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.villa-card-large .villa-gallery {
    flex: 0 0 50%;
    max-width: 50%;
}

.villa-card-large .villa-details {
    flex: 1;
}

@media (max-width: 800px) {
    .villa-card-large {
        flex-direction: column;
    }
    
    .villa-card-large .villa-gallery {
        flex: none;
        max-width: 100%;
        height: 250px;
    }
}

/* Villa Gallery */
.villa-gallery {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--color-bg-light);
    overflow: hidden;
}

.villa-gallery .swiper-wrapper {
    height: 100%;
}

.villa-gallery .swiper-slide {
    height: 100%;
}

.villa-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.villa-gallery .swiper-button-next,
.villa-gallery .swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.villa-gallery .swiper-button-next::after,
.villa-gallery .swiper-button-prev::after {
    font-size: 14px;
}

.villa-gallery .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.villa-gallery .swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
}

/* Villa Details */
.villa-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.villa-details h2 {
    margin-bottom: 4px;
}

.villa-address {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.villa-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.villa-specs span {
    background: var(--color-bg-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--color-text-light);
}

.villa-amenities {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.villa-amenities li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.villa-amenities li:last-child {
    border-bottom: none;
}

.villa-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 12px;
}

.villa-price {
    font-size: 14px;
    color: var(--color-text-light);
}

.villa-price strong {
    font-size: 1.5rem;
    color: var(--color-text);
}

.villa-actions {
    display: flex;
    gap: 10px;
}

/* ========================================
   SHARED - Amenities Section
   ======================================== */

.amenities-section {
    padding: 24px;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
}

.amenities-section h3 {
    margin-bottom: 16px;
    color: var(--color-text-light);
    font-weight: 500;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.amenities-list span {
    font-size: 14px;
    color: var(--color-text);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--color-bg-light);
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

.footer-info {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.footer-info strong {
    color: var(--color-text);
}

.footer-info a {
    color: var(--color-text);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--color-text-light);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-note {
    font-size: 12px;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 1.5rem; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .villa-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .villa-actions {
        flex-direction: column;
    }
    
    .villa-actions .btn {
        width: 100%;
    }
}
