/* ============================================================================
   MINIMALIST COMPACT CARD DESIGN FOR TOURISM LIST PAGES
   ============================================================================ */

/* Base Card Styling */
.tourism-card {
    max-width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tourism-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Compact Card Image */
.tourism-card-image,
.tourism-card-image-placeholder {
    height: 140px !important;
    object-fit: cover;
}

/* Compact Card Body */
.tourism-card-body {
    padding: 0.875rem !important;
}

/* Compact Title */
.tourism-card-title {
    font-size: 0.9rem !important;
    font-weight: 600;
    margin-bottom: 0.375rem !important;
    line-height: 1.3;
}

/* Compact Text */
.tourism-card-text {
    font-size: 0.75rem !important;
    line-height: 1.4;
    color: #6b7280;
    margin-bottom: 0.625rem !important;
}

/* Compact Info Grid */
.tourism-info-grid {
    gap: 0.5rem !important;
    margin-bottom: 0.625rem !important;
}

.tourism-info-item {
    padding: 0.375rem 0.25rem !important;
}

.tourism-info-value {
    font-size: 0.875rem !important;
    font-weight: 600;
    display: block;
    margin-bottom: 0.125rem;
}

.tourism-info-label {
    font-size: 0.65rem !important;
    color: #9ca3af;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Compact Badges */
.tourism-badge {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
    border-radius: 0.375rem;
}

/* Compact Price Display */
.tourism-text-center.tourism-p-2 {
    padding: 0.625rem !important;
    margin-top: 0.625rem !important;
}

.tourism-text-center.tourism-p-2 span {
    font-size: 0.85rem !important;
}

.tourism-text-center.tourism-p-2 span:last-child {
    font-size: 0.7rem !important;
}

/* Compact Action Buttons */
.tourism-action-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.75rem !important;
    border-radius: 0.375rem !important;
}

/* Compact Card Header */
.tourism-card-header {
    margin-bottom: 0.5rem !important;
}

/* Compact spacing utilities */
.tourism-mb-3 {
    margin-bottom: 0.625rem !important;
}

.tourism-mb-2 {
    margin-bottom: 0.5rem !important;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Desktop - More Compact (≥992px) */
@media (min-width: 992px) {
    .tourism-card-grid {
        gap: 0.875rem !important;
    }
    
    .tourism-card {
        max-width: 100%;
    }
    
    .tourism-card-image,
    .tourism-card-image-placeholder {
        height: 150px !important;
    }
    
    .tourism-card-body {
        padding: 1rem !important;
    }
    
    .tourism-card-title {
        font-size: 0.95rem !important;
    }
    
    .tourism-card-text {
        font-size: 0.8rem !important;
    }
    
    .tourism-info-value {
        font-size: 0.9rem !important;
    }
    
    .tourism-info-label {
        font-size: 0.7rem !important;
    }
}

/* Large Desktop - Slightly Bigger (≥1200px) */
@media (min-width: 1200px) {
    .tourism-card-image,
    .tourism-card-image-placeholder {
        height: 160px !important;
    }
    
    .tourism-card-body {
        padding: 1.125rem !important;
    }
    
    .tourism-card-title {
        font-size: 1rem !important;
    }
    
    .tourism-card-text {
        font-size: 0.85rem !important;
    }
}

/* Tablet - Compact (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .tourism-card-image,
    .tourism-card-image-placeholder {
        height: 130px !important;
    }
    
    .tourism-card-body {
        padding: 0.75rem !important;
    }
    
    .tourism-card-title {
        font-size: 0.875rem !important;
    }
    
    .tourism-card-text {
        font-size: 0.75rem !important;
    }
}

/* Mobile - Ultra Compact (≤767px) */
@media (max-width: 767px) {
    .tourism-card {
        border-radius: 0.625rem;
    }
    
    .tourism-card-image,
    .tourism-card-image-placeholder {
        height: 120px !important;
    }
    
    .tourism-card-body {
        padding: 0.625rem !important;
    }
    
    .tourism-card-title {
        font-size: 0.85rem !important;
    }
    
    .tourism-card-text {
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .tourism-info-grid {
        gap: 0.375rem !important;
    }
    
    .tourism-info-value {
        font-size: 0.8rem !important;
    }
    
    .tourism-info-label {
        font-size: 0.6rem !important;
    }
    
    .tourism-badge {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
    }
    
    .tourism-action-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
    }
    
    .tourism-mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .tourism-mb-2 {
        margin-bottom: 0.375rem !important;
    }
}

/* Extra Small Mobile - Minimal (≤479px) */
@media (max-width: 479px) {
    .tourism-card-grid {
        gap: 0.5rem !important;
    }
    
    .tourism-card-image,
    .tourism-card-image-placeholder {
        height: 110px !important;
    }
    
    .tourism-card-body {
        padding: 0.5rem !important;
    }
    
    .tourism-card-title {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .tourism-card-text {
        font-size: 0.68rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .tourism-text-center.tourism-p-2 {
        padding: 0.5rem !important;
    }
    
    .tourism-info-value {
        font-size: 0.75rem !important;
    }
    
    .tourism-info-label {
        font-size: 0.58rem !important;
    }
    
    .tourism-action-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.68rem !important;
    }
}

/* ============================================================================
   GRID OPTIMIZATION
   ============================================================================ */

/* Desktop - 4 columns max */
@media (min-width: 992px) {
    .tourism-card-grid.tourism-grid-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Tablet - 3 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .tourism-card-grid.tourism-grid-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile - 2 columns (mandatory) */
@media (max-width: 767px) {
    .tourism-card-grid.tourism-grid-4,
    .tourism-card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Extra Small - 2 columns (keep 2 grid) */
@media (max-width: 479px) {
    .tourism-card-grid.tourism-grid-4,
    .tourism-card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================================================
   COMPACT PAGE HEADER
   ============================================================================ */

@media (max-width: 767px) {
    .tourism-page-header {
        padding: 1rem !important;
    }
    
    .tourism-page-title {
        font-size: 1.25rem !important;
    }
    
    .tourism-page-subtitle {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 479px) {
    .tourism-page-header {
        padding: 0.75rem !important;
    }
    
    .tourism-page-title {
        font-size: 1.1rem !important;
    }
    
    .tourism-page-subtitle {
        font-size: 0.7rem !important;
    }
}

/* ============================================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================================ */

/* GPU Acceleration for smooth animations */
.tourism-card {
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Smooth transitions */
.tourism-card,
.tourism-action-btn,
.tourism-badge {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .tourism-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

