/* pro-3d.css — Professional 3D design layer (additive, keeps legacy layout) */
@import url('https://fonts.googleapis.com/css2?family=Rokkitt:wght@400;500;600;700;800&display=swap');
@font-face { font-family:'Kalpurush'; src:url('../KALPURUSH.TTF') format('truetype'); font-display:swap; }
:root { --pro-green:#95c41f; --pro-teal:#00bfa6; --pro-dark:#1f2a37; }
html { scroll-behavior:smooth; }
body { background:#f7f9fb; font-family:'Rokkitt','Kalpurush',serif,'Noto Serif Bengali',sans-serif !important; }

/* 3D cards */
.property, .thumbnail.blog-box-2, .blog-box-2, .property-2 {
  border-radius:12px !important; overflow:hidden;
  box-shadow: 0 2px 6px rgba(31,42,55,.08), 0 10px 24px rgba(31,42,55,.08);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  transform-style:preserve-3d; will-change:transform;
}
.property:hover, .thumbnail.blog-box-2:hover, .property-2:hover {
  transform: translateY(-8px) rotateX(2deg) scale(1.015);
  box-shadow: 0 8px 16px rgba(31,42,55,.12), 0 24px 48px rgba(31,42,55,.18);
}
.property-img img, .blog-photo img { transition: transform .5s ease; }
.property:hover .property-img img, .thumbnail:hover .blog-photo img { transform: scale(1.06); }
.property-img { position:relative; overflow:hidden; }
.property-img::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35)); pointer-events:none; }

/* price bead — 3D pill */
.property-price {
  background: linear-gradient(135deg, #a8d94a, #7db31a) !important;
  color:#fff !important; font-weight:700;
  border-radius:20px !important; padding:4px 14px !important;
  box-shadow: 0 4px 10px rgba(149,196,31,.45), inset 0 1px 0 rgba(255,255,255,.6);
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}

/* buttons — 3D depth (dark enough for white text contrast) */
.btn.button-theme, .search-button, .button-md.button-theme, .rightside-navbar li a.button, .rightside-navbar li .button {
  background: linear-gradient(135deg, #7fae1a, #4f7a0e) !important;
  border:1px solid #3f630b !important; color:#fff !important; font-weight:700;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
  border-radius:50px !important;
  box-shadow: 0 6px 14px rgba(79,122,14,.40), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn.button-theme:hover, .search-button:hover, .button-md.button-theme:hover, .rightside-navbar li a.button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #8fbc1f, #5a8f12) !important;
  color:#fff !important;
  box-shadow: 0 10px 22px rgba(79,122,14,.50), inset 0 1px 0 rgba(255,255,255,.6);
  filter:brightness(1.05);
}
.btn.button-theme:active, .search-button:active { transform: translateY(0); box-shadow:0 3px 8px rgba(79,122,14,.40); }
.border-button-theme { border-radius:8px !important; box-shadow:0 4px 12px rgba(0,0,0,.15); transition:.2s ease; color:#4f7a0e !important; font-weight:700; }
.border-button-theme:hover { transform:translateY(-2px); background:linear-gradient(135deg, #7fae1a, #4f7a0e) !important; color:#fff !important; }

/* NEW pro header menu (independent system) */
.main-header { position:relative; z-index:1060; }
.pro-item { position:relative; }
.pro-item:has(> .pro-mega) { position:static; }
.pro-item > .pro-toggle { position:relative; font-weight:700; }
.pro-item.open > .pro-toggle { color:#4f7a0e; }
.pro-item.open > .pro-toggle::after{content:"";position:absolute;left:14px;right:14px;bottom:12px;height:3px;border-radius:3px;background:linear-gradient(90deg,#95c41f,#00bfa6);}
.pro-panel { position:absolute; top:100%; left:0; min-width:240px; margin:0; padding:10px; list-style:none;
  background:#fff; border:1px solid #e5edf3; border-radius:14px; box-shadow:0 22px 48px rgba(31,42,55,.22);
  opacity:0; visibility:hidden; transform:translateY(10px); transition:.22s ease; z-index:1061; }
.pro-item.open > .pro-panel { opacity:1; visibility:visible; transform:translateY(0); }
.pro-panel > li { list-style:none; }
.pro-panel > li > a { display:block; padding:10px 14px; color:#1f2a37; border-radius:8px; }
.pro-panel > li > a:hover { background:#eef7dc; color:#4f7a0e; }
.pro-mega { left:0; right:0; width:auto; min-width:0; display:grid; grid-template-columns:1fr 1fr 1fr 1fr; gap:6px; padding:20px 26px; border-radius:0 0 16px 16px; }
.pro-mega > li > ul { list-style:none; margin:0; padding:0 10px; }
.pro-mega > li > ul > li > a { font-size:13px; }
.pro-mega .pro-head { font-weight:800; color:#4f7a0e; padding:8px 10px; border-bottom:1px solid #eef2f5; margin-bottom:6px; text-transform:uppercase; font-size:12px; letter-spacing:.5px; }
@media (max-width:991px) {
  .pro-panel { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; border-radius:0; }
  .pro-item:not(.open) > .pro-panel { display:none; }
  .pro-mega { min-width:0; grid-template-columns:1fr; }
}

/* dropdowns — guaranteed-visible (never hidden when .open) */
.dropdown.open > .dropdown-menu { display:block !important; z-index:1001; }
.dropdown.open > .dropdown-menu.mega-dropdown-menu { left:0; right:0; }
.navbar-collapse.collapse.in { display:block !important; }

/* dropdowns — guaranteed-readable professional menus */
.dropdown-menu {
  background:#fff !important; border:1px solid #dfe6ec !important;
  box-shadow:0 18px 40px rgba(31,42,55,.22) !important; border-radius:12px !important; padding:8px !important;
}
.dropdown-menu > li > a, .dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
  color:#1f2a37 !important; background:transparent !important; border-radius:8px; padding:10px 14px !important; white-space:normal;
}
.dropdown-menu > li > a:hover { background:linear-gradient(90deg, rgba(149,196,31,.16), rgba(0,191,166,.12)) !important; color:#4f7a0e !important; }
.mega-dropdown-menu { box-shadow:0 18px 40px rgba(31,42,55,.22) !important; border-radius:12px !important; }
.dropdown-header { color:#4f7a0e !important; font-weight:800; text-transform:uppercase; font-size:12px; letter-spacing:.5px; }
.top-header .dropdown { position:relative; }
.top-header .dropdown.open > .dropdown-menu { right:0; left:auto; top:110%; }
.top-header .pro-dropdown a { color:#4f7a0e !important; font-weight:600; }
.lang-switch { display:flex; gap:6px; align-items:center; }
.lang-switch a { border:1px solid rgba(255,255,255,.6); color:#fff !important; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:700; }
.lang-switch a.active { background:#fff; color:#4f7a0e !important; }

/* headers & sections — glass + gradient */
.main-header { backdrop-filter:saturate(1.2); box-shadow:0 4px 20px rgba(0,0,0,.08); }
.top-header { background:linear-gradient(90deg,#00a896,#00bfa6) !important; }
.main-title h1, .main-title-2 h1 { text-transform:capitalize; letter-spacing:.3px; }
.main-title h1 span, .main-title-2 h1 span {
  background:linear-gradient(90deg,#95c41f,#00bfa6); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.container > h1 { font-size:26px; font-weight:800; color:var(--pro-dark); margin-bottom:10px; }
.container > h1 small { font-size:14px; color:#7a8a9a; font-weight:600; }
.container > hr { border:none; height:4px; width:80px; background:linear-gradient(90deg,#95c41f,#00bfa6); border-radius:4px; margin:6px 0 18px; }

/* forms — soft depth */
.form-control, .selectpicker.search-fields, .input-text, .input-text2 {
  border-radius:8px !important; box-shadow: inset 0 2px 4px rgba(0,0,0,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus, .selectpicker.search-fields:focus { border-color:var(--pro-green); box-shadow:0 0 0 3px rgba(149,196,31,.18); outline:none; }

/* sidebar widgets — floating panels */
.sidebar-widget, .sidebar-widget.search-box, .category-posts, .popular-posts, .tags-box {
  background:#fff; border-radius:12px; padding:16px;
  box-shadow:0 4px 14px rgba(31,42,55,.07); border:1px solid #eef2f5;
  margin-bottom:20px;
}

/* blog */
.blog-body .col-lg-6 { margin-bottom:22px; }
.blog-body .sidebar .media-object { width:70px;height:62px;object-fit:cover;border-radius:10px;box-shadow:0 4px 10px rgba(31,42,55,.14); }
.blog-body .sidebar .tags a { border:1px solid #dfe6ec !important; background:#f8fbf2 !important; border-radius:20px !important; }
.blog-cat-badge { box-shadow:0 3px 8px rgba(149,196,31,.4); }
.read-more { font-weight:700; color:#7db31a; }
.read-more:hover { color:#00a896; text-decoration:none; }

/* banner */
.banner .carousel-caption .btn { margin-right:10px; }
.search-area { border-radius:12px; box-shadow:0 16px 40px rgba(31,42,55,.22); }

/* auth (Dashboard login/signup) — 3D glass card */
body.fix-header { background: linear-gradient(135deg, #eef7dc 0%, #e6f5f0 55%, #f3f8ff 100%) !important; min-height:100vh; }
.login-content.card, .login-content {
  border-radius:20px !important; border:1px solid rgba(255,255,255,.6) !important;
  background:rgba(255,255,255,.92) !important; backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(31,42,55,.18), 0 4px 12px rgba(31,42,55,.10), inset 0 1px 0 #fff !important;
  padding:28px !important;
}
.login-content h4, .login-content .login-form h4 {
  background:linear-gradient(90deg,#7fae1a,#00bfa6); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  font-weight:800; letter-spacing:.4px;
}
.login-content .form-control {
  border-radius:10px !important; padding:12px 14px !important; border:1px solid #d8e2ea !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.05) !important;
}
.login-content .form-control:focus {
  border-color:#95c41f !important; box-shadow:0 0 0 3px rgba(149,196,31,.22) !important; outline:none;
}
.login-content .btn, .login-content input[type="submit"] {
  background:linear-gradient(135deg,#7fae1a,#4f7a0e) !important; border:1px solid #3f630b !important;
  color:#fff !important; font-weight:700; border-radius:10px !important;
  box-shadow:0 8px 18px rgba(79,122,14,.35), inset 0 1px 0 rgba(255,255,255,.5) !important;
  transition:.2s ease;
}
.login-content .btn:hover, .login-content input[type="submit"]:hover { transform:translateY(-2px); filter:brightness(1.06); }
.login-content a { color:#4f7a0e; font-weight:600; }
.login-content a:hover { color:#00a896; }

/* ===== Post description (rendered safe HTML) ===== */
.properties-description{word-break:break-word;overflow-wrap:anywhere;line-height:1.75;color:#334155;font-size:15px;}
.properties-description div,.properties-description p{margin:0 0 8px;line-height:1.75;}
.properties-description ul,.properties-description ol{padding-left:22px;margin:6px 0 10px;}
.properties-description li{margin-bottom:4px;line-height:1.7;}
.properties-description a{color:#4f7a0e;font-weight:700;text-decoration:underline;word-break:break-all;}
.properties-description strong,.properties-description b{color:#1f2a37;}

/* ===== Unified pagination + post-count information (all listing pages) ===== */
/* Top count bar (Total / Showing) */
.post-count-bar{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;
  background:linear-gradient(135deg,#ffffff 0%,#f4f9e8 100%);
  border:1px solid #dde8c9;border-radius:14px;padding:12px 16px;margin:14px 0 16px;
  box-shadow:0 6px 18px rgba(31,42,55,.08),inset 0 1px 0 #fff;
}
.post-count-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#334155;font-size:15px;font-weight:600;}
.post-count-ico{
  width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#95c41f,#00bfa6);color:#fff;font-size:17px;flex:0 0 auto;
  box-shadow:0 5px 12px rgba(79,122,14,.35),inset 0 1px 0 rgba(255,255,255,.55);
}
.count-pill{
  display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e2e8d8;border-radius:999px;
  padding:4px 12px;font-weight:800;color:#1f2a37;box-shadow:0 2px 6px rgba(31,42,55,.08);
}
.count-pill small{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#64748b;font-weight:800;}
.count-pill.total b{color:#4f7a0e;}
.count-pill.showing b{color:#00a896;}
.count-sep{color:#b7c4cf;font-weight:800;}
.post-count-right{display:flex;align-items:center;gap:8px;}
.post-count-note{font-size:13px;color:#7a8a9a;font-weight:600;}

/* Bottom range bar (Showing Result: x - y of z) */
.post-range-bar{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;
  margin:18px 0 10px;padding:10px 14px;border-radius:12px;
  background:#fff;border:1px solid #e8eef3;box-shadow:0 3px 10px rgba(31,42,55,.06);
  color:#516171;font-size:14px;font-weight:600;
}
.post-range-bar .range-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.range-ico{
  width:30px;height:30px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#eef7dc,#e6f5f0);color:#4f7a0e;border:1px solid #dde8c9;font-size:14px;
}
.post-range-bar b{color:#1f2a37;}
.range-page{font-size:13px;color:#7a8a9a;font-weight:700;}
.clear-filter{
  display:inline-flex;align-items:center;gap:5px;background:#fff8e6;border:1px solid #f2d58a;color:#7a5a12 !important;
  padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800;text-decoration:none !important;
}
.clear-filter:hover{background:#ffedb8;}

/* Result text (grid pages) — align with range bar */
.result{
  display:flex;align-items:center;gap:8px;margin:14px 0 6px;padding:10px 14px;border-radius:12px;
  background:#fff;border:1px solid #e8eef3;box-shadow:0 3px 10px rgba(31,42,55,.06);
  color:#516171;font-size:14px;font-weight:600;
}
.result::before{
  content:"\f06e";font-family:FontAwesome;width:30px;height:30px;border-radius:9px;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#eef7dc,#e6f5f0);color:#4f7a0e;border:1px solid #dde8c9;font-size:14px;
}

/* Pagination wrapper */
.pro-pagination-wrap{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:6px;}

/* Dynamic div.pagination (PHP-generated) — professional 3D */
div.pagination.pro-pagination{
  display:flex !important;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;
  text-align:center;padding:6px 0 2px;background:transparent;border:none;box-shadow:none;
}
div.pagination.pro-pagination a,
div.pagination.pro-pagination .current,
div.pagination.pro-pagination .disabled,
div.pagination.pro-pagination .dot{
  float:none !important;display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;height:44px;padding:0 14px;border-radius:12px !important;
  border:1px solid #dfe6ec !important;background:#fff !important;color:#1f2a37 !important;
  font-size:15px;font-weight:800;text-decoration:none !important;line-height:1;
  box-shadow:0 3px 8px rgba(31,42,55,.08),inset 0 1px 0 #fff;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease;
}
div.pagination.pro-pagination a:hover{
  transform:translateY(-2px);border-color:#95c41f !important;color:#4f7a0e !important;
  background:linear-gradient(135deg,#f4f9e8,#e6f5f0) !important;
  box-shadow:0 7px 16px rgba(79,122,14,.22);
}
div.pagination.pro-pagination .current{
  background:linear-gradient(135deg,#8fbc1f,#4f7a0e) !important;border-color:#3f630b !important;color:#fff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.30);
  box-shadow:0 6px 14px rgba(79,122,14,.40),inset 0 1px 0 rgba(255,255,255,.5);
  cursor:default;
}
div.pagination.pro-pagination .disabled{
  color:#94a3b8 !important;background:#f1f5f9 !important;border-color:#e2e8f0 !important;box-shadow:none;cursor:not-allowed;
}
div.pagination.pro-pagination .dot{
  min-width:32px;padding:0 6px;background:transparent !important;border:none !important;box-shadow:none;color:#94a3b8 !important;cursor:default;
}

/* Bootstrap ul.pagination — same language */
ul.pagination.pro-pagination{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;border:none;background:transparent;
}
ul.pagination.pro-pagination > li{margin:0;}
ul.pagination.pro-pagination > li > a,
ul.pagination.pro-pagination > li > span{
  display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;
  border-radius:12px !important;border:1px solid #dfe6ec !important;background:#fff !important;color:#1f2a37 !important;
  font-size:15px;font-weight:800;box-shadow:0 3px 8px rgba(31,42,55,.08);
}
ul.pagination.pro-pagination > li > a:hover{
  transform:translateY(-2px);border-color:#95c41f !important;color:#4f7a0e !important;
  background:linear-gradient(135deg,#f4f9e8,#e6f5f0) !important;
}
ul.pagination.pro-pagination > li.active > a,
ul.pagination.pro-pagination > li.active > span{
  background:linear-gradient(135deg,#8fbc1f,#4f7a0e) !important;border-color:#3f630b !important;color:#fff !important;
  box-shadow:0 6px 14px rgba(79,122,14,.40);
}
ul.pagination.pro-pagination > li.disabled > a{color:#94a3b8 !important;background:#f1f5f9 !important;}

/* ===== Cover images — full width + height of div (all categories) ===== */
.property-img,.property-2 .property-img{width:100% !important;height:250px !important;overflow:hidden !important;background:#edf2f6;}
.property-img img,.property-2 .property-img img,.property img,.property-2 img{
  width:100% !important;height:100% !important;display:block;object-fit:cover !important;object-position:center;
}
.property-2 .property-img{height:210px !important;}
.property .col-pad .property-img{height:100%;min-height:250px;}
/* Grid cards: fill whole cell */
.property.grid .property-img,.property-2 .property-img{height:100%;}
.home-section .property-img{height:200px !important;}
/* Detail hero cover */
.cover-hero{
  position:relative;width:100% !important;height:clamp(260px,40vw,440px) !important;
  border-radius:16px;overflow:hidden;margin-bottom:14px;background:#edf2f6;
  box-shadow:0 12px 30px rgba(31,42,55,.14);border:1px solid #e8eef3;
}
.cover-hero img{position:absolute !important;inset:0;width:100% !important;height:100% !important;object-fit:cover !important;object-position:center;display:block;}
.cover-hero::after{content:"";position:absolute;inset:auto 0 0 0;height:38%;background:linear-gradient(180deg,transparent,rgba(15,23,42,.42));pointer-events:none;}
.cover-badge{position:absolute;left:14px;bottom:14px;z-index:2;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.7);padding:6px 12px;border-radius:999px;font-size:13px;font-weight:800;color:#4f7a0e;box-shadow:0 6px 16px rgba(0,0,0,.18);}
.cover-count{position:absolute;right:14px;bottom:14px;z-index:2;display:inline-flex;align-items:center;gap:6px;background:rgba(15,23,42,.72);color:#fff;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;}
.cover-hero a{display:block;width:100%;height:100%;}
/* Gallery grid stays cover-fit */
.gallery-grid img,.edit-gallery-item img{width:100% !important;height:100% !important;object-fit:cover !important;display:block;}
.gallery-grid a{aspect-ratio:4/3;}
/* Blog detail + sidebar thumbs */
.blog-box img.img-responsive,.blog-box-2 .blog-photo{width:100% !important;}
.blog-box > img,.blog-box img.img-responsive{height:360px !important;object-fit:cover !important;object-position:center;width:100% !important;display:block;}
.blog-photo{height:170px;width:100%;overflow:hidden;background:#f3f6f9;}
.blog-photo img{width:100% !important;height:100% !important;object-fit:cover !important;display:block;}
.blog-body .sidebar .media-object,.sidebar-widget .media-object{width:70px !important;height:62px !important;object-fit:cover !important;object-position:center;border-radius:8px;}
/* Related cards inline width fix */
.property-2 .property-img img[style]{height:100% !important;}
/* Carousel / slider images fill slide */
.properties-detail-slider .gallery-grid{width:100%;}
@media (max-width:767px){
  .property-img{height:210px !important;}
  .property-2 .property-img{height:190px !important;}
  .cover-hero{height:240px !important;border-radius:12px;}
  .blog-box > img,.blog-box img.img-responsive{height:240px !important;}
}

/* accessibility / reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition:none !important; animation:none !important; }
}
@media (max-width:767px) {
  .property:hover, .thumbnail:hover { transform:none; }
  .container > h1 { font-size:20px; }
}
