
/************************************************************************************
1. style inherited from template_proc.php which will be event_detail.php
*************************************************************************************/




/************************************************************************************
1. BASE TYPOGRAPHY & DEFAULTS
   Standardizing the font stack and colors across all elements to remove redundancy.
*************************************************************************************/
@import url('https://fonts.googleapis.com/css?family=Open+Sans');

body, tab, tab a, fieldset, p, h1, h2, h3, h4, h5, h6,
.name, .date, .blurb, .more_info, .venue_title, 
#details_box, #select_tickets, #left_column, #right_column,
heading, line_under_heading, input, .title_header {
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: normal;
}

body {
    background: #E1E0E0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, p { color: #272626; }
h1 { font-size: 1.5em; font-weight: 800; }
h2 { font-size: 1.2em; }

p { font-size: 16px; line-height: 1.6em; text-align: left; color: #373737; }
p a { color: grey; text-decoration: none; }
p a:hover { color: #F2BC4F; }

/************************************************************************************
2. FORMS & BUTTONS
   Grouped shared button behaviors while keeping specific colors separate.
*************************************************************************************/
label, input, button {
    font-size: inherit;
    padding: 0.2em;
    margin: 0.1em 0.2em;
    box-sizing: content-box;
}

input[type='text'] {
    border: 1px #9A9998 solid;
    border-radius: 5px;
    padding: 5px 4px;
    width: 230px;
}

input[type='checkbox'] { box-shadow: none; }

/* Shared Button Logic */
#search-button, .proceed-button, #voucher_button, input[type='submit'] {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    border-radius: 5px;
    transition: background 0.2s;
}

#search-button, .proceed-button {
    font-size: 20px;
    font-weight: 300;
    padding: 9px 36px;
    color: #fff;
    border: 0;
}



input[type='submit'] {
   /* background: #f3f3f3;*/
    border: 1px #9A9998 solid;
    padding: 9px 15px;
    font-weight: bold;
    width: 170px;
    margin: 0 auto;
    display: block; /* Replaces invalid float: center */
}



#search-button { background: orange; }


.proceed-button { background: #eea80b; color: black; font-weight: 500;}
.proceed-button:disabled { background-color: #ccc; color: grey; cursor: not-allowed; }

.proceed-button:hover:not(:disabled) { 		/* only use the hover color if the button is NOT disabled */
    background: #fdc444; 
}

.waiting-list-button { background: #eea80b; color: black; font-weight: 500;}
.waiting-list-button:disabled { background-color: #ccc; cursor: not-allowed; }
.waiting-list-button:hover { background: #fdc444}


#search-button:hover, #voucher_button:active {
    background: #eea80b;  /* #AB0202;*/
    color: white;

	
}

/************************************************************************************
3. MAIN STRUCTURE & LAYOUT
   The core grid and column definitions.
*************************************************************************************/
#overall_container {
    width: 100%;
    margin: 10px auto;
   
	padding: 0px;
	padding-top: 0px;
    border: 1px #E1DDDD solid;
    overflow: hidden;
	margin-top: 0;
}

#left_column {
    width: 60%;
    float: left;
    min-height: 30px;
    background: white;
}

#left_column_content {
		padding-left: 20px;
		padding-right: 20px;
	}

#right_column {
    width: 35%;
    float: right;
    min-height: 30px;
    padding: 10px;
    background: white;
    border: solid 1px #CCCCCC;
    text-align: center;
}

#container_for_success_confirmation, .container_for_success_confirmation {
    width: 80%;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    min-height: 850px;
	margin-top: 30px;
}



#advert_mobile
						{
							display: none;
						}




#event_image {
    width: 60%;
    float: left;
    height: 400px;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}





.footer
{
width: 100%;
clear: both;
margin: 0 auto;
margin-top: 0px; 	
min-height: 30px;
background: #222222; 	
text-align: center;
vertical-align: center;
padding-top: 20px;
padding-bottom: 20px;

	bottom: 0;
}



.footer-left, .footer-center, .footer-right {
    display: inline-block;
    width: auto;
	margin: 0 auto;
    
    margin-bottom: 20px;
    text-align: center;
	
	color: white;
	text-align: left;
	
}

.footer_link { display: block;}

.footer_link, .footer_link a { color: #dedede; text-decoration: none; margin-right: 5px; margin-bottom: 10px;}

.footer_link a:hover {color: white;}


@media all and (min-width: 60em) {

	.footer {clear: both; display: block;}
		.footer-left, .footer-center, .footer-right {
				display: inline-block;
				width: auto;
				margin-bottom: 4px;
				text-align: center;
			
				color: white;
		}
		
		.footer_link, footer_link a { display: inline-block; }
		
		
		.forum_tab_button
		{
		margin-left: 5px;
		font-size: 0.9em;
		}

}

/************************************************************************************
4. COMPONENTS (Events, Tables, etc.)
*************************************************************************************/
.boxes { display: table; width: 98%; background: #E1E0E0; text-align: center; padding-left: 10px}
.box { display: table-cell; text-align: center; vertical-align: middle; width: 25%; line-height: 2.0em; }

.box_image { width: 100%; height: 130px;}

.event {
    background: white;
    border-radius: 0 0 10px 10px;
    margin: 0 20px 20px 0;
    height: 245px;
    position: relative;
    box-shadow: 4px 4px 4px #D6D4D4;
	
}


.voucher  { height: 295px; }	/* an extention of the .event class for homepage.php for showing vouchers */

.name { font-size: 1.0em; color: #494949; font-weight: 500; text-align: center; padding: 8px 10px; padding-top: 20px; line-height: 1.1em;}
.date { font-size: 1.1em; font-weight: bold; color: #494949; margin-top: 15px; }

.donation_amount {
    display: inline-block;
    width: 70px;
    height: 1.2em;
    line-height: 1.2em;
    text-align: right;
    border: 1px solid #cccccc;
    background: #F8F5F5;
    border-radius: 3px;
    padding: 1px 5px;
}

/* DivTable.com Styles */
.divTable { display: table; width: auto; }
.divTableRow { display: table-row; }
.divTableCell, .divTableHead { display: table-cell; padding: 3px 10px; border: 0; }
.divTableHeading, .divTableFoot { display: table-header-group; background: #EEE; font-weight: bold; }

#select_tickets {
	
	background: #F8F5F5;
    border: solid 1px #CCCCCC;
	margin-bottom: 10px;
	padding-bottom: 10px;
}

#details_box {
border: solid 1px #CCCCCC; padding: 10px; margin: 0 auto; 
background: #F8F5F5;
    border: solid 1px #CCCCCC;
	margin-bottom: 10px;
	padding-bottom: 10px;
}




#content_container {
	
	background: #E1E0E0;
	width: 75%;
	margin: 0 auto;
	margin-top: 40px;
	min-height: 800px;
}

#voucher_box {
		border: 1px solid #CCCCCC;
		background: #F8F5F5;
		display: none;
		padding: 10px 10px 30px;
		text-align: center;
		margin-bottom: 30px;
	
	}
	
	
	#voucher_button {
		border: 1px solid #CCCCCC;
		background: grey;
		
		color: white;
		padding: 5px 10px;
		
		
	}
	
	
	
#table_calculations td {

text-align: left;

}	

/* 1. THE MAIN DROPDOWN CONTAINER */
.ui-autocomplete {
    z-index: 11000 !important;    /* Ensure it's above everything */
    background: #ffffff !important;
    border: 1px solid #333 !important;
    border-top: none;
    padding: 0 !important;
    margin-top: 2px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;           /* Prevent horizontal scroll jitter */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box !important;
}

/* 2. INDIVIDUAL ROW STYLING */
.ui-menu-item {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #eee;
}

.ui-menu-item:last-child {
    border-bottom: none;
}

/* 3. THE JQUERY WRAPPER (This is usually where the shift happens) */
.ui-menu-item-wrapper {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Use an inset border so it doesn't change the element's size on hover */
    border: 1px solid transparent !important;
    box-sizing: border-box !important;
    background: none !important;
}

/* 1. The Container: Force a tight base line-height */
.event-item {
    padding: 10px 15px !important;
    display: block !important;
    line-height: 1 !important; /* Forces lines to be as thin as the text */
    text-align: left;
}

/* 2. The Title */
.event-title {
    display: block !important;
    margin: 0 0 2px 0 !important; /* Tiny gap under title */
    padding: 0 !important;
    font-weight: bold;
    font-size: 15px;
    color: #000;
    line-height: 1.2 !important;
}

/* 3. The Venue: The "Vacuum" effect */
.event-venue {
    display: block !important;
    margin: -2px 0 0 0 !important; /* NEGATIVE top margin pulls it up */
    padding: 0 !important;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    line-height: 1.1 !important;
}

/* 5. THE HOVER STATE (The Jitter-Free Version) */
.ui-menu-item-wrapper.ui-state-active {
    background-color: #fcfcfc !important;
    /* IMPORTANT: Keep border and margin identical to the normal state */
    border: 1px solid transparent !important;
    margin: 0 !important;
}

/* Change title color on hover */
.ui-state-active .event-title {
    color: #e41e26 !important;
}

/* 6. LOCK THE SEARCH BAR WIDTH (Crucial for Flexbox layouts) */
.search-bar {
    min-width: 300px; /* Adjust this to your preferred minimum width */
}

/* 7. CLEANUP */
.ui-helper-hidden-accessible {
    display: none !important;
}

/* Custom Scrollbar */
.ui-autocomplete::-webkit-scrollbar {
    width: 8px;
}
.ui-autocomplete::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.ui-autocomplete::-webkit-scrollbar-thumb {
    background: #888;
}

.ui-menu-item:hover .event-title,
.ui-state-active .event-title {
    color: #e41e26 !important; /* Cork Red */
    transition: color 0.1s ease-in-out; /* Optional: Makes the color change feel smoother */
}


/************************************************************************************
5. MEDIA QUERIES (Responsive Adjustments)
*************************************************************************************/


/* --- TABLET VIEW (2 Items Across) --- */

@media screen and (max-width: 1050px) {
    .box {
        display: inline-block;
        width: 48%;
        margin: 50px auto 15px auto;
    }
	
	
	.box_image { width: 100%; height: 230px;}
	.event { height: 345px;}

    #overall_container { width: auto; padding: 3px; }
    
    input#searchTerm, #searchButton { 
        width: 90%; 
        display: block; 
        margin: 10px auto; 
    }

    .venue_title, .venue_sub_title { 
        text-align: center; 
    }

    #artist_image_desktop_holder { display: none; }
    #img_div_for_mobile { display: block; }

    #sidebar { min-height: 0; border: 0; padding-top: 10px; background: none; }
    #content { background: #f8f8f8; }


		#content_container {
		
		width: 100%;
		margin: 0;
		margin-top: 80px;
		
	}

		#left_column {
		width: 55%;
		
	}
	
	
	.container_for_success_confirmation {
    width: 95%;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    min-height: 350px;
	margin-top: 30px;
}
	
	
#left_column_content {
	
	padding-top: 20px;
	
}


}




.event-not-found-message { background: white; min-height: 600px; font-size: 18px; padding-top: 100px; text-align: center; font-weight: 500; margin-top: 30px; }








/* --- MOBILE VIEW (1 Item Across) --- */
@media screen and (max-width: 780px) {
    .box {
        display: block;
        width: 96%;
        margin: 0 auto 15px auto;
    }
	
	
	.boxes { display: table; width: 98%; background: #E1E0E0; text-align: center; padding-left: 0px; margin: 0 auto;}
	
	
	.event {
		
		margin: 0px;
		
	}
	
	
	

    #overall_container { width: auto; padding: 3px; }
    
    input#searchTerm, #searchButton { 
        width: 90%; 
        display: block; 
        margin: 10px auto; 
    }

    .venue_title, .venue_sub_title { 
        text-align: center; 
    }

    #artist_image_desktop_holder { display: none; }
    #img_div_for_mobile { display: block; }

    #sidebar { min-height: 0; border: 0; padding-top: 10px; background: none; }
    #content { background: #f8f8f8; }



	#content_container {
		
		width: 100%;
		margin: 0 auto;
		margin-top: 125px;
		text-align: center;
		min-height: 300px;
	}

	#left_column {
		width: 100%;
		float: none;
		min-height: 30px;
		background: white;
	}

	#right_column {
		display: inline-block;
		margin-top: 0px;
		margin-bottom: 20px;
		width: 95%;
		float: none;
		min-height: 30px;
		padding: 10px;
		padding-bottom: 0px;
		background: white;
		border: solid 1px #CCCCCC;
		text-align: center;
	}
	
	


}