/* import global variables */
@import "style-global.css";
    
div.bar_bottom_box { /* container com a margem superior de todas as páginas ; na progrmação, inclui os filtros */
	height: calc(2 * var(--global-margin)) !important;
	background-color: white;
	display: inline-block;
	margin-top:0px;
	width:100%;
	z-index:1;
}

.rca_type {
	width: 50%;
}
.rca_format {
	width:33.333%;
}
.rca_menu {
	width:20%;
}


/* Modal Styles */
.modal {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0; /* full viewport */
    z-index: 2147483647; /* above any theme layers */
    background-color: rgba(0, 0, 0, 0.7);
    display: none;            /* hidden by default */
    align-items: flex-start;      /* center content */
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}
.modal.open { display: flex !important; }
  
.modal-rca-content {
	box-sizing: border-box;
    width: calc(100% - 2 * var(--global-margin));
	height: calc(30 * var(--global-margin));         /* fixed base height */
	max-width: 95vw;       /* keep within viewport on small screens */
	max-height: 90vh;
	overflow: auto;        /* scroll if content is longer */
    background: #fff;
    color: #000;
    padding: 10px 10px;
    border: 1px solid #000;
    max-width: 520px;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    position: relative;
}

/* Booking popup needs a wider canvas for copy + CTA button */
#rca_booking .modal-rca-content {
    width: clamp(360px, 60vw, 640px);
    max-width: clamp(360px, 80vw, 680px);
    min-height: 260px;
    max-height: 80vh;
}
 
  .modalImage {
	display: block;
	max-width: 200%;  /* Ensures responsiveness */
	width: auto;
	height: calc(100vh - 2* var(--global-margin)) !important; /* Prevents images from being too large */
	margin-top: calc(1* var(--global-margin)) !important;
	margin-bottom: calc(1* var(--global-margin)) !important;
  }
  
  iframe {
	width:100% !important;
  }
  
  .modal-rca-content .close-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	background: transparent;
	border: 0;
	color: #000;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
  }
  .modal-rca-content .close-btn:hover { opacity: .85; }

  .modal-rca-content .btn-rca-booking {
	position: relative;
	top: 4px;
	background: #000;
	color: #fff;
	border: 0;
	font-size: 14px;
	cursor: pointer;
  }

  .modal-rca-content .btn-rca-booking:hover { opacity: .50; }
  
  .ut-menu .menu-header img {
	  max-height:100vh !important ;
  }
  
.rca_link_container1 {
    margin-top: calc(1 * var(--global-margin));
    margin-left: calc(1 * var(--global-margin));
    padding-left: calc(16 * var(--global-margin));
  }
  
  .rca_link_container2 {
    margin-top: calc(1 * var(--global-margin));
  }
  
.rca_link_button {
    display: inline-block;
    padding: 10px 16px;
    margin-left: calc(0 * var(--global-margin));
    text-decoration: none !important;
    border-radius: 0px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  /* Make <button class="rca_link_button"> look like the <a> version */
button.rca_link_button {
	background: transparent;
	border: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}
/* Force link text to black for RCA buttons */
.rca_link_button,
.rca_link_button:visited,
.rca_link_button:active {
	color: #000 !important;
}

/* Hover state for RCA link buttons */
.rca_link_button:hover,
.rca_link_button:focus {
	color: rgba(0, 0, 0, 0.8) !important;
	transform: scale(1.05);
	text-decoration: none;
}
/* RCA buttons (moved from layouts/shortcodes/rca_buttons.html) */
.radio-button-group input[type="radio"] { display: none; }

.radio-button-group label {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px;
    background-color: transparent;
    border: 2px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.radio-button-group label:hover {
    background-color: #f8f8f8;
    border-color: #999;
    transform: translateY(-1px);
}

.radio-button-group input[type="radio"]:checked + label {
    background-color: #333;
    color: white;
    border-color: #333;
}

/* All filter button */
.radio-button-group input[type="radio"]#todos:checked + label {
    background-color: #000 !important;
    color: white !important;
    border-color: #000 !important;
}

/* All filter button when unchecked - white text for readability */
.radio-button-group input[type="radio"]#todos + label {
    background-color: #000 !important;
    color: white !important;
    border-color: #000 !important;
}

/* Aggregator-specific button styling */
.radio-button-group input[type="radio"]#music:checked + label,
.radio-button-group input[type="radio"]#performance:checked + label,
.radio-button-group input[type="radio"]#visual:checked + label,
.radio-button-group input[type="radio"]#cinema:checked + label,
.radio-button-group input[type="radio"]#educative:checked + label {
    background-color: transparent !important;
    color: #000 !important;
    border-color: #000 !important;
    border-width: 2px !important;
}

/* Hover: make it obviously clickable */
.radio-button-group label:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transform: translateY(-1px) scale(1.02);
}

/* Press/click feedback */
.radio-button-group label:active {
    transform: translateY(0) scale(0.99);
    box-shadow: none;
}

/* Keyboard focus (optional but good for accessibility) */
.radio-button-group input[type="radio"]:focus + label {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.rca_link_box {
	display: inline-block;
	border-top: 0px;
	border-left: var(--global-margin) solid white !important;
	height: calc(100vh - 8 * var(--global-margin)); /*screen height minus top_box height */
	background-color: grey;
	cursor: pointer;
	text-align: center;
	color: white;
	font-size: 40px;
	font-weight:500;
	float:left;
	margin-bottom: calc(1 * var(--global-margin));

	/* Flexbox for centering */
	display: flex; /* Switch to flexbox */
	align-items: center; /* Center vertically */
	justify-content: center; /* Center horizontally */
	overflow:hidden;
	z-index:2;
	position: relative; /* enable absolute overlay */
}

.rca_label {
	position: absolute;
	top: calc(1 * var(--global-margin));
	left: 1%;
	transform: translateX(0%);
	z-index: 3;    
  display: inline-block;
  max-width: calc(100% - 2 * var(--global-margin));
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;           /* ensure above the image */
	pointer-events: none;     /* keep whole tile clickable */
  line-height: 0.9;
	color: #fff;
	font-weight: 500;
	letter-spacing: 0px;
	text-transform: uppercase;
	padding: 6px 12px;
}

.img_rca_link {
	position: relative;
	z-index: 1;
	height: 100% !important;
	width: auto;
	object-fit: cover;
}
/* First RCA tile on the bar page - left border only */
#s1 .rca_link_box.rca_type:nth-of-type(1) {
  border-left: var(--global-margin) solid white !important;
  border-right: 0 !important;
}

/* Second RCA tile on the bar page - right border only */
#s1 .rca_link_box.rca_type:nth-of-type(2) {
  border-left:var(--global-margin) solid white !important;
  border-right: var(--global-margin) solid white !important;
}

/* First RCA tile label on the bar page */
#s1 .rca_link_box.rca_type:nth-of-type(1) .rca_label {
  font-size: 200px;
}
/* Second RCA tile label on the bar page */
#s1 .rca_link_box.rca_type:nth-of-type(2) .rca_label {
	left: auto;
	right: calc(1 * var(--global-margin));
	transform: none;
	text-align: right;
	top: auto;
	bottom: calc(2 * var(--global-margin));
  font-size: 200px;
}

/* bottom white gutter for the 2-tile section (EN + PT bar pages) */
#s1.content {
  background: #fff;
  padding-bottom: calc(2 * var(--menu-margin));
}

/* keep tiles height within the viewport after adding the gutter */
#s1 .rca_link_box {
  height: calc(100vh - 9.8 * var(--global-margin));
}

/* Small fixed logo badge (overrides theme .markdown a rules) */
.rca_logo_link{
  position: fixed;
  top: calc(1 * var(--global-margin));
  left: calc(5 * var(--global-margin));  /* Moved right to make space for back button */
  display: block !important;
  width: 7.5%;                 /* let the image define width/height */
  height: auto;
  z-index: 10001;
}

.rca_logo_fixed{
  display: block;
  height: clamp(18px, 2.2vw, 28px); 
  width: auto;                       /* keep aspect ratio */
}

/* bottom gutter and fit-to-viewport for the 3 tiles on bar_menus pages */
#menus.content {
  background: #fff;
  padding-bottom: calc(2 * var(--menu-margin));
}
#menus .rca_link_box {
  height: calc(100vh - 9.8 * var(--global-margin));
  box-sizing: border-box; /* ensure borders don't cause overflow */
}

/* Border definitions for the 3 tiles on bar_menus pages */
#menus .rca_link_box.rca_format:nth-of-type(1) {
  border-left: var(--global-margin) solid white !important;
  border-right: 0 !important;
}
#menus .rca_link_box.rca_format:nth-of-type(2) {
  border-left: var(--global-margin) solid white !important;
  border-right: var(--global-margin) solid white !important;
}
#menus .rca_link_box.rca_format:nth-of-type(3) {
  border-left: 0 !important;
  border-right: var(--global-margin) solid white !important;
}

/* RCA menus page label positions (3 tiles) */
#menus .rca_link_box.rca_format:nth-of-type(1) .rca_label {
  top: calc(1 * var(--global-margin));
  left: calc(1 * var(--global-margin));
  right: auto; bottom: auto;
  transform: none;
  text-align: left;
  font-size: 200px;
}
#menus .rca_link_box.rca_format:nth-of-type(2) .rca_label {
  top: auto; left: auto;
  right: calc(1 * var(--global-margin));
  bottom: calc(2 * var(--global-margin));
  transform: none;
  text-align: center;
  font-size: 200px;
}
#menus .rca_link_box.rca_format:nth-of-type(3) .rca_label {
  top: calc(1 * var(--global-margin));
  text-align: right;
  font-size: 200px;
}


/* bottom gutter and fit-to-viewport for the 5 tiles on bar_jantar (ementa) pages */
#ementa.content {
  background: #fff;
  padding-bottom: calc(0 * var(--menu-margin));
}
#ementa .rca_link_box {
  height: calc(100vh - 9.8 * var(--global-margin));
  box-sizing: border-box; /* ensure borders don't cause overflow */
  font-size: 125px;
}

/* Border definitions for the 5 tiles on bar_jantar (ementa) pages */
/* Left side tiles - border-left only */
#ementa .rca_link_box.rca_menu:nth-of-type(1),
#ementa .rca_link_box.rca_menu:nth-of-type(2) {
  border-left: var(--global-margin) solid white !important;
  border-right: 0 !important;
}
/* Center tile - both borders */
#ementa .rca_link_box.rca_menu:nth-of-type(3) {
  border-left: var(--global-margin) solid white !important;
  border-right: var(--global-margin) solid white !important;
}
/* Right side tiles - border-right only */
#ementa .rca_link_box.rca_menu:nth-of-type(4),
#ementa .rca_link_box.rca_menu:nth-of-type(5) {
  border-left: 0 !important;
  border-right: var(--global-margin) solid white !important;
}

/* RCA menus page label positions (5 tiles) */
#ementa .rca_link_box.rca_menu:nth-of-type(1) .rca_label {
  top: calc(1 * var(--global-margin));
  left: calc(1 * var(--global-margin));
  right: auto; bottom: auto;
  transform: none;
  text-align: left;
}
#ementa .rca_link_box.rca_menu:nth-of-type(2) .rca_label {
  top: auto; left: auto;
  right: calc(1 * var(--global-margin));
  bottom: calc(2 * var(--global-margin));
  transform: none;
  text-align: center;
}
#ementa .rca_link_box.rca_menu:nth-of-type(3) .rca_label {
  top: calc(1 * var(--global-margin));
  text-align: center;
}
#ementa .rca_link_box.rca_menu:nth-of-type(4) .rca_label {
  top: auto; left: auto;
  right: calc(1 * var(--global-margin));
  bottom: calc(2 * var(--global-margin));
  transform: none;
  text-align: center;
}
#ementa .rca_link_box.rca_menu:nth-of-type(5) .rca_label {
  top: calc(1 * var(--global-margin));
  text-align: right;
}

/* bottom gutter and fit-to-viewport for the 5 tiles on bar_brunch pages */
#brunch.content {
  background: #fff;
  padding-bottom: calc(2 * var(--menu-margin));
}
#brunch .rca_link_box {
  height: calc(100vh - 9.8 * var(--global-margin));
  box-sizing: border-box;
  font-size: 125px;
}

/* Border definitions for the 5 tiles on bar_brunch pages */
/* Left side tiles - border-left only */
#brunch .rca_link_box.rca_menu:nth-of-type(1),
#brunch .rca_link_box.rca_menu:nth-of-type(2) {
  border-left: var(--global-margin) solid white !important;
  border-right: 0 !important;
}
/* Center tile - both borders */
#brunch .rca_link_box.rca_menu:nth-of-type(3) {
  border-left: var(--global-margin) solid white !important;
  border-right: var(--global-margin) solid white !important;
}
/* Right side tiles - border-right only */
#brunch .rca_link_box.rca_menu:nth-of-type(4),
#brunch .rca_link_box.rca_menu:nth-of-type(5) {
  border-left: 0 !important;
  border-right: var(--global-margin) solid white !important;
}

