/* ============================================
   CBIS Events Karlshamn - Stilguide
   
   Färger:
   Primär:  #ea5161 (Röd/Coral)
   Beige:   #f2e4cf
   Text:    #3c3c3b
   ============================================ */

/* === ÖVERSIKTSSIDA === */

.cbis-events-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.cbis-events-header {
    margin-bottom: 30px;
}

.cbis-events-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Filter */
.cbis-events-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f2e4cf8a;
    border-radius: 8px;
	max-width:100%;
	width:600px;
	min-width:320px;
}

.cbis-filter-form label {
    display: inline-block;
    margin-right: 15px;
    font-weight: 600;
    color: #3c3c3b;
}

.cbis-filter-form select {
    padding: 10px 15px;
    font-size: 14px;
    border: 0px solid;
    border-radius: 6px;
    background: white;
    color: #3c3c3b;
    min-width: 250px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cbis-filter-form select:hover {
    border-color: #d13f50;
}

.cbis-filter-form select:focus {
    outline: none;
    border-color: #ea5161;
    box-shadow: 0 0 0 3px rgba(234, 81, 97, 0.1);
}

/* Event Grid */
.cbis-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Event Card */
.cbis-event-card {
    display: block;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: white;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.cbis-event-image {
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.cbis-event-category {
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    color: #ea5161;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
	font-family: "Varta";
    z-index: 10;
}

.cbis-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbis-event-content {
    padding: 0!important;
}

.cbis-event-title {
    margin: 0 0 8px 0;
    font-size: 20px!important;
    line-height: 26px;
    font-weight: 700;
    color: #3c3c3b;
	margin-top:5px;
}

.cbis-event-title a {
    color: #3c3c3b;
    text-decoration: none;
}

.cbis-event-title a:hover {
    color: #3c3c3b;
}

.cbis-event-date {
    margin: 0 0 6px 0!important;
    color: #ea5161;
    font-size: 14px;
    font-weight: 600;
}

.cbis-event-intro {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cbis-event-link {
    display: none;
    display: none;
}

.cbis-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}


/* Loading Indicators */
.cbis-loading-indicator,
.cbis-all-loaded {
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
}

.cbis-loading-indicator p,
.cbis-all-loaded p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.cbis-loading-indicator p {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.cbis-all-loaded p {
    color: #ea5161;
    font-weight: 600;
}

.cbis-filtered {
    color: #999;
    font-size: 0.9em;
}



/* === SINGLE EVENT SIDA === */

.cbis-single-event {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
}

.cbis-single-image {
    width: 100%;
    max-width: 1200px;
    height: 540px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.cbis-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cbis-single-category {
    position: absolute;
    bottom: 0;
    left: 0;
    background: white;
    color: #ea5161;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: "Varta";
    z-index: 10;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.cbis-single-category:hover {
    background: #ea5161;
    color: white;
}

.cbis-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.cbis-single-main {
    background: white;
    padding: 35px 0px 15px 0;
}

.cbis-single-main h1 {
    margin: 0 0 16px 0;
    font-size: 36px;
    line-height: 1.3;
    color: #3c3c3b;
    font-weight: 700;
}

.cbis-single-intro {
    font-size: 18px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.cbis-single-intro strong {
    color: #3c3c3b;
}

.cbis-description {
    color: #3c3c3b;
    line-height: 1.5;
    font-size: 16px;
}

.cbis-description p {
    margin: 0 0 16px 0;
}

.cbis-single-sidebar {
    background: #f2e4cf;
    padding: 30px;
}

.cbis-sidebar-section {
    margin-bottom: 15px;
}

.cbis-sidebar-section:last-child {
    margin-bottom: 0;
}

.cbis-sidebar-section h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #ea5161;
    font-weight: 700;
}

.cbis-sidebar-section p {
    margin: 4px 0;
    color: #3c3c3b;
    font-size: 14px;
    line-height: 1.5;
}

.cbis-sidebar-section a {
    color: #ea5161;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cbis-sidebar-section a:hover {
    text-decoration: underline;
}
.cbis-powered-by-vk {
	margin:inherit;
	display:block;
	width:165px;
}
/* Occasions List */
.cbis-occasions-list {
    margin-bottom: 10px;
}

.cbis-occasion-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(234, 81, 97, 0.2);
}

.cbis-occasion-item:first-child {
    padding-top: 0;
}

.cbis-occasion-item:last-child {
    border-bottom: none;
	padding-bottom:0px;
}

.cbis-occasion-date,
.cbis-occasion-time,
.cbis-occasion-arena {
    margin: 4px 0;
    font-size: 14px;
    color: #3c3c3b;
}

.cbis-occasion-date {
    font-weight: 600;
}

.cbis-occasion-hidden {
    display: none;
}

.cbis-toggle-occasions {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #ea5161;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.cbis-toggle-occasions:hover {
    background: #d13f50;
}

.cbis-toggle-occasions:focus {
    outline: none;
}

/* Kalender-knappar */
.cbis-calendar-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(234, 81, 97, 0.2);
}

.cbis-calendar-actions h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #ea5161;
    font-weight: 700;
}
.cbis-sidebar-section h4 {
    margin: 12px 0 12px 0;
    font-size: 18px;
    color: #ea5161;
    font-weight: 700;
}

.cbis-calendar-buttons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 8px;
}

.cbis-cal-btn {
  display: inline-flex;
  width: auto;
  white-space: nowrap;
}


.cbis-cal-btn {
    display: inline-flex;
    padding: 8px 14px;
    background: white;
    color: #ea5161;
    border: 1px solid #ea5161;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cbis-cal-btn:hover {
    background: #ea5161;
    color: white;
	text-decoration:none!important;
}


/* Dela-knappar */
.cbis-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cbis-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: white;
    color: #ea5161;
    border: 1px solid #ea5161;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cbis-share-btn:hover {
    background: #ea5161;
    color: white;
}

.cbis-share-btn svg {
    width: 18px;
    height: 18px;
}

.cbis-single-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}
.cbis-single-header {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 5px;
	padding-bottom:0;
	position:absolute;
}

.cbis-back-link {
    display: inline-flex;
    align-items: center;
    color: #ea5161;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cbis-back-link:hover {
    color: #d13f50;
}

/* === RESPONSIV === */

@media (max-width: 1024px) {
    .cbis-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .cbis-events-wrapper {
        padding: 15px 0px;
    }
    
    .cbis-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cbis-single-event {
        padding: 30px 15px;
    }
    
    .cbis-single-event h1 {
        font-size: 28px;
    }
    
    .cbis-single-intro {
        font-size: 16px;
    }
    
    .cbis-filter-form {
        display: block;
    }
    
    .cbis-filter-form label {
        display: block;
        margin-bottom: 10px;
    }
    
    .cbis-filter-form select {
        width: 100%;
    }
    
    .cbis-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .cbis-page-prev,
    .cbis-page-next,
    .cbis-page-num {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .cbis-occasions-table {
        font-size: 13px;
    }
    
    .cbis-occasions-table th,
    .cbis-occasions-table td {
        padding: 12px 10px;
    }
    
    .cbis-toggle-occasions {
        width: 100%;
        padding: 12px 24px;
    }
    
    .cbis-contact-info,
    .cbis-description,
    .cbis-occasions {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .cbis-event-image {
		max-width:100%;
        height: auto;
    }
    
    .cbis-event-content {
        padding: 0!important;
    }
    
    .cbis-single-event h1 {
        font-size: 24px;
    }
    
    .cbis-occasions-table th,
    .cbis-occasions-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
}
@media (max-width: 1024px) {
    .cbis-single-container {
        grid-template-columns: 60% 40%;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .cbis-single-event {
        padding: 0px;
    }
    
    .cbis-single-image {
        height: 400px;
    }
    
    .cbis-single-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .cbis-single-main {
        padding: 35px 0 0 0;
        order: 1;
    }
    
    .cbis-single-sidebar {
        padding: 24px;
        order: 2;
    }
    
    .cbis-single-main h1 {
        font-size: 28px;
    }
    
    .cbis-single-intro {
        font-size: 16px;
    }
    
    .cbis-single-footer {
        padding-bottom: 20px 0;
    }
.cbis-single-header {
    padding-top: 5px;
	padding-bottom:0;
	position:absolute;
}
    
    .cbis-calendar-buttons {
        gap: 6px;
    }
    
    .cbis-cal-btn {
        font-size: 13px;
        padding: 9px 14px;
    }
}

@media (max-width: 480px) {
    .cbis-single-image {
        height: 300px;
    }
    
    .cbis-single-main h1 {
        font-size: 24px;
    }
    
    .cbis-single-main,
    .cbis-single-sidebar {
        padding: 20px;
    }
    
    .cbis-single-main {
        padding-left: 0;
    }
}