/* Available Spaces Gutenberg Block Styles */
.cts-available-spaces-block {
    padding: 3rem 0;
    font-family: var(--wp--preset--font-family--source-sans-3, "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.cts-section-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cts-section-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.cts-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1b1c1b;
    margin: 0 0 0.5rem 0;
    font-family: var(--wp--preset--font-family--source-serif-4, "Source Serif 4", Georgia, serif);
}

.cts-section-subtitle {
    color: #221d59;
    font-size: 1.125rem;
    margin: 0;
    max-width: 600px;
}

.cts-spaces-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cts-spaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cts-spaces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cts-space-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.cts-space-card:hover {
    border-color: #DD9933;
    transform: translateY(-2px);
    box-shadow: 4px 8px 16px 0px rgba(0, 0, 0, 0.12);
}

.cts-card-image-wrap {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    background-color: #dbdad8;
}

.cts-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cts-space-card:hover .cts-card-image {
    transform: scale(1.04);
}

.cts-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 2;
}

.cts-badge-available-now {
    background-color: #feb64d;
    color: #714800;
}

.cts-badge-limited-availability {
    background-color: #7e8cb9;
    color: #221d59;
}

.cts-badge-call-for-information {
    background-color: #221d59;
    color: #ffffff;
}

.cts-badge-unavailable {
    background-color: #221d59;
    color: #ffffff;
}

.cts-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cts-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.cts-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b1c1b;
    margin: 0;
    line-height: 1.3;
    font-family: var(--wp--preset--font-family--source-serif-4, "Source Serif 4", Georgia, serif);
}

.cts-card-title a {
    color: inherit;
    text-decoration: none;
}

.cts-card-title a:hover {
    color: #221d59;
}

.cts-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #221d59;
    white-space: nowrap;
}

.cts-card-unit-num {
    font-size: 0.875rem;
    color: #221d59;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.cts-card-specs {
    margin-bottom: 1.5rem;
    border-top: 1px solid #efedec;
}

.cts-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #efedec;
    font-size: 0.875rem;
}

.cts-spec-label {
    color: #221d59;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cts-spec-value {
    color: #1b1c1b;
    font-weight: 600;
}

.cts-card-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #221d59;
    color: #ffffff !important;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: block;
    box-sizing: border-box;
}

.cts-card-btn:hover {
    background-color: #221d59;
    color: #ffffff !important;
    text-decoration: none;
}
