.bpi-container{background:#F3ECE299;padding:2rem;}
.bpi-search-form{max-width:600px;margin:0 auto 2rem;display:flex;flex-wrap:wrap;gap:0.5rem;}
.bpi-search-form input[type="text"],
.bpi-search-form select{flex:1 1 200px;padding:0.5rem;border:1px solid #ccc;border-radius:4px;}
.bpi-search-form button{padding:0.5rem 1rem;border:none;background:#8b5e3c;color:#fff;border-radius:4px;cursor:pointer;}
.bpi-main-category h2{
	margin-bottom:0.5rem;
}
.bpi-subcategory-scroll{display:flex;overflow-x:auto;gap:1rem;padding-bottom:1rem;}
.bpi-subcategory-scroll::-webkit-scrollbar{height:6px;}
.bpi-subcategory-scroll::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px;}
.bpi-results-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* pontosan 2 oszlop */
  gap: 1rem;
  justify-content: center; /* a grid középre rendezése */
  max-width: 600px; /* opcionális: két kártya szélességéhez igazítva */
  margin: 0 auto;   /* középre az egész grid */
}

.bpi-html-block-modal h4{
color: #E1A850;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 0px;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top:5px;
}

.bpi-html-block-modal{
    margin-bottom: 15px;
    font-family: "Poppins", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #613A24;
}

#bpi-live-results .bpi-results-grid{
    column-count: 2;
    column-gap: 2rem !important;
    max-width: 1000px;
    display:block !important;
    margin: 0 auto;
}

#bpi-live-results{margin-top:1rem;}
.bpi-result-card{
    display: inline-block;   /* fontos! */
    width: 100%;
    margin-bottom: 1rem;
    background: #fff;
        position: relative;
    border: 1px solid #E7E1DE;
    border-radius: 15px;
    padding: 1rem;
    width:500px;
    min-height: 168px;
}
.bpi-result-card h3{
	margin-top:0;
	margin-bottom:0.5rem;
	color: #613A24;
}
.bpi-card-header{
	display:flex;
	justify-content:space-between;
	align-items:center;
	margin-bottom:0.5rem;
}
.bpi-result-card h3	{
	color: #613A24;
	font-family: "Poppins", sans-serif;
  	font-weight: 700;        /* bold */
  	font-style: normal;      /* nem "Bold", hanem normal */
  	font-size: 22px;
  	line-height: 25px;
  	letter-spacing: 0;
}
.bpi-card-category{
	font-weight: 500;
    color: #098FDB;
    padding: 0.2rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #098FDB;
    border-radius: 5px;
    font-size: 12px;
    line-height: 24px;
}
.bpi-open-modal img{
    width: 28px;
    cursor: pointer;
}
.bpi-open-modal{
    position:absolute;
    top:0.5rem;
    right:0.5rem;
}
.bpi-card-image{position:relative;margin-bottom:0.5rem;}
.bpi-card-image img{width:100%;height:auto;border-radius:4px;}
.bpi-open-image{
	position:absolute;
	top:0.5rem;
	left:0.5rem;
	cursor:pointer;
	background:rgba(255,255,255,0.8);
	border-radius:4px;padding:2px;
}
.bpi-featured-image{
	position:absolute;top:0.5rem;left:0.5rem;cursor:pointer;border-radius:4px;padding:2px;
}
.bpi-open-image img{width:16px;height:16px;}
.bpi-image-wrapper{display:flex;align-items:center;justify-content:center;}
.bpi-image-wrapper img{max-width:100%;height:auto;}
#bpi-image-modal.full-image .bpi-image-wrapper img{max-width:none;max-height:none;width:auto;height:auto;}
.bpi-field{display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem;color:#613A24;}
.bpi-field img{width:16px;height:16px;}
.bpi-field a {
	color: #613A24;
}
.bpi-phone-toggle img{
	width:16px;
	height:16px;
	cursor:pointer;
	margin-top: 0.4rem;
}
.bpi-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);align-items:center;justify-content:center;z-index:999;}
.bpi-modal.open{display:flex;}
.bpi-modal-content{
    background:#fff;
    padding:1.5rem;
    border-radius:8px;
    position:relative;
    align-items:center;
    overflow:auto;
    min-width:500px;
    min-height:300px;
    max-width:600px;
    width:90%;
    max-height:80%;
}
#bpi-image-modal.full-image .bpi-modal-content{
        min-width:0;
        min-height:0;
        max-width:none;
        width:auto;
        max-height:none;
}
.bpi-close{
	position: absolute;
    top: -0.5rem;
    right: 0.1rem;
    font-size: 1.5rem;
    cursor: pointer;
}
.bpi-modal-body .bpi-card-category{
    margin-bottom:0.5rem;
    display:inline-flex;
}
.bpi-modal-body h3{
  font-family: 'Poppins', sans-serif;
  font-weight: 700;       /* Bold helyett */
  font-style: normal;     /* "Bold" nem létezik font-style értékként */
  font-size: 22px;
  line-height: 25px;
  letter-spacing: 0; 
  color: #613A24;
}
.bpi-search-card{
	max-width: 869px;
	margin:0 auto;
	background:#fff;
	padding:2rem;
	border-radius:15px;
	box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 6px 16px rgba(0, 0, 0, 0.08);
 	transition: box-shadow .2s ease, transform .2s ease;
}
.bpi-close .search-icon{
	position: static;
	width: 25px;
	margin-top: 10px;
}
.bpi-input-wrapper{
	position: relative;
    margin-bottom: 15px;
}
#bpi-live-search{
	width: 100%;
    border: 1px solid #E7E1DE;
    border-radius: 5px;
    height: 70px;
}
.bpi-search-icon{
	position:absolute;
	right: 1.5rem;
	top:50%;
	transform:translateY(-50%);
	pointer-events:none;
}
.bpi-category-dropdown {
    position: relative; /* ez lesz a referenciapont */
    width: 100%;
}
.bpi-category-toggle {
    background: #fff;
    cursor: pointer;
    color: #613A24;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bpi-arrow {
  font-size: 10px; /* kísérletezd ki */
  line-height: 1;
  color: #613A2499;
}
.bpi-category-dropdown.open .bpi-arrow{transform:rotate(180deg);}
/* közös beállítások */
.bpi-category-list,
.bpi-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #613A24;          /* szövegszín */
  border-radius: 5px;
}

/* fő lista */
.bpi-category-list {
    position: absolute;
    background: #fff;
    border: 1px solid #E7E1DE;
    z-index: 9999;
    display: none;
    min-width: 338px;
    box-shadow: none;
    color: #613A24;
}
.bpi-cat-item:hover { 
	background: #99C2D726; 
	color: #098FDB;
}

.bpi-cat-item > .bpi-sub-list {
    position: absolute;
    top: -41px;
    left: 72%;
    background: #fff;
    border: 1px solid #E7E1DE;
    min-width: 336px;
    display: none;
    z-index: 10000;
    box-shadow: none;
    border-radius: 5px;
}

.bpi-cat-item:hover > .bpi-sub-list {
  display: block;
}
.bpi-item-default{
    font-weight: 600;
    padding: 0.4rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    color: #613A24;
}
/* alkategória elemek */
.bpi-sub-item {
  padding: 0.4rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  color: #613A24;
}
.bpi-sub-item:hover {
  background: #f0f6ff;
  color: #098FDB;
}

/* Alapbeállítás mindkettőnek */
.bpi-item-default,
.bpi-cat-item,
.bpi-sub-item {
  position: relative;
  display: block;
  padding: 0.6rem 1rem 0.6rem 2rem; /* felső+alsó 0.6, bal 2rem a pipa ikonhoz */
  cursor: pointer;
  white-space: nowrap;
  color: #613A24;
  line-height: 1.4; /* olvashatóbb sor magasság */
}

/* Hover */
.bpi-cat-item:hover,
.bpi-sub-item:hover {
  background: #f0f6ff;
  color: #098FDB;
}

/* Kijelölt állapot pipával */
.bpi-cat-item.selected::before,
.bpi-sub-item.selected::before {
  content: "\2713";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #098FDB;
}
.bpi-badge {
  background: #f0f6ff;
  color: #098FDB;
  border-radius: 12px;
  padding: 0.5rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.bpi-badge .bpi-remove-sub {
  cursor: pointer;
}

.bpi-results-info{
	margin-bottom:1rem;
}
.bpi-results-info .bpi-subcategory{
  font-family: "Iquost", sans-serif;
  font-weight: 400;
  font-style: normal;          /* "Regular" helyett a szabványos */
  font-size: 40px;
  line-height: 1.2;            /* állítsd be kézzel, pl. 1.2 vagy 48px */
  letter-spacing: 5%;          /* ez valójában em-ben jobb: 0.05em */
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  color:#613A24;
}
.bpi-results-info .bpi-main-category{
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;       /* "Regular" helyett szabványosan */
  font-size: 24px;
  line-height: 1.3;         /* helyettesítsd a design system értékével */
  letter-spacing: 0;        /* nincs betűköz növelés */
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  color:#613A24;
  margin-top: 50px;
}
.bpi-results-count{
        text-align:center;
        margin:0.5rem 0;
}
.bpi-sort-wrapper{
  display: flex; 
  justify-content: right;
  max-width: 1030px;
  margin: 0 auto;
}
.bpi-sort-button{
    padding:0.5rem 1rem;
    border:none;
    background:#613A24;
    color:#fff;
    border-radius:50px;
    cursor:pointer;
    margin-bottom:1rem;
}
.bpi-question{
    margin-bottom:0.7rem;
    text-align: center;
    color: #2037A6;
    text-decoration: underline;
}

.bpi-street-input-wrapper{
  position: relative;
  max-width: 400px;             /* ha középre akarod: */
  margin: 0 auto 1rem;          /* középre a wrapper */
}

#bpi-street-search{
  width: 100%;
  border: 1px solid #E7E1DE;
  border-radius: 5px;
  height: 40px;
  padding-right: 2.5rem;        /* hely az ikonnak */
  border-radius: 60px;
}

.bpi-street-search-icon{
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;                  /* állítható */
  height: 18px;
  pointer-events: none;         /* ne kattintható legyen */
  opacity: .8;                  /* ízlés szerint */
}

#bpi-category-cards {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 869px;
    margin-left: auto;
    margin-right: auto;
    justify-content: flex-start;
}
.bpi-category-block{
	margin-bottom:2rem;
	width: 100%;
}
.bpi-category-block h2{
	color: #613A24;
}
.bpi-subcategories-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.bpi-subcard{
	position:relative;
	padding-bottom:1.5rem;
	cursor:pointer;
	width: 160px;
	height: 140px;
	border-radius: 15px;
	background:#fff;
	padding:0.5rem 1rem;
	white-space:nowrap;
	text-decoration:none;
	color:#333;
	border: 1px solid #E7E1DE;
}
.bpi-subcard:hover{
	border: 1px solid #99C2D7;
	box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.15);
}
.bpi-subcard:hover h4 {
  color: #5C7481; /* csak akkor változik, ha a kártya van hover alatt */
}
.bpi-subcard:hover .bpi-subcard-arrow {
  	position: absolute;
    bottom: -0.5rem;
    right: -0.3rem;
    width: 30px;
}
.bpi-subcard-arrow{
	position:absolute;
	bottom:0.1rem;
	right:0.1rem;
	width:20px;
	height:20px;
}

.bpi-subcard h4{
	font-weight: 600;
	font-size: 19px;
	line-height: 23px;
	color: #613A24;
	word-wrap: break-word;   /* régi */
  	overflow-wrap: anywhere; /* modern böngészők */
  	white-space: normal; 
}
#bpi-sort-alpha {
  display: block;       /* hogy kitöltse a sort */
  text-align: right;    /* a szöveget jobbra húzza */
}
.bpi-sort-icon{
  width: 12px;                 /* állítsd a méretet */
}
#bpi-sort-alpha.desc .bpi-sort-icon{
  transform: rotate(180deg);
}
.phoneper {
  padding: 0 .15em;
  color: #613A24; /* barna a per jel */
  font-weight: 400;
}

.phonex {
  color: #16376066; /* szürke X */
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .bpi-results-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .bpi-result-card {
    width: 100%;
  }
  .bpi-search-card {
    padding: 1rem;
  }
  .bpi-subcategories-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  .bpi-subcard {
    flex: 0 0 auto;
  }
  .bpi-modal-content {
    width: 95%;
    min-width: 0;
    padding: 1rem;
  }

  .bpi-cat-item > .bpi-sub-list {
    top: 40px;
    left: 0;
    right: auto;
  }

  .bpi-sort-text {
    display: none;
  }
}

.bpi-opening-hours h4{
	color: #E1A850;
	text-transform: uppercase;
	font-size: 16px;
	margin-top: 20px;
	font-weight: 700;
    margin-bottom:10px;
}

.bpi-modal-body iframe{
margin-top:10px !important;
	height:300px !important;
}

.bpi-opening-table {
  width: 50%;
  border-collapse: collapse;
}

.bpi-opening-table td:first-child {
    padding: 0px;
    padding-right: 10px;
    padding-bottom: 5px;
    border: none;
    width: 80px;
    color: #613A24;
    font-weight: 600;
    text-align: right;
    font-size: 16px;
}

.bpi-opening-table td:last-child {
padding:0px;
  padding-left: 10px;
  border: none;
  color: #613A24;
  font-size: 16px;
}

.bpi-opening-table td:nth-child(2) {
  border-left: 1px solid #E7E1DE;
}

.bpi-opening-table tr {
  background-color: #fff !important;
}

.bpi-opening-table tbody > tr:nth-child(odd) > td,
.bpi-opening-table tbody > tr:nth-child(odd) > th {
    background-color: #fff !important;
}

.bpi-opening-table tbody > tr:nth-child(even) > td,
.bpi-opening-table tbody > tr:nth-child(even) > th {
    background-color: white !important;
}

/* hover alatt is maradjanak ugyanezek */
.bpi-opening-table tbody > tr:nth-child(odd):hover > td,
.bpi-opening-table tbody > tr:nth-child(odd):hover > th {
    background-color: #fff !important;
}

.bpi-opening-table tbody > tr:nth-child(even):hover > td,
.bpi-opening-table tbody > tr:nth-child(even):hover > th {
    background-color: white !important;
}