.detail-container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.back-button {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-button:hover {
    text-decoration: underline;
}

.btn-edit {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-edit:hover {
    background-color: #c52a36;
}

/* Interest button styles are defined in styles.css */

.detail-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.detail-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.detail-value {
    color: #666;
    line-height: 1.6;
}

.dance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.dance-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.dance-tag:hover {
    transform: scale(1.05);
}

/* Dance style specific colors */
.dance-tag.salsa {
    background: var(--salsa-color, #e63946);
    color: white;
}

.dance-tag.bachata {
    background: var(--bachata-color, #9333ea);
    color: white;
}

.dance-tag.kizomba {
    background: var(--kizomba-color, #1d3557);
    color: white;
}

.dance-tag.zouk {
    background: var(--zouk-color, #2a9d8f);
    color: white;
}

/* Promo badge */
.promo-badge {
    background: #ffbf00;
    color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Inline promo shown under website link */
.promo-inline {
    background: #fff3bf;
    color: #664d03;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Compact dance style dots for list view */
.dance-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.dance-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dance-dot.salsa { background: var(--salsa-color, #e63946); }
.dance-dot.bachata { background: var(--bachata-color, #9333ea); }
.dance-dot.kizomba { background: var(--kizomba-color, #1d3557); }
.dance-dot.zouk { background: var(--zouk-color, #2a9d8f); }

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-visit {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-maps {
    display: inline-block;
    margin-top: 10px;
    background: #4285f4;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-maps:hover {
    background: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-visit:hover {
    background: #d62828;
    transform: translateY(-2px);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.artists-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.artist-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s;
}

.artist-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.artist-item-clickable {
    cursor: pointer;
}

.artist-name {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.artist-specialty {
    display: inline-block;
    font-size: 0.85rem;
    color: #666;
    background: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.manage-artists-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.btn-manage-artists {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-manage-artists:hover {
    background: #d62828;
    transform: translateY(-1px);
}

.artist-item-editable {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-remove-artist {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-remove-artist:hover {
    background: #c82333;
}

.artist-selector {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.artist-selector h4:first-child {
    margin-top: 0;
}

.artist-selector h4.add-artist-heading {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.artist-search {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.artist-option {
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.artist-option:hover {
    background: white;
}

.artist-option.added {
    opacity: 0.5;
    cursor: not-allowed;
}

.error {
    text-align: center;
    padding: 3rem;
    color: var(--primary-color);
}

.empty-artist-list {
    color: #666;
    padding: 0.5rem 0;
}

.available-artists-list {
    max-height: 200px;
    overflow-y: auto;
}

.no-artists-message {
    padding: 0.5rem;
    color: #666;
}

.user-link {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-visit-interested {
    background: #ffc107;
    color: #333;
}

.artist-manager-hidden {
    display: none;
}

/* Media Section Styles */
.media-list-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-item-display {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s;
}

.media-item-display:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.media-icon {
    font-size: 1.5em;
}

.media-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    flex: 1;
}

.media-link:hover {
    text-decoration: underline;
}

.media-link-text {
    color: var(--primary-color);
    font-weight: 500;
    word-break: break-all;
    flex: 1;
}

.media-link-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.media-link-text a:hover {
    text-decoration: underline;
}

.btn-delete-media {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.btn-delete-media:hover {
    background: #c82333;
    transform: scale(1.1);
}

.add-media-form {
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin-top: 20px;
}

.add-festival-day-form {
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin-top: 20px;
}

.festival-days-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.festival-day-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s;
}

.festival-day-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
}

.day-toggle {
    color: var(--primary-color);
    font-size: 0.9em;
    transition: transform 0.2s;
    display: inline-block;
}

.festival-day-item:not(.collapsed) .day-toggle {
    transform: rotate(90deg);
}

.day-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05em;
}

.day-info {
    color: #666;
    line-height: 1.6;
    padding-left: 28px;
    margin-top: 8px;
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.festival-day-item.collapsed .day-info {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.btn-edit-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 0.9em;
    transition: background 0.2s, transform 0.2s;
}

.btn-edit-day:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.btn-add-media {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
    font-weight: 600;
}

.btn-add-media:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-add-missing-days {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-weight: 600;
    white-space: nowrap;
}

.btn-add-missing-days:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.media-embed {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.media-embed iframe {
    border-radius: 8px;
}

.media-embed img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Map Container Styles */
.map-container {
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: background 0.2s;
}

.map-header:hover {
    background: #f8f9fa;
}

.map-toggle {
    color: var(--primary-color);
    font-size: 0.9em;
    transition: transform 0.2s;
    display: inline-block;
}

.map-container:not(.collapsed) .map-toggle {
    transform: rotate(90deg);
}

.map-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95em;
}

.map-embed {
    max-height: 400px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.map-container.collapsed .map-embed {
    max-height: 0;
    opacity: 0;
}

/* Booking map embed (Stay22) uses its own container; make it collapsible like map-embed */
.booking-map-embed {
    max-height: 428px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#bookingMapContainer.collapsed .booking-map-embed {
    max-height: 0;
    opacity: 0;
}

.map-embed iframe {
    display: block;
    width: 100%;
}

/* Collapsible Section Styles */
.collapsible-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    cursor: pointer;
    user-select: none;
    padding: 12px 15px;
    background: #f8f9fa;
    transition: background 0.2s;
}

.section-header:hover {
    background: #e9ecef;
}

.section-header .detail-label {
    margin: 0;
}

.section-toggle {
    color: var(--primary-color);
    font-size: 0.9em;
    transition: transform 0.2s;
    display: inline-block;
}

.collapsible-section:not(.collapsed) .section-toggle {
    transform: rotate(90deg);
}

.section-content {
    max-height: 3000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 15px;
}

.collapsible-section.collapsed .section-content {
    max-height: 0;
    opacity: 0;
    padding: 0 15px;
}

/* Tickets Section Styles */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.ticket-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s;
}

.ticket-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ticket-name {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05em;
}

.ticket-price {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1em;
}

.ticket-description {
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
}

.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.comments-header {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.comment-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    align-items: center;
}

.btn-submit-comment {
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-submit-comment:hover {
    background: #d62828;
}

.btn-cancel-comment {
    background: #6c757d;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cancel-comment:hover {
    background: #5a6268;
}

.comment-char-count {
    color: #666;
    font-size: 0.85rem;
    margin-left: auto;
}

.comment-char-count.warning {
    color: #dc3545;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--dark-color);
}

.comment-date {
    font-size: 0.85rem;
    color: #666;
}

.comment-text {
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.btn-delete-comment {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-delete-comment:hover {
    background: #c82333;
}

.no-comments {
    text-align: center;
    color: #666;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.login-prompt {
    text-align: center;
    padding: 1.5rem;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Booking map collapse: hide coordinates header and booking embed when collapsed */
#bookingMapContainer .coords-header {
    transition: max-height 0.25s ease, opacity 0.25s ease;
    overflow: hidden;
    max-height: 240px;
}
#bookingMapContainer.collapsed .coords-header {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.booking-map-embed {
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 1000px;
    overflow: hidden;
}
#bookingMapContainer.collapsed .booking-map-embed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
